/* TaxMate new-user flow (approved in the 2026-11-13 demo).
   Robert: 「快速入門要重新設計。我唔想下邊有咁多留白…嗰陣時淨係做好程序…冇做到設計部分」;
           「真係start完之後就係 just did it」.
   1 The frame is the entrance's own (.tm-entrance: fixed, always dark, Robert's clips in .e-bg). obRender moves the
     playing videos from page to page, so a piece never restarts. The question and its answers sit low, where the
     thumb is; the clips fill the room the answers leave, so no step has an empty half. A computer shows the step on
     the left and the clips on the right, like the entrance.
   2 Text boxes (Robert 11-13: three different boxes in two lines; then 「凹 ok」): every place you type or set a value
     is one slot pressed into the surface — raised things are tapped, pressed-in things are typed into. */

/* ---------- 1 the frame ---------- */
#ob-root .tm-flow .e-shade{opacity:1;background:rgba(0,0,0,.14)}
#ob-root .tm-flow .f-panel{position:relative;z-index:2;flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
#ob-root .tm-flow .f-panel::-webkit-scrollbar{display:none}
#ob-root .tm-flow .f-body{flex:none;margin-top:auto;padding:110px 16px max(env(safe-area-inset-bottom),14px);
  background:linear-gradient(180deg,rgba(5,8,12,0) 0,rgba(5,8,12,.78) 80px,rgba(5,8,12,.94) 120px,#05080c 100%)}
/* a new step rises in a little; the clips behind carry on */
#ob-root[data-ob-enter="1"] .tm-flow .f-body{animation:tmFlowIn .5s cubic-bezier(.16,1,.3,1) .1s both}
@keyframes tmFlowIn{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
/* Back and the step bar sit on the clips (the clips' own top shade keeps them readable) */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root .tm-flow .ob-progtop{position:relative;flex:none;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;animation:none}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .ob-plabel{display:block;color:rgba(255,255,255,.82);text-shadow:0 1px 6px rgba(0,0,0,.45)}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .ob-ptrack{background:rgba(255,255,255,.22)}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow :is(.ob-back,.ob-tour-exit){text-shadow:0 1px 6px rgba(0,0,0,.35)}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .ob-entry-header{flex:none;padding:0 16px}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-body h1{margin:0 4px 6px}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-body .ob-lede{margin-bottom:14px}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-body .ob-gh{margin-top:14px}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-body .ob-lede+.ob-gh{margin-top:2px}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-body .ob-card{margin-bottom:10px}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-body .ob-error:not(.show){display:none}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-go{display:block;width:100%;margin-top:12px;min-height:54px}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .ob-skiprow{text-align:center;margin-top:6px}

/* What do you do? The example in the box is the job of the person on screen; it changes with them. */
#ob-root .tm-flow .ob-fieldcard{position:relative}
#ob-root .tm-flow .f-ph{position:absolute;inset:0;pointer-events:none;transition:opacity .2s ease}
#ob-root .tm-flow .ob-fieldcard input:not(:placeholder-shown)~.f-ph{opacity:0}
#ob-root .tm-flow .f-ph>span{position:absolute;inset-inline:14px;top:50%;transform:translateY(-50%);font-size:17px;font-weight:500;color:var(--muted);
  opacity:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .6s ease}
#ob-root .tm-flow .f-ph>span.on{opacity:.85}

/* Where do you want to start? The months as the app's raised, frosted tiles, three to a row */
#ob-root .tm-flow .f-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:2px 0 4px}
:root[data-material="soft-frosted"] #ob-root .tm-flow .f-month{appearance:none;border:0;margin:0;min-height:62px;padding:8px 6px;border-radius:14px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-family:inherit;color:#F5F5F7;cursor:pointer;
  background:var(--fm-panel);-webkit-backdrop-filter:var(--fm-frost);backdrop-filter:var(--fm-frost);box-shadow:var(--fm-shadow);transition:transform 180ms cubic-bezier(.16,1,.3,1)}
:root[data-material="soft-frosted"] #ob-root .tm-flow .f-month:active{transform:translateY(1px) scale(.98);transition-duration:70ms}
#ob-root .tm-flow .f-mn{font-size:16px;font-weight:700;line-height:1.25}
#ob-root .tm-flow .f-my{font-size:12.5px;font-weight:500;line-height:1.3;color:rgba(255,255,255,.6)}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-note{margin:10px 4px 0}

/* just did it — Robert's line, the finish page's title, above the estimate */
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-body h1.f-did{margin:0 4px 14px;font-size:44px;font-weight:800;letter-spacing:-.03em;line-height:1.05;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35)}
[dir=rtl] #ob-root .tm-flow h1.f-did{text-align:right}
:root[data-direction-d][data-direction-d] #ob-root .tm-flow .ob-donecard{margin:0 0 12px}

/* computer: the step on the left, the clips keep playing on the right */
@media (min-width:900px){
  /* Robert 2026-11-14: on the month page the top and bottom bars ran the full width as two grey bands. On a computer the
     bars now have no background at all; only the middle scrolls, and it fades softly at its top and bottom edges, so nothing
     slides under the bars and the page background (dark with the moving lights) shows the same everywhere. */
  :root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root>:is(.ob-progtop,.ob-foot){background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  #ob-root.active:has(>.ob-progtop):has(>.ob-scroll):has(>.ob-foot){display:flex;flex-direction:column;overflow:hidden}
  #ob-root.active:has(>.ob-progtop):has(>.ob-scroll):has(>.ob-foot)>:is(.ob-progtop,.ob-foot){position:relative;flex:none}
  #ob-root.active:has(>.ob-progtop):has(>.ob-scroll):has(>.ob-foot)>.ob-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;padding-bottom:28px;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22px,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 22px,#000 calc(100% - 28px),transparent 100%)}
  #ob-root .tm-flow .e-shade{display:none}
  #ob-root .tm-flow .f-panel{grid-column:1;grid-row:1;border-radius:22px;background:transparent;justify-content:center;align-items:center;padding:40px 56px;overflow:auto}
  :root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root .tm-flow .ob-progtop,
  :root[data-direction-d][data-direction-d] #ob-root .tm-flow .ob-entry-header{position:absolute;top:10px;inset-inline:20px;padding:0;margin:0}
  :root[data-direction-d][data-direction-d] #ob-root .tm-flow .ob-progtop>.ob-wrap{padding:0;max-width:none}
  #ob-root .tm-flow .f-body{margin:0;width:100%;max-width:460px;padding:30px 0 0;background:none}
  :root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-body h1{font-size:32px}
  :root[data-direction-d][data-direction-d] #ob-root .tm-flow .f-body h1.f-did{font-size:54px}
}
@media (prefers-reduced-motion:reduce){#ob-root[data-ob-enter="1"] .tm-flow .f-body{animation:none}#ob-root .tm-flow .f-ph>span{transition:none}}

/* ---------- 2 text boxes: one pressed-in slot ---------- */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-fieldcard,.ob-sharewrap,.ob-fdesc,.ob-famt,.ob-daylabel,.ob-newcat .ob-fdesc,.ob-mopen input[type=number]){
  min-height:44px;border:0;border-radius:12px;animation:none;
  /* a real recess, lit from above: shadow under the top edge, light on the bottom wall and on the lip below the cut;
     the floor is darker than the card, not black (Robert: the first try read as a flat black block) */
  background-color:rgba(0,0,0,.26);
  background-image:linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,0) 75%),var(--fm-grain);background-size:100% 100%,256px 256px;background-repeat:no-repeat,repeat;
  box-shadow:inset 0 3px 6px rgba(0,0,0,.65),inset 0 1px 1px rgba(0,0,0,.55),inset 0 -1px 0 rgba(255,255,255,.14),0 1px 0 rgba(255,255,255,.11)}
/* the text boxes inside a slot paint nothing of their own (one box, not a box inside a box) */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-fieldcard input,.ob-sharewrap input,.ob-famt input,.ob-promoinput,.ob-codeinput){
  background:transparent;background-image:none;box-shadow:none;border:0;border-radius:0;animation:none;outline:none}
/* focus: the caret only; a ring for keyboard focus */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-fieldcard,.ob-sharewrap,.ob-famt):focus-within,
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-fdesc,.ob-mopen input[type=number],.ob-newcat .ob-fdesc):focus,
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-daywrap:focus-within .ob-daylabel{box-shadow:inset 0 3px 6px rgba(0,0,0,.65),inset 0 1px 1px rgba(0,0,0,.55),inset 0 -1px 0 rgba(255,255,255,.14),0 1px 0 rgba(255,255,255,.11);background-color:rgba(0,0,0,.26)}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-fieldcard,.ob-sharewrap,.ob-famt):has(:focus-visible),
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-fdesc,.ob-mopen input[type=number],.ob-newcat .ob-fdesc):focus-visible,
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-daywrap:has(:focus-visible) .ob-daylabel{box-shadow:inset 0 3px 6px rgba(0,0,0,.65),inset 0 -1px 0 rgba(255,255,255,.14),0 0 0 2px var(--muted,#777)}

/* business name: the slot itself, no card around it */
:root[data-direction-d][data-direction-d] #ob-root .ob-fieldcard input[type=text]{min-height:48px;padding:12px 14px}
/* a month's line: [what it was] [£ amount] ×, the date's slot under it */
:root[data-direction-d][data-direction-d] #ob-root .ob-fline{row-gap:8px;column-gap:8px}
:root[data-direction-d][data-direction-d] #ob-root .ob-fdesc{margin-inline-start:0;padding:10px 12px;font-size:16px;font-weight:500}
:root[data-direction-d][data-direction-d] #ob-root .ob-famt{width:124px;gap:4px;padding:0 12px}
:root[data-direction-d][data-direction-d] #ob-root .ob-famt .ob-cur{font-size:16px;font-weight:600;color:var(--muted)}
:root[data-direction-d][data-direction-d] #ob-root .ob-famt input{min-height:44px;padding:0;text-align:end;font-size:17px;font-weight:700}
/* the date: the same slot, with its arrow */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-daywrap>.ob-daylabel.ob-daylabel{
  display:inline-flex;align-items:center;padding:0 32px 0 12px;font-size:15px;font-weight:500;color:var(--ink);
  background-image:var(--fm-grain);background-size:256px 256px;background-repeat:repeat}
[dir=rtl]:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-daywrap>.ob-daylabel.ob-daylabel{padding:0 12px 0 32px}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-daywrap>.ob-daylabel.ob-daylabel.empty{color:var(--muted)}
/* your share: 「你佔利潤幾多 ...... [ 50 % ]」 */
:root[data-direction-d][data-direction-d] #ob-root .ob-sharewrap{display:inline-flex;align-items:center;gap:2px;padding:0 12px}
:root[data-direction-d][data-direction-d] #ob-root .ob-sharewrap input[type=number]{width:2.4em;min-height:44px;padding:0;text-align:end;font-size:17px;font-weight:700}
:root[data-direction-d][data-direction-d] #ob-root .ob-sharepct{font-size:17px;font-weight:700;color:var(--muted)}
/* miles and a new category's name */
:root[data-direction-d][data-direction-d] #ob-root .ob-mopen input[type=number]{padding:10px 12px;font-size:17px;font-weight:600}
:root[data-direction-d][data-direction-d] #ob-root .ob-newcat .ob-fdesc{padding:10px 12px}
/* the date's arrow, drawn on its own so the slot's fill can never hide it */
:root[data-direction-d][data-direction-d] #ob-root .ob-daywrap{position:relative}
:root[data-direction-d][data-direction-d] #ob-root .ob-daywrap::after{content:"";position:absolute;top:50%;inset-inline-end:12px;width:10px;height:6px;margin-top:-3px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7686' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat}

/* light theme (the month page follows the app's theme): the same recess drawn for a light surface */
:root[data-theme="light"][data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-fieldcard,.ob-sharewrap,.ob-fdesc,.ob-famt,.ob-daywrap>.ob-daylabel.ob-daylabel,.ob-newcat .ob-fdesc,.ob-mopen input[type=number]){
  background-color:rgba(15,22,32,.05);background-image:linear-gradient(180deg,rgba(15,22,32,.08),rgba(15,22,32,0) 75%),var(--fm-grain);
  box-shadow:inset 0 2px 4px rgba(15,22,32,.16),inset 0 1px 1px rgba(15,22,32,.12),inset 0 -1px 0 rgba(255,255,255,.9),0 1px 0 rgba(255,255,255,.85)}
