/* Snuug web app: the components. One look per part, drawn from the iPhone app (screenshots of -demoScreen welcome,
   photoGuide, rooms, you, offer1 and analysisReady) and from docs/mockups/flow.css. Each part's JavaScript is in
   src/ui/; its usage note is there too. Borders are inset shadows or translucent, so they stay crisp on any paper
   (interfacecraft 28, "Borders"). */

/* ---------- Glass: the app's glass circle, tab bar and flags ---------- */
.glass {
  position: relative; background: var(--theme-glass); color: var(--ink);
  -webkit-backdrop-filter: var(--theme-glass-blur); backdrop-filter: var(--theme-glass-blur);
  box-shadow: inset 0 0 0 1px var(--theme-glass-line), var(--theme-shadow);
}

/* ---------- Buttons: Qoves's pills, a little larger (54 px: the founder, 19 Nov 2026, "all these buttons should be slightly bigger") ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--q-btn-h); padding: 0 var(--q-btn-pad); border: 0; border-radius: var(--radius-pill);
  font: var(--q-btn-font); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;   /* BUG-2263: older Safari reads only the prefixed one */
  transition: transform var(--t-fast) var(--ease-spring), background-color var(--t-med), opacity var(--t-med), box-shadow var(--t-med);
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled:not([aria-busy="true"]), .btn[aria-disabled="true"] { opacity: .38; cursor: default; }
.btn .i { width: 18px; height: 18px; flex: none; }
.btn-wide { width: 100%; }

/* The main button: a black pill (the theme's accent) with the app's slow liquid sheen and a soft lift. One per screen. */
.btn-primary {
  height: var(--q-btn-h); background: var(--accent); color: var(--on-accent); overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 2px rgb(var(--g-deep) / .12), 0 8px 20px -10px color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn-primary::before {
  content: ""; position: absolute; inset: -40% -10%; z-index: -1; pointer-events: none; opacity: .35;
  background:
    radial-gradient(60% 50% at 18% 80%, color-mix(in srgb, var(--on-accent) 16%, transparent), transparent 60%),
    radial-gradient(40% 60% at 72% 20%, color-mix(in srgb, var(--on-accent) 12%, transparent), transparent 62%),
    radial-gradient(30% 40% at 95% 90%, color-mix(in srgb, var(--on-accent) 10%, transparent), transparent 70%);
  transition: transform 1.4s var(--ease-move);
}
/* BUG-1193: the sheen rests, and slides only while the pointer is on the button. It drifted for ever until 20 Nov 2026,
   and that made the compositor draw a frame at every refresh on every screen with a main button. */
.btn-primary:hover::before { transform: translateX(6%) rotate(2deg); }
@media (prefers-reduced-motion: reduce) { .btn-primary::before { transition: none; } }

/* The second choice: a glass pill (the offer's "Join · £18.99 a month"). */
.btn-secondary { height: var(--q-btn-h); background: var(--theme-glass-strong); color: var(--ink);
  box-shadow: var(--theme-card-edge), 0 1px 2px rgb(var(--g-deep) / .05); }
.btn-secondary:hover { background: color-mix(in srgb, var(--theme-glass-strong) 70%, #fff); }
[data-theme="night"] .btn-secondary { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

/* A quiet text button: "Skip for now", "Not now", "I have an account". */
.btn-quiet { background: transparent; color: var(--muted); font: var(--q-btn-font); font-weight: 450; padding: 0 16px; }
.btn-quiet:hover { color: var(--ink); }
.btn-small { min-height: var(--q-btn-small-h); height: var(--q-btn-small-h); padding: 0 20px; font: var(--q-btn-small-font); font-weight: 500; }
.btn-danger { color: var(--danger); }

/* A press that is waiting: the label stays, a small ring turns beside it. */
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; animation: turn .8s linear infinite; opacity: .7; }
@keyframes turn { to { transform: rotate(1turn); } }
/* BUG-1652: keep the busy ring, without rotation. */
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"]::after { animation: none; } }

/* The glass circle icon button: back, close, info, share. */
.icon-btn {
  width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  -webkit-tap-highlight-color: transparent; transition: transform var(--t-fast) var(--ease-spring);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn .i { width: 18px; height: 18px; }
.icon-btn.plain { background: transparent; box-shadow: none; }
.icon-btn.solid { background: var(--accent); color: var(--on-accent); box-shadow: var(--theme-shadow); }

/* ---------- Icons: drawn strokes on a 24 grid, one stroke weight ---------- */
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Headings and labels ---------- */
/* Two tones (Qoves): the first words in ink, the last in muted. */
.h2tone { margin: 0; }
.h2tone .one, .h2tone .two { display: block; }
.h2tone.inline .one, .h2tone.inline .two { display: inline; }
.h2tone .two { color: var(--muted); }
/* The mono label, as the site's (apps/web/assets/css/base.css .label): measurements and specs, MEASURED, COST, BEFORE. */
.mono { font: var(--q-mono); letter-spacing: var(--q-mono-track); text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.mono.slash::after { content: " /"; opacity: .6; }

/* ---------- Spec tiles (Qoves): the label top left, the value bottom left ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.tile { min-height: 76px; padding: 12px 16px; border-radius: var(--q-r-card); background: var(--theme-card); box-shadow: var(--theme-card-edge);
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.tile .value { font: 500 20px/24px var(--font); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.tile.good .value { color: var(--good-text); } .tile.potential .value { color: var(--potential-text); }

/* ---------- Cards and rows: Qoves's white rounded cards ---------- */
.card { position: relative; background: var(--theme-card); border-radius: var(--q-r-panel); box-shadow: var(--theme-card-edge); padding: 24px; }
.card.raised { background: var(--theme-card); box-shadow: var(--theme-card-edge), var(--theme-shadow); }
.card.link { display: block; text-decoration: none; color: inherit; transition: transform var(--t-fast) var(--ease-spring); }
.card.link:active { transform: scale(.985); }
/* A row in a card: a label, an optional line under it, a chevron (You, the membership card). */
.rows { display: flex; flex-direction: column; background: var(--theme-card); border-radius: var(--q-r-card); box-shadow: var(--theme-card-edge); overflow: hidden; }
.rowlink { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 20px; border: 0; background: none; text-align: left;
  color: inherit; text-decoration: none; width: 100%; font: var(--q-body); }
.rowlink + .rowlink { box-shadow: inset 0 1px 0 var(--theme-line); }
.rowlink .sub { display: block; font: var(--q-small); color: var(--muted); margin-top: 2px; }
.rowlink .chev { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.rowlink:hover { background: var(--theme-fill); }
/* The card clips its rows (overflow: hidden, for the rounded corners), so the ring sits inside the row, not 3 px outside it. */
.rowlink:focus-visible { outline-offset: -3px; border-radius: 18px; }

/* A status chip: a coloured dot and a word (Working well, High potential). */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill);
  background: var(--theme-glass-strong); box-shadow: var(--theme-card-edge); font: 500 12px/1 var(--font); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ink)); }
.chip.good { --c: var(--good); } .chip.potential { --c: var(--potential); } .chip.plain::before { display: none; }

/* ---------- Text fields: Qoves's settings fields, 48 high with an 8 radius ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: var(--q-small); color: var(--muted); }
.input { height: var(--q-field-h); padding: 0 14px; border: 0; border-radius: var(--q-r-field); background: var(--theme-glass-strong); color: var(--ink); font: var(--q-body);
  box-shadow: inset 0 0 0 1px var(--theme-line); transition: box-shadow var(--t-fast); width: 100%; }
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger); }
/* BUG-1604: keep the error edge distinct from keyboard focus. */
.input[aria-invalid="true"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.field .hint { font: var(--q-caption); color: var(--muted); }
.field .err { font: var(--q-caption); color: var(--danger); }

/* ---------- Segmented control (Settings › Account › Colour: Light, Dark) ---------- */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--theme-seg); position: relative; }
.seg button { position: relative; z-index: 1; min-height: 36px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--muted); font: 500 14px/1 var(--font); white-space: nowrap; transition: color var(--t-med); }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: var(--radius-pill); background: var(--theme-seg-thumb);
  box-shadow: 0 1px 2px rgb(var(--g-deep) / .1), inset 0 0 0 1px var(--theme-card-line); transition: transform var(--t-med) var(--ease-out), width var(--t-med) var(--ease-out); }
[data-theme="night"][data-paper] .seg .thumb { background: rgba(255, 255, 255, .16); }

/* ---------- Step dots (the offer's pager): the current one is a short bar ---------- */
.dots { display: flex; align-items: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--ink); opacity: .18; transition: width var(--t-med) var(--ease-out), opacity var(--t-med); }
.dots i.on { width: 22px; opacity: 1; }
.dots i.done { opacity: .5; }

/* ---------- Progress ring ---------- */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--theme-line); }
.ring .bar { stroke: var(--ink); transition: stroke-dashoffset var(--t-slow) var(--ease-out); }
.ring .val { position: absolute; font-variant-numeric: tabular-nums; }
.ring.lit .bar { stroke: var(--amber); }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.has-tabbar .toasts { bottom: calc(env(safe-area-inset-bottom) + var(--tabbar-h) + 40px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; min-height: 44px; padding: 8px 8px 8px 18px; border-radius: var(--radius-pill);
  font: var(--q-small); animation: toast-in var(--t-med) var(--ease-spring) both; }
.toast:not(:has(button)) { padding-right: 18px; }
.toast.glass { background: var(--theme-toast); }   /* BUG-1410: Dark's toast is the strong glass */
.toast.leaving { animation: toast-out var(--t-fast) ease-in both; }
.toast .i { width: 18px; height: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Sheet: a bottom sheet on a phone, a centred dialog on a laptop ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 90; background: var(--scrim); opacity: 0; transition: opacity var(--t-med) ease; }
.sheet-scrim.open { opacity: 1; }
.sheet { position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--theme-glass-strong); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4);
  border-radius: 20px 20px 0 0; padding: 10px var(--gutter) calc(env(safe-area-inset-bottom) + 24px);
  box-shadow: inset 0 0 0 1px var(--theme-glass-line), var(--theme-shadow-lift); transform: translateY(100%); transition: transform var(--t-med) var(--ease-out); }
.sheet.open { transform: none; }
.sheet .grab { width: 36px; height: 5px; margin: 0 auto 14px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--ink) 18%, transparent); }
.sheet .sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
/* BUG-2262: the drag down to close (overlays.js dragToClose) starts on the grab or the head. Without this a touch browser
   takes that drag as its own scroll and sends pointercancel, so the sheet never follows the finger. */
.sheet .grab, .sheet .sheet-head { touch-action: none; }
.sheet .sheet-head h2 { flex: 1; padding-top: 8px; font: var(--q-heading); }
.sheet .sheet-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
@media (min-width: 900px) {
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(480px, calc(100vw - 48px)); border-radius: var(--q-r-panel); padding: 28px 32px 32px;
    transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) ease; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }
}

/* ---------- The dither ("not yet"): ordered Bayer dots in the theme's inks. src/ui/dither.js makes the masks. ---------- */
.dither { background-color: var(--dither-ink, var(--d3)); -webkit-mask-image: var(--dither-mask); mask-image: var(--dither-mask);
  -webkit-mask-size: var(--dither-cell, 8px) var(--dither-cell, 8px); mask-size: var(--dither-cell, 8px) var(--dither-cell, 8px); image-rendering: pixelated; }
.dither-field { position: relative; isolation: isolate; }
.dither-field > .dither { position: absolute; inset: 0; z-index: -1; border-radius: inherit; }

/* ---------- Photo tile: one place's photo, in five states. Her photo is always shown as she took it (19 Nov 2026);
   the state is a ring and a small disc in the top right corner, and the words go under the tile (.place-card). ---------- */
.photo-tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: var(--radius-photo);
  overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); text-align: left; isolation: isolate; cursor: pointer; }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-med), filter var(--t-med); }
/* The state's ring sits inside the tile, over the photo, so a tile with a ring is exactly as big as one without. */
.photo-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }
.photo-tile .num { position: absolute; left: 8px; top: 8px; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); display: grid; place-items: center;
  font: 500 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.photo-tile .num.glass { background: var(--theme-tile-num); }   /* BUG-1410 */
.photo-tile .mark { position: absolute; right: 8px; top: 8px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 700 13px/1 var(--font); }
.photo-tile .mark .i { width: 13px; height: 13px; stroke-width: 2.6; }
/* Empty: a dashed outline and the place's name. */
.photo-tile[data-state="empty"] { background: var(--theme-tile-empty); }
.photo-tile[data-state="empty"]::after { box-shadow: none; outline: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); outline-offset: -1px; }
.photo-tile[data-state="empty"] .empty-label { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; z-index: 2;
  color: var(--muted); font: 500 13px/16px var(--font); text-align: center; padding: 8px; }
.photo-tile[data-state="empty"] .empty-label .i { width: 22px; height: 22px; margin: 0 auto; }
/* Checking: the photo a little faded while a soft line of light passes over it; a small ring turns in the corner. */
.photo-tile[data-state="checking"] img { opacity: .62; filter: saturate(.7); }
.photo-tile[data-state="checking"]::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; z-index: 1;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--paper) 55%, transparent), transparent); animation: pass 1.6s var(--ease-move) infinite; }
@keyframes pass { from { left: -40%; } to { left: 100%; } }
.photo-tile[data-state="checking"] .mark { background: color-mix(in srgb, var(--paper) 88%, transparent); }
.photo-tile .mark .turn, .place-words .turn { width: 12px; height: 12px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent); border-top-color: var(--ink); animation: turn .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .photo-tile[data-state="checking"]::before { animation: none; left: 30%; } .photo-tile .mark .turn, .place-words .turn { animation: none; } }
/* Good: the photo, and a quiet tick on a paper disc. */
.photo-tile[data-state="good"] .mark { background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--good); box-shadow: 0 1px 2px rgb(var(--g-deep) / .14); }
/* Borderline and bad: a 2 px ring in the state's colour, and a filled disc with "!". */
.photo-tile[data-state="warn"]::after { box-shadow: inset 0 0 0 2px var(--potential), inset 0 0 0 3px color-mix(in srgb, var(--paper) 70%, transparent); }
.photo-tile[data-state="bad"]::after { box-shadow: inset 0 0 0 2px var(--danger), inset 0 0 0 3px color-mix(in srgb, var(--paper) 70%, transparent); }
.photo-tile[data-state="warn"] .mark { background: var(--potential); color: #fff; box-shadow: 0 0 0 2px var(--paper); }
.photo-tile[data-state="bad"] .mark { background: var(--danger); color: #fff; box-shadow: 0 0 0 2px var(--paper); }
.photo-tile:focus-visible { outline-offset: 2px; }

/* ---------- Place card: the tile, its words on one line, and its fixes. In a grid (.slots), a card spans three rows
   (subgrid), so tiles, words and buttons line up across a row. ---------- */
.place-card { display: grid; grid-template-rows: auto auto auto; min-width: 0; }
/* One line at every size the founder checks; it wraps rather than cut when a card is narrower still (never an ellipsis). */
.place-words { display: flex; align-items: flex-start; gap: 5px; min-width: 0; margin-top: 8px; font: 500 13px/18px var(--font); color: var(--muted); text-wrap: balance; }
.place-words > span { min-width: 0; }
.place-words .i { flex: none; width: 14px; height: 14px; margin-top: 2px; stroke-width: 2.6; }
.place-words .turn { flex: none; margin-top: 3px; }
.place-words .bang { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font: 700 10px/1 var(--font); color: #fff; background: var(--potential); }
.place-card[data-tone="warn"] .place-words { color: var(--potential-text); }
.place-card[data-tone="bad"] .place-words { color: var(--danger); }
.place-card[data-tone="bad"] .place-words .bang { background: var(--danger); }
.place-card[data-tone="good"] .place-words .i { color: var(--good); }
.place-fix { display: flex; flex-wrap: wrap; gap: 6px; }
.place-fix:not(:empty) { margin-top: 8px; }
.place-card .place-fix .btn { flex: 1 1 auto; min-width: 0; min-height: 32px; height: 32px; padding: 0 12px; gap: 6px; font: 500 13px/1 var(--font); }
.place-card .place-fix .btn .i { width: 15px; height: 15px; }
/* "Take again" (or "Replace"): a small white pill, so the page's one black button stays the main one. */
.place-card .place-fix .btn-fix { background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 1px 2px rgb(0 0 0 / .06); }
.place-card .place-fix .btn-fix:hover { background: var(--paper); }

/* ---------- Plan illustration ---------- */
.plan { width: 100%; height: auto; overflow: visible; color: var(--ink); }
.plan .room { fill: var(--plan-room); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.plan .cone { opacity: 0; transition: opacity var(--t-med) ease; }
.plan .cone.on, .plan.all .cone { opacity: 1; }
.plan .spot { fill: var(--plan-spot); stroke: color-mix(in srgb, var(--ink) 38%, transparent); stroke-width: 2; stroke-dasharray: 4 4; transition: fill var(--t-med), stroke var(--t-med); }
.plan .place.done .spot { fill: var(--ink); stroke: var(--ink); stroke-dasharray: none; }
.plan .place.on .spot { fill: var(--ink); stroke: var(--ink); stroke-dasharray: none; }
.plan .place.warn .spot { fill: var(--potential); stroke: var(--potential); stroke-dasharray: none; }
.plan .place .n { font: 600 15px/1 var(--font); fill: var(--paper); text-anchor: middle; dominant-baseline: central; opacity: 0; }
.plan .place.done .n, .plan .place.on .n, .plan .place.warn .n { opacity: 1; }
.plan .place[role="button"] { cursor: pointer; }
.plan .place[role="button"]:focus-visible { outline: none; }
.plan .place[role="button"]:focus-visible .spot { stroke: var(--ink); stroke-width: 3; stroke-dasharray: none; }
/* A ring round a place that has the keyboard: a filled spot shows no change of its own stroke. */
.plan .focus-ring { fill: none; stroke: var(--ink); stroke-width: 2.5; opacity: 0; }
.plan .place[role="button"]:focus-visible .focus-ring { opacity: 1; }
.plan .door { stroke: var(--plan-gap); stroke-width: 8; }
.plan .door-swing { fill: none; stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1.5; stroke-dasharray: 3 4; }
.plan .window { stroke: var(--plan-gap); stroke-width: 8; }
.plan .window-glass { stroke: var(--ink); stroke-width: 1.5; }

/* ---------- The journey pill (the app's top bar: Your taste — Your room) ---------- */
.journey { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 3px; border-radius: var(--radius-pill); background: var(--theme-glass);
  box-shadow: inset 0 0 0 1px var(--theme-glass-line); }
.journey-step { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); }
.journey-step .i { width: 15px; height: 15px; }
.journey-step.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.journey-dash { width: 14px; height: 1.5px; border-radius: 1px; background: var(--ink); }

/* ---------- A finding on a room picture: a coloured dot and a glass flag (Welcome, Landing, the room page) ---------- */
.finding-pin { position: absolute; z-index: 3; transform: translate(-50%, -50%); }
.finding-pin.good { --c: var(--good); } .finding-pin.potential { --c: var(--potential); }
.finding-pin .pin-dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, #fff 88%, transparent), 0 2px 6px rgba(0, 0, 0, .3); }
.finding-pin .flag { position: absolute; left: -28px; display: flex; flex-direction: column; gap: 4px; padding: 9px 13px 10px; border-radius: 16px; white-space: nowrap; }
.finding-pin.flag-above .flag { bottom: 22px; }
.finding-pin.flag-below .flag { top: 22px; left: -36px; }
.finding-pin .flag b { font: 500 14px/1.1 var(--font); }
.finding-pin .flag .status { display: flex; align-items: center; gap: 6px; font: 500 13px/1 var(--font); color: var(--muted); }
.finding-pin .flag .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
/* On Night (Welcome) the glass is 6% white: over the room's cream wall its white words fell to 2.2 : 1. There the flag is the
   deep Mist, still blurred, so its words keep 4.5 : 1 over any picture (measured 19 Nov 2026). */
:root[data-theme="night"] .finding-pin .flag.glass { background: rgb(var(--g-deep) / .62); }

/* ---------- Trial badge ---------- */
.trial-badge { position: fixed; z-index: 70; top: calc(env(safe-area-inset-top) + 10px); left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 9px; border: 0; border-radius: var(--radius-pill);
  font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.trial-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
@media (min-width: 900px) { .trial-badge { left: auto; right: 20px; transform: none; top: 18px; } }
.trial-panel .rowlink { font-size: 16px; min-height: 52px; }

/* Qoves's waiting button (button({ loader: 'dots' }), redesign.md 04): the label stays put and a ring of eight dots
   turns at the right end. It replaces the small ring above for these buttons only. */
.btn-dots .dots { position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: currentColor; opacity: 0; pointer-events: none; transition: opacity var(--t-fast); }
.btn-dots[aria-busy="true"]::after { content: none; }
.btn-dots[aria-busy="true"] .dots { opacity: .8; animation: dots-turn .96s steps(8) infinite; }
@keyframes dots-turn { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .btn-dots[aria-busy="true"] .dots { animation: none; } }

/* ---------- pictureCard: the one standard card (src/ui/components.js), after the founder's Travels cards (19 Nov
   2026): equal columns 28 px apart; a fine edge, 14 px corners; the picture edge to edge at 3:2; a 20 px title and one
   14 px line under it, 24 px in. Glass on the Mist field. ---------- */
.pcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (min-width: 1200px) { .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none;
  background: var(--theme-card); box-shadow: var(--theme-card-edge), 0 0 0 1px var(--theme-card-line); -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-fast) var(--ease-spring); }   /* no box-shadow transition: it repainted each card the pointer crossed while she scrolled (perf-log/paint.md row 6) */
.pcard-pic { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden;
  background: color-mix(in srgb, var(--paper) 72%, transparent); box-shadow: inset 0 -1px 0 var(--theme-card-line); }
.pcard-pic > img { width: 100%; height: 100%; object-fit: contain; padding: 5% 7%; transition: transform var(--t-slow) var(--ease-out); }
.pcard-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 20px 20px; }
.pcard-title { font: 400 18px/24px var(--font); letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; }
.pcard-title.is-warn { color: var(--potential-text); }
.pcard-sub { font: var(--q-small); color: var(--muted); font-variant-numeric: tabular-nums; text-wrap: pretty; }
a.pcard:hover { box-shadow: var(--theme-card-edge), 0 0 0 1px var(--theme-card-line), var(--theme-shadow); }
a.pcard:hover .pcard-pic > img { transform: scale(1.03); }
a.pcard:active { transform: scale(.99); }
a.pcard:focus-visible { outline-offset: 4px; }
.pcard.is-skel .pcard-pic { background: var(--surface); }
.pcard .pcard-bar { display: block; width: 62%; height: 16px; border-radius: 8px; background: var(--surface); }
.pcard .pcard-bar.short { width: 38%; height: 12px; margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .pcard.is-skel .pcard-pic, .pcard.is-skel .pcard-bar { animation: pcard-breathe 1.4s ease-in-out infinite alternate; }
  @keyframes pcard-breathe { to { opacity: .45; } }
}
@media (min-width: 900px) {
  .pcard-body { gap: 10px; padding: 22px 24px 24px; }
  .pcard-title { font-size: 20px; line-height: 26px; }
}

/* ---------- Two parts of the capture screens, here since R-20 (21 Nov 2026; were in parts/capture.css) ---------- */
/* A status pill in the top bar: a dot and a few words ("Connected · Pixel 8"). */
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ink) 6%, transparent); font: 500 13px/1 var(--font); white-space: nowrap; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--good)); }
.status-pill.wait::before { --c: var(--amber); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .status-pill.wait::before { animation: none; } }
.status-pill .avatar { width: 22px; height: 22px; font-size: 11px; margin-left: -4px; }
.status-pill:has(.avatar)::before { display: none; }
.status-pill { background: var(--theme-glass); -webkit-backdrop-filter: var(--theme-glass-blur); backdrop-filter: var(--theme-glass-blur); box-shadow: inset 0 0 0 1px var(--theme-glass-line); }

/* ---------- A step's node (capture/radar.js stepNode; the app's StepNode): the set check's lines, On its way's steps ---------- */
.step-node { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.step-node[data-state="next"], .step-node[data-state="now"] { outline: 1.8px dotted color-mix(in srgb, var(--ink) 38%, transparent); outline-offset: -3px; }
.step-node[data-state="now"] svg { position: absolute; inset: 0; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round;
  animation: step-turn 1.6s linear infinite; }
.step-node[data-state="done"] { background: var(--ink); color: #fff; animation: step-pop .3s cubic-bezier(.3, 1.5, .5, 1) both; }
.step-node[data-state="refused"] { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.step-node .i { width: 13px; height: 13px; stroke-width: 2.6; }
.step-node[data-state="refused"] .i { width: 11px; height: 11px; stroke-width: 2.2; }
.step-node[data-state="sun"] { animation: step-pop .3s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes step-pop { from { transform: scale(.3); opacity: 0; } }
@keyframes step-turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .step-node[data-state="done"], .step-node[data-state="sun"], .step-node[data-state="now"] svg { animation: none; } }
