/* look-base.css - the phone shell for looks A and B (Burn Week 05 round 2, piece P1). Every rule starts with
   html:is([data-look="a"],[data-look="b"]) (both looks), html[data-look="a"] or html[data-look="b"], so Current is
   untouched. Colours, spacing, radii and type come from tokens.css (web-style.md section 10): no raw hex in here.
   Cascade order (index.html): app.css, this file, look-views.css (P2: uploads rows and views), look-states.css (P3:
   shutdown card, banners, sheet, pairing states), grid-overlay.css. The old rules still apply under a look, so what
   they set that the new look does not want (borders, uppercase, Barlow, odd paddings) is reset here.
   A = "Tabs": grouped cards (radius 26, hairlines, row 64, gap 24) and a glass tab bar with three tabs.
   B = "One page": separate tiles (radius 14, 8 apart, row 56, gap 16), one scroll, no tab bar.
   Spacing is the 4 px grid: --s-1 4, --s-2 8, --s-3 12, --s-4 16, --s-5 24, --s-6 32, --s-7 48 (tokens.css). */

/* ---------------------------------------------------------------------------------------------- base */
html:is([data-look="a"],[data-look="b"]) {
  --tab-bottom: max(12px, calc(var(--safe-b) - 13px));
  /* app.css's own names, mapped to the new tokens: anything a new look does not restyle still matches the page */
  --plane: var(--bg); --surface: var(--card); --ink: var(--text); --ink-2: var(--text-2); --muted: var(--text-2);
  --grid: var(--sep); --axis: var(--sep-strong); --hair: var(--sep); --wash: var(--fill);
  --good: var(--ok-text); --bad: var(--bad-text); --s4: var(--st-warn);
  --chip: var(--accent-btn); --chip-ink: var(--accent-ink);
  --note: color-mix(in srgb, var(--st-warn) 14%, var(--card)); --note-edge: transparent;
  --sans: var(--font); --display: var(--font); --pad: var(--side);
}
html:is([data-look="a"],[data-look="b"]),
html:is([data-look="a"],[data-look="b"]) body { background: var(--bg); color: var(--text); }
html:is([data-look="a"],[data-look="b"]) body {
  font: 400 var(--fs-body)/24px var(--font);
  -webkit-font-smoothing: antialiased;
}
html:is([data-look="a"],[data-look="b"]) :is(h1, h2, h3) { font-family: var(--font); letter-spacing: 0; text-transform: none; color: var(--text); }
html:is([data-look="a"],[data-look="b"]) h2 { font-size: var(--fs-section); font-weight: 700; line-height: 28px; }
html:is([data-look="a"],[data-look="b"]) h3 { font-size: var(--fs-body); font-weight: 600; line-height: 24px; }
html:is([data-look="a"],[data-look="b"]) .small { font-size: var(--fs-foot); line-height: 20px; color: var(--text-2); }
html:is([data-look="a"],[data-look="b"]) .sub { font-size: var(--fs-sub); line-height: 20px; color: var(--text-2); }
html:is([data-look="a"],[data-look="b"]) :focus { outline: none; }
/* Full accent, not web-style's 70%: 70% blue measures 2.3 to 2.7:1 on --bg, --card and the grouped rows (a focus ring needs 3:1, WCAG 1.4.11); the accent
   itself is 3.3 to 5.9:1 in light and dark (tests/web/a11y.test.mjs). Rows that fill their card edge to edge (an overflow:hidden card) take the ring inside. */
html:is([data-look="a"],[data-look="b"]) :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html:is([data-look="a"],[data-look="b"]) :is(.pref, .lv-fin):focus-visible { outline-offset: -2px; }

/* The shell: one column on the 4 px grid. Side margin is --side (16, 20 from 414 px); block gap is --gap (A 24, B 16). */
html:is([data-look="a"],[data-look="b"]) .app {
  gap: var(--gap);
  padding: calc(var(--safe-t) + var(--s-2)) calc(var(--safe-r) + var(--side)) calc(var(--safe-b) + 48px) calc(var(--safe-l) + var(--side));
}
/* Page bottom room (web-style: safe-bottom + tab-h + 48). max() with the bar's own offset keeps the air above the bar on a phone without a home indicator too;
   the 50 is 48 of air + 2 so the page's bottom edge stays on the 4 px grid (the bar is 62 tall, Apple-measured). */
html[data-look="a"] .app { padding-bottom: calc(max(var(--safe-b), var(--tab-bottom)) + var(--tab-h) + 50px); }
html:is([data-look="a"],[data-look="b"]) .screen { gap: var(--gap); }

/* ---------------------------------------------------------------------------------------------- header */
/* The mark and the wordmark (Barlow Condensed 700, his pick) keep the header; the only Barlow on the page. A and B alike: the mark,
   then the wordmark over the status line (two 24 rows = 48). One 48 row can't hold "PC online · watching 3 folders" next to the wordmark at 390. */
html:is([data-look="a"],[data-look="b"]) .top { display: flex; align-items: flex-start; gap: var(--s-4); min-height: 48px; padding: 0; border: 0; }
html:is([data-look="a"],[data-look="b"]) .mark { margin-top: var(--s-1); }
html:is([data-look="a"],[data-look="b"]) .top-text { display: grid; flex: 1 1 auto; min-width: 0; gap: 0; grid-template-rows: 24px 24px; align-content: start; }
html:is([data-look="a"],[data-look="b"]) .top h1 {
  grid-column: 1; grid-row: 1; margin: 0; justify-self: start; max-width: 100%;
  font: 700 22px/24px "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .03em; text-transform: uppercase; color: var(--text);
}
/* One status line (look-tabs.js writes #top-status from the page's own connection line + watching line), so the old two lines go. */
html:is([data-look="a"],[data-look="b"]) #conn,
html:is([data-look="a"],[data-look="b"]) .meta { display: none; }
html:is([data-look="a"],[data-look="b"]) .top-status {
  grid-column: 1; grid-row: 2; margin: 0; display: flex; align-items: center; gap: var(--s-2); min-width: 0;
  font: 400 var(--fs-foot)/24px var(--font); color: var(--text-2);
}
html:is([data-look="a"],[data-look="b"]) .top-status[hidden] { display: none; }
html:is([data-look="a"],[data-look="b"]) .top-status i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--st-ok); }
html:is([data-look="a"],[data-look="b"]) .top-status[data-tone="off"] i { background: var(--st-wait); }
html:is([data-look="a"],[data-look="b"]) .top-status[data-tone="bad"] i { background: var(--st-bad); }
html:is([data-look="a"],[data-look="b"]) .top-status span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The role tag (helper / view-only) is a quiet fill pill, sentence case, under the header text. */
html:is([data-look="a"],[data-look="b"]) .role {
  grid-column: 1 / -1; grid-row: 3; margin-top: var(--s-2); justify-self: start; max-width: 100%;
  border: 0; background: var(--fill); color: var(--text); border-radius: 999px; padding: 0 var(--s-4);
  font: 600 var(--fs-foot)/32px var(--font); letter-spacing: 0; text-transform: none;
}

/* The page ends in its own way: the jump links go (the tabs, or the one scroll, replace them). */
html:is([data-look="a"],[data-look="b"]) .jump { display: none; }
/* Lines the page repeats (look-tabs.js tags them): "Cancels the shutdown." under Keep PC on. */
html:is([data-look="a"],[data-look="b"]) [data-redundant] { display: none; }

/* ---------------------------------------------------------------------------------------------- cards, sections, grouped lists */
html:is([data-look="a"],[data-look="b"]) .card {
  background: var(--card); border: 0; border-radius: var(--tile-r); box-shadow: var(--shadow-card);
  padding: var(--pad-card); gap: var(--s-2);
}
html:is([data-look="a"],[data-look="b"]) .card > h2 { font-size: var(--fs-section); line-height: 28px; font-weight: 700; }
html:is([data-look="a"],[data-look="b"]) .section { gap: var(--s-2); }
/* Group title: caps 13 semibold, 16 in from the card edge, 8 above the card. */
html:is([data-look="a"],[data-look="b"]) .section-head { padding: 0 var(--s-4); gap: 0 var(--s-2); flex-wrap: nowrap; align-items: baseline; justify-content: space-between; }
html:is([data-look="a"],[data-look="b"]) .section-head h2 {
  font: 600 var(--fs-foot)/20px var(--font); letter-spacing: .02em; text-transform: uppercase; color: var(--text-2);
}
html:is([data-look="a"],[data-look="b"]) .section-head .small { white-space: nowrap; }
html:is([data-look="a"],[data-look="b"]) .sec-help { margin: 0; padding: 0 var(--s-4); font-size: var(--fs-foot); line-height: 20px; color: var(--text-2); }
html:is([data-look="a"],[data-look="b"]) #ru-note { margin: 0; padding: 0 var(--s-4); }
html:is([data-look="a"],[data-look="b"]) :is(#ra-sec, #a-sec, #alerts, #prefs-sec) { scroll-margin-top: var(--s-2); }

/* A list card: A is one grouped card with hairlines; B is a stack of separate tiles (P2 draws the tiles). */
html[data-look="a"] .card.list { padding: 0; gap: 0; overflow: hidden; }
html[data-look="b"] .card.list { padding: 0; gap: var(--s-2); background: none; box-shadow: none; }
html:is([data-look="a"],[data-look="b"]) .card.list > .empty { padding: var(--s-5) var(--s-4); font-size: var(--fs-sub); line-height: 24px; color: var(--text-2); }
html[data-look="b"] .card.list > .empty { background: var(--card); border-radius: var(--tile-r); box-shadow: var(--shadow-card); }
/* Hairline on the second and later rows, starting 16 in from the left (drawn by a pseudo-element: nothing to measure). */
html[data-look="a"] :is(.card.list > *, .pref-list > *) { position: relative; }
html[data-look="a"] :is(.card.list > *, .pref-list > *) + *::before {
  content: ""; position: absolute; top: 0; left: var(--s-4); right: 0; height: .5px; background: var(--sep); pointer-events: none;
}
html[data-look="a"] .card.list > .empty + *::before { display: none; }

/* KPI chips are replaced by the "Drafted today" block (P2). Its host: P2 brings its own element. */
html:is([data-look="a"],[data-look="b"]) .kpis,
html:is([data-look="a"],[data-look="b"]) #kpi-sec { display: none; }

/* ---------------------------------------------------------------------------------------------- buttons and links */
html:is([data-look="a"],[data-look="b"]) .ctl {
  font: 600 var(--fs-sub)/20px var(--font); color: var(--text); background: var(--fill); border: 0; border-radius: 999px;
  min-height: 44px; padding: 0 var(--s-4); gap: var(--s-2);
}
html:is([data-look="a"],[data-look="b"]) .ctl.primary { background: var(--accent-btn); color: var(--accent-ink); }
html:is([data-look="a"],[data-look="b"]) .ctl:active { background: var(--fill-2); transform: scale(.97); }
html:is([data-look="a"],[data-look="b"]) .ctl.primary:active { background: var(--accent-btn); opacity: .85; }
html:is([data-look="a"],[data-look="b"]) .ctl.big { min-height: 56px; font-size: var(--fs-body); line-height: 24px; border-radius: 999px; }
html:is([data-look="a"],[data-look="b"]) .link {
  font: 600 var(--fs-sub)/20px var(--font); color: var(--accent-text); text-decoration: none; padding: 0 var(--s-2);
}
html:is([data-look="a"],[data-look="b"]) .link.danger { color: var(--bad-text); text-decoration: none; }
html:is([data-look="a"],[data-look="b"]) .link:active { color: var(--accent-text); opacity: .6; }
html:is([data-look="a"],[data-look="b"]) .link.danger:active { color: var(--bad-text); }
html:is([data-look="a"],[data-look="b"]) .more { margin: 0; padding: 0 var(--s-4); }
@media (hover: hover) {
  html:is([data-look="a"],[data-look="b"]) .ctl:hover { background: var(--fill-2); }
  html:is([data-look="a"],[data-look="b"]) .ctl.primary:hover { background: var(--accent-btn); opacity: .9; }
  html:is([data-look="a"],[data-look="b"]) .link:hover { opacity: .75; }
}

/* ---------------------------------------------------------------------------------------------- fields, tags, plain status pill */
html:is([data-look="a"],[data-look="b"]) .field { font-size: var(--fs-sub); line-height: 20px; color: var(--text-2); }
html:is([data-look="a"],[data-look="b"]) .input {
  font-size: 16px; color: var(--text); background: var(--card-2); border: 0; border-radius: var(--radius-row);
  min-height: 44px; padding: 0 var(--s-4);
}
html:is([data-look="a"],[data-look="b"]) .input::placeholder { color: var(--text-2); }
html:is([data-look="a"],[data-look="b"]) .field-error { font-size: var(--fs-foot); line-height: 20px; font-weight: 500; color: var(--bad-text); }
html:is([data-look="a"],[data-look="b"]) .al-tag {
  border: 0; background: var(--fill); color: var(--text); letter-spacing: 0; text-transform: none;
  font-size: var(--fs-cap); line-height: 20px; padding: 0 var(--s-2);
}
/* The plain status pill (web-style): 16% tint of the status, text mixed 70% into --text. P2 restyles it inside queue rows. */
html:is([data-look="a"],[data-look="b"]) .pill {
  gap: var(--s-2); height: 32px; padding: 0 var(--s-4); font: 600 var(--fs-foot)/16px var(--font);
  background: color-mix(in srgb, var(--tone) 16%, transparent); color: color-mix(in srgb, var(--tone) 70%, var(--text));
}

/* ---------------------------------------------------------------------------------------------- Alerts card, Alerts on this phone, New look, sign out */
html:is([data-look="a"],[data-look="b"]) .alerts-text { font-size: var(--fs-foot); line-height: 20px; color: var(--text-2); margin: 0; }
html:is([data-look="a"],[data-look="b"]) .alerts,
html:is([data-look="a"],[data-look="b"]) .look-card { gap: var(--s-2); }
html:is([data-look="a"],[data-look="b"]) .actions { gap: var(--s-2); }

/* Alerts on this phone: A = the card holds the title, the note and a grouped list of switch rows; B = title + separate tiles. */
html[data-look="a"] .prefs-card:not(.look-card) { padding: var(--pad-card) 0 0; gap: 0; overflow: hidden; }
html[data-look="a"] .prefs-card:not(.look-card) > :is(h3, .alerts-text, .field-error) { padding: 0 var(--s-4); }
html[data-look="a"] .prefs-card:not(.look-card) .pref-list { margin-top: var(--s-2); }
html[data-look="b"] .prefs-card:not(.look-card) { padding: 0; gap: var(--s-2); background: none; box-shadow: none; }
html[data-look="b"] .prefs-card:not(.look-card) > h3 { font: 600 var(--fs-foot)/20px var(--font); letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); padding: 0 var(--s-4); }
html[data-look="b"] .prefs-card:not(.look-card) > :is(.alerts-text, .field-error) { padding: 0 var(--s-4); }
html[data-look="b"] .pref-list { gap: var(--s-2); }
/* Once the switches show, the card's second note repeats the Alerts card, so it goes (it stays for "Loading..." and load errors). */
html:is([data-look="a"],[data-look="b"]) .prefs-card:has(#prefs:not([hidden])) #prefs-text { display: none; }
html:is([data-look="a"],[data-look="b"]) .pref {
  min-height: var(--row-h); padding: 0 var(--s-4); gap: var(--s-4); border: 0; border-bottom: 0;
  font: 500 var(--fs-body)/24px var(--font); color: var(--text);
}
html[data-look="b"] .pref { background: var(--card); border-radius: var(--tile-r); box-shadow: var(--shadow-card); }
html:is([data-look="a"],[data-look="b"]) .pref:active { background: var(--press); }
html[data-look="b"] .pref:active { background: var(--press); }
/* The iOS switch (52 x 32, knob 28): its width is a multiple of 4, so its left edge sits on the grid measured from the right margin at every phone width; green when on. */
html:is([data-look="a"],[data-look="b"]) .switch { width: 52px; height: 32px; border-radius: 999px; background: var(--fill-2); }
html:is([data-look="a"],[data-look="b"]) .switch::after {
  top: 2px; left: 2px; width: 28px; height: 28px; background: var(--knob); box-shadow: var(--knob-shadow);
}
html:is([data-look="a"],[data-look="b"]) .pref[aria-checked="true"] .switch { background: var(--green); }
html:is([data-look="a"],[data-look="b"]) .pref[aria-checked="true"] .switch::after { transform: translateX(20px); }
html:is([data-look="a"],[data-look="b"]) .pref:active .switch { filter: none; }

/* New look card: three segmented controls (track --fill 40 = 4 + 32 + 4, thumb --seg-on, 44 touch target). */
html:is([data-look="a"],[data-look="b"]) .look-row { display: grid; gap: var(--s-2); }
html:is([data-look="a"],[data-look="b"]) .look-row + .look-row { margin-top: var(--s-2); }
html:is([data-look="a"],[data-look="b"]) .look-label { font-weight: 600; }
html:is([data-look="a"],[data-look="b"]) .look-seg {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 0; padding: var(--s-1); background: var(--fill); border-radius: 999px;
}
html:is([data-look="a"],[data-look="b"]) .look-seg .ctl {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 32px; padding: 0 var(--s-1); background: transparent; color: var(--text);
  font-size: var(--fs-sub);
}
html:is([data-look="a"],[data-look="b"]) .look-seg .ctl::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
html:is([data-look="a"],[data-look="b"]) .look-seg .ctl.primary { background: transparent; color: var(--text); }
html:is([data-look="a"],[data-look="b"]) .look-seg .ctl[aria-checked="true"] { background: var(--seg-on); box-shadow: var(--rim); }
html:is([data-look="a"],[data-look="b"]) .look-seg .ctl:active { transform: none; background: var(--fill); }
html:is([data-look="a"],[data-look="b"]) .look-seg .ctl[aria-checked="true"]:active { background: var(--seg-on); }
@media (hover: hover) {
  html:is([data-look="a"],[data-look="b"]) .look-seg .ctl:hover { background: var(--fill); }
  html:is([data-look="a"],[data-look="b"]) .look-seg .ctl[aria-checked="true"]:hover { background: var(--seg-on); opacity: 1; }
}

/* Sign out: one destructive row, red text, centred. */
html:is([data-look="a"],[data-look="b"]) .foot { display: block; padding: 0; }
html:is([data-look="a"],[data-look="b"]) .foot .link {
  width: 100%; justify-content: center; min-height: var(--row-h); background: var(--card); border-radius: var(--tile-r);
  box-shadow: var(--shadow-card); font-size: var(--fs-body); line-height: 24px;
}

/* ---------------------------------------------------------------------------------------------- shapes P3 restyles (no outline in the meantime) */
html:is([data-look="a"],[data-look="b"]) .banner { border: 0; border-radius: var(--tile-r); padding: var(--s-4); font-size: var(--fs-sub); line-height: 20px; }
html:is([data-look="a"],[data-look="b"]) .banner.error { background: color-mix(in srgb, var(--st-bad) 12%, var(--card)); }
html:is([data-look="a"],[data-look="b"]) .shut { border: 0; background: var(--note); }
html:is([data-look="a"],[data-look="b"]) .shut.is-urgent { border: 0; background: color-mix(in srgb, var(--st-bad) 12%, var(--card)); }
html:is([data-look="a"],[data-look="b"]) .shut.is-done { border: 0; }

/* ---------------------------------------------------------------------------------------------- toast */
/* A dark capsule above the tab bar (A) or the page bottom (B): dot in the tone, white words, no left stripe. */
html:is([data-look="a"],[data-look="b"]) .toasts {
  left: calc(var(--safe-l) + var(--side)); right: calc(var(--safe-r) + var(--side)); width: auto; transform: none;
  bottom: calc(var(--safe-b) + var(--s-4)); z-index: var(--z-toast);
}
html[data-look="a"] .toasts { bottom: calc(var(--tab-bottom) + var(--tab-h) + 18px); }
html:is([data-look="a"],[data-look="b"]) .toast {
  background: var(--toast-bg); color: var(--toast-ink); border: 0; border-radius: 999px; box-shadow: var(--shadow-pop);
  align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); font: 600 14px/20px var(--font);
}
html:is([data-look="a"],[data-look="b"]) .toasts { justify-items: stretch; }   /* full width: its edges sit on the grid whatever the words */
html:is([data-look="a"],[data-look="b"]) .toast > span:last-child { flex: 1 1 auto; min-width: 0; }
html:is([data-look="a"],[data-look="b"]) .toast .dot { margin: 0; background: var(--grey); }
html:is([data-look="a"],[data-look="b"]) .toast.t-good .dot { background: var(--green); }
html:is([data-look="a"],[data-look="b"]) .toast.t-bad .dot { background: var(--red); }

/* ---------------------------------------------------------------------------------------------- A: tabs */
/* The three tabs show one group of sections at a time. look-tabs.js sets html[data-tab] and tags each section with
   data-tab; unpaired and signed-out screens have no tab bar. B shows everything, in the same order. */
/* The urgent countdown card is the one section that never hides behind another tab: Keep PC on has seconds to live. */
/* The tab bar needs :has() (it shows only while #main is), so the rules that hide the other tabs' sections are fenced behind
   the same support test: a browser without :has() (iOS before 15.4) shows A with every section and no bar, never a bar-less
   page where Settings, the New look card and Sign out cannot be reached. */
@supports selector(:has(*)) {
  html[data-look="a"][data-tab="uploads"] [data-tab]:not([data-tab~="uploads"]):not(#shut.is-urgent),
  html[data-look="a"][data-tab="activity"] [data-tab]:not([data-tab~="activity"]):not(#shut.is-urgent),
  html[data-look="a"][data-tab="settings"] [data-tab]:not([data-tab~="settings"]):not(#shut.is-urgent) { display: none; }
  html[data-look="a"][data-tab="uploads"] #look-card,
  html[data-look="a"][data-tab="activity"] #look-card { display: none; }   /* belt and braces: the card is built by look-picker.js */
}
html[data-look="a"] .tabbar { display: none; }
html[data-look="a"]:has(#main:not([hidden])) .tabbar {
  display: flex; position: fixed; left: calc(var(--safe-l) + var(--side)); right: calc(var(--safe-r) + var(--side)); bottom: var(--tab-bottom);
  height: var(--tab-h); padding: var(--s-1); gap: 0; z-index: var(--z-tabbar); border-radius: 999px;
  background: var(--glass-bg); box-shadow: var(--glass-rim);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
html[data-look="a"] .tab {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--tab-idle); cursor: pointer;
  font: 600 var(--fs-tab)/12px var(--font); letter-spacing: .01em; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
html[data-look="a"] .tab svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-look="a"] .tab[aria-selected="true"] { color: var(--accent-text); background: var(--glass-pill); }
html[data-look="a"] .tab:active { transform: scale(.97); }
/* Soft fade behind the bar so rows don't run into it. */
html[data-look="a"]:has(#main:not([hidden]))::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(96px + var(--safe-b)); pointer-events: none; z-index: var(--z-fade);
  background: linear-gradient(var(--fade-0), var(--bg));
}
@media (min-width: 600px) {
  html[data-look="a"]:has(#main:not([hidden])) .tabbar { left: 50%; right: auto; width: 360px; transform: translateX(-50%); }
  html[data-look="a"] .toasts { left: 50%; right: auto; width: 360px; transform: translateX(-50%); }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-look="a"]:has(#main:not([hidden])) .tabbar { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------------------------------------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  html:is([data-look="a"],[data-look="b"]) .ctl,
  html:is([data-look="a"],[data-look="b"]) .tab { transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
  html:is([data-look="a"],[data-look="b"]) .switch { transition: background-color var(--t-med) var(--ease-out); }
  html:is([data-look="a"],[data-look="b"]) .switch::after { transition: transform var(--t-med) var(--ease-out); }
  html:is([data-look="a"],[data-look="b"]) .toast { transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }
}

/* ---- a 320 px phone: the role tag may take a second line instead of ending in an ellipsis ---- */
@media (max-width: 356px) {
  html:is([data-look="a"],[data-look="b"]) .role { height: auto; padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm); white-space: normal; line-height: 20px; }
}
