/* TaxMate Direction D — Onboarding / first run (#ob-root).
   Owner: the onboarding team. Loaded after src/ui/direction-d.css (do not change
   the <link> order in index.html). Use the shared tokens and components from
   direction-d.css / direction-d.js; prefix rules with :root[data-direction-d]
   (or the triple prefix where direction-d.css uses it).

   Full-screen iOS flow: quiet nav bar (Back + thin progress), D large title,
   grouped white lists, one yellow primary at the bottom. The index.html inline
   onboarding rules and the Direction A rules stay in place (unit tests read
   them); every rule here is scoped to #ob-root (or the email sign-in sheet) and
   out-ranks them, so nothing outside onboarding changes. */

/* ── 1. Shell, type ─────────────────────────────────────────────────────── */
:root[data-direction-d] #ob-root.active{background:var(--bg);color:var(--ink)}
:root[data-direction-d] #ob-root .ob-wrap{max-width:520px;padding-inline:16px}
:root[data-direction-d] #ob-root .ob-scroll{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}
:root[data-direction-d] #ob-root .ob-scroll .ob-wrap{padding-inline:16px}
:root[data-direction-d] #ob-root h1{font-size:32px;font-weight:800;letter-spacing:-.02em;line-height:1.15;margin:10px 4px 8px;padding:0;color:var(--ink);text-wrap:balance}
:root[data-direction-d] #ob-root .ob-lede{font-size:15px;line-height:1.5;color:var(--muted);margin:0 4px 18px;padding:0}
/* one logo only: on the welcome / sign-in screen */
:root[data-direction-d] #ob-root .ob-logo{display:none}
:root[data-direction-d] #ob-root .tm-shared-welcome .ob-logo{display:flex;align-items:center;height:auto;margin:8px 4px 22px}
:root[data-direction-d] #ob-root .onboarding-brand-lockup{width:141px;height:26px}

/* ── 2. Nav bar: Back on its own row, thin progress + quiet step label ──── */
:root[data-direction-d] #ob-root .ob-progtop{
  position:sticky;top:0;z-index:30;padding:env(safe-area-inset-top,0px) 0 8px;
  background:color-mix(in srgb,var(--bg) 86%,transparent);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);
}
:root[data-direction-d] #ob-root .ob-progtop>.ob-wrap{
  display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px auto;grid-template-areas:"back back" "track label";
  column-gap:12px;align-items:center;padding:0 16px;
}
:root[data-direction-d] #ob-root .ob-prow{display:contents}
:root[data-direction-d] #ob-root .ob-progtop .ob-back{grid-area:back;justify-self:start}
:root[data-direction-d] #ob-root .ob-plabel{grid-area:label;max-width:min(60vw,320px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:600;letter-spacing:0;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-ptrack{grid-area:track;height:3px;margin:0;background:var(--sys);border-radius:99px;overflow:hidden}
:root[data-direction-d] #ob-root .ob-progtop>.ob-wrap:not(:has(.ob-plabel)) .ob-ptrack{grid-column:1/-1}
:root[data-direction-d] #ob-root .ob-pfill{height:100%;background:var(--tint);border-radius:99px;transition:none}
:root[data-direction-d] #ob-root[data-ob-screen="done"] .ob-plabel{display:none}
:root[data-direction-d] #ob-root[data-first-sync] .ob-ptrack{display:none}
/* iOS back: chevron + label in the link colour, chevron aligned with the content edge */
:root[data-direction-d] #ob-root .ob-back{
  display:inline-flex;align-items:center;gap:2px;width:auto;min-width:44px;min-height:44px;margin:0;margin-inline-start:-6px;padding:0 6px;
  border:0;border-radius:8px;background:none;box-shadow:none;color:var(--d-link);font:inherit;font-size:16px;font-weight:600;line-height:1.2;cursor:pointer;
}
:root[data-direction-d] #ob-root .ob-back>span[aria-hidden="true"]{display:inline-flex;align-items:center;justify-content:center;width:14px;height:22px;font-size:0;line-height:0}
:root[data-direction-d] #ob-root .ob-back>span[aria-hidden="true"]::before{content:"";width:10px;height:10px;border:solid currentColor;border-width:0 0 2.4px 2.4px;border-radius:1px;transform:translateX(2px) rotate(45deg)}
[dir=rtl]:root[data-direction-d] #ob-root .ob-back>span[aria-hidden="true"]::before{transform:translateX(-2px) rotate(-135deg)}
/* welcome / entry: same 44px header row, no progress */
:root[data-direction-d] #ob-root .ob-entry-shell{position:relative;padding-top:0}
:root[data-direction-d] #ob-root .ob-entry-header{position:relative;inset:auto;display:flex;align-items:center;height:44px;margin:env(safe-area-inset-top,0px) 0 0}
/* full-tour replay: Exit sits at the right end of the same row */
:root[data-direction-d] #ob-root .ob-tour-exit{
  top:env(safe-area-inset-top,0px);right:max(16px,calc((100vw - 520px) / 2 + 16px));left:auto;min-height:44px;padding:0 4px;
  border:0;border-radius:8px;background:none;box-shadow:none;color:var(--d-link);font:inherit;font-size:16px;font-weight:600;cursor:pointer;
}
[dir=rtl]:root[data-direction-d] #ob-root .ob-tour-exit{right:auto;left:max(16px,calc((100vw - 520px) / 2 + 16px))}

/* ── 3. Groups, rows ────────────────────────────────────────────────────── */
:root[data-direction-d] #ob-root .ob-card{background:var(--card);border:0;border-radius:14px;box-shadow:none;padding:14px 16px;margin:0 0 12px;overflow:hidden}
:root[data-direction-d] #ob-root .ob-card.flat{border:0;box-shadow:none}
:root[data-direction-d] #ob-root .ob-gh,
:root[data-direction-d] #ob-root label.ob-gh{display:block;margin:20px 16px 6px;font-size:13px;font-weight:600;line-height:1.35;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-lede+.ob-gh,:root[data-direction-d] #ob-root .ob-lede+label.ob-gh{margin-top:4px}
:root[data-direction-d] #ob-root .ob-list{background:var(--card);border-radius:14px;overflow:hidden;margin:0 0 12px}
:root[data-direction-d] #ob-root .ob-list+.ob-list{margin-top:20px}
:root[data-direction-d] #ob-root .ob-list>.ob-tile{
  position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:54px;margin:0;padding:10px 16px;padding-inline-end:38px;
  border:0;border-radius:0;background:none;box-shadow:none;text-align:start;font:inherit;color:var(--ink);cursor:pointer;
}
:root[data-direction-d] #ob-root .ob-list>.ob-tile+.ob-tile::before{content:"";position:absolute;top:0;inset-inline-start:16px;inset-inline-end:0;height:1px;background:var(--line)}
:root[data-direction-d] #ob-root .ob-list>.ob-tile+.ob-tile:has(>.ob-ic,>.ob-emoji)::before{inset-inline-start:64px}
:root[data-direction-d] #ob-root .ob-list>.ob-tile::after{content:"";position:absolute;top:50%;inset-inline-end:18px;width:7px;height:7px;margin-top:-4px;border:solid var(--muted);border-width:2px 2px 0 0;transform:rotate(45deg);opacity:.6}
[dir=rtl]:root[data-direction-d] #ob-root .ob-list>.ob-tile::after{transform:rotate(-135deg)}
:root[data-direction-d] #ob-root .ob-list>.ob-tile:active{transform:none}
:root[data-direction-d] #ob-root .ob-list>.ob-tile.d-pr{transform:none;opacity:1;box-shadow:inset 0 0 0 100vmax var(--sys);transition:box-shadow 60ms ease}
:root[data-direction-d] #ob-root .ob-tile .ob-tt{display:block;font-size:16px;font-weight:600;line-height:1.3;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-tile .ob-ts{display:block;margin-top:2px;font-size:13px;line-height:1.35;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-months>.ob-tile{min-height:50px}
:root[data-direction-d] #ob-root .ob-months>.ob-tile .ob-tt{font-weight:500}
:root[data-direction-d] #ob-root .ob-ic{flex:0 0 36px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--sys);color:var(--ink)}
:root[data-direction-d] #ob-root .ob-ic svg.d-i{width:20px;height:20px}
/* business letter avatar (catch-up picker): neutral circle, not a tinted tile */
:root[data-direction-d][data-direction-d] #ob-root .ob-tile .ob-emoji{display:flex!important;flex:0 0 36px;width:36px!important;height:36px!important;background:var(--sys)!important;color:var(--ink)!important;font-size:15px!important;font-weight:700!important}
/* Pro tag (same as the D tag) */
:root[data-direction-d] #ob-root .ob-entry-pro,
:root[data-direction-d] #ob-root .ob-probadge{display:inline-block;margin:0;margin-inline-start:8px;padding:2px 6px;border:0;border-radius:5px;background:#FFBE0A;color:#0F1620;font-size:11px;font-weight:700;letter-spacing:0;line-height:1.35;text-transform:none;vertical-align:2px}
:root[data-direction-d] #ob-root .ob-replay-note{margin:0 4px 18px;padding:0;border:0;border-radius:0;background:none}
:root[data-direction-d] #ob-root .ob-skiprow{margin:22px 0 0;text-align:center}

/* ── 4. Buttons, links ──────────────────────────────────────────────────── */
:root[data-direction-d] #ob-root .ob-btn{
  min-height:50px;padding:13px 18px;border:0;border-radius:14px;background:#FFBE0A;color:#0F1620;box-shadow:none;filter:none;
  font:inherit;font-size:16px;font-weight:700;line-height:1.25;transition:transform 380ms var(--d-eo),opacity 250ms ease;
}
:root[data-direction-d] #ob-root .ob-btn:hover:not(:disabled){filter:none}
:root[data-direction-d] #ob-root .ob-btn:active{transform:none;filter:none}
:root[data-direction-d] #ob-root .ob-btn.ghost{background:var(--sys);color:var(--ink);border:0;box-shadow:none}
:root[data-direction-d] #ob-root .ob-btn.soft{background:none;color:var(--d-link);border:0;box-shadow:none}
:root[data-direction-d] #ob-root .ob-btn.sm{width:auto;min-height:40px;padding:6px 4px;font-size:15px;font-weight:600}
:root[data-direction-d] #ob-root .ob-btn:disabled{opacity:.45;cursor:not-allowed}
/* Robert 2026-11-10: a primary that cannot be pressed is grey, not faded yellow (same as the app-wide disabled primary) */
:root[data-direction-d] #ob-root .ob-btn:not(.ghost):not(.soft):disabled{background:var(--sys);color:var(--muted);opacity:1;box-shadow:none}
:root[data-direction-d] #ob-root .ob-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:4px 8px;border:0;background:none;color:var(--d-link);font:inherit;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer}
:root[data-direction-d] #ob-root .ob-link.muted{color:var(--muted)}
/* bottom bar: translucent, one primary (plus at most one quiet link) */
:root[data-direction-d] #ob-root .ob-foot{
  padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px));border:0;box-shadow:none;
  background:color-mix(in srgb,var(--bg) 86%,transparent);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);
}
:root[data-direction-d] #ob-root .ob-foot .ob-wrap{max-width:520px;padding:0 16px;gap:6px}
:root[data-direction-d] #ob-root .ob-foot .ob-hint{margin:2px 8px 0;font-size:12.5px;line-height:1.45;text-align:center}
:root[data-direction-d] #ob-root .ob-foot .ob-finish-now{width:100%;min-height:40px}

/* ── 5. Fields, errors, hints ───────────────────────────────────────────── */
:root[data-direction-d] #ob-root .ob-fieldcard{padding:0}
:root[data-direction-d] #ob-root .ob-fieldcard:focus-within{box-shadow:inset 0 0 0 2px var(--muted, #777)}
:root[data-direction-d] #ob-root .ob-fieldcard input[type=text]{
  display:block;width:100%;min-height:52px;margin:0;padding:13px 16px;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;
  font:inherit;font-size:17px;font-weight:500;color:var(--ink);
}
:root[data-direction-d] #ob-root .ob-fieldcard .ob-codeinput[type=text]{text-align:center;text-transform:uppercase;letter-spacing:4px;font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}
:root[data-direction-d] #ob-root input::placeholder{color:var(--muted);opacity:.85}
:root[data-direction-d] #ob-root .ob-error{margin:6px 16px 12px;color:var(--d-danger);font-size:13px;font-weight:600;line-height:1.45}
:root[data-direction-d] #ob-root .ob-fieldcard+.ob-error{margin-top:-6px}
:root[data-direction-d] #ob-root .ob-hint{margin:6px 0 0;font-size:13px;line-height:1.45;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-gfoot{margin:-6px 16px 14px}
:root[data-direction-d] #ob-root .ob-status{margin:0 16px 12px;font-size:13px;line-height:1.45;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-busy{margin:8px 16px 0;font-size:13px;line-height:1.45;color:var(--muted);text-align:center}

/* ── 6. Welcome / sign in ───────────────────────────────────────────────── */
:root[data-direction-d] #ob-root .tm-shared-welcome h1{margin:0 4px 8px;padding:0;font-size:32px;font-weight:800;letter-spacing:-.02em;line-height:1.15}
:root[data-direction-d] #ob-root .tm-shared-welcome .ob-lede{margin:0 4px 16px;padding:0;font-size:15px;line-height:1.5}
:root[data-direction-d] #ob-root .tm-shared-welcome .ob-error{margin:-4px 4px 14px}
:root[data-direction-d] #ob-root .ob-example{margin:0 0 16px}
:root[data-direction-d] #ob-root .ob-example .d-wwrap{margin:0}
/* the one primary: start without an account */
:root[data-direction-d] #ob-root .tm-shared-welcome .tm-welcome-guest{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin:0;padding:12px 18px;
  border:0;border-radius:14px;background:#FFBE0A;color:#0F1620;box-shadow:none;cursor:pointer;
}
:root[data-direction-d] #ob-root .tm-shared-welcome .tm-welcome-guest .ob-tt{font-size:16px;font-weight:700;line-height:1.25;color:#0F1620;text-align:center;text-decoration:none}
/* sign-in: section header + provider buttons (Google / Apple brand themes) + email as a link */
:root[data-direction-d] #ob-root .tm-shared-welcome .tm-welcome-sync{margin:26px 16px 8px;font-size:13px;font-weight:600;line-height:1.4;color:var(--muted);text-align:start}
:root[data-direction-d] #ob-root .ob-providers{display:flex;flex-direction:column;gap:10px}
:root[data-direction-d] #ob-root .tm-provider-button{
  position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;height:auto;margin:0;padding:12px 54px;
  border:1px solid #747775;border-radius:14px;background:#fff;color:#1f1f1f;box-shadow:none;font:inherit;cursor:pointer;
}
:root[data-direction-d] #ob-root .tm-provider-button>span{font-size:16px;font-weight:600;line-height:24px;color:#1f1f1f}
/* the Apple mark PNG has a transparent background, so it sits cleanly on translucent buttons */
:root[data-direction-d] #ob-root .tm-provider-button>img.tm-apple-mark{mix-blend-mode:normal}
:root[data-direction-d][data-theme="dark"] #ob-root .tm-provider-button{background:#131314;border-color:#8E918F;color:#E3E3E3}
:root[data-direction-d][data-theme="dark"] #ob-root .tm-provider-button>span{color:#E3E3E3}
:root[data-direction-d][data-theme="dark"] #ob-root .tm-provider-button>img.tm-apple-mark{filter:invert(1)}
@media (prefers-color-scheme:dark){
  :root[data-direction-d]:not([data-theme]) #ob-root .tm-provider-button{background:#131314;border-color:#8E918F;color:#E3E3E3}
  :root[data-direction-d]:not([data-theme]) #ob-root .tm-provider-button>span{color:#E3E3E3}
  :root[data-direction-d]:not([data-theme]) #ob-root .tm-provider-button>img.tm-apple-mark{filter:invert(1)}
}
:root[data-direction-d] #ob-root .tm-provider-button:disabled{opacity:.6;cursor:wait}
:root[data-direction-d][data-direction-d] #ob-root .ob-email-link{width:100%;min-height:44px;margin:2px 0 0;padding:8px;border:0;border-radius:12px;background:none;box-shadow:none;color:var(--d-link);font-size:15px;font-weight:600}
/* language: a quiet capsule at the top right of the header row */
:root[data-direction-d] #ob-root .tm-shared-welcome .ob-langfoot{position:absolute;top:env(safe-area-inset-top,0px);right:16px;display:flex;align-items:center;height:44px;margin:0}
[dir=rtl]:root[data-direction-d] #ob-root .tm-shared-welcome .ob-langfoot{right:auto;left:16px}
:root[data-direction-d] #ob-root:has(>.ob-tour-exit) .tm-shared-welcome .ob-langfoot{position:static;justify-content:center;height:auto;margin:24px 0 0}
:root[data-direction-d] #ob-root .ob-langlink{min-height:32px;padding:6px 12px;border:0;border-radius:999px;background:var(--sys);color:var(--ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer}

/* ── 7. Language sheet (inline in #ob-root) ─────────────────────────────── */
:root[data-direction-d] #ob-root .ob-sheet-back{z-index:10003;background:var(--veil)}
:root[data-direction-d] #ob-root .ob-sheet{
  z-index:10004;max-width:520px;padding:6px 16px calc(16px + env(safe-area-inset-bottom,0px));
  background:var(--sheet);border-radius:12px 12px 0 0;box-shadow:var(--e-sheet);animation:d-sheet-in 420ms var(--d-ios);
}
:root[data-direction-d] #ob-root .ob-sheet::before{content:"";display:block;width:36px;height:5px;margin:0 auto 10px;border-radius:3px;background:var(--sys)}
:root[data-direction-d] #ob-root .ob-sheet-title{margin:0 0 10px;font-size:13px;font-weight:600;color:var(--muted);text-align:center}
:root[data-direction-d] #ob-root .ob-sheet-list{background:var(--d-field);border-radius:14px;overflow:hidden}
:root[data-direction-d] #ob-root .ob-sheet-row{position:relative;min-height:50px;padding:12px 16px;border:0;border-radius:0;background:none;font:inherit;font-size:16px;font-weight:500;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-sheet-row+.ob-sheet-row{border-top:0}
:root[data-direction-d] #ob-root .ob-sheet-row+.ob-sheet-row::before{content:"";position:absolute;top:0;inset-inline-start:16px;inset-inline-end:0;height:1px;background:var(--line)}
:root[data-direction-d] #ob-root .ob-sheet-row:active{background:var(--sys)}
:root[data-direction-d] #ob-root .ob-sheet-row.on{color:var(--ink);font-weight:600}
:root[data-direction-d] #ob-root .ob-sheet-tick{display:inline-flex;color:var(--d-tick-c)}
:root[data-direction-d] #ob-root .ob-sheet-tick svg.d-i{width:20px;height:20px;stroke-width:2.2}

/* ── 8. Step 1 — business: radio rows, share, partner sync note ─────────── */
:root[data-direction-d] #ob-root .ob-card:has(>.ob-radio){padding:0}
:root[data-direction-d] #ob-root .ob-seg.ob-radio{display:block;margin:0;padding:0;border:0;border-radius:0;background:none}
:root[data-direction-d] #ob-root .ob-seg.ob-radio button{
  position:relative;display:flex;align-items:center;width:100%;min-height:50px;margin:0;padding:12px 16px;padding-inline-start:50px;
  border:0;border-radius:0;background:none;box-shadow:none;color:var(--ink);font:inherit;font-size:16px;font-weight:500;text-align:start;transform:none;
}
:root[data-direction-d] #ob-root .ob-seg.ob-radio button+button::before{content:"";position:absolute;top:0;inset-inline-start:50px;inset-inline-end:0;height:1px;background:var(--line)}
:root[data-direction-d] #ob-root .ob-seg.ob-radio button::after{content:"";position:absolute;top:50%;inset-inline-start:16px;width:20px;height:20px;margin-top:-10px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--muted);transition:box-shadow 160ms var(--d-eo)}
:root[data-direction-d] #ob-root .ob-seg.ob-radio button.on{background:none;color:var(--ink);box-shadow:none;font-weight:600}
:root[data-direction-d] #ob-root .ob-seg.ob-radio button.on::after{box-shadow:inset 0 0 0 6px var(--tint)}
:root[data-direction-d] #ob-root .ob-seg.ob-radio button:active{transform:none;background:var(--sys)}
:root[data-direction-d] #ob-root .ob-sharecard{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:6px 12px 6px 16px}
:root[data-direction-d] #ob-root .ob-sharecard label{margin:0;font-size:16px;font-weight:500;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-sharewrap{gap:6px}
:root[data-direction-d] #ob-root .ob-sharewrap input[type=number]{width:76px;min-height:40px;padding:6px 10px;border:0;border-radius:10px;background:var(--sys);box-shadow:none;text-align:end;font:inherit;font-size:17px;font-weight:700;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-sharepct{font-size:17px;font-weight:600;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-synccard{display:flex;align-items:center;gap:12px;margin-top:12px}
:root[data-direction-d] #ob-root .ob-synccard .ob-synctext{flex:1;min-width:0}
:root[data-direction-d] #ob-root .ob-synccard .ob-seclabel{display:flex;align-items:center;gap:0;margin:0;font-size:15px;font-weight:600;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-synccard .ob-hint{margin:2px 0 0}
:root[data-direction-d] #ob-root .ob-dot{display:none}

/* ── 9. Step 3 — a month ────────────────────────────────────────────────── */
:root[data-direction-d] #ob-root .ob-mhead{display:block;margin:10px 4px 4px}
:root[data-direction-d] #ob-root .ob-mhead .ob-mname{margin:0;font-size:32px;font-weight:800;letter-spacing:-.02em;line-height:1.15;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-mhead .ob-mtag{margin-top:4px;font-size:15px;font-weight:500;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-seclabel{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 16px 6px;font-size:13px;font-weight:600;line-height:1.35;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-sectot{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
:root[data-direction-d] #ob-root .ob-sectot[hidden]{display:none}
:root[data-direction-d] #ob-root .ob-sectot.d-in,:root[data-direction-d] #ob-root .ob-fhead .ob-fsum.d-in,:root[data-direction-d] #ob-root .ob-srow .ob-sv.d-in{color:var(--in)}
:root[data-direction-d] #ob-root .ob-sectot.d-out,:root[data-direction-d] #ob-root .ob-fhead .ob-fsum.d-out,:root[data-direction-d] #ob-root .ob-srow .ob-sv.d-out{color:var(--out)}
:root[data-direction-d] #ob-root .ob-card.ob-money{padding:0}
/* one entry row: [details ....... £ amount ×] / [date] */
:root[data-direction-d] #ob-root .ob-frow{position:relative;margin:0;padding:8px 8px 10px 16px}
:root[data-direction-d] #ob-root .ob-frow+.ob-frow::before,
:root[data-direction-d] #ob-root .ob-fbody>.ob-frow:first-child::before{content:"";position:absolute;top:0;inset-inline-start:16px;inset-inline-end:0;height:1px;background:var(--line)}
:root[data-direction-d] #ob-root .ob-fbody.open>.ob-frow:first-child::before{display:none}
[dir=rtl]:root[data-direction-d] #ob-root .ob-frow{padding:8px 16px 10px 8px}
:root[data-direction-d] #ob-root .ob-fline{display:grid;grid-template-columns:minmax(0,1fr) auto 32px;grid-template-areas:"desc amt del" "day . .";column-gap:6px;row-gap:2px;align-items:center}
:root[data-direction-d] #ob-root .ob-fline>.ob-daywrap{grid-area:day;justify-self:start}
:root[data-direction-d] #ob-root .ob-fline>.ob-fdesc{grid-area:desc}
:root[data-direction-d] #ob-root .ob-fline>.ob-famt{grid-area:amt}
:root[data-direction-d] #ob-root .ob-fline>.ob-del{grid-area:del}
:root[data-direction-d] #ob-root .ob-fdesc{
  width:100%;min-width:0;min-height:42px;margin:0;margin-inline-start:-8px;padding:8px;border:0;border-radius:10px;
  background:transparent;box-shadow:none;outline:none;font:inherit;font-size:16px;font-weight:500;color:var(--ink);
}
:root[data-direction-d] #ob-root .ob-fdesc:focus{background:var(--sys)}
:root[data-direction-d] #ob-root .ob-famt{width:136px;gap:4px;justify-self:end}
:root[data-direction-d] #ob-root .ob-famt .ob-cur{font-size:16px;font-weight:600;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-famt input{
  width:100%;min-width:0;min-height:42px;margin:0;padding:8px 10px;border:0;border-radius:10px;background:var(--sys);box-shadow:none;outline:none;
  text-align:end;font:inherit;font-size:17px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;
}
:root[data-direction-d] #ob-root .ob-famt input:focus{box-shadow:inset 0 0 0 2px var(--muted, #777)}
:root[data-direction-d] #ob-root :is(.ob-del,.ob-fdel){display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:50%;background:none;color:var(--muted);opacity:1;font-size:16px;cursor:pointer}
:root[data-direction-d] #ob-root :is(.ob-del,.ob-fdel) svg.d-i{width:16px;height:16px}
:root[data-direction-d] #ob-root :is(.ob-del,.ob-fdel):active{background:var(--sys)}
/* date chip (native select stretched over it) */
:root[data-direction-d] #ob-root .ob-daylabel{
  display:inline-flex;align-items:center;min-height:28px;padding:4px 24px 4px 10px;border:0;border-radius:999px;background-color:var(--sys);
  font-size:13px;font-weight:600;line-height:1.3;color:var(--ink);background-position:right 9px center;
}
[dir=rtl]:root[data-direction-d] #ob-root .ob-daylabel{padding:4px 10px 4px 24px;background-position:left 9px center}
:root[data-direction-d] #ob-root .ob-daylabel.empty{color:var(--muted)}
:root[data-direction-d] #ob-root .ob-daywrap:focus-within .ob-daylabel{box-shadow:0 0 0 2px var(--muted, #777)}
/* tint action rows inside a group */
:root[data-direction-d] #ob-root :is(.ob-additem,.ob-groupbtn,.ob-addcat){
  position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:48px;margin:0;padding:10px 16px;
  border:0;border-radius:0;background:none;box-shadow:none;color:var(--d-link);font:inherit;font-size:15px;font-weight:600;text-align:start;cursor:pointer;
}
:root[data-direction-d] #ob-root :is(.ob-additem,.ob-groupbtn,.ob-addcat):not(:first-child)::before{content:"";position:absolute;top:0;inset-inline-start:16px;inset-inline-end:0;height:1px;background:var(--line)}
:root[data-direction-d] #ob-root :is(.ob-additem,.ob-groupbtn,.ob-addcat) svg.d-i{width:18px;height:18px}
:root[data-direction-d] #ob-root .ob-groupbtn{color:var(--muted);font-weight:500}
:root[data-direction-d] #ob-root :is(.ob-additem,.ob-groupbtn,.ob-addcat):active{background:var(--sys)}
:root[data-direction-d] #ob-root .ob-fbody.open{padding:0;border:0}
:root[data-direction-d] #ob-root .ob-fbody.open+.ob-groupbtn::before{display:block}
/* category folders: a header row inside the same group (no card in a card) */
:root[data-direction-d] #ob-root .ob-folder{position:relative;margin:0;border:0;border-radius:0;overflow:visible}
:root[data-direction-d] #ob-root .ob-folder+.ob-folder::before{content:"";position:absolute;top:0;inset-inline-start:0;inset-inline-end:0;height:1px;background:var(--line);z-index:1}
:root[data-direction-d] #ob-root .ob-fhead{display:flex;align-items:center;gap:10px;min-height:50px;padding:8px 8px;padding-inline-start:16px;background:none;cursor:pointer}
:root[data-direction-d] #ob-root .ob-fhead:active{background:var(--sys)}
:root[data-direction-d] #ob-root .ob-fcaret{display:inline-grid;place-items:center;flex:0 0 12px;width:12px;height:12px;font-size:0;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-fcaret::before{content:"";width:6px;height:6px;border:solid currentColor;border-width:2px 2px 0 0;transform:rotate(45deg);transition:transform 220ms var(--d-eo)}
[dir=rtl]:root[data-direction-d] #ob-root .ob-fcaret::before{transform:rotate(-135deg)}
:root[data-direction-d] #ob-root .ob-folder.open .ob-fcaret::before{transform:rotate(135deg)}
:root[data-direction-d] #ob-root .ob-fic{display:inline-flex;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-fic svg.d-i{width:18px;height:18px}
:root[data-direction-d] #ob-root .ob-fname{flex:1;min-width:0;font-size:16px;font-weight:600;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-fsum{font-size:15px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
:root[data-direction-d] #ob-root .ob-fbody{padding:0;border-top:0}
/* one-tap categories, and "add again" from other months: one scrolling chip row */
:root[data-direction-d] #ob-root .ob-prevcats{
  position:relative;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin:0;padding:10px 16px;overflow-x:auto;
  scrollbar-width:none;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 20px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 20px),transparent);
}
:root[data-direction-d] #ob-root .ob-prevcats::-webkit-scrollbar{display:none}
[dir=rtl]:root[data-direction-d] #ob-root .ob-prevcats{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 20px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 20px),transparent)}
/* with a mouse a hidden-scrollbar row cannot be scrolled sideways: let the chips wrap instead */
@media (hover:hover) and (pointer:fine){
  :root[data-direction-d] #ob-root .ob-prevcats{flex-wrap:wrap;overflow-x:visible;-webkit-mask-image:none;mask-image:none}
}
:root[data-direction-d] #ob-root .ob-prevcats:not(:first-child)::before{content:"";position:absolute;top:0;inset-inline-start:16px;inset-inline-end:0;height:1px;background:var(--line)}
:root[data-direction-d] #ob-root .ob-pclab{flex:0 0 auto;font-size:13px;font-weight:600;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-pchip{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:7px 14px;border:0;border-radius:999px;
  background:var(--sys);color:var(--ink);font:inherit;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer;
}
:root[data-direction-d] #ob-root .ob-pchip svg.d-i{width:16px;height:16px;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-pchip:active{background:var(--d-cap)}
/* inline "add category" editor */
:root[data-direction-d] #ob-root .ob-newcat{position:relative;display:flex;align-items:center;gap:8px;margin:0;padding:8px 10px 8px 16px}
:root[data-direction-d] #ob-root .ob-newcat:not(:first-child)::before{content:"";position:absolute;top:0;inset-inline-start:16px;inset-inline-end:0;height:1px;background:var(--line)}
:root[data-direction-d] #ob-root .ob-newcat .ob-fdesc{flex:1;margin:0;padding:8px 12px;border:0;background:var(--sys)}
:root[data-direction-d] #ob-root .ob-ncok{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:0;border-radius:50%;background:#FFBE0A;color:#0F1620;cursor:pointer}
:root[data-direction-d] #ob-root .ob-nccancel{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
:root[data-direction-d] #ob-root :is(.ob-ncok,.ob-nccancel) svg.d-i{width:18px;height:18px;stroke-width:2.2}
/* mileage */
:root[data-direction-d] #ob-root .ob-miles{margin-top:12px;padding:0}
:root[data-direction-d] #ob-root .ob-mrow{display:flex;align-items:center;gap:12px;min-height:54px;padding:8px 12px 8px 16px}
:root[data-direction-d] #ob-root .ob-miles .ob-ic{flex-basis:32px;width:32px;height:32px}
:root[data-direction-d] #ob-root .ob-miles .ob-ic svg.d-i{width:18px;height:18px}
:root[data-direction-d] #ob-root .ob-mq{flex:1;min-width:0;font-size:15px;font-weight:500;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-mopen{position:relative;padding:12px 16px 8px}
:root[data-direction-d] #ob-root .ob-mopen::before{content:"";position:absolute;top:0;inset-inline-start:16px;inset-inline-end:0;height:1px;background:var(--line)}
:root[data-direction-d] #ob-root .ob-mopen label{display:block;margin:0 0 6px;font-size:13px;font-weight:600;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-mopen input[type=number]{min-height:46px;padding:10px 12px;border:0;border-radius:10px;background:var(--sys);box-shadow:none;font:inherit;font-size:17px;font-weight:600;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-mopen input[type=number]:focus{box-shadow:inset 0 0 0 2px var(--muted, #777)}
:root[data-direction-d] #ob-root .ob-mopen .ob-hint{margin:8px 0 0}
:root[data-direction-d] #ob-root .ob-mopen .ob-mt8{margin-top:2px}
:root[data-direction-d] #ob-root .ob-mopen .ob-link{padding-inline:0}
/* month total */
:root[data-direction-d] #ob-root .ob-totalpill{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin:12px 0 0;padding:12px 16px;border-radius:14px;background:var(--card)}
:root[data-direction-d] #ob-root .ob-totalpill .ob-tpl{font-size:15px;font-weight:600;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-totalpill .ob-tpv{font-size:17px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}

/* ── 10. Finale (All caught up) ─────────────────────────────────────────── */
:root[data-direction-d] #ob-root .ob-donecard{margin:6px 0 16px}
:root[data-direction-d] #ob-root .ob-donecard .d-wwrap{margin:0}
:root[data-direction-d] #ob-root .ob-donecard .d-wbig{font-size:46px;letter-spacing:-1.8px}
:root[data-direction-d] #ob-root .ob-donehero{margin:6px 0 16px;padding:22px;border-radius:22px;background:#0F1620;color:#fff;text-align:start;box-shadow:none}
:root[data-direction-d] #ob-root .ob-summary{padding:0}
:root[data-direction-d] #ob-root .ob-srow{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 16px;border:0;font-size:15px}
:root[data-direction-d] #ob-root .ob-srow+.ob-srow::before{content:"";position:absolute;top:0;inset-inline-start:16px;inset-inline-end:0;height:1px;background:var(--line)}
:root[data-direction-d] #ob-root .ob-srow .ob-sl{display:flex;flex-direction:column;min-width:0;font-weight:500;color:var(--ink)}
:root[data-direction-d] #ob-root .ob-srow .ob-sl em{margin-top:1px;font-style:normal;font-size:12.5px;font-weight:400;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-srow .ob-sv{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
:root[data-direction-d] #ob-root .ob-srow.ob-ssum :is(.ob-sl,.ob-sv){font-weight:800}

/* ── 11. Partner Sync, Pro access, redeem, account confirmation ─────────── */
:root[data-direction-d] #ob-root .ob-codevalue{margin:6px 0;font-size:22px;font-weight:800;letter-spacing:4px;text-align:center;color:var(--ink);font-variant-numeric:tabular-nums}
:root[data-direction-d] #ob-root .partner-success-card{display:flex;align-items:center;gap:12px;margin-bottom:12px!important}
:root[data-direction-d] #ob-root .partner-success-card .ob-tt{font-size:16px;font-weight:700;line-height:1.3;color:var(--ink)}
:root[data-direction-d] #ob-root .partner-success-card .ob-ts{margin-top:2px;font-size:13px;line-height:1.4;color:var(--muted)}
:root[data-direction-d] #ob-root .ob-ic-ok svg.d-i{stroke-width:2.2}
:root[data-direction-d] #ob-root .ob-waiting{display:flex;align-items:center;gap:12px;font-size:15px}
:root[data-direction-d] #ob-root .ob-spin{flex:0 0 18px;width:18px;height:18px;border:2px solid var(--sys);border-top-color:var(--ink);border-radius:50%;animation:d-ob-spin 900ms linear infinite}
@keyframes d-ob-spin{to{transform:rotate(360deg)}}
:root[data-direction-d] #ob-root .ob-emailcard{display:flex;align-items:center;gap:12px}
:root[data-direction-d] #ob-root .ob-emailcard .ob-codevalue{margin:0;font-size:16px;font-weight:600;letter-spacing:0;text-align:start;overflow-wrap:anywhere}
/* Pro required: iOS segmented cadence, plan cards as plain groups, one yellow (Pro) */
:root[data-direction-d] #ob-root .ob-pro-gate>h1{margin-bottom:8px}
:root[data-direction-d] #ob-root .ob-seg.ob-gate-cadence{display:flex;margin:0 0 16px;padding:2px;border:0;border-radius:9px;background:var(--sys)}
:root[data-direction-d] #ob-root .ob-seg.ob-gate-cadence button{flex:1;min-height:40px;padding:6px 8px;border:0;border-radius:7px;background:none;box-shadow:none;color:var(--ink);font:inherit;font-size:14px;font-weight:600;transform:none}
:root[data-direction-d] #ob-root .ob-seg.ob-gate-cadence button.on{background:var(--d-seg-on);color:var(--ink);box-shadow:0 3px 8px rgba(0,0,0,.12),0 3px 1px rgba(0,0,0,.04)}
:root[data-direction-d] #ob-root .ob-gate-plans{gap:12px}
:root[data-direction-d][data-direction-d] #ob-root .ob-gate-plans [data-plan-price],
:root[data-direction-d][data-direction-d] #ob-root .ob-gate-plans .tm-pro-price{color:var(--ink)!important}
:root[data-direction-d][data-direction-d] #ob-root .ob-gate-plans .tm-pro-price s{color:var(--muted)}
:root[data-direction-d] #ob-root .ob-gate-status{gap:8px;margin-top:14px}
:root[data-direction-d] #ob-root .ob-gate-status .ob-error,:root[data-direction-d] #ob-root .ob-gate-status .ob-busy{margin:0 16px}
:root[data-direction-d] #ob-root .ob-gate-actions{gap:10px;margin-top:16px;padding-top:0;border-top:0}

/* ── 12. Sign in with email sheet (also opened from Settings) ───────────── */
:root[data-direction-d][data-direction-d] #sb-email-signin>.sheet::before{content:"";display:block;grid-row:1;grid-column:1/-1;width:36px;height:5px;margin:6px auto 4px;border-radius:3px;background:var(--sys)}
:root[data-direction-d][data-direction-d] #sb-email-signin>.sheet>.s{margin:4px 4px 4px;font-size:14px;line-height:1.5;color:var(--muted)}
:root[data-direction-d][data-direction-d] #sb-email-signin .fg{margin:14px 0 0}
:root[data-direction-d][data-direction-d] #sb-email-signin label{margin:0 16px 6px;font-size:13px;font-weight:600;color:var(--muted)}
:root[data-direction-d][data-direction-d] #sb-email-signin input{min-height:50px;padding:12px 16px;border:0;border-radius:12px;background:var(--d-field);box-shadow:none;color:var(--ink);font:inherit;font-size:16px;font-weight:500}
:root[data-direction-d][data-direction-d] #sb-email-signin input:focus{outline:none;box-shadow:0 0 0 2px var(--muted, #777)}
:root[data-direction-d][data-direction-d] #email-signin-error{margin:10px 16px 0;color:var(--d-danger);font-size:13px;font-weight:600}
:root[data-direction-d][data-direction-d] #email-signin-error:empty{display:none}

/* amounts keep their own left-to-right order inside Urdu (RTL) screens */
:root[data-direction-d] #ob-root :is(.d-roll,.ob-sectot,.ob-fsum,.ob-tpv,.ob-sv.d-in,.ob-sv.d-out,.ob-ssum .ob-sv,.ob-codevalue){direction:ltr;unicode-bidi:isolate}

/* ── 13. Motion: a screen rises in only when the step changes ───────────── */
@keyframes d-ob-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
:root[data-direction-d] #ob-root .ob-step{animation:d-ob-in 360ms var(--d-eo) both}
:root[data-direction-d] #ob-root[data-ob-enter="0"] .ob-step{animation:none}
@media (prefers-reduced-motion:reduce){
  :root[data-direction-d] #ob-root .ob-step,:root[data-direction-d] #ob-root .ob-sheet,:root[data-direction-d] #ob-root .ob-spin{animation:none}
  :root[data-direction-d] #ob-root .ob-fcaret::before,:root[data-direction-d] #ob-root .ob-seg.ob-radio button::after{transition:none}
}

/* ── 14. Desktop: centred 520px column, sheets as centred cards ─────────── */
@media (min-width:900px){
  :root[data-direction-d] #ob-root .ob-sheet{top:0;bottom:0;margin:auto;height:max-content;max-width:420px;border-radius:14px;padding:14px 16px 16px;animation:d-pop-in 250ms var(--d-eo)}
  :root[data-direction-d] #ob-root .ob-sheet::before{display:none}
  :root[data-direction-d][data-direction-d] #sb-email-signin>.sheet::before{height:0;margin:0;visibility:hidden}
}
@media (min-width:900px) and (prefers-reduced-motion:reduce){
  :root[data-direction-d] #ob-root .ob-sheet{animation:none}
}
@media (min-width:1024px){
  :root[data-direction-d] #ob-root .ob-progtop{padding-top:20px}
  :root[data-direction-d] #ob-root .ob-entry-header{margin-top:20px}
  :root[data-direction-d] #ob-root .tm-shared-welcome .ob-langfoot{top:20px}
  :root[data-direction-d] #ob-root .ob-tour-exit{top:20px}
  /* desktop: the action bar follows the content and only sticks to the bottom when the step is long */
  :root[data-direction-d] #ob-root .ob-scroll{padding-bottom:12px}
  :root[data-direction-d] #ob-root .ob-foot{position:sticky;left:auto;right:auto;bottom:0;padding-top:12px;padding-bottom:28px}
}

/* Personal material screen boundary */
@media screen{
/* Original Glass 01: onboarding-specific composites and native-picker label.
   No rules target #ob-root or the welcome/finale wallet-containing blocks. */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-sheet{background-color:var(--fm-sheet,var(--fm-stage));background-image:var(--fm-light),var(--fm-grain);background-size:350% 170%,256px 256px;background-repeat:no-repeat,repeat;box-shadow:var(--fm-shadow);-webkit-backdrop-filter:var(--fm-frost);backdrop-filter:var(--fm-frost)}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-progtop,.ob-foot){background-color:var(--fm-panel);background-image:var(--fm-light),var(--fm-grain);background-size:350% 170%,256px 256px;background-repeat:no-repeat,repeat;-webkit-backdrop-filter:var(--fm-frost);backdrop-filter:var(--fm-frost)}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-sheet-list,.ob-emojigrid,.ob-gate-price):not(:where(.d-wallet,.d-wallet *,.d-wwrap,.d-wwrap *,.d-wmark,.d-wmark *,.d-sheen,.d-sheen *,.tm-hero,.tm-hero *,.tm-overview-hero,.tm-overview-hero *)):not(:has(.d-wallet,.d-wwrap,.d-wmark,.d-sheen,.tm-hero,.tm-overview-hero)){
  background-color:var(--fm-panel);background-image:var(--fm-light),var(--fm-grain);background-size:350% 170%,256px 256px;background-position:110% 50%,0 0;background-repeat:no-repeat,repeat;box-shadow:var(--fm-shadow);-webkit-backdrop-filter:var(--fm-frost);backdrop-filter:var(--fm-frost);animation:var(--fm-surface-animation);
}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-langlink,.ob-pchip,.ob-sharewrap input[type=number],.ob-famt input,.ob-newcat .ob-fdesc,.ob-mopen input[type=number],.ob-egbtn,.ob-egclose){
  background-color:var(--fm-secondary);background-image:var(--fm-light),var(--fm-grain);background-size:330% 150%,256px 256px;background-position:110% 50%,0 0;background-repeat:no-repeat,repeat;animation:var(--fm-control-animation);
}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-langlink,.ob-pchip,.ob-egbtn,.ob-egclose){box-shadow:var(--fm-control-shadow)}
/* Keep the existing chevron as the front layer, including its RTL alignment. */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-daylabel{
  background-color:var(--fm-secondary);background-image: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"),var(--fm-light),var(--fm-grain);background-size:auto,330% 150%,256px 256px;background-position:right 9px center,110% 50%,0 0;background-repeat:no-repeat,no-repeat,repeat;box-shadow:var(--fm-control-shadow);
}
[dir=rtl]:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-daylabel{background-position:left 9px center,110% 50%,0 0}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-daywrap:focus-within .ob-daylabel{box-shadow:0 0 0 2px var(--muted, #777),var(--fm-control-shadow)}
/* Group fields and radio rows share their parent finish; no nested opaque tile. */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-fieldcard input[type=text],.ob-seg.ob-radio,.ob-seg.ob-radio button){background-color:transparent;background-image:none;box-shadow:none;animation:none}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-seg.ob-radio button:active{background-color:var(--sys)}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-pchip:active{background-color:var(--d-cap)}
@media (prefers-reduced-motion:reduce){
  :root[data-material="soft-frosted"][data-direction-d] #ob-root :is(.ob-sheet-list,.ob-emojigrid,.ob-gate-price,.ob-langlink,.ob-pchip,.ob-sharewrap input[type=number],.ob-famt input,.ob-newcat .ob-fdesc,.ob-mopen input[type=number],.ob-egbtn,.ob-egclose){animation:none!important}
}
/* QA05: the real onboarding root has older ID-scoped fills; match that scope.
   Keep wallet cards and every wallet-containing ancestor outside this group. */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-card,.ob-fieldcard,.ob-list,.ob-sheet-list,.ob-totalpill):not(:where(.d-wallet,.d-wallet *,.d-wwrap,.d-wwrap *,.d-wmark,.d-wmark *,.d-sheen,.d-sheen *,.tm-hero,.tm-hero *,.tm-overview-hero,.tm-overview-hero *)):not(:has(.d-wallet,.d-wwrap,.d-wmark,.d-sheen,.tm-hero,.tm-overview-hero)){
  background-color:var(--fm-panel);background-image:var(--fm-light),var(--fm-grain);background-size:350% 170%,256px 256px;background-position:110% 50%,0 0;background-repeat:no-repeat,repeat;box-shadow:var(--fm-shadow);-webkit-backdrop-filter:var(--fm-frost);backdrop-filter:var(--fm-frost);animation:var(--fm-surface-animation);
}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-fieldcard:focus-within{animation:none;box-shadow:inset 0 0 0 2px var(--muted, #777)}
/* Primary colours remain owned by the original controls; only neutral fills map. */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-btn:not(.soft),.tm-welcome-guest,.tm-provider-button,.ob-ncok){background-image:var(--fm-light),var(--fm-grain);background-size:330% 150%,256px 256px;background-position:110% 50%,0 0;background-repeat:no-repeat,repeat;box-shadow:var(--fm-control-shadow);animation:var(--fm-control-animation)}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-btn.ghost,.tm-provider-button){background-color:var(--fm-secondary)}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-seg.ob-gate-cadence{background-image:var(--fm-grain);background-size:256px 256px}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root .ob-seg.ob-gate-cadence button.on{background-image:var(--fm-light),var(--fm-grain);background-size:330% 150%,256px 256px;box-shadow:var(--fm-control-shadow);animation:var(--fm-control-animation)}
}
/* 2026-11-09 completion: exact-root controls follow the approved simple press. */
@media screen{
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-btn,.tm-welcome-guest,.tm-provider-button,.ob-back,.ob-tour-exit,.ob-link,.ob-langlink,.ob-email-link,.ob-pchip,.ob-del,.ob-fdel,.ob-ncok,.ob-nccancel,.ob-egbtn,.ob-egclose){transition:transform 180ms var(--d-eo)}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-btn,.tm-welcome-guest,.tm-provider-button,.ob-back,.ob-tour-exit,.ob-link,.ob-langlink,.ob-email-link,.ob-pchip,.ob-del,.ob-fdel,.ob-ncok,.ob-nccancel,.ob-egbtn,.ob-egclose):is(:active,.d-pr):not(:disabled):not([aria-disabled="true"]){transform:translateY(1px) scale(.98);opacity:1;transition-duration:70ms}
/* Group rows and segmented choices keep their full-width hit area and fill. */
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-list>.ob-tile,.ob-sheet-row,.ob-seg.ob-radio button,.ob-seg.ob-gate-cadence button,.ob-additem,.ob-groupbtn,.ob-addcat,.ob-fhead){transition:box-shadow 180ms var(--d-eo)}
:root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-list>.ob-tile,.ob-sheet-row,.ob-seg.ob-radio button,.ob-seg.ob-gate-cadence button,.ob-additem,.ob-groupbtn,.ob-addcat,.ob-fhead):is(:active,.d-pr):not(:disabled){transform:none;opacity:1;animation:none;box-shadow:inset 0 0 0 100vmax var(--sys);transition-duration:70ms}
@media(prefers-reduced-motion:reduce){
 :root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-btn,.tm-welcome-guest,.tm-provider-button,.ob-back,.ob-tour-exit,.ob-link,.ob-langlink,.ob-email-link,.ob-pchip,.ob-del,.ob-fdel,.ob-ncok,.ob-nccancel,.ob-egbtn,.ob-egclose):is(:active,.d-pr){transform:none}
 :root[data-material="soft-frosted"][data-direction-d][data-direction-d][data-direction-d] #ob-root :is(.ob-btn,.tm-welcome-guest,.tm-provider-button,.ob-back,.ob-tour-exit,.ob-link,.ob-langlink,.ob-email-link,.ob-pchip,.ob-del,.ob-fdel,.ob-ncok,.ob-nccancel,.ob-egbtn,.ob-egclose,.ob-list>.ob-tile,.ob-sheet-row,.ob-seg.ob-radio button,.ob-seg.ob-gate-cadence button,.ob-additem,.ob-groupbtn,.ob-addcat,.ob-fhead){transition:none}
}
}
