/* CampusReel Snap: screen layouts (phone screens + admin console). Tokens and shared components: /static/snap/snap.css.
 * Measurements follow docs/design/claude_design (Photographer App 390 x 844, Admin Console 1440 x 900). */

.boot { padding: 80px 20px; text-align: center; color: var(--muted); }
.row-8 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-8 > .input:not(.sm) { flex: 1; min-width: 200px; width: auto; }
.row-6 { display: flex; gap: 6px; flex-wrap: wrap; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.quiet { padding: 18px 4px; color: var(--muted); font-size: 14px; }
.lead { font-size: 15px; line-height: 1.55; color: var(--muted); }
.lead.small { font-size: 14px; line-height: 1.5; }
.lead.dark { color: var(--ink-2); }
.lead strong, .lead b { color: var(--ink); font-weight: 600; }
.fine { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted-2); }
:root { --ring-ink: #1F1B16; }
/* the arc follows the theme's ink unless the ring is given its own colour (--ring-fg: the Lab's purple / green rings) */
snap-ring circle:last-child { stroke: var(--ring-fg, var(--ink)); }
.ring-wrap snap-ring circle:first-child { stroke: var(--track); }
.today-ring snap-ring circle:last-child { stroke: #1F1B16; }

/* ================================================================== phone shell */
body.phone-mode #view { max-width: 520px; margin: 0 auto; }
body.phone-mode.has-bottom #view { padding-bottom: 0; }
.ph { padding: calc(env(safe-area-inset-top) + 16px) var(--gutter) 130px; }
.ph-full { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 16px) var(--gutter) calc(env(safe-area-inset-bottom) + 34px); }
.ph-full.hero-pad { padding-left: 16px; padding-right: 16px; }
.ph-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.ph-head.left { justify-content: flex-start; }
.ph-title { text-align: center; min-width: 0; }
.ph-title .t { font: 700 17px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-title .s { font-size: 12px; color: var(--muted); }
.ph-title-left { font: 700 17px var(--font-display); }
.ph-head .pos { font: 600 14px var(--font-ui); color: var(--muted); }
.icon-btn:disabled { opacity: .4; }

/* bottom elements: tab bar, CTA strip, action bar.
 * Focus Not Obscured (WCAG 2.4.11): core.js setBottom keeps --bottom-h = the bar's height (ResizeObserver, it grows
 * when its text wraps at 200% zoom). The root scroll-padding makes the browser scroll a focused control (Tab, focus())
 * clear of the bar, plus 16 px for the camera button that sticks up out of the tab bar; the screen's own bottom
 * padding is at least that tall, so even the last control can scroll above the bar. */
html { scroll-padding-bottom: calc(var(--bottom-h, 0px) + 16px); }
body.has-bottom .ph, body.has-bottom .handover { padding-bottom: max(130px, calc(var(--bottom-h, 0px) + 24px)); }
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; }
.bottom.cta-strip { padding: 14px 20px calc(env(safe-area-inset-bottom) + 30px); background: linear-gradient(rgba(244, 241, 236, 0), var(--bg) 30%); max-width: 520px; margin: 0 auto; }
/* the CTA names the next location: a long name wraps to a second line instead of being cut ("nue at #2 Founders") */
.bottom.cta-strip .btn { white-space: normal; height: auto; min-height: 60px; padding-top: 8px; padding-bottom: 8px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.bottom.action-bar {
  display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(env(safe-area-inset-bottom) + 30px);
  background: var(--bg); border-top: 1px solid var(--line); max-width: 520px; margin: 0 auto;
}
.action-bar .shotnext { flex: 1; min-width: 0; font: 700 17px/1.15 var(--font-display); white-space: normal; text-align: center; }
.tabbar {
  height: calc(100px + max(0px, env(safe-area-inset-bottom) - 20px)); background: var(--surface); border-radius: 28px 28px 0 0; display: flex;
  align-items: flex-start; justify-content: space-around; padding-top: 12px; box-shadow: var(--shadow-tabbar); max-width: 520px; margin: 0 auto;
}
.tab {
  border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; min-height: 48px;
  font: 600 11px var(--font-ui); color: var(--muted); text-decoration: none; padding: 0;
}
.tab:hover { text-decoration: none; }
.tab.on { color: var(--ink); }
.tab .ti { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--ink); }   /* icons ink, labels grey */
/* narrow screens and 200% zoom: the tab bar and the action bar shrink instead of running off the screen */
@media (max-width: 340px) {
  .tab { min-width: 0; flex: 1 1 0; }
  .tab.cam { flex: 0 0 60px; }
  .tabbar .tab.cam .fab { width: 56px; height: 56px; }   /* .tabbar: the base .fab rule comes later in the file */
  .bottom.action-bar { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .bottom.action-bar .icon-btn.lg { width: 48px; height: 48px; }
  .action-bar .shotnext { padding: 0 12px; font-size: 15px; }
  .ord-badge { min-width: 52px; height: 52px; font-size: 24px; border-radius: 18px; }
  .seg button { padding: 0 4px; }
}
.tab.cam .fab {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: -30px;
  background: var(--mustard); color: #1F1B16; box-shadow: 0 0 0 6px var(--bg), 0 8px 18px rgba(245, 184, 46, .45);
}

/* ---------------------------------------------------------------- sign in */
.ph-signin { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 34px); }
/* Sign-in hero: one composition at every phone size, the board's (390 x 844: box 395, scene 402, mascot 150 x 180 at
 * bottom 22, spire top 77 px below the box top, pill above it in clear sky).
 * - The scene (viewBox 400 x 220, slice, anchored bottom) is min(max(402px, 1.1224 * width), (box - 77px) * 220/174)
 *   tall: its spire top (174/220 of the scene height above the bottom) stays 77 px below the box top on short boxes,
 *   and on tall boxes it stops growing, so the extra height is plain sky (the box colour is the sky's top colour)
 *   instead of a zoomed crop. 1.1224 * width keeps at most 196 scene units in view on wide boxes: the left cloud
 *   (x 40-102) stays fully out of the frame instead of showing a white sliver at the edge.
 * - The mascot scales with the scene (98.5 x 120 scene units): height = 98.5 * scale, where the slice scale is the
 *   larger of width/400 and height/220; bottom offset = 12 units. Container units (cqw/cqh) are the box's size.
 * - min-height keeps the spire under the pill when the scene is width-bound: box >= 77 + 0.435 * box width
 *   (box width = viewport - 32, the view is at most 520 wide). */
.signin-hero {
  flex: 1; min-height: min(63px + 43.5vw, 289px); display: block; position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: #FFD966;    /* = SKIES.butter top colour in snap-art.js */
}
/* the size container: an inset:0 layer (on the flex item itself Chrome resolves cqh to 0 in the column flexbox) */
.signin-stage { position: absolute; inset: 0; container-type: size; }
.signin-scene { position: absolute; left: 0; right: 0; bottom: 0; }   /* height inline: <snap-scene> keeps an inline height */
.signin-mascot {
  position: absolute; left: 50%; transform: translateX(-50%); aspect-ratio: 150 / 180;   /* the <snap-mascot> fills it */
  bottom: max(3.01cqw, min(max(22px, 6.143cqw), (100cqh - 77px) * .06918));
  height: max(24.63cqw, min(max(180px, 50.25cqw), (100cqh - 77px) * .5661));
}
.brand-pill { position: absolute; top: 20px; left: 20px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: #fff; color: #1F1B16; }
.brand-pill img { width: 28px; height: 28px; border-radius: 50%; }
.brand-pill span { font: 700 14px var(--font-display); }
.signin-text { padding: 28px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.signin-text h1 { font: 800 32px/1.08 var(--font-display); letter-spacing: -0.03em; text-wrap: pretty; }
.signin-text p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.signin-text b { color: var(--ink); }
.signin-actions { display: flex; flex-direction: column; gap: 12px; padding: 24px 4px 0; }
/* short phones (320 x 568): a tighter headline so "Email me a code" stays above the fold */
@media (max-height: 600px) {
  .signin-text { padding-top: 18px; }
  .signin-text h1 { font-size: 26px; }
  .signin-actions { padding-top: 16px; }
}
.input.big { height: 60px; border-radius: 20px; font-size: 16px; padding: 0 20px; }
.input.big.code { font: 800 28px var(--font-display); letter-spacing: .3em; text-align: center; }
.input[readonly] { color: var(--muted); }
.link-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.link-row .link-btn { min-height: 44px; }
.link-btn:disabled { color: var(--muted-2); }

/* ---------------------------------------------------------------- not invited */
.noinv-art { margin-top: 20px; border-radius: var(--r-xl); background: var(--proc-bg); height: 300px; display: flex; align-items: flex-end; justify-content: center; position: relative; overflow: hidden; flex-shrink: 0; }
.cloud { position: absolute; background: #fff; opacity: .8; }
.cloud.c1 { top: 28px; left: 28px; width: 70px; height: 26px; border-radius: 13px; }
.cloud.c2 { top: 60px; right: 40px; width: 50px; height: 20px; border-radius: 10px; }
.noinv-title { margin: 28px 0 10px; font: 800 30px/1.1 var(--font-display); letter-spacing: -0.03em; }

.btn.block.inset-4 { width: auto; margin: 0 4px; }   /* the board's 350 px CTA, centred in the 358 px column */

/* ---------------------------------------------------------------- invite landing */
.invite-hero { height: 330px; position: relative; border-radius: var(--r-xl); overflow: hidden; flex-shrink: 0; }
.hero-pill { position: absolute; top: 18px; left: 18px; padding: 8px 14px; border-radius: var(--r-pill); background: #fff; color: #1F1B16; font: 600 13px var(--font-ui); }
.invite-text { padding: 24px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.invite-text h1 { font: 800 28px/1.12 var(--font-display); letter-spacing: -0.03em; text-wrap: pretty; }
.invite-text h1 b { font-weight: 800; }
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.mini-tile { padding: 16px; border-radius: var(--r-md); }
.mini-tile .k { font-size: 12px; font-weight: 600; }
.mini-tile .v { font: 800 22px var(--font-display); margin-top: 4px; }
.mini-tile.ready { background: var(--ready-bg); } .mini-tile.ready .k { color: var(--ready-fg); } .mini-tile.ready .v { color: var(--ready-ink); }
.mini-tile.proc { background: var(--proc-bg); } .mini-tile.proc .k { color: var(--proc-fg); } .mini-tile.proc .v { color: var(--proc-title); }

/* ---------------------------------------------------------------- home */
.home-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.home-head h1 { font: 800 30px var(--font-display); letter-spacing: -0.03em; }
.home-head .avatar { font-family: var(--font-display); text-decoration: none; }
.week { display: flex; justify-content: space-between; margin-top: 22px; }
.week { gap: 4px; }
.week .day { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 1 46px; min-width: 0; }
.week .dow { font-size: 12px; color: var(--muted); white-space: nowrap; }   /* never "Mo/n" */
.week .num { width: 100%; max-width: 46px; aspect-ratio: 1; height: auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 16px var(--font-display); background: var(--surface); color: var(--ink); }
.week .today .num { background: var(--mustard); color: #1F1B16; }
.week .dot { width: 6px; height: 6px; border-radius: 50%; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 26px; }
.sec-head h2 { font: 700 19px var(--font-display); }
.sec-head span { font-size: 13px; color: var(--muted); }
.sec-head + * { margin-top: 12px; }
.today-card { display: block; height: 300px; border-radius: var(--r-xl); overflow: hidden; position: relative; background: var(--butter); color: #1F1B16; text-decoration: none; }
.today-card:hover { text-decoration: none; }
.today-top { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; gap: 12px; }
.today-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.today-meta { display: flex; align-items: center; gap: 8px; font: 600 13px var(--font-ui); color: var(--ready-fg); }
.today-name { font: 800 26px/1.05 var(--font-display); letter-spacing: -0.03em; color: #1F1B16; }
.today-sub { font-size: 14px; color: var(--ready-ink); }
.today-ring { position: relative; width: 84px; height: 84px; background: #fff; border-radius: 50%; flex-shrink: 0; }
.today-ring > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 17px var(--font-display); color: #1F1B16; }
.also { margin-top: 8px; font-size: 13px; color: var(--muted); }
.up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up-card { border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 6px; min-height: 130px; text-decoration: none; }
.up-card:hover { text-decoration: none; }
.up-card .n { font: 700 16px/1.2 var(--font-display); }
.up-card .s { font-size: 13px; }
.up-card .d { align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; font: 600 12px var(--font-ui); }
.up-card.lavender { background: var(--proc-bg); } .up-card.lavender .n { color: var(--proc-title); } .up-card.lavender .s, .up-card.lavender .d { color: var(--proc-fg); }
.up-card.peach { background: var(--reshoot-bg); } .up-card.peach .n { color: var(--reshoot-title); } .up-card.peach .s, .up-card.peach .d { color: var(--reshoot-fg); }
.stat-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: 12px; }
.stat-row.one { grid-template-columns: 1fr; }
.streak, .badges { border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.streak:hover, .badges:hover { text-decoration: none; }
.streak { background: var(--sage-bg); }
.streak .k { font: 600 13px var(--font-ui); color: var(--sage-fg); }
.streak .v { font: 800 52px/1 var(--font-display); letter-spacing: -0.04em; color: var(--sage-ink); margin-top: 10px; }
.streak .s { font-size: 13px; color: var(--sage-fg); margin-top: 4px; }
.badges { background: var(--surface); gap: 12px; }
.badges .k { font: 600 13px var(--font-ui); color: var(--muted); }
.badges .row { display: flex; gap: 8px; }
.badges .s { font-size: 12px; color: var(--muted); }
.badge { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font: 800 13px var(--font-display); flex-shrink: 0; }
.badge.ready { background: var(--ready-bg); color: var(--ready-fg); }
.badge.proc { background: var(--proc-bg); color: var(--proc-fg); }
.badge.shot { background: var(--shot-bg); color: var(--shot-fg); }
.skel-week { display: flex; gap: 8px; margin-top: 22px; }
.skel-week .skel { flex: 1; height: 72px; border-radius: var(--r-md); }
.skel-pair { display: flex; gap: 12px; margin-top: 20px; }
.skel-pair .skel { flex: 1; height: 140px; border-radius: var(--r-lg); }
.loading-note { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.empty-card { margin-top: 26px; border-radius: var(--r-xl); background: var(--surface); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.empty-card p { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 260px; }
.shoot-list { display: flex; flex-direction: column; gap: 10px; }
.shoot-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-decoration: none; }
.shoot-row:hover { text-decoration: none; }
.shoot-row .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shoot-row .n { font: 700 15px var(--font-display); }
.shoot-row .s { font-size: 12px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.stat-tile { border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; min-height: 130px; }
.stat-tile .k { font: 600 13px var(--font-ui); }
.stat-tile .v { font: 800 44px/1 var(--font-display); letter-spacing: -0.04em; margin-top: auto; padding-top: 10px; }
.stat-tile .s { font-size: 12px; margin-top: 4px; }
.stat-tile.white { background: var(--surface); } .stat-tile.white .k, .stat-tile.white .s { color: var(--muted); }
.stat-tile.sage { background: var(--sage-bg); color: var(--sage-ink); } .stat-tile.sage .k, .stat-tile.sage .s { color: var(--sage-fg); }
.stat-tile.proc { background: var(--proc-bg); color: var(--proc-ink); } .stat-tile.proc .k, .stat-tile.proc .s { color: var(--proc-fg); }
.stat-tile.ready { background: var(--ready-bg); color: var(--ready-ink); } .stat-tile.ready .k, .stat-tile.ready .s { color: var(--ready-fg); }
.badge-list { padding: 8px 16px; }
.badge-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 14px; }
.badge-row + .badge-row { border-top: 1px solid var(--line-soft); }
.profile-card { margin-top: 22px; padding: 22px; display: flex; gap: 16px; align-items: center; }
.profile-card .n { font: 800 22px var(--font-display); letter-spacing: -0.02em; }
.profile-card .e { font-size: 14px; color: var(--muted); }
.name-form { margin-top: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.name-form .row-8 > .input { flex: 1; min-width: 120px; }

/* ---------------------------------------------------------------- overview */
.pill-slot { display: flex; justify-content: center; }
.pill-slot:not(:empty) { margin-top: 14px; }
.progress-card { margin-top: 18px; border-radius: var(--r-xl); background: var(--surface); padding: 26px 20px 22px; display: flex; flex-direction: column; align-items: center; }
.ring-wrap { position: relative; width: 200px; height: 200px; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-in .big { font: 800 60px/1 var(--font-display); letter-spacing: -0.05em; }
.ring-in .of { color: var(--muted-lg); font-size: 34px; }
.ring-in .cap { font-size: 13px; color: var(--muted); margin-top: 6px; }
.chip-row { display: flex; gap: 8px; margin-top: 18px; }
.notes-card { margin-top: 12px; border-radius: var(--r-md); background: var(--surface); padding: 0 18px; font-size: 14px; }
.notes-card summary { font: 600 14px var(--font-ui); min-height: 48px; }
.notes-card p { padding-bottom: 14px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.5; }
.filters { margin-top: 20px; }
.loc-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.loc-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--r-md); min-height: 48px; text-decoration: none; }
.loc-card:hover { text-decoration: none; }
.loc-card .ord { width: 44px; height: 44px; border-radius: var(--r-tile); background: #fff; display: flex; align-items: center; justify-content: center; font: 800 16px var(--font-display); flex-shrink: 0; }
.loc-card .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.loc-card .n { font: 700 15px var(--font-display); }
.loc-card .s { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-card .chip { color: inherit; }
.loc-card.notshot { background: var(--notshot-bg); color: var(--notshot-fg); }
.loc-card.shot { background: var(--shot-bg); color: var(--shot-fg); }
.loc-card.reshoot { background: var(--reshoot-bg); color: var(--reshoot-fg); }
.empty-line { padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
/* added on site: a quiet dashed row under the list; a location waiting for its first sync has a dashed outline */
.add-loc { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 10px;
  border: 2px dashed var(--line-2); border-radius: var(--r-md); background: transparent; color: var(--ink-2); font: 600 15px var(--font-ui); cursor: pointer; }
.add-loc:hover { background: var(--surface-2); }
.add-loc .plus { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font: 700 20px/1 var(--font-ui); }
.loc-card.temp { outline: 2px dashed var(--pending-dash); outline-offset: -2px; }
.loc-card.just-added { animation: just-added 1.6s ease-out 1; }
@keyframes just-added { 0%, 30% { box-shadow: 0 0 0 4px var(--mustard); } 100% { box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) { .loc-card.just-added { animation: none; box-shadow: 0 0 0 3px var(--mustard); } }

/* ---------------------------------------------------------------- location */
.qr-card { display: block; width: 100%; margin-top: 16px; background: #FFFFFF; border-radius: var(--r-lg); padding: 22px; border: 0; text-align: center; color: #6B645A; }
.qr-code { display: block; width: min(256px, 100%); aspect-ratio: 1; margin: 0 auto; background: #fff; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr-card .cap { display: block; font: 500 13px var(--font-ui); color: #6B645A; margin-top: 10px; }
.qr-pending .qr-code { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px;
  border: 2px dashed #C9A23A; border-radius: var(--r-md); background: #FFF7E0; color: #4A443C; }   /* on the always-white QR card */
.qr-pending .qr-code svg { width: 40px; height: 40px; flex: none; }
.qr-pending .qr-code .t { font: 700 18px var(--font-display); color: #1F1B16; }
.qr-pending .qr-code .s { font-size: 13px; line-height: 1.45; }
/* the add-location sheet */
.dlg-label .opt-word { font-weight: 500; color: var(--muted-2); margin-left: 4px; }
.al-desc { height: 76px; padding-top: 12px; resize: vertical; }
.al-chips { margin-bottom: 10px; }
.al-gps { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-row); background: var(--bg); }
.al-gps > svg { flex-shrink: 0; }
.al-gps .m { flex: 1; min-width: 0; }
.al-gps .t { font: 600 14px var(--font-ui); }
.al-gps .s { font-size: 12px; color: var(--muted); }
.al-use { display: flex; align-items: center; gap: 8px; min-height: 44px; font: 600 14px var(--font-ui); flex-shrink: 0; cursor: pointer; }
.al-use input { width: 22px; height: 22px; accent-color: var(--ink); }
.qr-missing { display: flex; align-items: center; justify-content: center; height: 100%; padding: 16px; font-size: 13px; color: #6B645A; text-align: center; }
.loc-title { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.loc-title h1 { font: 800 26px/1.1 var(--font-display); letter-spacing: -0.03em; text-wrap: pretty; }
.ord-badge { min-width: 64px; height: 64px; padding: 0 10px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font: 800 30px var(--font-display); letter-spacing: -0.03em; flex-shrink: 0; }
.ord-badge.notshot { background: var(--notshot-bg); color: var(--notshot-fg); }
.ord-badge.shot { background: var(--shot-bg); color: var(--shot-fg); }
.ord-badge.reshoot { background: var(--reshoot-bg); color: var(--reshoot-fg); }
.loc-desc { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.loc .seg { margin-top: 20px; }
.notes-label { margin: 22px 0 10px; }
.note-input { margin-top: 10px; padding: 0 18px; }
.gps-row { margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--r-md); background: var(--surface); }
.gps-row > svg { flex-shrink: 0; }
.gps-row .m { flex: 1; min-width: 0; }
.gps-row .t { font: 600 14px var(--font-ui); }
.gps-row .s { font-size: 12px; color: var(--muted); }
.gps-row .btn { height: 44px; padding: 0 16px; font-size: 14px; flex-shrink: 0; }
.swipe-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; }

/* QR full screen: always pure white, black code */
.qr-full {
  position: fixed; inset: 0; z-index: 100; background: #FFFFFF; color: #000; border: 0; width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px; padding: calc(env(safe-area-inset-top) + 60px) 20px calc(env(safe-area-inset-bottom) + 40px); cursor: pointer; font: inherit;
}
.qr-full[hidden] { display: none; }
.qr-full-code { display: block; width: min(360px, 92vw, 54vh); aspect-ratio: 1; background: #fff; }
.qr-full-code svg { width: 100%; height: 100%; display: block; }
.qr-full-text { text-align: center; display: block; }
.qr-full-ord { display: block; font: 800 40px var(--font-display); letter-spacing: -0.03em; color: #000; }
.qr-full-name { display: block; font: 700 20px var(--font-display); color: #000; }
.qr-full-hint { padding: 12px 18px; border-radius: var(--r-pill); background: #F4F1EC; color: #1F1B16; font: 500 13px/1.4 var(--font-ui); text-align: center; }
.qr-full-hint span { color: #6B645A; }

/* ---------------------------------------------------------------- hand-over (complete) + magic */
.handover { padding-bottom: 130px; }
.complete-hero { height: 350px; position: relative; overflow: hidden; border-radius: 0 0 40px 40px; background: var(--butter); }
.confetti { position: absolute; width: 12px; height: 6px; border-radius: 3px; }
.complete-mascot { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }
.hero-back { position: absolute; top: calc(env(safe-area-inset-top) + 16px); left: 20px; }
.complete-body { padding: 24px 20px 0; }
.complete-body h1 { font: 800 28px/1.12 var(--font-display); letter-spacing: -0.03em; }
.complete-body .lead { margin-top: 10px; }
.guide { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.guide-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-row); font: 600 14px var(--font-ui); }
.guide-row .n { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font: 800 14px var(--font-display); flex-shrink: 0; }
.guide-row.ready { background: var(--ready-bg); color: var(--ready-fg); }
.guide-row.proc { background: var(--proc-bg); color: var(--proc-fg); }
.guide-row.shot { background: var(--shot-bg); color: var(--shot-fg); }
.drive-label { margin: 22px 0 8px; }
.drive-input { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; height: 60px; border-radius: 20px; background: var(--surface); border: 2px solid var(--surface); }
.drive-input.valid { border-color: var(--green-line); } .drive-input.invalid { border-color: var(--coral); }
.drive-input.checking { border-color: var(--violet-2); } .drive-input.notshared { border-color: var(--peach-line); }
.drive-input svg { flex-shrink: 0; }
.drive-input input { flex: 1; min-width: 0; border: 0; outline: none; font: 400 15px var(--font-ui); background: none; color: var(--ink); height: 100%; }
.drive-input .btn { height: 44px; padding: 0 14px; }
#drive-note { margin-top: 10px; }
.magic-art { margin-top: 16px; border-radius: var(--r-xl); background: var(--proc-bg); height: 230px; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.magic-art > span { position: absolute; border-radius: 50%; }
.magic-title { margin: 22px 0 6px; font: 800 28px var(--font-display); letter-spacing: -0.03em; }
.steps { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-row); }
.step .d { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 13px var(--font-ui); flex-shrink: 0; }
.step .l { flex: 1; font: 600 14px var(--font-ui); }
.step .s { font-size: 12px; }
.step.done { background: var(--shot-bg); color: var(--shot-fg); } .step.done .d { background: #fff; color: var(--shot-fg); }
.step.now { background: var(--surface); color: var(--ink); } .step.now .d { background: var(--violet-strong); color: #fff; }
.step.wait { background: color-mix(in srgb, var(--surface) 50%, transparent); color: var(--muted); } .step.wait .d { background: var(--line); color: var(--ink-2); }
.handed-link a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }   /* 44 px tap targets in a 48 px row */
.handed-link { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding: 2px 16px; border-radius: var(--r-row); background: var(--surface); font: 600 14px var(--font-ui); }
.handed-link .muted { font-weight: 500; font-size: 13px; }

/* ================================================================== console shell */
body.console-mode { display: flex; flex-wrap: wrap; align-items: flex-start; min-height: 100vh; }
.aside { flex: 1 0 230px; max-width: 100%; padding: 24px 18px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; align-self: flex-start; }
.aside .brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.aside .brand img { width: 36px; height: 36px; border-radius: 50%; }
.aside .bn { font: 800 17px var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.aside .bh { font-size: 12px; color: var(--muted); }
.aside .nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-btn { flex: 1 1 190px; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: var(--r-tile); font: 600 14px var(--font-ui); color: var(--ink); text-decoration: none; }
.nav-btn:hover { text-decoration: none; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-btn.on { background: var(--ink); color: var(--on-ink); }
.sup { display: flex; flex-direction: column; gap: 4px; }
.sup-link { flex: 1 1 190px; display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: var(--r-tile); font: 600 14px var(--font-ui); color: var(--accent-soft-fg); background: var(--accent-soft); text-decoration: none; }
.sup-link:hover { text-decoration: none; }
.sup-link.on { outline: 2px solid var(--accent); }
.me-card { padding: 14px; border-radius: var(--r-md); background: var(--surface); display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.me-row { display: flex; align-items: center; gap: 10px; }
.me-row .mn { font: 600 14px var(--font-ui); }
.me-mail { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.muted-link { color: var(--muted) !important; }
.me-card .role-pill { margin-top: 3px; font-size: 11px; padding: 3px 9px; height: auto; }
body.console-mode #view { flex: 999 1 640px; min-width: 0; }
.cmain { padding: 28px 32px 60px; max-width: 1240px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head.center { align-items: center; }
.page-head h1 { font: 800 36px var(--font-display); letter-spacing: -0.03em; margin-top: 4px; }
.page-head.center h1 { margin-top: 0; }
.page-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.date-line { font-size: 14px; color: var(--muted); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: var(--r-pill); background: var(--surface); width: 276px; min-width: 0; max-width: 100%; color: var(--muted); }
.search input { border: 0; outline: none; font: 400 15px var(--font-ui); flex: 1; background: none; color: var(--ink); min-width: 0; }
.back-link { display: inline-block; font: 600 14px var(--font-ui); padding: 8px 0; }

/* home */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 28px; }
.tile-skel { height: 150px; border-radius: var(--r-lg); }
.tile { border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; text-decoration: none; }
.tile:hover { text-decoration: none; }
.tile .k { font: 600 14px var(--font-ui); }
.tile .v { font: 800 64px/1 var(--font-display); letter-spacing: -0.05em; }
.tile .s { font-size: 13px; }
.tile.shot { background: var(--shot-bg); color: var(--shot-fg); } .tile.shot .v { color: var(--shot-ink); }
.tile.reshoot { background: var(--reshoot-bg); color: var(--reshoot-fg); } .tile.reshoot .v { color: var(--reshoot-ink); }
.tile.proc { background: var(--proc-bg); color: var(--proc-fg); } .tile.proc .v { color: var(--proc-ink); }
.tile.ready { background: var(--ready-bg); color: var(--ready-fg); } .tile.ready .v { color: var(--ready-ink); }
.tile.err { background: var(--err-bg); color: var(--err-fg); } .tile.err .v { color: var(--err-ink); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.two-col.tight { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card.sec { padding: 24px; }
.card.sec .h2 { margin-bottom: 14px; }
.card.sec.lav { background: var(--proc-bg); color: var(--proc-title); }
.card.sec.lav .h2 { margin-bottom: 10px; color: var(--proc-title); }
.card.sec.lav ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.att { display: flex; flex-direction: column; gap: 8px; }
.att-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-row); background: var(--surface-2); flex-wrap: wrap; }
.att-row .m { flex: 1; min-width: 160px; }
.att-row .t { font: 600 15px var(--font-ui); }
.att-row .s { font-size: 13px; color: var(--muted); }
.act { display: flex; flex-direction: column; }
.act-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.act-row:last-child { border-bottom: 0; }
.act-row .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.act-row .m { flex: 1; font-size: 14px; line-height: 1.45; }
.act-row strong { font-weight: 600; }
.act-row .w { font-size: 12px; color: var(--muted); white-space: nowrap; }
.err-card { margin-top: 28px; border-radius: var(--r-lg); background: var(--err-bg); padding: 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.err-card .m { flex: 1; min-width: 240px; }
.err-card .t { font: 800 22px var(--font-display); color: var(--err-title); }
.err-card .s { font-size: 14px; color: var(--err-btn-fg); margin-top: 6px; }
.empty-wide { margin-top: 28px; border-radius: var(--r-xl); background: var(--surface); padding: 40px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.empty-wide .art { width: 220px; height: 200px; border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--shot-bg); flex-shrink: 0; }
.empty-wide .art.butter { width: 200px; height: 180px; background: var(--ready-bg); }
.empty-wide .m { flex: 1; min-width: 260px; }
.empty-wide .t { font: 800 26px var(--font-display); letter-spacing: -0.02em; }
.empty-wide p { font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 440px; margin: 8px 0 18px; }
.empty-wide.center-col { flex-direction: column; text-align: center; gap: 8px; margin-top: 24px; }
.empty-wide.center-col .t { font-size: 22px; }
.empty-wide.center-col p { margin: 0; font-size: 14px; }
#tab .empty-wide { margin-top: 16px; padding: 36px; gap: 32px; }
#tab .empty-wide .t { font-size: 22px; }

/* colleges */
.college-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 24px; }
.college-card { border-radius: var(--r-lg); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.college-card:hover { text-decoration: none; }
.college-card .banner { height: 152px; flex-shrink: 0; position: relative; display: flex; align-items: flex-end; padding: 16px; }
.college-card .body { padding: 34px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.college-card .n { font: 700 17px/1.25 var(--font-display); }
.college-card .s { font-size: 13px; color: var(--muted); }
.college-head, .shoot-head { display: flex; align-items: center; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.shoot-head { gap: 16px; margin-top: 8px; }
.college-head .m, .shoot-head .m { flex: 1; min-width: 220px; }
.college-head h1 { font: 800 34px var(--font-display); letter-spacing: -0.03em; }
.shoot-head h1 { font: 800 32px var(--font-display); letter-spacing: -0.03em; }
.college-head .s { font-size: 14px; color: var(--muted); margin-top: 4px; }
.shoot-head .s { font-size: 14px; color: var(--muted); margin-top: 2px; }
.people-stack { display: flex; align-items: center; padding-left: 8px; }
.shoot-head .btn { height: 46px; padding: 0 18px; font-size: 14px; }
.shoot-lines { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.shoot-line { border-radius: var(--r-lg); background: var(--surface); padding: 20px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--ink); text-decoration: none; }
.shoot-line:hover { text-decoration: none; }
.shoot-line .when { min-width: 120px; }
.shoot-line .when .d { font: 800 22px var(--font-display); }
.shoot-line .when .y, .shoot-line .what .s { font-size: 13px; color: var(--muted); }
.shoot-line .what { flex: 1; min-width: 200px; }
.shoot-line .what .t { font: 700 17px var(--font-display); }

/* photoshoot */
.track-card { margin-top: 22px; border-radius: var(--r-lg); background: var(--surface); padding: 22px 24px 18px; }
.track { position: relative; height: 14px; border-radius: var(--r-pill); background: var(--track); }
.track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-pill); background: var(--ink); transition: width .6s; }
.track-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.ts { display: flex; flex-direction: column; gap: 4px; }
.ts .c { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 12px var(--font-ui); background: var(--track); color: var(--ink); }
.ts .l { font: 600 13px var(--font-ui); color: var(--muted); }
.ts.done .c { background: var(--ink); color: var(--on-ink); }
.ts.now .c { background: var(--mustard); color: #1F1B16; }
.ts.done .l, .ts.now .l { color: var(--ink); }
.tabs { margin-top: 20px; }
.tabs .pill-tab { padding: 0 18px; }
.table-card { margin-top: 16px; padding: 12px; }
.tc-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; flex-wrap: wrap; }
.tc-head .tt { font: 700 17px var(--font-display); flex: 1; }
.loc-grid { display: grid; grid-template-columns: 28px 56px minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1.4fr) 120px; gap: 12px; align-items: center; }
.loc-grid.head { padding: 0 12px 8px; font: 600 12px var(--font-ui); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.loc-rows { display: flex; flex-direction: column; gap: 4px; }
.loc-grid.row { padding: 8px 12px; border-radius: var(--r-input); background: var(--surface-2); cursor: pointer; }
.loc-grid.row:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
.loc-grid.row.dragging { opacity: .4; }
.loc-grid.row.over { background: var(--accent-soft); outline: 2px solid var(--accent); }
.loc-grid .grip { cursor: grab; color: var(--muted-3); font: 700 16px var(--font-ui); letter-spacing: -2px; }
.loc-grid .ord { width: 40px; height: 40px; border-radius: 14px; background: var(--bg); display: flex; align-items: center; justify-content: center; font: 800 15px var(--font-display); }
.loc-grid .nm { font: 600 14px var(--font-ui); min-width: 0; }
.loc-grid .nm > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-grid .nm .onsite { font: 500 12px var(--font-ui); color: var(--muted); margin-top: 2px; }
.loc-grid .co { font: 400 13px var(--font-mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-grid .tg { display: flex; gap: 4px; flex-wrap: wrap; }
.qr-head { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.input.sm { height: 44px; width: auto; border-radius: 14px; padding: 0 12px; font-size: 14px; }
.input.pp { padding-right: 34px; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 16px; }
.qr-tile { border-radius: var(--r-md); background: #FFFFFF; padding: 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--card-line); color: #1F1B16; }
.qr-tile img { width: 100%; aspect-ratio: 1; display: block; image-rendering: pixelated; }
.qr-tile .cap { display: flex; align-items: center; gap: 8px; }
.qr-tile .o { font: 800 15px var(--font-display); }
.qr-tile .n { font: 600 13px var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* users */
.inv-list { display: flex; flex-direction: column; gap: 8px; }
.inv-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: var(--pending-row); flex-wrap: wrap; }
.inv-ic { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--pending-dash); display: flex; align-items: center; justify-content: center; color: var(--ready-fg); flex-shrink: 0; }
.inv-row .m { flex: 1; min-width: 200px; }
.inv-row .t { font: 600 15px var(--font-ui); }
.inv-row .s { font-size: 13px; color: var(--muted); }
.history { margin-top: 12px; font-size: 14px; }
.history summary { font: 600 14px var(--font-ui); color: var(--muted); padding: 0 4px; width: max-content; }
.hist-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.users-card { margin-top: 24px; padding: 12px; }
.ug { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) 130px 100px 120px; gap: 12px; align-items: center; }
.ug.head { padding: 8px 12px; font: 600 12px var(--font-ui); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.u-rows { display: flex; flex-direction: column; gap: 4px; }
.ug.row { padding: 10px 12px; border-radius: var(--r-input); background: var(--surface-2); border: 0; width: 100%; text-align: left; color: var(--ink); }
.ug.row:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
.ug .nm { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ug .n { font: 600 14px var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ug .em { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.ug .st { font: 500 13px var(--font-ui); color: var(--muted); }
.ug .st.on { color: var(--shot-fg); }
.ug .la { font-size: 13px; color: var(--muted); }
.mail-card { margin-top: 16px; padding: 8px 20px; }
.mail-row { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.mail-row:last-child { border-bottom: 0; }
.mail-row .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mail-row .t { font: 600 15px var(--font-ui); }
.mail-row .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.mail-row pre { white-space: pre-wrap; font: 12px var(--font-mono); background: var(--surface-2); padding: 10px; border-radius: 12px; margin: 8px 0 0; }
.code-big { font: 800 26px var(--font-display); letter-spacing: .2em; }

/* dialogs (console) */
.college-form { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.logo-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.checker { width: 150px; height: 150px; border-radius: var(--r-md); background: repeating-conic-gradient(#F0ECE5 0 25%, #fff 0 50%) 0 0/16px 16px; display: flex; align-items: center; justify-content: center; }
.logo-pick .cap { font-size: 12px; color: var(--muted); }
.logo-pick label.btn { cursor: pointer; }
.college-form .fields { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.more summary { font: 600 13px var(--font-ui); color: var(--muted); margin-top: 2px; width: max-content; }
.date-head { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.date-head .dl { font: 600 13px var(--font-ui); }
.day-strip { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.day-pill { flex: 0 0 52px; height: 72px; border-radius: var(--r-pill); border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--bg); color: var(--ink); }
.day-pill .w { font: 500 11px var(--font-ui); color: var(--muted); }
.day-pill .n { font: 700 17px var(--font-display); }
.day-pill[aria-pressed="true"] { background: var(--mustard); color: #1F1B16; }
.day-pill[aria-pressed="true"] .w { color: var(--ready-ink); }
.date-extra { margin-top: 10px; }
.date-extra .label { margin-left: 4px; }
.people-chips { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.person-chip { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px 0 6px; border-radius: var(--r-pill); font: 600 14px var(--font-ui); border: 2px solid var(--bg); background: var(--bg); color: var(--ink); }
.person-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.input.pill { border-radius: var(--r-pill); height: 48px; flex: 1; min-width: 200px; font-size: 14px; padding: 0 18px; }
.pick-list, .opt-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.opt-list.scroll { max-height: min(300px, 38vh); overflow-y: auto; padding: 3px; margin-left: -3px; margin-right: -3px; }
.pick { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 12px; border-radius: var(--r-tile); border: 0; background: var(--surface-2); font: 600 15px var(--font-ui); text-align: left; color: var(--ink); }
.opt { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: var(--r-tile); font: 500 14px var(--font-ui); text-align: left; border: 2px solid var(--bg); background: var(--surface-2); color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.loc-tools { margin-top: 18px; }
.user-top { display: flex; gap: 14px; align-items: center; }
.imp-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.drop { border-radius: var(--r-md); border: 2px dashed var(--line-2); padding: 24px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .t, .sheet-card .t { font: 700 17px var(--font-display); }
.drop .s { font-size: 13px; color: var(--muted); }
.sheet-card { border-radius: var(--r-md); padding: 24px; background: var(--shot-bg); display: flex; flex-direction: column; gap: 10px; }
.sheet-card .t { color: #123F25; }
.sheet-card .input { height: 44px; border-radius: 14px; font-size: 13px; padding: 0 12px; }
.imp-chips { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.imp-modes { margin-top: 14px; max-width: 460px; }
.imp-table { margin-top: 14px; border-radius: var(--r-row); border: 1px solid var(--card-line); overflow: hidden; }
.ig { display: grid; grid-template-columns: 56px minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.8fr); gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line-soft); align-items: center; font-size: 13px; background: var(--surface); }
.ig.head { background: var(--surface-2); border-top: 0; font: 600 12px var(--font-ui); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; }
.ig.bad { background: var(--err-row); }
.ig .o { font: 700 13px var(--font-display); }
.ig .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ig .c { font: 12px var(--font-mono); color: var(--ink-2); }
.ig .g { color: var(--ink-2); }
.ig.bad .o, .ig.bad .n { color: var(--err-fg); }

/* console at phone width: the aside stacks on top (flex-wrap), tables become cards */
@media (max-width: 760px) {
  .cmain { padding: 8px 16px 60px; }
  .aside { position: static; padding: calc(env(safe-area-inset-top) + 16px) 16px 0; gap: 14px; }
  .aside .me-card { display: none; }
  .nav-btn, .sup-link { flex: 1 1 auto; }
  .page-head h1 { font-size: 30px; }
  .loc-grid.head, .ug.head { display: none; }
  .loc-grid.row { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "o n s" "o c c"; }
  .loc-grid.row .grip, .loc-grid.row .tg { display: none; }
  .loc-grid.row .ord { grid-area: o; } .loc-grid.row .nm { grid-area: n; } .loc-grid.row .co { grid-area: c; } .loc-grid.row .chip { grid-area: s; }
  .ug.row { grid-template-columns: minmax(0, 1fr) auto; }
  .ug.row .em, .ug.row .la { display: none; }
  .ug.row .st { grid-column: 2; }
  .ig { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); }
  .ig .c, .ig .g { display: none; }
  .search { min-width: 0; flex: 1; }
  .track-steps .l { font-size: 10px; }
  .grid2 { grid-template-columns: 1fr; }
  .shoot-head .btn { flex: 1; }
}
@media (min-width: 761px) { .people-stack:empty { display: none; } }
.profile-card .m { min-width: 0; }
.profile-card .n, .profile-card .e { overflow-wrap: anywhere; }
/* 200% zoom on a phone (about 195 CSS px): grids go to one column, the ring and the profile card shrink */
@media (max-width: 300px) {
  .up-grid, .stat-grid, .tile-row, .stat-row { grid-template-columns: 1fr; }
  .ring-wrap { width: min(200px, 100%); height: auto; aspect-ratio: 1; }
  .ring-wrap snap-ring, .ring-wrap snap-ring svg { display: block; width: 100% !important; height: 100% !important; }   /* the element sizes its svg from size="200" */
  .ring-in .big { font-size: 44px; }
  .profile-card { flex-wrap: wrap; }
}

/* Reflow (WCAG 1.4.10): at 320 px and at 200% zoom on a phone (about 195 CSS px) nothing scrolls sideways and no
 * control cuts its label. Buttons wrap their text and grow instead of clipping; rows put their status chip under the
 * name; headers put the title on its own line under the two round buttons; long words (emails, URLs) break. */
@media (max-width: 340px) {
  .btn { white-space: normal; height: auto; padding-top: 6px; padding-bottom: 6px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; min-width: 0; flex-shrink: 1; max-width: 100%; }
  .btn { min-height: 52px; } .btn.xl { min-height: 60px; } .btn.lg { min-height: 56px; } .btn.md { min-height: 48px; }
  .btn.sm { min-height: 42px; } .btn.xs { min-height: 40px; } .btn.xxs { min-height: 36px; }
  .action-bar .shotnext { gap: 6px; }
}
@media (max-width: 300px) {
  .ph, .ph-full, .ph-signin, .handover, .cmain, .sheet, .dlg { overflow-wrap: anywhere; }
  .ph-head:not(.left) { flex-wrap: wrap; }
  .ph-head:not(.left) .ph-title { order: 3; flex: 1 0 100%; }
  .ph-title .t { white-space: normal; }
  .ph-head .pos { flex: 1; text-align: center; }
  .ph-head.left { flex-wrap: wrap; }
  .ph-title-left { min-width: 0; }
  .loc-card, .shoot-row { flex-wrap: wrap; gap: 10px; }
  .loc-card .m, .shoot-row .m { flex: 1 1 90px; }
  .loc-card .s { white-space: normal; }
  .loc-card .chip, .shoot-row .chip { margin-left: 54px; white-space: normal; }
  .loc-title { flex-wrap: wrap; }
  .loc-title h1 { font-size: 22px; min-width: 0; }
  .step { flex-wrap: wrap; }
  .step .l { min-width: 0; flex: 1 1 80px; }
  .step .s { margin-left: 42px; }
  .handed-link { flex-wrap: wrap; }
  .handed-link .spacer { display: none; }
  .complete-body h1, .magic-title, .noinv-title, .invite-text h1, .signin-text h1 { font-size: 24px; }
  .action-bar .shotnext { font-size: 14px; padding: 0 8px; }
  .bottom.cta-strip { padding-left: 12px; padding-right: 12px; }
  .bottom.cta-strip .btn { font-size: 15px; padding-left: 14px; padding-right: 14px; }
  .action-bar .shotnext svg { display: none; }
  .chip-row { flex-wrap: wrap; justify-content: center; }
  .today-top { flex-wrap: wrap; }
  .ring-in .big { font-size: 36px; } .ring-in .of { font-size: 22px; } .ring-in .cap { font-size: 12px; }
  .loc .seg { flex-direction: column; border-radius: 26px; }          /* three statuses stacked: no "Resh-oot" */
  .loc .seg button { overflow-wrap: normal; flex: 0 0 auto; }
  .brand-pill span { overflow-wrap: normal; }
  /* four labels don't fit beside the camera button: icons only, the label stays the link's accessible name */
  .tab:not(.cam) > span:not(.ti) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tab .ti { width: 100%; max-width: 44px; height: 44px; }
  /* seven 20 px columns cut "Mon" and leave no disc around the date: the week goes to two rows of four */
  .week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; justify-items: center; }
  .week .day { width: 100%; max-width: 46px; }
  /* GPS row: pin + text on the first line, the button full width under it (no one-letter-wide text column) */
  .gps-row { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .gps-row .m { flex: 1 1 0; min-width: 0; }
  .gps-row .btn { flex: 1 0 100%; }
}

/* ================================================================== superadmin lab (lab.js; Superadmin Lab.dc.html) */
.sup-link.on { background: var(--ink); color: var(--on-ink); outline: none; }
.ink { color: var(--ink); }
.lab-head .page-sub { max-width: 720px; }
.lab-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lab-facts > span { padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface); font-size: 13px; color: var(--muted); }
.lab-facts b { color: var(--ink); font-weight: 600; }
.lab-honest { margin-top: 8px; max-width: 760px; }
.lab-sec { margin-top: 16px; }
.lab-sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lab-sec-h.big { margin: 28px 0 12px; }
.lab-sec-h.big h2 { font: 700 22px var(--font-display); letter-spacing: -0.01em; }
.lab-sec-h .btn { align-self: center; }
.card.sec .lab-sec-h .h2 { margin-bottom: 0; }
.lab-more { margin-top: 8px; }
.lab-more > summary { font: 600 14px var(--font-ui); color: var(--muted); padding: 0 12px; }

/* datasets */
.lab-ds { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.lab-ds-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-row); background: var(--surface-2); flex-wrap: wrap; }
.lab-check { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.lab-ds-row .m { flex: 1 1 200px; min-width: 0; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; min-height: 44px; justify-content: center; }
.lab-ds-row .m:hover .t { text-decoration: underline; }
.lab-ds-row .t { font: 600 14px var(--font-ui); }
.lab-ds-row .slug { font: 400 12px var(--font-mono); color: var(--muted); margin-left: 4px; }
.lab-ds-row .s { font-size: 12px; color: var(--muted); }
.lab-cov { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; }
.lab-bar { flex: 1; height: 14px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.lab-bar i { display: block; height: 100%; border-radius: var(--r-pill); transition: width .6s; }
.lab-cov .v { font: 700 13px var(--font-ui); width: 42px; text-align: right; }

/* the run card: ring + live log */
.lab-run { --rbg: var(--proc-bg); --rfg: var(--proc-fg); --rink: var(--proc-ink); --rtitle: var(--proc-title);
  border-radius: var(--r-lg); background: var(--rbg); color: var(--rtitle); padding: 24px; display: flex; gap: 24px; flex-wrap: wrap; align-items: stretch; }
.lab-run.done { --rbg: var(--shot-bg); --rfg: var(--shot-fg); --rink: var(--shot-ink); --rtitle: var(--shot-ink); }
.lab-run.failed { --rbg: var(--err-bg); --rfg: var(--err-fg); --rink: var(--err-ink); --rtitle: var(--err-title); }
.lab-run.stopped { --rbg: var(--notshot-bg); --rfg: var(--notshot-fg); --rink: #1F1B16; --rtitle: #1F1B16; }
.lab-run-l { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 180px; }
.lab-ring { position: relative; width: 170px; height: 170px; }
.lab-ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lab-ring .big { font: 800 42px var(--font-display); letter-spacing: -0.04em; color: var(--rink); }
.lab-ring .cap { font-size: 12px; color: var(--rfg); max-width: 120px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.white-err { background: #FFFFFF; color: var(--err-btn-fg); }
.lab-run-r { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 10px; }
.lab-run-t { font: 700 19px var(--font-display); color: var(--rink); }
.chip.proc-fg { color: var(--proc-fg); }
.chip.lab-run-chip { background: #FFFFFF; color: var(--rfg); }
.lab-run .btn.secondary { background: #FFFFFF; color: #1F1B16; }   /* pastel card: white buttons in both themes */
.lab-run-msg { font-size: 13px; color: var(--rfg); overflow-wrap: anywhere; }
.lab-log { flex: 1; min-height: 180px; max-height: 260px; overflow-y: auto; border-radius: var(--r-input); background: #1F1B16; color: #E9E4DC; padding: 14px 16px; font: 12px/1.7 var(--font-mono); overflow-wrap: anywhere; }
.lab-log .ok { color: #9EDDB4; } .lab-log .bad { color: #FFB4A8; } .lab-log .dim { opacity: .6; }
.lab-log pre { margin: 0; white-space: pre-wrap; font: inherit; }
/* Full log: an error naming a long path / hash (no spaces) wraps instead of pushing the page sideways on a phone */
.notice.lab-wrap > span { min-width: 0; overflow-wrap: anywhere; font-feature-settings: "calt" 0; }   /* a path: "2048x1024" stays an x, not Inter's × */
.lab-log pre, .lab-log .txt > div, .lab-log .bad { overflow-wrap: anywhere; }
/* the Full log page: the whole log in the app, tall, error lines marked */
.lab-log.full { position: relative; min-height: 320px; max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); }
.lab-log.full .bad { font-weight: 600; }
.lab-fulllog-foot { margin-top: 12px; flex-wrap: wrap; }
.link-btn.proc { color: var(--proc-fg); font-weight: 600; }
.lab-run .link-btn.proc { color: var(--rfg); }

/* tables (rows on cream, as the design's jobs table) */
.lab-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.lab-tbl { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.lab-tr { display: grid; grid-template-columns: var(--cols); gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-input); }
.lab-tr.head { padding: 8px 12px; font: 600 12px var(--font-ui); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lab-tr.row { background: var(--surface-2); font-size: 13px; color: var(--ink); text-decoration: none; }
a.lab-tr.row:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); text-decoration: none; }
.lab-tr .b, .lab-ver .b, .lab-res .b, .lab-picker .b { font-weight: 600; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lab-tr .r { text-align: right; justify-self: end; }
.lab-tr .chip { justify-self: start; }
.lab-older .lab-tr { grid-template-columns: 80px minmax(0, 1fr) 140px; }
.lab-older { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }

/* model versions */
.lab-vers { display: flex; flex-direction: column; gap: 16px; }
.lab-ver { border-radius: var(--r-xl); background: var(--surface); padding: 24px; border: 3px solid var(--surface); }
.lab-ver.on { border-color: var(--mint-dot); }
.lab-ver-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lab-ver-h .n { font: 800 30px var(--font-display); letter-spacing: -0.03em; }
.lab-ver-h .meta { flex: 1; font-size: 13px; color: var(--muted); min-width: 200px; }
.lab-ver-b { display: flex; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.lab-ver-bars { flex: 1 1 300px; min-width: 0; }
.lab-bars { display: grid; gap: 10px; align-items: end; height: 240px; }
.lab-barcol { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; min-width: 0; }
.lab-barcol .track { flex: 1; width: 100%; max-width: 76px; border-radius: var(--r-pill); background: var(--bg); display: flex; align-items: flex-end; overflow: hidden; }
.lab-barcol .fill { width: 100%; border-radius: var(--r-pill); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; font: 700 13px var(--font-ui); transition: height .6s; }
.lab-barcol .l { font: 600 12px var(--font-ui); text-align: center; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-bars-cap { margin-top: 10px; font-size: 12px; }
.lab-nonum { border-radius: 22px; background: var(--surface-2); padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; height: 100%; justify-content: center; }
.lab-nonum .t { font: 700 17px var(--font-display); }
.lab-deltas { flex: 1 1 300px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.lab-deltas.wide4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lab-delta { border-radius: 22px; padding: 16px; background: var(--dbg); color: var(--dfg); }
.lab-delta.wide { grid-column: 1 / -1; }
.lab-delta .k { font: 600 12px var(--font-ui); }
.lab-delta .v { font: 800 34px/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--dink); margin-top: 6px; }
.lab-delta .s { font-size: 12px; }
.lab-delta.good { --dbg: var(--shot-bg); --dfg: var(--shot-fg); --dink: var(--shot-ink); }
.lab-delta.bad { --dbg: var(--err-bg); --dfg: var(--err-fg); --dink: var(--err-ink); }
.lab-delta.proc { --dbg: var(--proc-bg); --dfg: var(--proc-fg); --dink: var(--proc-ink); }
.lab-delta.grey { --dbg: var(--notshot-bg); --dfg: var(--notshot-fg); --dink: #1F1B16; }
.lab-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.lab-pp { border-radius: 22px; background: var(--surface-2); padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lab-pp-i { margin: 0; min-width: 0; }
.lab-pp-i .im { height: 92px; border-radius: 14px; overflow: hidden; background: var(--line); }
.lab-pp-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lab-pp-i figcaption { font: 600 11px var(--font-ui); color: var(--muted); padding: 6px 4px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-pp-i + .lab-pp-i figcaption { color: var(--ink); }
.lab-hist { margin-top: 16px; }
.lab-hist > summary { margin-bottom: 4px; }

/* key/value, steps, forms, bench */
.lab-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 14px; margin: 12px 0 0; font-size: 14px; }
.lab-kv dt { font: 600 13px var(--font-ui); color: var(--muted); }
.lab-kv dd { margin: 0; overflow-wrap: anywhere; }
.lab-steps { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.lab-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-tile); background: var(--surface-2); font-size: 13px; }
.lab-step .nm { flex: 1; font: 600 14px var(--font-ui); }
.lab-form { margin-top: 20px; max-width: 780px; }
.lab-fs { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.lab-fs legend { padding: 0; margin: 0 0 8px; }   /* a legend ignores the label's top margin: the fieldset carries it */
.note-chip.sm { height: 40px; font-size: 13px; padding: 0 14px; }
.lab-pair .note-chip, .lab-form .note-chip, dialog .note-chip { background: var(--bg); border-color: var(--bg); }
.lab-pair .note-chip[aria-pressed="true"] { background: var(--ready-bg); color: var(--ready-fg); border-color: var(--mustard); }
.lab-tick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.lab-tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.lab-tick .n { opacity: .7; font-weight: 500; }
.lab-tick:has(input:checked) { background: var(--ready-bg) !important; color: var(--ready-fg); border-color: var(--mustard) !important; }
.lab-tick:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.lab-tick input:focus-visible { outline: none; }
.lab-pairs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 16px; }
.lab-pair { border-radius: var(--r-md); background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.lab-pair.out { opacity: .7; }
.lab-thumb { border: 0; padding: 0; border-radius: var(--r-tile); overflow: hidden; position: relative; aspect-ratio: 2 / 1; background: var(--line); display: block; width: 100%; }
.lab-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lab-thumb .pill, .lab-cmt .pano span { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: var(--r-pill); background: rgba(31, 27, 22, .8); color: #fff; font: 500 11px var(--font-ui); }
.lab-pair-b { padding: 2px 6px 6px; }
.lab-pair-b .t { font: 600 14px var(--font-ui); overflow-wrap: anywhere; }
.lab-pair-b .s { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.lab-bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 12px; }
.lab-bench .card.sec { padding: 16px; }
.lab-bench-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.lab-bench-imgs .im { height: 140px; }

/* blind tests */
.lab-rounds { margin-top: 18px; }
.pill-tab .live { width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); display: inline-block; margin-left: 8px; }
.lab-blind { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; align-items: flex-start; }
.lab-blind > .card { flex: 1 1 380px; min-width: 0; }
.lab-revs { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.lab-rev { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-row); background: var(--surface-2); flex-wrap: wrap; }
.lab-rev .ring { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.lab-rev snap-ring circle:first-child { stroke: var(--line); }   /* the track follows the theme; the arc keeps its colour */
.lab-rev .ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 13px var(--font-display); }
.lab-rev .m { flex: 1; min-width: 140px; }
.lab-rev .t { font: 600 14px var(--font-ui); }
.lab-rev .s { font-size: 12px; color: var(--muted); }
.lab-addrev { margin-top: 10px; }
.lab-addrev + .hint { margin-top: 8px; }
.input:disabled { opacity: .75; }
.lab-results.open { background: var(--ready-bg); }
.lab-blinded { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px 0; }
.lab-blinded .t { font: 800 22px var(--font-display); }
.lab-blinded p { font-size: 14px; color: var(--muted); max-width: 320px; }
.lab-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; height: 250px; margin-top: 10px; }
.lab-pod { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.lab-pod .n { font: 800 34px var(--font-display); letter-spacing: -0.03em; color: #1F1B16; }
.lab-pod .bar { width: 100%; border-radius: 24px 24px 10px 10px; display: flex; flex-direction: column; align-items: center; padding: 14px 6px 0; font: 700 14px var(--font-ui); text-align: center; }
.lab-pod .bar span { font: 500 12px var(--font-ui); opacity: .9; margin-top: 2px; }
.lab-clear { font-size: 13px; color: var(--ready-fg); margin-top: 10px; }
.lab-scenes { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.lab-scene { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr); gap: 12px; align-items: center; padding: 8px 12px; border-radius: var(--r-tile); background: #FFFFFF; color: #1F1B16; }
.lab-scene .nm { font: 600 13px var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-wtl { display: flex; height: 22px; border-radius: var(--r-pill); overflow: hidden; font: 700 11px var(--font-ui); }
.lab-wtl span { display: flex; align-items: center; justify-content: center; }
/* one colour code on the card: the podium's green / sand / brown */
.lab-wtl .w, .lab-legend .w { background: #7FAA5B; color: #0F2A05; }
.lab-wtl .t, .lab-legend .t { background: #E7E2DA; color: #4A443C; }
.lab-wtl .l, .lab-legend .l { background: #8B5E3C; color: #FFFFFF; }
.lab-legend { display: flex; gap: 14px; margin-top: 10px; font: 500 12px var(--font-ui); color: var(--ready-fg); flex-wrap: wrap; }
.lab-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lab-src { font-size: 12px; color: var(--ready-fg); margin-top: 8px; }
.lab-comments { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.lab-cmt { border-radius: 22px; background: var(--surface-2); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lab-cmt .who { font: 600 13px var(--font-ui); }
.lab-cmt .txt { font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.lab-sides { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font: 600 12px var(--font-ui); color: var(--ink-2); }
.lab-sides .ab { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--ink); color: var(--bg); font: 700 11px var(--font-ui); }
.lab-sides .sep { color: var(--muted); margin: 0 4px; }
.lab-sides.unknown { font-weight: 500; color: var(--muted); }
.lab-cmt .pano { height: 110px; border-radius: 14px; overflow: hidden; position: relative; background: var(--line); }
.lab-cmt .pano img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* processing queue */
.lab-wks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 22px; }
.lab-wk { border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--wbg); color: var(--wfg); min-width: 0; }
.lab-wk .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.lab-wk .n { font: 700 16px var(--font-display); color: var(--wink); }
.lab-wk .st { font: 600 12px var(--font-ui); }
.lab-wk .v { font: 800 40px/1 var(--font-display); letter-spacing: -0.04em; color: var(--wink); }
.lab-wk .bar, .lab-wk .nobar { height: 12px; border-radius: var(--r-pill); }
.lab-wk .bar { background: rgba(255, 255, 255, .7); overflow: hidden; }
.lab-wk .bar i { display: block; height: 100%; background: var(--wink); border-radius: var(--r-pill); transition: width .6s; }
.lab-wk .s { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lab-wk.proc { --wbg: var(--proc-bg); --wfg: var(--proc-fg); --wink: var(--proc-ink); }
.lab-wk.ready { --wbg: var(--ready-bg); --wfg: var(--ready-fg); --wink: var(--ready-ink); }
.lab-wk.shot { --wbg: var(--shot-bg); --wfg: var(--shot-fg); --wink: var(--shot-ink); }
.lab-wk.sage { --wbg: var(--sage-bg); --wfg: var(--sage-fg); --wink: var(--sage-ink); }
.lab-wk.err { --wbg: var(--err-bg); --wfg: var(--err-fg); --wink: var(--err-ink); }
.lab-wk.grey { --wbg: var(--notshot-bg); --wfg: var(--notshot-fg); --wink: #1F1B16; }
.lab-qcard { margin-top: 16px; padding: 12px; container-type: inline-size; }
.lab-tr.row.q { padding: 6px 12px; min-height: 48px; }   /* one height with or without a button (36 px) */
.lab-tr.row.q .c-st { display: flex; }
@container (max-width: 720px) {
  .qtbl > .lab-tr.head { display: none; }
  .lab-tr.row.q { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name st" "step step" "res time" "acts acts"; gap: 4px 12px; padding: 10px 12px; }
  .lab-tr.row.q .c-name { grid-area: name; } .lab-tr.row.q .c-st { grid-area: st; justify-self: end; }
  .lab-tr.row.q .c-step { grid-area: step; white-space: normal; overflow-wrap: anywhere; }
  .lab-tr.row.q .c-res { grid-area: res; } .lab-tr.row.q .c-time { grid-area: time; justify-self: end; }
  .lab-tr.row.q .c-acts { grid-area: acts; justify-content: flex-start; }
  .lab-tr.row.q .c-acts:empty { display: none; }
  .lab-tr.row.q .c-step:empty, .lab-tr.row.q .c-time:empty { display: none; }
}
.lab-qcard .lab-tbl { margin-top: 0; }
.lab-batch { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.lab-batch-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 8px 6px; font-size: 13px; }
.lab-batch-h .t { font: 700 16px var(--font-display); }
.lab-batch-h .dest { max-width: 440px; }
.lab-tr.row.q.bad { background: var(--err-row); }
select.input.sm { min-width: 120px; padding-right: 36px; background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px; }
.lab-cell-btn { border: 0; background: none; padding: 4px 0; margin: -4px 0; text-align: left; color: var(--ink); font: inherit; min-width: 0; display: block; min-height: 32px; }
.lab-cell-btn:hover .b { text-decoration: underline; }
.lab-tr .acts { display: flex; gap: 6px; justify-content: flex-end; }
.lab-empty-q { display: flex; align-items: center; gap: 20px; padding: 20px 24px; flex-wrap: wrap; }
.lab-empty-q .t { font: 800 22px var(--font-display); }
.lab-results-list { display: flex; flex-direction: column; gap: 8px; }
.lab-res { padding: 12px 14px; border-radius: var(--r-tile); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.lab-picker { margin-top: 10px; border-radius: var(--r-input); background: var(--surface-2); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.lab-pick-for { font: 600 12px var(--font-ui); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lab-pick-for b { color: var(--ink); }
.lab-pick-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.lab-picker .pick { background: var(--surface); height: 46px; font-size: 14px; flex-shrink: 0; }

/* email outbox */
.lab-outbox { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; align-items: flex-start; }
.lab-mails { flex: 1 1 380px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lab-preview { flex: 1 1 380px; min-width: 0; position: sticky; top: 16px; }
.lab-mail { border: 0; background: var(--surface); text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-input); width: 100%; color: var(--ink); font: inherit; min-height: 56px; }
.lab-mail:hover { background: var(--surface-2); }
.lab-mail.on { background: var(--bg); }
.lab-mail .m { flex: 1; min-width: 0; }
.lab-mail .t { display: block; font: 600 14px var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-mail .s { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-mail-h { margin: 6px 0 14px; font: 700 20px var(--font-display); overflow-wrap: anywhere; }
.lab-mail-body { border-radius: var(--r-row); background: var(--bg); padding: 20px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.lab-code { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .lab-run { padding: 18px; }
  .lab-run-l { min-width: 100%; }
  .lab-run-r { min-width: 0; }
  .lab-bars { height: 200px; }
  .lab-podium { height: 210px; }
  .lab-pod .n { font-size: 28px; }
  .lab-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lab-kv dd { margin-bottom: 8px; }
  .lab-preview { position: static; }
  .lab-bench, .lab-pairs-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-ver { padding: 18px; }
  .lab-ver-h .meta { min-width: 100%; order: 3; }
  .lab-deltas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-delta .v { font-size: 28px; }
  .lab-scene { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lab-batch-h .dest { max-width: 100%; }
}
.page-head h1 .chip { letter-spacing: 0; vertical-align: middle; margin-left: 4px; }
