/* METeam v10 (2026-11-16, owner: "no colour, looks dead"): the blue look.
   Ground: a blue sky behind every screen (tokens --ground), no dot pattern.
   Stage (.stg): the one bright card on a screen, royal blue in both themes, so the eye lands there first.
   Live colour (--live, lime): only on the key action of a screen (New, Add) and on "today" in the ring.
   Phone Home: the name and the ring share the first row, the four counts are tiles, the date is read from the text.
   Loads after css/v6.css. */

/* ---------- ground ---------- */
body { background-color: var(--bg); background-image: var(--ground); background-repeat: no-repeat; background-size: cover; background-position: 50% 100%; background-attachment: fixed; }
.main { background: none; }
.main::before { content: none; }

/* ---------- stage: the bright blue card ---------- */
.stg {
  --ink: #FFFFFF; --ink-2: rgba(255, 255, 255, .93); --ink-3: rgba(255, 255, 255, .88); --ink-4: rgba(255, 255, 255, .84);
  --line: rgba(255, 255, 255, .18); --line-2: rgba(255, 255, 255, .30); --hover: rgba(255, 255, 255, .12);
  /* v13: dark glass lit from below by the one blue (the lit card of the owner's reference), the same in both themes */
  background:
    radial-gradient(120% 95% at 50% 128%, rgba(52, 104, 255, .92), rgba(40, 84, 220, .46) 46%, rgba(30, 60, 170, 0) 76%),
    linear-gradient(180deg, rgba(20, 27, 52, .94), rgba(14, 20, 42, .96));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 2px 6px rgba(2, 6, 20, .30), 0 34px 60px -34px rgba(30, 70, 220, .85), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.stg::before { content: none; }
.stg-k { background: rgba(6, 18, 70, .28); border-color: rgba(255, 255, 255, .20); padding: 0 12px; }
.stg-k::before { content: none; }

/* the quick field is a well cut into the card; Add is the live colour */
.stg form.quick { background: rgba(6, 18, 70, .32); border-color: rgba(255, 255, 255, .26); }
.stg form.quick:focus-within { border-color: var(--live); box-shadow: 0 0 0 3px rgba(198, 241, 53, .30); }
.stg form.quick .btn.pri { background: var(--live); color: var(--live-ink); font-weight: 650; }
.stg form.quick .btn.pri:hover { background: var(--live-hover); }
.stg form.quick .btn.pri:active { transform: scale(.96); }
.q-read span { color: var(--live-ink); background: var(--live); border-color: transparent; }

/* the ring and its counts */
.hud-tr { stroke: rgba(6, 18, 70, .34); }
.hud-l { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .18); }
.hud-l:hover { background: rgba(255, 255, 255, .20); }
.hud-l.zero { background: rgba(6, 18, 70, .20); border-color: rgba(255, 255, 255, .12); }
.hud-l.zero > b { color: rgba(255, 255, 255, .84); }
.hud-l.zero > i { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.wel-say b { color: var(--live); }

/* ---------- cards on the blue ground: a little lift, so they read as sheets, not holes ---------- */
:root[data-theme="dark"] .card, :root[data-theme="dark"] .plates, :root[data-theme="dark"] .md { box-shadow: 0 1px 0 rgba(160, 190, 255, .10) inset, 0 18px 30px -24px rgba(0, 6, 40, .9); }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  /* New: the live colour, a rounded square above the bar's right end */
  .fab { background: var(--live); color: var(--live-ink); box-shadow: 0 14px 26px -12px var(--live-glow), 0 4px 12px rgba(3, 10, 40, .34); }
  .fab:hover { background: var(--live-hover); }
  .tab.on { background: color-mix(in oklab, var(--brand) 20%, transparent); }

  /* Home: name beside the ring, the four counts as tiles, then the quick field */
  .stg.wel { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t r" "ls ls" "q q" "qr qr"; gap: 16px 12px; padding: 18px 16px 16px; border-radius: 24px; }
  .stg.wel.noquick { grid-template-areas: "t r" "ls ls"; }
  .stg.wel .hud { display: contents; }
  .stg.wel .stg-k { margin-bottom: 10px; }
  .wel-greet { font-size: 15.5px; margin-top: 0; }
  .wel-name { font-size: clamp(34px, 10.5vw, 44px); }
  .wel-name.long { font-size: clamp(28px, 8.4vw, 36px); }
  .wel-say { font-size: 14.5px; margin-top: 6px; }
  .stg.wel .hud-r { grid-area: r; align-self: center; width: 116px; }
  .stg.wel .hud-tr, .stg.wel .hud-s { stroke-width: 22; }
  .stg.wel .hud-c b { font-size: 38px; }
  .stg.wel .hud-c small { display: none; }
  .stg.wel .hud-c .i { width: 34px; height: 34px; }
  .stg.wel .hud-ls { grid-area: ls; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stg.wel .hud-l { grid-template-columns: 10px minmax(0, 1fr); grid-template-areas: "b b" "i s"; gap: 6px 8px; min-height: 72px; padding: 12px 14px; border-radius: 18px; }
  .stg.wel .hud-l > b { grid-area: b; justify-self: start; font-size: 28px; }
  .stg.wel .hud-l > i { grid-area: i; }
  .stg.wel .hud-l > span { grid-area: s; font-size: 13px; white-space: nowrap; }
  .stg.wel .hud-l:hover { transform: none; }
  .stg.wel .hud-l:active { transform: scale(.97); }
  /* the date is read from what is typed ("besok", "25/11"), so the date field stays off the phone */
  .stg.wel form.quick .in.qd { display: none; }
  .stg.wel .q-box { display: none; }
  .stg.wel form.quick { padding: 6px 6px 6px 4px; }
  .stg.wel form.quick .btn.pri { min-height: 44px; padding: 0 18px; }
}

@media (forced-colors: active) {
  .stg, .fab { border: 1px solid CanvasText; }
}

/* ---------- v11: Home lead row (highlights stack + focus card) ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: stretch; }
.lead.one { grid-template-columns: minmax(0, 1fr); }

/* highlights: one card in front, two peeking behind it; the lime tint is this stack's own (the one tinted surface on Home) */
.ins { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; }
.ins-h { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.ins-h h4 { font-size: 16px; font-weight: 640; }
.ins-n { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ins-n b { color: var(--ink); font-weight: 650; }
.ins-deck { position: relative; min-height: 232px; border-radius: 22px; outline: none; touch-action: pan-y; }
.ins-deck:focus-visible { box-shadow: var(--focus); }
.in-c { position: absolute; inset: 22px 0 0 0; display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; padding: 16px 18px 8px; border-radius: 22px; transform-origin: 50% 0;
  background: color-mix(in oklab, var(--live) 12%, var(--panel-solid)); border: 1px solid color-mix(in oklab, var(--live-fill) 42%, transparent);
  transition: transform 520ms var(--ease-spring), opacity 320ms var(--ease-out); opacity: 0; visibility: hidden; transform: translateY(-22px) scale(.9); }
.in-c[data-p="0"] { z-index: 3; opacity: 1; visibility: visible; transform: none; box-shadow: var(--sh-2); }
.in-c[data-p="1"] { z-index: 2; opacity: .62; visibility: visible; transform: translateY(-11px) scale(.95); }
.in-c[data-p="2"] { z-index: 1; opacity: .34; visibility: visible; transform: translateY(-22px) scale(.9); }
.in-c:not([data-p="0"]) > * { opacity: 0; }
.in-c > * { transition: opacity 260ms var(--ease-out) 120ms; }
.in-c.gone { transform: translateX(42%) rotate(7deg) scale(.96); opacity: 0; transition: transform 240ms var(--ease-io), opacity 220ms; }
.in-k { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.in-i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; background: color-mix(in oklab, var(--dc) 20%, transparent); color: var(--dc); }
.in-i .i { width: 16px; height: 16px; }
.wk { margin-left: auto; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.2 var(--font); font-style: normal; color: var(--ink-2); background: var(--hover); white-space: nowrap; }
.in-t { align-self: center; font-size: 19px; line-height: 1.3; font-weight: 540; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.in-t b { font-weight: 720; color: var(--live-text); font-variant-numeric: tabular-nums; }
.in-m { display: grid; gap: 6px; }
.tm { display: flex; gap: 3px; height: 20px; }
.tm i { flex: 1 1 0; border-radius: 2px; background: var(--c-track); transform-origin: 50% 100%; }
.tm i.on { background: var(--live-fill); }
.tm-l { font-size: 12.5px; color: var(--ink-3); }
.in-go { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 13.5px; font-weight: 620; color: var(--ink); text-decoration: none; }
.in-go .i { width: 15px; height: 15px; transition: transform var(--t-3) var(--ease-out); }
.in-go:hover { text-decoration: none; } .in-go:hover .i { transform: translateX(3px); }
@keyframes tm-in { from { transform: scaleY(.15); opacity: .25; } }
:root:not([data-motion="low"]) .tm.go i.on { animation: tm-in 420ms var(--ease-out) both; animation-delay: calc(var(--k) * 16ms); }

/* focus card: the one most urgent thing, lit from the pointer */
.fc { --dc: var(--brand); position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 14px; align-content: space-between; padding: 18px 20px 20px; border-radius: 22px;
  background: linear-gradient(150deg, color-mix(in oklab, var(--pri-bg) 30%, var(--panel-solid)), var(--panel-solid) 72%); border: 1px solid var(--brand-line); box-shadow: var(--sh-2); }
.fc::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(280px circle at var(--fx, 84%) var(--fy, 0%), color-mix(in oklab, var(--pri-bg) 38%, transparent), transparent 70%); }
.fc-k { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.fc-b { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fc-i { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--dc); color: var(--on-dc); }
.fc-i .i { width: 24px; height: 24px; }
.fc-t { display: grid; gap: 3px; min-width: 0; }
.fc-t b { font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.fc-t small { font-size: 13.5px; color: var(--ink-2); }
.fc-c { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-c > span:not(.due) { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 10px; font-size: 13px; font-weight: 550; color: var(--ink-2); background: var(--hover); }
.fc-c > span .i { width: 14px; height: 14px; }
.fc-c > span.late { color: var(--err); }
.fc-a { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.fc-a .btn { min-height: 44px; padding-inline: 18px; }
.fc-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 13.5px; font-weight: 620; color: var(--brand); }
:root:not([data-theme="dark"]) .fc-more { color: var(--brand-2); }
.fc.clear { border-color: var(--line); background: var(--panel); }
.fc.clear .fc-i { background: var(--ok-soft); color: var(--ok); }
:root[data-motion="high"] .enter .lead > * { animation: dk-rise 560ms var(--ease-out) both; }
:root[data-motion="high"] .enter .lead > :nth-child(2) { animation-delay: 90ms; }

@media (max-width: 900px) {
  .lead { grid-template-columns: minmax(0, 1fr); }
  .fc { order: -1; }
  .in-t { font-size: 17.5px; }
}
@media (forced-colors: active) { .tm i.on { background: Highlight; } .in-c, .fc { border: 1px solid CanvasText; } }

/* ---------- v11: calendar (rounded day cells, today filled, the Scheduled list beside the grid) ---------- */
.tk-calw { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.tk-cal { padding: 10px; background: var(--panel); }
.tk-wds { background: none; border-bottom: 0; padding-bottom: 6px; }
.tk-grid { gap: 6px; }
.tk-grid > .tk-day, .tk-day { border: 1px solid var(--line); border-radius: 14px; background: color-mix(in oklab, var(--ink) 4%, transparent); transition: background var(--t-2), border-color var(--t-2), transform var(--t-3) var(--ease-out); }
.tk-day:nth-child(7n + 1) { border-left: 1px solid var(--line); }
.tk-grid > .tk-day:nth-child(-n + 7) { border-top: 1px solid var(--line); }
.tk-day:hover { background: var(--hover); border-color: var(--brand-line); transform: translateY(-2px); }
.tk-day:active { transform: scale(.97); }
.tk-day.out { background: none; border-color: transparent; }
.tk-day.today { border-color: transparent; background: linear-gradient(160deg, #2A5FF2, #1B45D0 70%); color: #fff; box-shadow: 0 12px 22px -14px rgba(36, 82, 230, .9); }
.tk-day.today .dn { background: rgba(255, 255, 255, .2); color: #fff; }
.tk-day.today .tk-ev { background: rgba(6, 18, 70, .34); color: #fff; }
.tk-day.today .tk-more { color: #fff; }
.tk-agenda { display: grid; gap: 10px; align-content: start; min-width: 0; }
.tk-ag-h { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.tk-ag-h h4 { font-size: 16px; font-weight: 640; }
.tk-ag-h em { min-width: 22px; padding: 2px 7px; border-radius: 999px; font: 650 12px/1.4 var(--font); font-style: normal; text-align: center; color: var(--ink-2); background: var(--hover); }
.tk-ag { --bar: var(--brand); position: relative; overflow: hidden; display: grid; gap: 5px; padding: 17px 14px 12px; border-radius: 16px; color: var(--ink); text-decoration: none; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform var(--t-3) var(--ease-out), border-color var(--t-2); }
.tk-ag::before { content: ""; position: absolute; left: 14px; right: 14px; top: 8px; height: 4px; border-radius: 4px; background: var(--bar); }
.tk-ag.high { --bar: var(--err-fill); } .tk-ag.low { --bar: var(--c-done); }
.tk-ag:hover { text-decoration: none; transform: translateX(3px); border-color: color-mix(in oklab, var(--bar) 50%, transparent); }
.tk-ag:active { transform: scale(.98); }
.tk-ag b { font-size: 14.5px; font-weight: 620; line-height: 1.3; overflow-wrap: anywhere; }
.tk-ag-m { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.tk-ag-m .i { width: 14px; height: 14px; flex: none; }
.tk-ag-m em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--err); }
.tk-ag small { font-size: 12.5px; color: var(--ink-3); }
.tk-ag-0 { display: flex; align-items: flex-start; gap: 10px; padding: 16px 14px; border-radius: 16px; font-size: 13.5px; color: var(--ink-2); background: var(--panel); border: 1px dashed var(--line-2); }
.tk-ag-0 .i { width: 18px; height: 18px; flex: none; color: var(--ok); }
:root[data-motion="high"] .enter .tk-ag { animation: dk-rise 480ms var(--ease-out) both; animation-delay: calc(120ms + var(--k) * 45ms); }
@media (max-width: 1100px) { .tk-calw { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .tk-cal { padding: 6px; } .tk-grid { gap: 4px; } .tk-day { border-radius: 12px; } .tk-day:hover { transform: none; } }
.tk-grid > .tk-day.out { border-color: transparent; }

/* locked folder: the panel tile turns to the live colour */
.fp-i.lk { background: var(--live); color: var(--live-ink); }
.fp-lk .i { width: 15px; height: 15px; }

/* ---------- v12 (2026-11-16): the whole app in the reference style ----------
   What the owner's references share, and where it lands here:
   - the app floats: the sidebar is its own rounded panel, the top bar has no band, search is a pill, icon buttons are round;
   - the current place is a filled blue pill (sidebar item, tab), not an underline;
   - surfaces are big-radius sheets with a soft tint of their own colour in one corner (stat tiles, board cards);
   - the board's cards carry their priority as a tint, so the board reads by colour before it is read by text.
   Radii come from the tokens (--r-s 12, --r-m 14, --r-l 22, --r-xl 28). */

/* shell: floating sidebar, quiet top bar */
@media (min-width: 721px) {
  /* v13: the whole app is one pane of glass set into the scene; the sidebar is the darker strip of the same pane.
     The blur sits on ::before, so the pane does not become the anchor of the fixed sheets and menus inside it. */
  .app { margin: 28px; height: calc(100dvh - 56px); grid-template-columns: 244px minmax(0, 1fr); grid-template-rows: 68px minmax(0, 1fr); border-radius: 30px; isolation: isolate; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .75); }
  .app::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(30px) saturate(1.35); backdrop-filter: blur(30px) saturate(1.35); }
  .side { padding: 6px 12px 12px; border: 0; border-right: 1px solid var(--line); border-radius: 30px 0 0 30px; background: var(--glass-side); box-shadow: none; }
  .page { border-radius: 0 0 30px 0; }
  .gbar { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; padding: 0 28px 0 32px; }
  .gbar .ibtn { width: 42px; height: 42px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); }
  .gbar .ibtn:hover { border-color: var(--brand-line); }
}
.gsearch { height: 44px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); padding: 0 10px 0 18px; }
.nav-i { border-radius: 14px; }
.nav-i.on { color: var(--pri-ink); background: var(--pri); }
.nav-i.on .wdot { background: rgba(255, 255, 255, .20); color: #fff; }
.nav-i.on .pip { box-shadow: none; }

/* buttons */
.btn.pri { background: var(--pri); color: var(--pri-ink); }
.btn.pri:hover { background: var(--pri-hover); }

/* tabs: a pill switcher */
.vtabs, .main .vtabs { width: fit-content; max-width: 100%; gap: 4px; padding: 4px; border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 16px; background: color-mix(in oklab, var(--panel-solid) 72%, transparent); }
.vtabs > button, .main .vtabs > button { min-height: 38px; padding: 8px 14px; border-radius: 12px; transition: background var(--t-2), color var(--t-1), transform var(--t-2) var(--ease-out); }
.vtabs > button:hover { background: var(--hover); }
.vtabs > button:active { transform: scale(.96); }
.vtabs > button.on, .main .vtabs > button.on { color: var(--pri-ink); background: var(--pri); box-shadow: 0 8px 16px -12px var(--glow); }
.vtabs > button.on::after, .main .vtabs > button.on::after { content: none; }
.vtabs .ink, .main .vtabs .ink { display: none; }

/* stat tiles: a corner of their own colour */
.kpi { background: radial-gradient(200px 96px at 100% 0, color-mix(in oklab, var(--tone, var(--brand)) 20%, transparent), transparent 72%), var(--panel-solid); transition: transform var(--t-3) var(--ease-out), border-color var(--t-2), box-shadow var(--t-2); }
a.kpi:hover, button.kpi:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--tone, var(--brand)) 46%, transparent); box-shadow: var(--sh-2); text-decoration: none; }

/* board: columns are trays, cards carry their priority as a tint */
.kcol { border-radius: 22px; background: color-mix(in oklab, var(--panel-solid) 62%, transparent); border: 1px solid var(--line); }
.tk-card { --kt: var(--brand); border-radius: 16px; border-color: color-mix(in oklab, var(--kt) 36%, transparent);
  background: linear-gradient(160deg, color-mix(in oklab, var(--kt) 24%, var(--panel-solid)), color-mix(in oklab, var(--kt) 9%, var(--panel-solid))); }
.tk-card.high { --kt: var(--err-fill); }
.tk-card.low { --kt: var(--c-done); }
.tk-card.late { --kt: var(--warn-fill); }
.tk-card:hover { border-color: color-mix(in oklab, var(--kt) 62%, transparent); }

/* sheets and inputs follow the bigger radius */
.sheet { border-radius: 26px; }
.side-brand > span, .side-brand > div { min-width: 0; }
.side-brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- v13 (2026-11-16, owner: "glassmorphic with something at the back"): glass over a scene ----------
   Behind everything: a drawn night sky over mountains at dusk (img/scene-night.svg; a pale day version for the light theme).
   PC: the app is one pane of dark glass set into it (see the shell block above). Phone: the pane fills the screen, lighter, so the
   scene still shows through at the top. Cards are a thin frost on that pane, not solid blocks. Blur is used on the pane, the phone bar
   and the sheets only; cards carry no blur of their own (cost, and a blur on every card flattens the depth).
   One blue for action and for the lit card; white is the second colour (New, Add). */
.card, .tbl, .plates, .md, .tk-cal, .tk-ag, .tk-ag-0, .fpanel, .kcol { background: var(--panel); }
.kpi { background: radial-gradient(200px 96px at 100% 0, color-mix(in oklab, var(--tone, var(--brand)) 22%, transparent), transparent 72%), var(--panel); }
.in-c { background: color-mix(in oklab, var(--panel-solid) 94%, var(--live)); border-color: var(--line-2); }
.fc { background: radial-gradient(130% 100% at 50% 135%, color-mix(in oklab, var(--pri-bg) 62%, transparent), transparent 70%), var(--panel-solid); }
.fc::before { background: radial-gradient(280px circle at var(--fx, 84%) var(--fy, 0%), color-mix(in oklab, var(--pri-bg) 30%, transparent), transparent 70%); }
.tk-card { background: linear-gradient(160deg, color-mix(in oklab, var(--kt) 26%, var(--panel-solid)), color-mix(in oklab, var(--kt) 10%, var(--panel-solid))); }
.gsearch, .vtabs, .main .vtabs { background: var(--panel); }
.gbar .ibtn { background: var(--panel); }
.sheet { -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); background: color-mix(in oklab, var(--panel-solid) 90%, transparent); }
.q-read span { color: var(--live-ink); background: var(--live); }
.fp-i.lk { background: var(--live); color: var(--live-ink); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .plates, :root[data-theme="dark"] .md { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }

/* sign-in: a glass card on the scene */
.login { background: none; }
.login-card { background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3); }

@media (max-width: 720px) {
  .app { isolation: isolate; }
  .app::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, color-mix(in oklab, var(--glass) 62%, transparent) 0, var(--glass) 320px); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
  .fab { background: var(--live); color: var(--live-ink); box-shadow: 0 14px 28px -12px var(--live-glow), 0 4px 12px rgba(0, 0, 0, .4); }
  .tabs { background: color-mix(in oklab, var(--glass) 88%, transparent); }
}
@media (prefers-reduced-transparency: reduce) {
  .app::before, .login-card, .sheet { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  :root:not([data-theme="dark"]) .app::before { background: #F3F7FD; }
}

/* the stage is dark in both themes, so what sits on it never takes the theme's live colour */
.wel-say b { color: #A9C0FF; }
.stg form.quick .btn.pri { background: #FFFFFF; color: #0B1228; }
.stg form.quick .btn.pri:hover { background: #E3EAFF; }
.stg form.quick:focus-within { border-color: #A9C0FF; box-shadow: 0 0 0 3px rgba(169, 192, 255, .30); }
