/* Breathe Site: "Site Ledger" direction.
   Breathe's website carried into the hand: near-black ground, Switzer, square chips,
   full-bleed photographs, and the footer's conditions strip as the photo stamp.
   One signal colour, safety yellow, marks only the next thing to do. */

:root {
  /* dark is the default look; light is "Daylight", for bright rooms and outdoors */
  --bg: #191919;            /* breathehomes.co html background */
  --bg-2: #141414;          /* camera, viewer, deepest layer */
  --surface: #222222;
  --surface-2: #2a2a2a;
  --chip: #303030;          /* site's secondary chip */
  --chip-hover: #3a3a3a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #f5f5f5;            /* logo stroke */
  --fg-2: #c9c9c7;
  --muted: #b3b3b3;
  --faint: #8c8c8c;
  --primary: #f5f5f5;       /* site's primary chip: white, black text */
  --primary-fg: #111111;
  --next: #fde047;          /* the one signal: next step */
  --next-fg: #191919;
  --next-ink: #fde047;      /* yellow used as text */
  --next-soft: rgba(253, 224, 71, 0.14);
  --warn: #ff9a52;          /* conditions caution */
  --warn-soft: rgba(255, 154, 82, 0.14);
  --stop: #ff6257;          /* do not apply / destructive */
  --stop-soft: rgba(255, 98, 87, 0.14);
  --ok: #8fd6a5;
  --scrim: rgba(0, 0, 0, 0.55);
  --glass: rgba(20, 20, 20, 0.72);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);

  --sans: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* motion: iOS-like, see spec/ux-architecture.md */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-push: 380ms;
  --t-sheet: 420ms;

  --gutter: 18px;
  --status-h: 54px;
  --tab-h: 84px;
}
/* Site Ledger is dark by default, whatever the OS says; "Daylight" is the explicit light theme (shell: Theme: light). */
:root[data-theme="light"] {
  --bg: #f3f2ee; --bg-2: #111111; --surface: #ffffff; --surface-2: #eceae5; --chip: #e4e2dc; --chip-hover: #d9d7d0;
  --line: rgba(25, 25, 25, 0.1); --line-2: rgba(25, 25, 25, 0.18);
  --fg: #191919; --fg-2: #3b3b39; --muted: #5e5d59; --faint: #767570;
  --primary: #191919; --primary-fg: #f5f5f5;
  --next: #fde047; --next-fg: #191919; --next-ink: #191919; --next-soft: rgba(253, 224, 71, 0.38);
  --warn: #b4520f; --warn-soft: rgba(230, 120, 40, 0.14); --stop: #c2352b; --stop-soft: rgba(194, 53, 43, 0.1); --ok: #23794a;
  --scrim: rgba(10, 10, 10, 0.38); --glass: rgba(250, 249, 246, 0.82); --shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

/* ================= base ================= */
#screen { background: var(--bg); }
#app { position: absolute; inset: 0; overflow: hidden; color: var(--fg); background: var(--bg); font: 400 calc(16px * var(--ts, 1))/1.4 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; }
:where(#app) * { box-sizing: border-box; }
:where(#app) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
:where(#app) button:focus-visible, :where(#app) input:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
:where(#app) img { display: block; max-width: 100%; }
:where(#app) b { font-weight: 500; }
:where(#app) small { font-size: 0.8125em; color: var(--muted); display: block; }
.ic { width: 22px; height: 22px; flex: none; }
.mark { width: 41px; height: 32px; flex: none; color: var(--fg); }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.tnum, [data-timer], [data-clock], [data-stamp-time] { font-variant-numeric: tabular-nums; }
.sq { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--fg); }
.sq.next { background: var(--next); }

/* screens and nav stack */
.nav { position: absolute; inset: 0; overflow: hidden; }
.scr { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; will-change: transform; transform-origin: 50% 0; overflow: hidden; }
.scr.leaving { pointer-events: none; }
.scr.dark-scr { background: var(--bg-2); color: #f5f5f5; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding-top: var(--status-h); scrollbar-width: none; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { display: none; }
.navbar + .scroll, .navbar ~ .scroll { padding-top: 0; }
.tail { height: calc(var(--tab-h) + 32px); }
.tail.tall { height: 170px; }

/* status bar */
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: var(--status-h); z-index: 900; display: flex; justify-content: space-between; align-items: center; padding: 6px 30px 0 44px; font: 600 16px/1 -apple-system, "SF Pro Text", var(--sans); color: var(--fg); pointer-events: none; }
.statusbar.on-dark { color: #fff; }
.statusbar svg { fill: currentColor; }
.sb-right { display: flex; gap: 6px; align-items: center; }
.sb-off { font-size: 12px; font-weight: 500; }

/* navbar (pushed screens) */
.navbar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: calc(var(--status-h) + 2px) 8px 6px; min-height: calc(var(--status-h) + 52px); background: var(--bg); position: relative; z-index: 2; }
.navbar.dark { background: var(--bg-2); color: #f5f5f5; }
.nb-btn { display: flex; align-items: center; gap: 2px; min-height: 48px; min-width: 48px; padding: 0 8px; }
.nb-title { text-align: center; font-weight: 500; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.nb-title small { font-weight: 400; font-size: 12px; }
.nb-right { display: flex; justify-content: flex-end; gap: 0; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; flex: none; }
.icon-btn.boxed { background: var(--primary); color: var(--primary-fg); width: 44px; height: 44px; }
.av-btn .av { width: 32px; height: 32px; }

/* tab bar */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tab-h); z-index: 600; display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: start; padding: 8px 6px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; padding-top: 4px; color: var(--faint); font-size: 11px; font-weight: 500; position: relative; transition: color var(--t-fast); }
.tab.on { color: var(--fg); }
.tab .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; background: var(--fg); color: var(--bg); font: 600 11px/18px var(--sans); font-style: normal; text-align: center; }
.camkey { justify-self: center; width: 64px; height: 52px; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; position: relative; transition: transform var(--t-fast) var(--ease-out); }
.camkey:active { transform: scale(0.94); }
.camkey .ic { width: 26px; height: 26px; }
.camkey.due::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--next); pointer-events: none; }

/* sync strip */
.syncstrip { position: absolute; left: 0; right: 0; bottom: var(--tab-h); height: 40px; z-index: 590; display: flex; align-items: center; gap: 10px; padding: 0 18px; background: var(--surface-2); font-size: 13px; border-top: 1px solid var(--line); }
.syncstrip span { flex: 1; }
.syncstrip.failed { color: var(--stop); }
.syncstrip .ic { width: 18px; height: 18px; }

/* today */
.today-head { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0 var(--gutter); }
.greet { font-weight: 300; font-size: calc(30px * var(--ts, 1)); letter-spacing: -0.01em; line-height: 1.1; margin: 14px var(--gutter) 6px; }
.cond-line { margin: 0 var(--gutter) 16px; font-size: 12.5px; white-space: nowrap; overflow: hidden; color: var(--fg-2); display: flex; gap: 0 7px; font-variant-numeric: tabular-nums; }
.cond-line i { font-style: normal; color: var(--faint); }
.hero { position: relative; margin: 0 var(--gutter) 2px; height: 236px; overflow: hidden; background: var(--surface); color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.hero-img:active img { transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,0) 42%, rgba(0,0,0,0) 52%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.hero-top { position: absolute; top: 14px; left: 16px; right: 16px; z-index: 1; pointer-events: none; }
.hero-top h2 { margin: 0; font-weight: 400; font-size: 22px; letter-spacing: -0.01em; }
.hero-top p { margin: 2px 0 0; font-size: 14px; color: rgba(255,255,255,.86); }
.hero-bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; }
.timer { display: inline-flex; align-items: center; gap: 8px; font: 400 24px/1 var(--sans); color: var(--next); font-variant-numeric: tabular-nums; min-height: 48px; }
.timer.sm { font-size: 14px; min-height: 0; color: var(--next-ink); }
.pulse { width: 8px; height: 8px; background: var(--next); display: inline-block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-cam { width: 56px; height: 56px; background: #fff; color: #111; display: grid; place-items: center; transition: transform var(--t-fast) var(--ease-out); }
.hero-cam:active { transform: scale(.93); }
.geo { margin: 0 var(--gutter) 12px; padding: 12px; background: var(--surface); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.geo span { flex: 1 0 100%; }

/* rows */
.row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); transition: background var(--t-fast); }
.row b { display: block; font-size: 15px; }
.row:active:not(.static) { background: var(--surface); }
.row > .ic:last-child { width: 18px; height: 18px; color: var(--faint); }
.row.next-row b { color: var(--fg); }
.row.static { cursor: default; }
.thumb { width: 56px; height: 56px; object-fit: cover; flex: none; background: var(--surface); }
.thumb.lg { width: 72px; height: 72px; }
.thumb.sm { width: 44px; height: 44px; }
.site-row.big { align-items: flex-start; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; font-size: 12px; }
.stage-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; background: var(--chip); font-size: 12px; }
.stage-tag .ic { width: 13px; height: 13px; }
.warn-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; background: var(--fg); color: var(--bg); font-size: 12px; }
.warn-tag .ic { width: 13px; height: 13px; }
.bar { display: block; height: 2px; background: var(--line-2); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--fg); transition: width 600ms var(--ease-out); }
.sec-h { margin: 26px var(--gutter) 6px; font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.sec-h-row { display: flex; justify-content: space-between; align-items: center; padding-right: var(--gutter); }
.act-row { align-items: flex-start; }
.strip { display: flex; gap: 2px; margin-top: 8px; }
.strip img { width: 56px; height: 56px; object-fit: cover; }

/* avatar: square, initials */
.av { width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; background: var(--chip); color: var(--fg); font: 500 12px/1 var(--sans); letter-spacing: .02em; }
.av.xs { width: 20px; height: 20px; font-size: 8px; }
.av.lg { width: 56px; height: 56px; font-size: 18px; }

/* chips, buttons, segmented */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: var(--chip); color: var(--fg); font-size: 14px; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.chip .ic { width: 16px; height: 16px; }
.chip.on, .chip.primary { background: var(--primary); color: var(--primary-fg); }
.chip.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.chip.lg { min-height: 48px; padding: 0 16px; font-size: 15px; }
.chip.inv { background: var(--bg); color: var(--fg); }
.chips-row { display: flex; gap: 6px; padding: 4px var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; background: var(--chip); color: var(--fg); font-size: 15px; font-weight: 500; transition: transform var(--t-fast) var(--ease-out), background var(--t-fast); }
.glove .btn { min-height: 56px; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: var(--primary-fg); }
.btn.sm { min-height: 44px; font-size: 14px; padding: 0 14px; }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn.danger { background: var(--stop); color: #fff; }
.seg-body > .btn, .scroll > .btn { margin: 16px var(--gutter); width: calc(100% - 2 * var(--gutter)); }
.seg { display: flex; padding: 0; gap: 0; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.glove .seg button { min-height: 48px; }
.seg button.on { background: var(--primary); color: var(--primary-fg); }
.seg.sm button { width: 44px; min-height: 40px; }
.seg.sm .ic { width: 18px; height: 18px; }
.seg.full { margin: 14px var(--gutter) 4px; }
.seg .cnt { font-style: normal; display: inline-block; min-width: 18px; padding: 0 4px; background: var(--muted); color: var(--bg); font-size: 11px; line-height: 18px; text-align: center; }
.seg button.on .cnt { background: var(--primary-fg); color: var(--primary); }

/* large header */
.large-head { display: flex; align-items: center; gap: 8px; padding: 8px var(--gutter) 10px; }
.large-head h1 { margin: 0; font-weight: 300; font-size: calc(30px * var(--ts, 1)); letter-spacing: -0.01em; }
.searchfield { display: flex; align-items: center; gap: 10px; margin: 2px var(--gutter) 10px; min-height: 46px; padding: 0 12px; background: var(--surface); color: var(--muted); font-size: 15px; width: calc(100% - 2 * var(--gutter)); }
.searchfield input { flex: 1; background: none; border: 0; color: var(--fg); font: inherit; outline: none; min-height: 44px; }
.searchfield .ic { width: 18px; height: 18px; }

/* map */
.map { position: relative; margin: 0 var(--gutter); height: 470px; background: var(--surface); overflow: hidden; }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-bg .road { stroke: var(--line-2); stroke-width: .25; fill: none; }
.map-bg .canal { stroke: color-mix(in srgb, var(--fg) 30%, transparent); stroke-width: 1.4; fill: none; }
.map-bg .river { stroke: color-mix(in srgb, var(--fg) 22%, transparent); stroke-width: 2.4; fill: none; }
.map-bg .park { fill: color-mix(in srgb, var(--fg) 7%, transparent); }
.map-pin { position: absolute; transform: translate(-6px, -6px); display: flex; align-items: center; gap: 6px; }
.map-pin::before { content: ""; width: 12px; height: 12px; background: var(--fg); box-shadow: 0 0 0 3px var(--surface); }
.map-pin.cur::before { background: var(--next); }
.map-pin span { font-size: 12px; background: var(--bg); padding: 3px 6px; white-space: nowrap; }
.map-pin.flip { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -6px); }
.map-note { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: var(--faint); }

/* project */
.proj-head { padding: 0 var(--gutter) 4px; }
.proj-head h1 { margin: 0; font-weight: 300; font-size: calc(28px * var(--ts, 1)); letter-spacing: -0.01em; line-height: 1.12; }
.proj-head p { margin: 4px 0 0; color: var(--fg-2); font-size: 15px; }
.proj-head p.sm { font-size: 13px; color: var(--muted); }
.stage-row { display: flex; gap: 4px; overflow-x: auto; padding: 14px var(--gutter) 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.stage-row::-webkit-scrollbar { display: none; }
.stage-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; background: var(--chip); color: var(--fg-2); font-size: 14px; white-space: nowrap; scroll-snap-align: start; transition: background var(--t-fast), color var(--t-fast); }
.stage-chip .ic { width: 15px; height: 15px; }
.stage-chip.done { color: var(--muted); }
.stage-chip.todo, .stage-chip.locked { color: var(--faint); }
.stage-chip.on { background: var(--primary); color: var(--primary-fg); }
.hold, .gate, .signed { display: flex; gap: 12px; align-items: flex-start; margin: 4px var(--gutter) 6px; padding: 14px; background: var(--surface); }
.hold p, .gate p, .signed p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.hold .chip { align-self: center; }
.ok-line { display: flex; gap: 6px; align-items: center; color: var(--fg-2) !important; }
.ok-line .ic { width: 15px; height: 15px; }
.warnblock { margin: 6px var(--gutter); padding: 14px; background: var(--fg); color: var(--bg); }
.warnblock p { margin: 4px 0 10px; font-size: 14px; line-height: 1.4; }
.progress { margin: 12px var(--gutter) 0; }
.pr-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; min-height: 36px; }
.next-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--next-ink); }
.progress .bar { margin-top: 2px; }
.foot-note { margin: 14px var(--gutter); font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.foot-note.dark { color: #9a9a97; }

/* shot list (project) */
.shotlist { margin: 10px var(--gutter) 0; }
.sl-head { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0 8px; }
.sl-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sl-tile { position: relative; aspect-ratio: 1; background: transparent; outline: 1px dashed var(--line-2); outline-offset: -1px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); }
.sl-tile .ic { width: 18px; height: 18px; }
.sl-tile span { font-size: 11px; text-align: center; padding: 0 4px; line-height: 1.15; }
.sl-tile.filled { outline: 0; }
.sl-tile.filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl-tile.filled span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; padding: 12px 4px 4px; }
.sl-tile .tick { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; background: #fff; color: #111; display: grid; place-items: center; }
.sl-tile .tick .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.sl-tile.next { outline: 2px solid var(--next); outline-offset: -2px; color: var(--fg); }

/* photo grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.cell { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.cell:active img { transform: scale(.97); }
.cell .av { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; }
.cell-q { position: absolute; right: 4px; top: 4px; color: #fff; }
.cell-q .ic { width: 16px; height: 16px; }
.cell-snag { position: absolute; right: 4px; bottom: 4px; font: 500 10px/1 var(--sans); font-style: normal; padding: 3px 5px; background: #fff; color: #111; }
.crop-zoom img { transform: scale(1.6); transform-origin: 40% 30%; }
.crop-left img { object-position: 0% 50%; transform: scale(1.35); transform-origin: 0 50%; }
.crop-right img { transform: scale(-1.35, 1.35); transform-origin: 50% 50%; }

/* checks list ring */
.ring { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: conic-gradient(var(--fg) calc(var(--p) * 360deg), var(--line-2) 0); -webkit-mask: radial-gradient(circle, transparent 13px, #000 14px); mask: radial-gradient(circle, transparent 13px, #000 14px); }
.ck-row .ring .ic { display: none; }

/* conditions */
.cond-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px var(--gutter) 0; }
.tile { background: var(--surface); padding: 12px 10px; display: grid; gap: 4px; }
.tile .ic { width: 18px; height: 18px; color: var(--muted); }
.tile b { font-size: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
.src-line { margin: 8px var(--gutter) 6px; font-size: 12px; color: var(--muted); }
.chart { margin: 10px var(--gutter) 0; padding: 14px; background: var(--surface); }
.ch-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.spark { width: 100%; height: 110px; overflow: visible; }
.spark polyline { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.s-t { stroke: var(--fg); }
.s-rh { stroke: var(--muted); stroke-dasharray: 3 3; }
.ch-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.ch-key { display: flex; gap: 14px; font-size: 12px; color: var(--fg-2); margin-top: 8px; }
.ch-key i { display: inline-block; width: 14px; height: 2px; background: var(--fg); vertical-align: middle; margin-right: 6px; }
.ch-key i.k-rh { background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 6px); }
.readings { margin: 0 var(--gutter); }
.rd { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); }
.rd-v { font-size: 17px; font-variant-numeric: tabular-nums; padding: 4px 8px; }
.rd-v.risk { box-shadow: inset 0 0 0 1px var(--fg); }
.rd-v.wet { background: var(--fg); color: var(--bg); }

/* empty, skeleton */
.empty { padding: 36px var(--gutter); display: grid; gap: 6px; justify-items: start; }
.empty-t { margin: 0; font-size: 17px; font-weight: 500; }
.empty-b { margin: 0 0 10px; color: var(--muted); font-size: 14px; max-width: 32ch; line-height: 1.45; }
.skel { height: 64px; margin: 6px var(--gutter); background: linear-gradient(90deg, var(--surface) 0 40%, var(--surface-2) 50%, var(--surface) 60%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* checklist */
.ck-progress { flex: none; padding: 0 var(--gutter) 10px; font-size: 14px; color: var(--fg-2); background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.ck-progress .bar { margin-top: 8px; }
.ck-scroll { padding-top: 0; }
.ck-sec-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px var(--gutter) 10px; background: var(--bg); font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--line); }
.ck-sec-h > span { font: 500 11px/1 var(--mono); color: var(--muted); }
.sec-done { margin-left: auto; color: var(--muted); }
.sec-done .ic { width: 16px; height: 16px; }
.ck-item { padding: 14px var(--gutter) 16px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; transition: background 600ms; }
.ck-item.flash { animation: flash 1.2s var(--ease-out); }
@keyframes flash { 0%, 30% { background: var(--next-soft); } 100% { background: transparent; } }
.ck-head { display: flex; gap: 10px; align-items: baseline; }
.ck-head .sq, .ck-dot, .ck-tick { flex: none; transform: translateY(-1px); }
.ck-dot { width: 8px; height: 8px; box-shadow: inset 0 0 0 1px var(--faint); display: inline-block; }
.ck-tick { width: 14px; color: var(--muted); }
.ck-tick .ic { width: 14px; height: 14px; }
.ck-id { font: 500 11px/1 var(--mono); color: var(--muted); min-width: 22px; }
.ck-t { margin: 0; font-size: 16px; line-height: 1.35; }
.ck-item.answered .ck-t { color: var(--fg-2); }
.ck-g { margin: 0 0 0 50px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.ck-note { margin: 0 0 0 50px; font-size: 13px; color: var(--fg-2); padding-left: 10px; box-shadow: inset 2px 0 0 var(--line-2); }
.ck-note.no { box-shadow: inset 2px 0 0 var(--fg); }
.ck-by { margin: 0 0 0 50px; font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.ck-by .ic { width: 16px; height: 16px; }
.ck-item > .btn, .answers, .evidence { margin-left: 50px; }
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ans { min-height: 48px; display: grid; place-items: center !important; text-align: center !important; background: var(--chip); font-size: 15px; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.glove .ans { min-height: 56px; }
.ans:active { transform: scale(.97); }
.ans.on { background: var(--primary); color: var(--primary-fg); }
.ans:disabled { opacity: .5; }
.evidence { display: flex; gap: 4px; flex-wrap: wrap; }
.ev { position: relative; width: 84px; height: 84px; outline: 1px dashed var(--line-2); outline-offset: -1px; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 11px; text-align: center !important; color: var(--fg-2); }
.ev .ic { width: 18px; height: 18px; }
.ev small { font-size: 10px !important; color: var(--muted); }
.ev.filled { outline: 0; }
.ev.filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev.filled span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 4px 4px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 10px; }
.bottom-bar { position: absolute; left: 0; right: 0; bottom: var(--tab-h); z-index: 5; display: flex; gap: 6px; padding: 10px var(--gutter); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.bottom-bar.dark { background: rgba(14,14,14,.92); border-color: rgba(255,255,255,.08); }
.dark-scr .bottom-bar { bottom: var(--tab-h); }
.signed { background: var(--surface); }
.signed .ic { width: 26px; height: 26px; }

/* viewer */
.viewer { flex: 1; overflow-y: auto; scrollbar-width: none; }
.v-stage { position: relative; background: #000; touch-action: pan-y; }
.v-img { position: relative; overflow: hidden; }
.v-img img { width: 100%; height: auto; max-height: 470px; object-fit: contain; margin: 0 auto; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.25); }
.v-nav.prev { left: 0; } .v-nav.next { right: 0; }
.pin { position: absolute; width: 26px; height: 26px; transform: translate(-50%, -50%); background: #fff; color: #111; display: grid; place-items: center; font: 600 13px/1 var(--sans); font-style: normal; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.marks * { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: square; }
.stamp-strip { margin: 0; padding: 10px var(--gutter); font: 400 12px/1.4 var(--mono); color: #c9c9c7; background: #0f0f0f; font-variant-numeric: tabular-nums; }
.stamp-strip i { font-style: normal; color: #6c6c69; }
.v-meta { display: flex; align-items: center; gap: 12px; padding: 14px var(--gutter) 6px; }
.dark-scr .av { background: #303030; color: #f5f5f5; }
.v-cap { display: block; margin: 0; padding: 4px var(--gutter) 10px; font-size: 15px; color: #e8e8e6; }
.v-cap.add { color: #8a8a87; min-height: 44px; }
.legend { margin: 0; padding: 0 var(--gutter) 10px; list-style: none; display: grid; gap: 6px; font-size: 14px; color: #e0e0de; }
.legend i { display: inline-grid; place-items: center; width: 20px; height: 20px; background: #fff; color: #111; font: 600 11px/1 var(--sans); font-style: normal; margin-right: 10px; }
.v-read { display: flex; gap: 8px; align-items: center; margin: 0; padding: 4px var(--gutter) 10px; color: #cfcfcd; font-size: 14px; }
.v-snag { display: flex; gap: 12px; align-items: center; margin: 6px var(--gutter) 16px; padding: 12px; background: #222; width: calc(100% - 2 * var(--gutter)); color: #f5f5f5; }
.v-actions { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(var(--tab-h) + 4px); background: #0f0f0f; border-top: 1px solid rgba(255,255,255,.08); color: #f5f5f5; }
.v-actions button { display: grid; justify-items: center; gap: 4px; min-height: 60px; padding-top: 8px; font-size: 11px; text-align: center !important; }
.dark-scr ~ .tabbar, .scr.dark-scr + * { }

/* compare */
.cmp-pairs { display: flex; gap: 6px; align-items: center; padding: 0 var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; }
.dark-scr .chip { background: #303030; color: #f5f5f5; }
.dark-scr .chip.on { background: #f5f5f5; color: #111; }
.cmp { position: relative; height: 420px; background: #000; overflow: hidden; touch-action: none; }
.cmp .cmp-img { position: absolute; inset: 0; }
.cmp img { width: 100%; height: 100%; object-fit: cover; }
.cmp.side, .cmp.stack { display: grid; gap: 2px; }
.cmp.side { grid-template-columns: 1fr 1fr; }
.cmp.stack { grid-template-rows: 1fr 1fr; }
.cmp.side .cmp-img, .cmp.stack .cmp-img { position: relative; }
.cmp-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-1px); }
.cmp-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: #fff; color: #111; display: grid; place-items: center; }
.cmp-l { position: absolute; bottom: 10px; font-size: 13px; background: rgba(0,0,0,.6); color: #fff; padding: 6px 8px; }
.cmp-l small { color: #c9c9c7 !important; font: 400 11px var(--mono) !important; }
.cmp-l.l { left: 10px; } .cmp-l.r { right: 10px; text-align: right; }
.dark-seg { margin-top: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.dark-seg button { color: #b3b3b3; }
.dark-seg button.on { background: #f5f5f5; color: #111; }

/* report paper: always light, the recipient prints it */
.scr.paper { background: #e9e7e2; color: #191919; --fg: #191919; --muted: #6a6964; --line: rgba(0,0,0,.12); --chip: #dcd9d2; --bg: #e9e7e2; }
.paper .navbar { background: #e9e7e2; color: #191919; }
.paper-scroll { padding: 4px 12px 0; }
.paper-doc { background: #f7f6f2; color: #191919; padding: 26px 22px 22px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.paper-doc .mark { color: #191919; width: 34px; height: 26px; }
.pd-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 28px; }
.pd-eyebrow { font: 500 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6a6964; margin: 0 0 8px; }
.paper-doc h1 { font-weight: 300; font-size: 24px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; text-wrap: balance; }
.pd-meta { font-size: 12px; color: #6a6964; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,.14); }
.paper-doc h2 { font-weight: 500; font-size: 13px; margin: 20px 0 6px; }
.paper-doc p { font-size: 13px; line-height: 1.55; margin: 0 0 8px; color: #2b2b2a; }
.paper-doc table { width: 100%; border-collapse: collapse; font-size: 12px; }
.paper-doc th { text-align: left; font-weight: 500; color: #6a6964; border-bottom: 1px solid rgba(0,0,0,.2); padding: 6px 4px 6px 0; }
.paper-doc td { border-bottom: 1px solid rgba(0,0,0,.08); padding: 7px 4px 7px 0; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.pd-grid figure { margin: 0; }
.pd-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pd-grid figcaption { font-size: 10.5px; line-height: 1.35; margin-top: 5px; display: grid; gap: 2px; color: #3b3b39; }
.pd-grid figcaption span { font-family: var(--mono); font-size: 9.5px; color: #6a6964; }
.pd-sign { margin-top: 18px !important; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.14); font-weight: 500; }
.pd-foot { margin-top: 22px; font-size: 10px; color: #6a6964; font-variant-numeric: tabular-nums; }

/* inbox */
.in-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); position: relative; }
.in-row.unread::before { content: ""; position: absolute; left: 6px; top: 26px; width: 6px; height: 6px; background: var(--fg); }
.in-main { flex: 1; display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px 14px var(--gutter); min-width: 0; }
.in-text { display: block; font-size: 14.5px; line-height: 1.4; color: var(--fg-2); }
.in-text b { color: var(--fg); }
.in-done { width: 56px; display: grid; place-items: center; color: var(--muted); border-left: 1px solid var(--line); }
.push-off .chip { flex: none; }

/* me */
.me-card { display: flex; gap: 14px; align-items: center; padding: 6px var(--gutter) 18px; }
.me-card b { font-size: 18px; font-weight: 400; display: block; }
.group { border-top: 1px solid var(--line); margin-bottom: 18px; }
.danger-row b { color: var(--stop); }
.toggle { cursor: pointer; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--chip); transition: background var(--t-fast); }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: var(--muted); transition: transform var(--t-base) var(--ease-out), background var(--t-fast); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--primary-fg); }
.ts input { flex: 1; accent-color: var(--fg); }
.ts .lg { font-size: 22px; }
.stamp-preview { position: relative; margin: 0 var(--gutter) 6px; height: 220px; overflow: hidden; }
.stamp-preview img { width: 100%; height: 100%; object-fit: cover; }
.stamp-plate { position: absolute; left: 10px; bottom: 10px; right: 10px; padding: 8px 10px; background: rgba(25,25,25,.78); color: #f5f5f5; font: 400 11px/1.45 var(--mono); display: grid; }
.stamp-plate b { font: 500 12px/1.4 var(--sans); }

/* toast */
#toastLayer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1200; pointer-events: none; }
.toast { position: absolute; left: 14px; right: 14px; bottom: calc(var(--tab-h) + 10px); min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: #f4f2ee; color: #191919; font-size: 14px; line-height: 1.35; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: auto; }
.toast.over-sync { bottom: calc(var(--tab-h) + 50px); }
.toast.over-cover { bottom: 200px; }
.toast span { flex: 1; }
.toast button { min-height: 44px; padding: 0 12px; font-weight: 600; color: #191919 !important; }
.toast .ic { width: 18px; height: 18px; }
.haptic-tag { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); z-index: 1300; background: var(--next); color: #191919; font: 500 11px/1 var(--mono); padding: 5px 8px; }

/* sheets */
#sheetLayer, #coverLayer, #alertLayer { position: absolute; inset: 0; pointer-events: none; z-index: 1000; }
#coverLayer { z-index: 1050; }
#alertLayer { z-index: 1150; }
.sheet-host, .alert-host { position: absolute; inset: 0; pointer-events: auto; }
.sheet-scrim, .alert-host .scrim { position: absolute; inset: 0; background: var(--scrim); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); color: var(--fg); border-radius: 12px 12px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow); padding-bottom: 34px; max-height: calc(100% - 64px); }
.sheet.detent-large { top: 64px; }
.sheet.detent-medium { max-height: 62%; }
.sheet.detent-small { max-height: 340px; }
.sheet-grab { flex: none; height: 28px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-grab i { width: 36px; height: 5px; background: var(--line-2); border-radius: 3px; }
.sh-head { display: flex; align-items: flex-start; gap: 10px; padding: 0 var(--gutter) 10px; }
.sh-head h2 { margin: 0; font-weight: 400; font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }
.sh-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.sh-body { flex: 1; overflow-y: auto; scrollbar-width: none; }
.sh-foot { flex: none; display: flex; gap: 6px; padding: 10px var(--gutter) 0; }
.sh-foot .btn { flex: 1; }
.sheet .row { min-height: 56px; }
.sheet .row:active:not(.static) { background: var(--surface-2); }
.sheet .chip { background: var(--surface-2); }
.sheet .chip.on, .sheet .chip.primary { background: var(--primary); color: var(--primary-fg); }

.field { display: grid; gap: 6px; padding: 8px var(--gutter); }
.field > span { font-size: 12px; color: var(--muted); }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--fg); font: 400 16px/1.4 var(--sans); padding: 12px; outline: none; border-radius: 0; }
.field input:focus, .field textarea:focus { border-color: var(--fg); }
.field textarea { min-height: 84px; resize: none; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px var(--gutter) 8px; }
.danger-txt { color: var(--stop) !important; }
.check-list { list-style: none; margin: 0; padding: 0 var(--gutter); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.check-list li .ic { width: 18px; height: 18px; margin-top: 1px; }
.check-list li.bad .ic { color: var(--fg); }
.check-list li.good { color: var(--fg-2); }

/* iOS system alert (OS chrome, so it follows iOS styling) */
.ios-alert { position: absolute; top: 50%; left: 50%; width: 270px; margin: -90px 0 0 -135px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 14px; overflow: hidden; text-align: center; font-family: -apple-system, "SF Pro Text", var(--sans); }
.ia-t { margin: 18px 16px 2px; font-weight: 600; font-size: 17px; }
.ia-b { margin: 0 16px 16px; font-size: 13px; line-height: 1.35; }
.ia-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.ia-btns button { min-height: 44px; text-align: center !important; color: #0a84ff !important; font-size: 17px; }
.ia-btns button + button { border-left: 1px solid var(--line-2); }
.ia-btns button.bold { font-weight: 600; }

/* sun mode */
.sun { --muted: #d0d0ce; --fg-2: #e6e6e4; --line: rgba(255,255,255,.22); }
.sun #app, .sun { font-weight: 500; }
.sun .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,0) 40%, rgba(0,0,0,0) 50%, rgba(0,0,0,.9)); }

@media (prefers-reduced-motion: reduce) { .pulse, .skel { animation: none; } }

/* ================= camera (always dark) ================= */
.cover { position: absolute; inset: 0; pointer-events: auto; background: #0b0b0b; color: #f5f5f5; overflow: hidden; }
.cam { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0b0b0b; }
.cam-top { flex: none; display: flex; align-items: center; gap: 4px; padding: calc(var(--status-h) - 2px) 6px 4px; }
.cam-site { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; font-size: 15px; font-weight: 500; }
.cam-site span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cam-site .ic { width: 16px; height: 16px; }
.cam-done { min-width: 64px; min-height: 44px; padding: 0 12px; background: #f5f5f5 !important; color: #111 !important; font-weight: 500; text-align: center !important; }
.cam .icon-btn.on { color: var(--next); }
.vf { position: relative; flex: none; height: 452px; overflow: hidden; background: #000; cursor: crosshair; touch-action: pan-y; }
.vf-img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none !important; object-fit: cover; animation: vf-drift 9s ease-in-out infinite alternate; user-select: none; }
@keyframes vf-drift { from { transform: translate(-1.2%, -0.6%) scale(1.01) rotate(-0.25deg); } to { transform: translate(1%, 0.8%) scale(1.03) rotate(0.2deg); } }
.vf-grid { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 33.1%, rgba(255,255,255,.35) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.35) 66.7%, transparent 66.9%), linear-gradient(180deg, transparent 33.1%, rgba(255,255,255,.35) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.35) 66.7%, transparent 66.9%); pointer-events: none; }
.vf-stamp { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 9px; background: rgba(25,25,25,.66); display: grid; gap: 1px; font: 400 11px/1.4 var(--mono); font-variant-numeric: tabular-nums; pointer-events: none; }
.vf-stamp b { font: 500 11.5px/1.35 var(--sans); }
.vf-focus { position: absolute; width: 64px; height: 64px; border: 1.5px solid var(--next); transform: translate(-50%, -50%); pointer-events: none; }
.vf-flash { position: absolute; inset: 0; background: #fff; pointer-events: none; }
.vf-off { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: rgba(25,25,25,.7); font-size: 12px; }
.vf-off .ic { width: 15px; height: 15px; }
.slots { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 12px 14px 6px; scrollbar-width: none; scroll-padding: 0 40%; }
.slots::-webkit-scrollbar { display: none; }
.slot { flex: none; width: 64px; display: grid; justify-items: center; gap: 5px; text-align: center !important; }
.slot-img { position: relative; width: 64px; height: 64px; display: grid; place-items: center; outline: 1px dashed rgba(255,255,255,.32); outline-offset: -1px; font: 500 13px/1 var(--mono); color: #8a8a87; transition: outline-color var(--t-base); }
.slot-img .ic { width: 20px; height: 20px; color: #f5f5f5; }
.slot.filled .slot-img { outline: 0; }
.slot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .tick { position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; background: #fff; color: #111; display: grid; place-items: center; }
.slot .tick .ic { width: 12px; height: 12px; stroke-width: 2.6; color: #111; }
.slot.next .slot-img { outline: 2px solid var(--next); outline-offset: -2px; color: #f5f5f5; }
.slot-l { font-size: 10.5px; line-height: 1.15; color: #9a9a97; max-width: 64px; }
.slot.filled .slot-l, .slot.next .slot-l { color: #f5f5f5; }
.cam-copy { flex: none; padding: 6px 22px 0; text-align: center; min-height: 64px; }
.cc-t { margin: 0; font-size: 15px; font-weight: 500; }
.cc-h { margin: 3px auto 0; font-size: 13px; color: #a3a3a0; line-height: 1.35; max-width: 32ch; }
.cam-ctl { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 28px 26px; }
.cam-last { justify-self: start; width: 52px; height: 52px; position: relative; display: grid; place-items: center; background: #1f1f1f; }
.cam-last img { width: 100%; height: 100%; object-fit: cover; }
.cam-last i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; background: #f5f5f5; color: #111; font: 600 11px/20px var(--sans); font-style: normal; text-align: center; }
.cam-last:disabled { opacity: .5; }
.shutter { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 3px #f5f5f5; transition: box-shadow var(--t-base); }
.shutter i { width: 62px; height: 62px; border-radius: 50%; background: #f5f5f5; transition: transform var(--t-fast) var(--ease-out); }
.shutter:active i { transform: scale(.92); }
.shutter.due { box-shadow: inset 0 0 0 3px var(--next); }
.cam-mode { justify-self: end; display: grid; justify-items: center; gap: 3px; font-size: 11px; color: #c9c9c7; min-width: 52px; min-height: 52px; align-content: center; text-align: center !important; }
.fly { position: absolute; z-index: 1400; object-fit: cover; pointer-events: none; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.cam-off { position: absolute; inset: 0; display: grid; place-items: center; background: #0b0b0b; }
.cam-x { position: absolute; top: calc(var(--status-h) - 2px); left: 6px; }
.co-body { padding: 0 34px; display: grid; gap: 10px; justify-items: start; }
.co-body .ic { width: 34px; height: 34px; }
.co-body h2 { margin: 6px 0 0; font-weight: 400; font-size: 22px; }
.co-body p { margin: 0 0 8px; color: #a3a3a0; font-size: 14px; line-height: 1.45; }
.co-body .btn { width: 100%; background: #303030; color: #f5f5f5; }
.co-body .btn.primary { background: #f5f5f5; color: #111; }

/* capture review sheet (inside the camera cover) */
.rv-img { position: relative; margin: 0 var(--gutter) 10px; height: 290px; background: #000; }
.rv-img img { width: 100%; height: 100%; object-fit: cover; }
.rv-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.rv-dots button { width: 8px; height: 8px; background: rgba(255,255,255,.45) !important; }
.rv-dots button.on { background: #fff !important; }

/* mark-up */
.annot { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0b0b0b; }
.an-top { flex: none; display: flex; align-items: center; gap: 4px; padding: calc(var(--status-h) - 2px) 12px 6px 4px; }
.an-top .chip.primary { background: #f5f5f5; color: #111; }
.an-stage { position: relative; flex: none; height: 430px; overflow: hidden; touch-action: none; cursor: crosshair; }
.an-stage img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.an-legend { flex: 1; margin: 0; padding: 10px var(--gutter); list-style: none; display: grid; align-content: start; gap: 6px; overflow-y: auto; }
.an-legend li { display: flex; gap: 10px; align-items: center; }
.an-legend li.hint { color: #9a9a97; font-size: 13px; line-height: 1.4; }
.an-legend i { flex: none; width: 24px; height: 24px; display: grid; place-items: center; background: #fff; color: #111; font: 600 12px/1 var(--sans); font-style: normal; }
.an-legend input { flex: 1; background: #1c1c1c; border: 0; color: #f5f5f5; font: inherit; font-size: 15px; padding: 10px; outline: none; }
.an-colors { flex: none; display: flex; gap: 10px; justify-content: center; padding: 4px 0 8px; }
.an-colors button { width: 30px; height: 30px; background: var(--c) !important; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.an-colors button.on { box-shadow: 0 0 0 2px #0b0b0b, 0 0 0 4px #f5f5f5; }
.an-tools { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 6px 30px; border-top: 1px solid rgba(255,255,255,.08); }
.an-tools button { display: grid; justify-items: center; gap: 4px; min-height: 60px; padding-top: 8px; font-size: 11px; color: #8a8a87; text-align: center !important; }
.an-tools button.on { color: #f5f5f5; box-shadow: inset 0 2px 0 #f5f5f5; }

/* new site */
.cover-newproject { background: var(--bg); color: var(--fg); }
.np { position: absolute; inset: 0; display: flex; flex-direction: column; }
.np-top { flex: none; display: flex; justify-content: space-between; align-items: center; padding: calc(var(--status-h) - 2px) 6px 0; }
.np-t { font-weight: 500; }
.np-prog { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px var(--gutter) 0; }
.np-prog i { height: 2px; background: var(--line-2); transition: background var(--t-base); }
.np-prog i.on { background: var(--fg); }
.np-step { margin: 10px var(--gutter) 0; font-size: 12px; color: var(--muted); }
.np-body { flex: 1; overflow-y: auto; padding-bottom: 24px; scrollbar-width: none; }
.np-h { margin: 6px var(--gutter) 6px; font-weight: 300; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.np-s { margin: 0 var(--gutter) 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.np-map { position: relative; margin: 12px var(--gutter); height: 150px; background: var(--surface); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 22px 22px; }
.np-map i { position: absolute; left: 50%; top: 45%; width: 14px; height: 14px; background: var(--next); box-shadow: 0 0 0 3px var(--bg); transform: translate(-50%, -50%); }
.np-map span { position: absolute; left: 10px; bottom: 10px; font-size: 12px; background: var(--bg); padding: 4px 6px; }
.np-foot { flex: none; display: flex; gap: 6px; padding: 10px var(--gutter) 34px; border-top: 1px solid var(--line); }
.np-stages { margin: 0 var(--gutter); padding: 0; list-style: none; }
.np-stages li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 15px; }
.np-stages li span { font: 500 11px/1 var(--mono); color: var(--muted); width: 18px; }
.np-stages li small { margin-left: auto; }
.svc .radio { width: 20px; height: 20px; flex: none; box-shadow: inset 0 0 0 1.5px var(--faint); display: grid; place-items: center; }
.svc.on .radio { box-shadow: inset 0 0 0 1.5px var(--fg); }
.svc.on .radio::after { content: ""; width: 10px; height: 10px; background: var(--fg); }
.checkbox { width: 24px; height: 24px; flex: none; box-shadow: inset 0 0 0 1.5px var(--faint); display: grid; place-items: center; color: transparent; }
.checkbox.on { background: var(--fg); color: var(--bg); box-shadow: none; }
.checkbox .ic { width: 16px; height: 16px; stroke-width: 2.2; }

/* misc sheets */
.sheet-host[data-detent="auto"] .sheet { max-height: 70%; }
.link-card { margin: 4px var(--gutter) 12px; padding: 12px; background: var(--bg); display: flex; align-items: center; gap: 10px; font: 400 12.5px/1.3 var(--mono); }
.link-card span { flex: 1; word-break: break-all; }
.qr { width: 132px; margin: 4px auto 14px; display: grid; grid-template-columns: repeat(11, 1fr); gap: 1px; padding: 8px; background: #fff; }
.qr i { aspect-ratio: 1; }
.qr i.on { background: #111; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 var(--gutter) 12px; }
.email-prev { margin: 0 var(--gutter) 10px; padding: 12px; background: var(--bg); font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.email-prev p { margin: 0; }
.ep-s { font-weight: 500; color: var(--fg); margin-bottom: 6px !important; }
.composer { flex: none; display: flex; gap: 6px; align-items: center; padding: 10px var(--gutter) 0; border-top: 1px solid var(--line); }
.composer input { flex: 1; min-height: 48px; background: var(--bg); border: 1px solid var(--line-2); color: var(--fg); font: inherit; padding: 0 12px; outline: none; }
.cm-list { padding: 0 var(--gutter); }
.cm { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cm-h { margin: 0; display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.cm-h span { font-size: 12px; color: var(--muted); }
.cm-t { margin: 3px 0 0; font-size: 15px; line-height: 1.45; }
.rd-big { margin: 14px var(--gutter) 2px; font-weight: 300; font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.rd-big span { font-size: 18px; color: var(--muted); margin-left: 8px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px var(--gutter); }
.keypad button { min-height: 56px; background: var(--surface-2) !important; font-size: 22px; text-align: center !important; }
.keypad button:active { background: var(--chip-hover) !important; }
.time-now { padding: 4px var(--gutter) 12px; }
.tn-site { margin: 0; font-size: 15px; }
.timer.big { font-size: 44px; font-weight: 300; margin: 6px 0; color: var(--next-ink); }
.sh-foot.inline { padding: 0 var(--gutter) 6px; }
.perm { padding: 10px var(--gutter) 6px; display: grid; gap: 8px; }
.perm .ic { width: 30px; height: 30px; }
.perm h2 { margin: 4px 0 0; font-weight: 400; font-size: 22px; }
.perm p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.indet { width: 40% !important; animation: indet 1.1s var(--ease-io) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.cover .toast, .toast.over-cover { bottom: 196px; }
.ck-item.compact { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px var(--gutter); }
.ck-t1 { flex: 1; min-width: 0; font-size: 14.5px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-ans { flex: none; font-size: 13px; color: var(--muted); padding: 3px 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.link { color: var(--fg-2) !important; text-decoration: underline; text-underline-offset: 2px; font-size: 12px; }
.ck-scroll { scroll-behavior: auto; }
.sheet-large #nav > .scr { transform: scale(0.94) translateY(6px); border-radius: 12px; }
#app.sheet-large { background: #000; }

/* ================= round 2 ================= */
.glove .chip, .glove .stage-chip { min-height: 48px; }
.btn, .chip { white-space: nowrap; }
#app p, #app small { text-wrap: pretty; }
/* yellow only for the next step */
.timer, .timer.sm, .timer.big { color: var(--fg); }
.hero .timer { color: #f5f5f5; }
.pulse { background: currentColor; }
.plate { background: rgba(25,25,25,.72); padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.muted-plate { color: #c9c9c7; font-size: 14px; }
.map-pin.cur::before { background: var(--fg); width: 16px; height: 16px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--fg); }
.np-map i { background: var(--fg); }
.cam .icon-btn.on { color: #f5f5f5; }
.vf-focus { border-color: #f5f5f5; }
.shutter.due { box-shadow: inset 0 0 0 3px #f5f5f5; }
@keyframes flash { 0%, 30% { background: var(--surface-2); } 100% { background: transparent; } }
:root[data-theme="light"] .sq.next { width: 10px; height: 10px; box-shadow: inset 0 0 0 1px #191919; }
:root[data-theme="light"] .sl-tile.next { outline: 3px solid var(--next); box-shadow: 0 0 0 1px #191919; }
:root[data-theme="light"] .camkey.due::after { box-shadow: 0 0 0 1px #191919; }
/* stamp text: Switzer with tabular figures, per the brand */
.vf-stamp, .stamp-strip, .stamp-plate, .cmp-l small, .link-card { font-family: var(--sans) !important; font-variant-numeric: tabular-nums; font-size: 12px !important; }
.stamp-strip { display: grid; gap: 1px; }
.stamp-strip b { font-weight: 500; color: #f5f5f5; }
.link-card span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.statusbar.on-paper { color: #191919; }
/* full-screen viewer: no tab bar, actions on the safe area */
.dark-scr .v-actions { padding-bottom: 34px; }
.dark-scr .bottom-bar { bottom: 0; padding-bottom: 40px; }
/* square progress meter */
.meter { width: 30px; height: 36px; flex: none; position: relative; box-shadow: inset 0 0 0 1px var(--line-2); }
.meter i { position: absolute; left: 3px; right: 3px; bottom: 3px; max-height: calc(100% - 6px); background: var(--fg); }
/* hold line, unlocked, photo-in */
.hold-line { display: flex; align-items: center; gap: 10px; width: calc(100% - 2 * var(--gutter)); margin: 10px var(--gutter) 0; padding: 10px 12px; background: var(--surface); font-size: 13.5px; color: var(--fg-2); line-height: 1.35; text-align: left; }
.hold-line b { color: var(--fg); }
.hold-line .ic { width: 18px; height: 18px; }
.unlocked, .photo-in { display: flex; gap: 12px; align-items: center; margin: 6px var(--gutter); padding: 14px; background: var(--surface); }
.unlocked p, .photo-in p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.photo-in { margin-top: 12px; }
.ck-hint { margin: 0 0 0 50px; font-size: 13px; color: var(--fg); }
.ck-note.ok { box-shadow: inset 2px 0 0 var(--fg); color: var(--fg); }
.signed p + p { margin-top: 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px var(--gutter) 6px; }
.badge-line { font-size: 12px; padding: 4px 8px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); }
.wb-2 { margin-top: -4px !important; }
.warnblock .chip.inv .ic { width: 16px; height: 16px; }
.caveat { margin: 10px var(--gutter) 0; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: var(--fg); box-shadow: inset 2px 0 0 var(--fg); background: var(--surface); }
.rules { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.rules code { font: 500 11px/1 var(--sans); padding: 2px 4px; margin-right: 4px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); }
.rd-v { display: grid; justify-items: end; gap: 2px; }
.rd-v small { font-size: 11px !important; color: inherit !important; opacity: .8; }
.av.guest { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.av.guest .ic { width: 18px; height: 18px; }
.dot-alert { width: 8px; height: 8px; background: var(--stop); flex: none; }
.btn.icon-top { flex-direction: column; gap: 2px; font-size: 12px; min-width: 76px; flex: 0 0 auto !important; }
.btn.icon-top .ic { width: 20px; height: 20px; }
/* single choice: trailing tick (iOS); multi choice: the tick square */
.row.pick .pick-tick { width: 22px; color: transparent; }
.row.pick.on .pick-tick { color: var(--fg); }
.row.pick.on b { color: var(--fg); }
/* face id */
.faceid { margin: 14px var(--gutter); padding: 16px; background: var(--bg); display: flex; gap: 14px; align-items: center; }
.faceid .ic { width: 40px; height: 40px; flex: none; }
.faceid p { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.45; }
.faceid.scanning .ic { animation: scan 1s var(--ease-io) infinite alternate; }
@keyframes scan { from { opacity: .35; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.check-list li button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; min-height: 32px; }
.check-list li button > .ic:last-child { margin-left: auto; color: var(--faint); }
.check-list li.bad { color: var(--fg); }
/* report additions */
.pd-rev { margin-left: auto; font-size: 11px; color: #6a6964; padding: 3px 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.pd-checks td:first-child { width: 30px; color: #6a6964; }
.pd-checks td:nth-child(3) { white-space: nowrap; }
.pd-checks td:last-child { color: #6a6964; }
.pd-note, .pd-dist { font-size: 11.5px !important; color: #6a6964 !important; }
.pd-release { margin-top: 12px; padding: 12px; background: #191919; color: #f5f5f5; display: grid; gap: 3px; font-size: 12.5px; }
.pd-release span { color: #c9c9c7; }
/* reading sheet: keypad never under the footer */
.rd-body { padding-bottom: 12px; }
.sheet-reading .keypad button { min-height: 52px; }
/* inbox rows: one grid, gutter on both sides */
.in-row { display: grid; grid-template-columns: 1fr 56px; }
.in-row.no-done { grid-template-columns: 1fr; }
.in-row.no-done .in-main { padding-right: var(--gutter); }
.in-row.unread::before { left: 8px; }
/* map fills the space */
.map { margin: 0; height: 548px; }
/* slot strip edge fade */
.slots { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); padding-left: 18px; }
.slot { width: 72px; } .slot-img { width: 72px; height: 72px; } .slot-l { max-width: 72px; }
.cam-last { width: 56px; height: 56px; }
.cam-done { justify-self: end; min-height: 52px !important; }
.sheet-grab { height: 34px; }
.an-colors button { width: 40px; height: 40px; }
.v-nav { width: 48px; }
.stage-row { scroll-padding-inline: var(--gutter); }
.qr { width: 150px; padding: 0; background: none; display: block; }
.qr svg { width: 150px; height: 150px; display: block; }
.ck-item.compact { animation: settle 220ms var(--ease-out); }
@keyframes settle { from { opacity: .5; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ck-item.compact, .faceid.scanning .ic { animation: none; } }
.meter { width: 6px; height: 36px; box-shadow: none; background: var(--line-2); }
.meter i { left: 0; right: 0; bottom: 0; max-height: 100%; }
/* the viewer and compare screens are always dark, whatever the theme */
.scr.dark-scr { --fg: #f5f5f5; --fg-2: #c9c9c7; --muted: #b3b3b3; --faint: #8c8c8c; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.18); --surface: #222222; --surface-2: #2a2a2a; --chip: #303030; --primary: #f5f5f5; --primary-fg: #111111; --bg: #141414; }
.dark-scr .v-snag { background: #222; }
.dark-scr small { color: #b3b3b3 !important; }

/* round 2b */
.next-row { box-shadow: inset 4px 0 0 var(--next); }
.next-row .sq.next { display: none; }
.ck-item.next { box-shadow: inset 4px 0 0 var(--next); }
.ck-dot.nx { box-shadow: inset 0 0 0 1px var(--fg); }
.next-fill, .chip.next-fill, .cam-done.next-fill { background: var(--next) !important; color: #191919 !important; }
.hero-cam { background: rgba(25,25,25,.55); color: #f5f5f5; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* selection is an outline; a solid block is an action */
.chip.on, .sheet .chip.on, .stage-chip.on { background: transparent !important; color: var(--fg) !important; box-shadow: inset 0 0 0 1.5px var(--fg); }
.dark-scr .chip.on { background: transparent !important; color: #f5f5f5 !important; box-shadow: inset 0 0 0 1.5px #f5f5f5; }
.grid { margin: 0 var(--gutter); }
.nb-btn.bold { font-weight: 600; color: #f5f5f5; }
.switch i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.switch i::after { background: var(--faint); }
.switch input:checked + i { background: var(--fg); box-shadow: none; }
.switch input:checked + i::after { background: var(--bg); }
.sh-body { min-height: 0; }
.sheet-reading .keypad button { min-height: 46px; font-size: 20px; }
.sheet-reading .rd-big { margin-top: 6px; font-size: 44px; }
.sheet-reading .chips-row { padding: 2px var(--gutter) 6px; }
.ev small { font-size: 11px !important; color: var(--fg-2) !important; }
.reduce *, .reduce *::before, .reduce *::after { animation: none !important; }

.sec-h { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.tile.wide { grid-column: span 2; }
.pd-checks small { display: block; font-size: 10px !important; color: #6a6964 !important; margin-top: 2px; }
.pd-void { color: #191919 !important; font-weight: 500; }

/* ================= round 3 components ================= */
.seg.five button { font-size: 13px; }
.seg.slim { margin-top: 0; margin-bottom: 10px; }
.chips-row.labels .chip { min-height: 36px; font-size: 13px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13.5px; color: var(--fg-2); }
.link-btn .ic { width: 16px; height: 16px; }
.photo-bar { margin-top: 6px; }
.act-tools, .in-tools { display: flex; gap: 14px; padding: 0 var(--gutter) 8px 68px; }
.in-tools { grid-column: 1 / -1; }
.in-reply { grid-column: 1 / -1; padding-bottom: 10px; }
.doc-row .doc-ic { width: 36px; height: 36px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.doc-row .doc-ic .ic { width: 18px; height: 18px; }
.ios-picker .ip-top { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 8px; }
.row.picked b { color: var(--fg); }
.dwg { margin: 6px 0; background: #fbfaf6; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.dwg-svg { width: 100%; height: auto; display: block; }
.dwg-cap { margin: 8px 4px; font-size: 12px; color: #6a6964; }
.pdf { display: grid; gap: 10px; }
.pdf-page { background: #fbfaf6; padding: 22px 20px; aspect-ratio: 1 / 1.3; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: grid; align-content: start; gap: 9px; position: relative; }
.pdf-page i { height: 6px; background: #dcd9d2; display: block; }
.pdf-h { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: #191919; }
.pdf-stamp { position: absolute; right: 16px; top: 18px; font-size: 10px; padding: 3px 6px; box-shadow: inset 0 0 0 1px #191919; color: #191919; }
.note-doc { background: #fbfaf6; padding: 20px 18px; color: #191919; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.nb-text { font-size: 15px; line-height: 1.55; margin: 0 0 12px; outline: none; padding: 4px; }
.nb-text:focus { box-shadow: inset 0 0 0 1px #191919; }
.nb-photo { margin: 0 0 12px; } .nb-photo img { width: 100%; } .nb-photo figcaption { font-size: 11px; color: #6a6964; margin-top: 4px; }
.nb-add { display: flex; flex-wrap: wrap; gap: 6px; }
.paper .chip { background: #e4e2dc; color: #191919; }
.doc-meta { display: grid; gap: 2px; margin: 12px 4px; font-size: 12px; color: #6a6964; }
.ios-share .is-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 6px var(--gutter) 14px; }
.ios-share .is-apps button { display: grid; justify-items: center; gap: 6px; font-size: 11px; text-align: center !important; }
.ios-share .is-apps span { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; }
.thread .cm { padding: 12px var(--gutter); }
.thread .cm.mine { background: var(--surface); }
.att { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; max-width: 100%; }
.att img { width: 36px; height: 36px; object-fit: cover; }
.att .ic { width: 16px; height: 16px; }
.att.pending { margin: 0; }
.thread-composer { position: absolute; left: 0; right: 0; bottom: var(--tab-h); background: var(--bg); padding: 10px var(--gutter); flex-wrap: wrap; }
.row.todo { gap: 12px; }
.row.todo.done .todo-t b { text-decoration: line-through; color: var(--muted); }
.todo-t { text-align: left; }
.checkbox { cursor: pointer; }
.tpl-list { margin: 0; padding: 0 var(--gutter); list-style: none; counter-reset: t; }
.tpl-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.tpl-list small { flex: none; }
.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-left: 50px; }
.chips-wrap.pad0 { padding: 0 0 0 50px; }
.ck-item.draft { background: var(--surface); }
.pickgrid .cell.picked img { opacity: .55; }
.pickgrid .cell.picked { box-shadow: inset 0 0 0 2px var(--fg); }
.pick-n { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; display: grid; place-items: center; background: var(--fg); color: var(--bg); font: 600 12px/1 var(--sans); font-style: normal; }
.cell:not(.picked) .pick-n { background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1.5px #fff; }
.pick-n .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.imp-meta { display: grid; gap: 2px; padding: 8px var(--gutter); font-size: 12px; color: var(--muted); }
.pd-grid.l1 { grid-template-columns: 1fr; } .pd-grid.l4 { grid-template-columns: 1fr 1fr; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; padding: 4px var(--gutter); font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.te-grid { display: grid; grid-template-columns: 1fr 1fr; }
.field input[type="time"] { min-height: 48px; }
.person-btn { text-align: left; }
.icon-btn.star { color: var(--faint); } .icon-btn.star.on { color: var(--fg); } .icon-btn.star.on .ic { fill: currentColor; }
button.me-card { width: 100%; text-align: left; }
/* camera modes */
.cam-modes { flex: none; display: flex; justify-content: center; gap: 2px; padding: 4px 10px 0; overflow-x: auto; scrollbar-width: none; }
.cam-modes button { min-height: 32px; padding: 0 10px; font-size: 12.5px; color: #8c8c8c; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.cam-modes button.on { color: #f5f5f5; box-shadow: inset 0 -2px 0 #f5f5f5; }
.cam-tools { position: absolute; right: 10px; top: calc(var(--status-h) + 66px); display: grid; gap: 6px; z-index: 2; }
.lens { min-width: 40px; height: 40px; border-radius: 50%; background: rgba(25,25,25,.6); color: #f5f5f5; font-size: 12px; display: grid; place-items: center; text-align: center !important; }
.lens.on { background: #f5f5f5; color: #111; }
.lens.wide { border-radius: 20px; padding: 0 10px; }
.lens .ic { width: 18px; height: 18px; }
.vf { height: 420px; }
.vf-img.lens-2 { transform: scale(1.7); animation: none; }
.vf-img.lens-05 { transform: scale(.94); animation: none; }
.vf-img.front { filter: brightness(.9) saturate(.9); transform: scaleX(-1); }
.vf-ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; mix-blend-mode: screen; pointer-events: none; }
.vf-chip { position: absolute; left: 10px; right: 64px; top: 10px; background: rgba(25,25,25,.72); padding: 6px 9px; font-size: 12px; line-height: 1.35; }
.vf-doc { position: absolute; left: 14%; right: 14%; top: 16%; bottom: 22%; box-shadow: 0 0 0 2px #f5f5f5, 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.vf-measure { position: absolute; inset: 0; cursor: crosshair; }
.vf-measure .mp { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #f5f5f5; box-shadow: 0 0 0 3px rgba(0,0,0,.4); transform: translate(-50%, -50%); }
.vf-measure svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vf-measure line { stroke: #f5f5f5; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 6 4; }
.m-len { position: absolute; transform: translate(-50%, -140%); background: #f5f5f5; color: #111; font: 600 13px/1 var(--sans); padding: 5px 8px; font-variant-numeric: tabular-nums; }
.rec { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: rgba(25,25,25,.72); padding: 5px 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff6257; animation: pulse 1s infinite; }
.rec-tr { position: absolute; left: 10px; right: 10px; bottom: 54px; margin: 0; background: rgba(25,25,25,.72); padding: 8px 10px; font-size: 13px; line-height: 1.4; }
.shutter.rec-btn i { background: #ff6257; transition: border-radius var(--t-base), transform var(--t-base); }
.shutter.rec-btn.on i { border-radius: 6px; transform: scale(.55); }
.an-crop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 12px 8px; }
.an-crop input { flex: 1; min-width: 120px; accent-color: #f5f5f5; }
.an-stage.cropping img { transform: rotate(var(--rot)); transition: transform var(--t-base); }
.crop-box { position: absolute; inset: 8%; box-shadow: 0 0 0 2px #f5f5f5, 0 0 0 999px rgba(0,0,0,.45); z-index: 2; pointer-events: none; }
.crop-box.r-1-1 { inset: 8% 18%; } .crop-box.r-16-9 { inset: 22% 6%; } .crop-box.r-4-3 { inset: 12% 8%; }
.an-tools { grid-template-columns: repeat(6, 1fr); }

.form-err { margin: 6px var(--gutter) 0; font-size: 13.5px; color: var(--fg); padding: 8px 10px; box-shadow: inset 2px 0 0 var(--fg); background: var(--surface-2); }
.glove .cam-modes button { min-height: 48px; }
.glove .lens { min-width: 52px; height: 52px; }
.rv-dots button { width: 44px !important; height: 44px !important; background: none !important; display: grid; place-items: center; }
.rv-dots button::after { content: ""; width: 8px; height: 8px; background: rgba(255,255,255,.45); }
.rv-dots button.on::after { background: #fff; }
.vf-img.front.lens-2 { transform: scale(-1.7, 1.7); }
.switch i { box-shadow: inset 0 0 0 1.5px var(--muted); }
.statusbar { background: linear-gradient(var(--bg) 70%, transparent); }
.statusbar.on-dark { background: none; }
.statusbar.on-paper { background: linear-gradient(#e9e7e2 70%, transparent); }

/* ---------- round 4: the right thing at the right time ---------- */
/* Today: the one next step, full width, in thumb reach */
.next-btn { display: flex; align-items: center; gap: 12px; width: calc(100% - 2 * var(--gutter)); margin: 10px var(--gutter) 6px; min-height: 68px; padding: 12px 14px 12px 16px; background: var(--next); color: #191919; text-align: left; transition: transform var(--t-fast) var(--ease-out), filter var(--t-fast); }
.next-btn b { display: block; font-size: 16px; font-weight: 500; }
.next-btn small { display: block; margin-top: 2px; font-size: 13px; color: rgba(25,25,25,.72); }
.next-btn .ic { width: 20px; height: 20px; flex: none; }
.next-btn:active { transform: scale(.985); filter: brightness(.96); }
.plate.hero-open { position: absolute; top: 12px; right: 12px; z-index: 2; color: #f5f5f5; font-size: 13.5px; }
.plate.hero-open .ic { width: 16px; height: 16px; }

/* Today: coat verdict, readable at arm's length */
.coat-tile { display: flex; gap: 12px; align-items: flex-start; margin: 6px var(--gutter); padding: 14px; background: var(--surface); box-shadow: inset 3px 0 0 var(--ok); }
.coat-tile.hold { box-shadow: inset 3px 0 0 var(--stop); }
.coat-tile > .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.coat-tile b { display: block; font-size: 15px; font-weight: 500; }
.coat-tile p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.coat-tile .chip { flex: none; align-self: center; }
.today-warn { margin-top: 10px; }
.wb-done { display: flex; align-items: center; gap: 6px; margin: 2px 0 0 !important; font-size: 13px; font-weight: 500; }
.wb-done .ic { width: 16px; height: 16px; }

/* Sites: one plain state line per site */
.state-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--fg-2); }
.state-line .ic { width: 14px; height: 14px; flex: none; }
.state-line.s-risk { color: var(--stop); }
.state-line.s-wait { color: var(--warn); }
.state-line.s-due { color: var(--fg); font-weight: 500; }
.state-line.s-ok { color: var(--muted); }

/* Owner and office Today: attention cards */
.att-card { margin: 12px var(--gutter) 0; background: var(--surface); }
.att-h { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 8px; }
.att-h b { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }
.att-card .row { padding-left: 16px; padding-right: 12px; min-height: 58px; }
.att-card .row:last-of-type { border-bottom: 0; }
.att-card .row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.att-card .foot-note { margin: 0 16px 14px; }
.att-card .see-all { margin: 4px 0 6px 16px; }
.see-all { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* Search and all photos: a site caption above each grid */
.grid-cap { margin: 14px var(--gutter) 6px; font-size: 12.5px; font-weight: 500; color: var(--fg-2); }
.grid + .see-all { margin: 4px var(--gutter) 0; }

/* Project header: people and thread */
.av-stack { display: inline-flex; }
.av-stack .av { box-shadow: 0 0 0 2px var(--bg); }
.av-stack .av + .av { margin-left: -6px; }
.icon-btn { position: relative; }
.ib-n { position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--fg); color: var(--bg); font: 600 10px/16px var(--sans); font-style: normal; text-align: center; font-variant-numeric: tabular-nums; }

/* Inbox: rows that clear on their own, replies */
.in-live { display: grid; place-items: center; padding: 0 6px; font-size: 10.5px; line-height: 1.25; text-align: center; color: var(--faint); border-left: 1px solid var(--line); }
.in-replied { grid-column: 1 / -1; margin: -4px var(--gutter) 10px 64px; font-size: 12.5px; color: var(--muted); }

/* Conditions: readings by wall and height */
.rd-loc { display: grid; gap: 2px; padding: 8px 0; min-width: 0; }
.rd-loc b { font-size: 15px; font-weight: 500; }
.rd-loc small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ch-key i.k-t { background: var(--fg); }

/* Checklist sections */
.ck-sec + .ck-sec { margin-top: 8px; }

/* Viewer: a closed snag reads as done, not as a warning */
.v-snag.closed { background: transparent !important; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.v-snag.closed > .ic { color: var(--ok); }
.v-snag small { display: block; margin-top: 2px; font-size: 12.5px; opacity: .8; }

/* Capture review: where the photo is filed */
.chip.filed { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip.filed .ic { width: 14px; height: 14px; }

/* Camera: lens pill and contextual tools live inside the viewfinder */
.cam-pill { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; background: rgba(25,25,25,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2; }
.cam-pill button { min-width: 40px; min-height: 36px; padding: 0 6px; font: 500 12.5px/1 var(--sans); color: #c9c9c7; font-variant-numeric: tabular-nums; }
.cam-pill button.on { color: #191919; background: #f5f5f5; }
.cam-ctx { position: absolute; top: 10px; right: 10px; display: grid; gap: 6px; justify-items: end; z-index: 2; }
.vf-chip ~ .cam-ctx, .vf-off ~ .cam-ctx { top: 48px; }
.cam-ctx .chip { background: rgba(25,25,25,.66); color: #f5f5f5; min-height: 36px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cam-ctx .chip.on { background: #f5f5f5 !important; color: #191919 !important; box-shadow: none; }
.cam-ctx .chip .ic { width: 15px; height: 15px; }
.glove .cam-pill button { min-width: 52px; min-height: 48px; }
.glove .cam-ctx .chip { min-height: 48px; }
.rec-time { font-variant-numeric: tabular-nums; }

/* Status bar clock */
.sb-time { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Share: per-photo choice and a third channel */
.share-btns.three { grid-template-columns: 1fr 1fr 1fr; }
.share-grid { margin: 0 var(--gutter) 6px; }
.share-grid .cell:not(.picked) img { opacity: .35; filter: grayscale(1); }
.share-grid .cell.picked img { opacity: 1; }
.share-grid .cell:not(.picked) .pick-n { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.is-acts { margin-top: 8px; border-top: 1px solid var(--line); }

/* Guest page: Ines's link, a document with one decision at the bottom */
.guest-page { position: absolute; inset: 0; display: flex; flex-direction: column; background: #e9e7e1; color: #191919; }
.guest-page .scroll { padding-top: 0; }
.g-top { flex: none; display: flex; justify-content: center; align-items: flex-end; height: calc(var(--status-h) + 34px); padding-bottom: 8px; background: #f7f6f2; border-bottom: 1px solid rgba(0,0,0,.1); }
.g-url { min-width: 70%; padding: 7px 12px; background: rgba(0,0,0,.06); font-size: 13px; text-align: center; color: #3b3b39; }
.guest-page .paper-doc { margin: 12px 10px 0; }
.pd-eyebrow { margin: 0 0 6px !important; font-size: 12px !important; letter-spacing: .04em; text-transform: uppercase; color: #6a6964 !important; }
.g-check { padding: 12px 0; border-top: 1px solid rgba(0,0,0,.1); }
.g-c-h { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: baseline; margin: 0 !important; }
.g-c-h span { font: 500 11px/1 var(--mono); color: #6a6964; }
.g-c-h b { font-weight: 500; font-size: 13.5px; line-height: 1.35; }
.g-c-h em { font-style: normal; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.g-note { margin: 6px 0 0 38px !important; padding-left: 10px; border-left: 2px solid rgba(0,0,0,.15); font-size: 12.5px !important; color: #3b3b39 !important; }
.g-ph { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0 38px; }
.g-ph figure { margin: 0; }
.g-ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-ph figcaption { margin-top: 3px; font-size: 10.5px; line-height: 1.3; color: #6a6964; font-variant-numeric: tabular-nums; }
.g-sent { margin-top: 14px !important; padding: 10px 12px; background: rgba(0,0,0,.05); }
.g-bar { flex: none; display: flex; gap: 6px; padding: 10px 12px calc(10px + 22px); background: #f7f6f2; border-top: 1px solid rgba(0,0,0,.1); }
.g-bar .btn { min-height: 52px; }
.g-bar .btn:not(.primary) { background: transparent; color: #191919; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }

/* Sheets: room for the last row above the home indicator */
.sheet-host { z-index: 5; }
.sh-body > :last-child { margin-bottom: 18px; }
/* camera shape from Settings: the frame shows what will be kept */
.vf.r-169::after, .vf.r-11::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.vf.r-11::after { box-shadow: inset 0 0 0 0 transparent, inset 0 60px 0 rgba(0,0,0,.55), inset 0 -60px 0 rgba(0,0,0,.55); }
.vf.r-169::after { box-shadow: inset 70px 0 0 rgba(0,0,0,.55), inset -70px 0 0 rgba(0,0,0,.55); }
.rd-meter { margin: 0 var(--gutter) 6px; }
.np-ready { list-style: none; margin: 0 var(--gutter); padding: 0; display: grid; gap: 8px; }
.np-ready li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--fg-2); }
.np-ready .ic { width: 16px; height: 16px; color: var(--ok); flex: none; }
/* mark-up: text labels sit on the photo, hi-vis by default */
.mk-text { position: absolute; transform: translate(-50%, -50%); padding: 3px 7px; background: rgba(17,17,17,.7); color: var(--c, #ff7a1a); font: 600 13px/1.2 var(--sans); white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.mk-text[style*="#111111"] { background: rgba(255,255,255,.8); }
.an-legend i.t { background: transparent; color: #f5f5f5; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.cm-att { display: block; margin-top: 6px; width: 120px; }
.cm-att img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cm-pending { display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.cm-pending img { width: 44px; height: 44px; object-fit: cover; }

/* ---------- round 5: design review fixes (spec/reviews/round5-design.md) ---------- */
/* D2 Daylight: yellow markers get a black keyline so they survive on paper */
:root[data-theme="light"] .ck-item.next { box-shadow: inset 4px 0 0 var(--next), inset 5px 0 0 #191919; }
:root[data-theme="light"] .next-row { box-shadow: inset 4px 0 0 var(--next), inset 5px 0 0 #191919; }
:root[data-theme="light"] .sl-tile.next, :root[data-theme="light"] .slot.next .slot-img { outline: 3px solid var(--next); box-shadow: 0 0 0 1px #191919, inset 0 0 0 1px #191919; }
:root[data-theme="light"] .next-btn, :root[data-theme="light"] .next-fill { box-shadow: inset 0 0 0 1px rgba(25,25,25,.55); }
/* D3 hero: a real scrim under the site name and stage, the first thing the app shows */
.hero::after { background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.6) 28%, rgba(0,0,0,0) 48%, rgba(0,0,0,0) 55%, rgba(0,0,0,.72) 100%); }
/* D4 coat tile: copy first, action underneath, full width */
.coat-tile { flex-wrap: wrap; }
.coat-tile > .grow { flex: 1 1 0; min-width: 0; }
.coat-tile > .btn, .coat-tile > .chip { flex: 1 0 calc(100% - 32px); max-width: calc(100% - 32px); margin-left: 32px; justify-content: center; }
/* D5 composer: the input shrinks, Send stays on screen */
.composer input { min-width: 0; }
.composer > .chip, .composer > .icon-btn { flex: none; }
/* D6 camera: top-left overlays stack instead of printing over each other */
.vf-off { z-index: 3; }
.vf-off ~ .vf-chip { top: 44px; }
.rec-tr { bottom: 104px; }
/* D7 review pager: the 44px hit area never fills */
.rv-dots button.on { background: none !important; }
/* D9 section rows always keep the left gutter */
.sec-h-row > :first-child:not(.sec-h) { margin-left: var(--gutter); }
/* D13 attention cards: sentence case, the app's own scale */
.att-h b { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--fg); }
/* D14 one signal colour: state lines carry meaning by icon and weight, not red and orange */
.state-line.s-risk, .state-line.s-wait { color: var(--fg-2); }
.state-line.s-risk { font-weight: 500; color: var(--fg); }
.coat-tile, .coat-tile.hold { box-shadow: inset 0 0 0 1px var(--line-2); }
.np-ready .ic { color: var(--fg-2); }
/* D15 contrast */
:root[data-theme="light"] { --faint: #68675f; }
.stage-chip.locked { color: #a3a3a3; }
:root[data-theme="light"] .stage-chip.locked { color: var(--muted); }
/* D16 Daylight toast reads as feedback, not page */
:root[data-theme="light"] .toast { background: #191919; color: #f5f5f5; }
:root[data-theme="light"] .toast button { color: #f5f5f5 !important; }
/* D17 dark surfaces inside Daylight keep dark tokens */
:root[data-theme="light"] .dark-scr, :root[data-theme="light"] .cover:not(.cover-newproject) { --chip: #303030; --chip-hover: #3a3a3a; --fg: #f5f5f5; --fg-2: #c9c9c7; --muted: #b3b3b3; --faint: #8c8c8c; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16); --primary: #f5f5f5; --primary-fg: #111; --surface: #222; --surface-2: #2a2a2a; }
/* D18 destructive buttons legible */
.btn.danger { color: #191919; }
/* D20 reduced motion stops ambient movement too */
.reduce .vf-img, .reduce .pulse, .reduce .rec i, .reduce .np-prog i { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .vf-img, .pulse, .rec i { animation: none !important; } }
/* D22 no 8px type: smallest avatar initials 10px */
.av.xs { font-size: 10px; }
/* D19 large text: keep hierarchy, wrap chip rows, icon-only tabs */
.big-type .tab span { display: none; }
.big-type .stages, .big-type .chips-row { flex-wrap: wrap; overflow-x: visible; }
.big-type .stage-row { flex-wrap: wrap; overflow-x: visible; }
/* F2-1: the reading keypad sits above Cancel and Save, never under them */
.keypad.rd-keys { flex: none; padding-top: 6px; padding-bottom: 4px; border-top: 1px solid var(--line); }
.keypad.rd-keys button { min-height: 48px; }
.rd-big.rd-fixed { flex: none; margin: 6px var(--gutter) 0; font-size: 40px; }

/* ---------- round 6 design fixes (spec/reviews/round6-design.md) ---------- */
/* D2-1 New site keeps Daylight tokens: only the camera and viewers are dark covers */
/* D2-2 a disabled next step is never a washed-out yellow */
.next-fill:disabled, .btn.next-fill[disabled], .next-btn:disabled { background: var(--chip) !important; color: var(--muted) !important; box-shadow: none !important; }
/* D2-6 avatar stack: fixed size, overlapping cleanly, never clipped */
.av-stack { align-items: center; padding-right: 2px; }
.av-stack .av { width: 26px !important; height: 26px !important; font-size: 10px !important; flex: none; overflow: hidden; }
.av-stack .av + .av { margin-left: -8px; }
/* D2-8 / D18 destructive and plate contrast in Daylight */
:root[data-theme="light"] .btn.danger { background: #b02a21; color: #fff; }
:root[data-theme="light"] .plate { background: rgba(17,17,17,.82); }
/* D15 / D2-9 locked and to-do stage chips reach AA in both themes */
.stage-chip.todo, .stage-chip.locked { color: #b8b8b6; }
:root[data-theme="light"] .stage-chip.todo, :root[data-theme="light"] .stage-chip.locked { color: #4f4e4a; }
/* D19 text size scales titles, rows and buttons, not just body copy */
.row b { font-size: calc(15px * var(--ts, 1)); }
.row small { font-size: calc(13px * var(--ts, 1)); }
.btn { font-size: calc(15px * var(--ts, 1)); }
.chip { font-size: calc(14px * var(--ts, 1)); }
.next-btn b { font-size: calc(16px * var(--ts, 1)); }
.next-btn small { font-size: calc(13px * var(--ts, 1)); }
.sh-head h2 { font-size: calc(20px * var(--ts, 1)); }
/* O2: no camera key for roles that do not take evidence photos; the slot stays so tabs do not jump */
.camkey-off { display: block; }

/* ---------- round 7 design fixes (spec/reviews/round7-design.md) ---------- */
/* D3-1 chips never shrink into each other */
.chips-row > .chip, .chips-wrap > .chip, .chips-row > button, .chips-wrap > button { flex: none; }
/* D3-5 four even tabs when the role has no camera */
.tabbar.no-cam { grid-template-columns: repeat(4, 1fr); }
/* D3-6 the New site progress bar has as many segments as steps */
.np-prog { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
/* D3-4 one disabled style everywhere, legible: outlined, muted text */
.btn:disabled, .btn[disabled], .sh-foot .btn:disabled, .next-fill:disabled { background: transparent !important; color: var(--fg-2) !important; box-shadow: inset 0 0 0 1px var(--line-2) !important; opacity: 1 !important; filter: none !important; }
/* D2-6 people count instead of a clipped avatar stack */
.ppl-n { margin-left: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
/* motion: buttons ease from disabled to enabled */
.btn { transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
