:root {
  /* Alpine palette. Blue is the accent, not the fill. Dark values below. */
  --bg:#eef2f7; --card:#ffffff; --card2:#f6f8fb; --ink:#0f1b2d; --muted:#5b6b80; --line:#dde4ee;
  --accent:#1565c0; --accent-ink:#0d4f9a; --accent-soft:#e4eefb; --accent-text:#ffffff;
  --danger:#b3261e; --badbg:#fde8e6; --badline:var(--badline);
  --okbg:#dff4e8; --okink:#0f7a4f; --okline:var(--okline);
  --warnbg:#fff1d6; --warnink:#8a5300; --warnline:var(--warnline);
  --infobg:var(--infobg); --infoink:var(--infoink);
  --goalbg:var(--goalbg); --goalink:var(--goalink); --ccrink:var(--ccrink);
  --shadow:0 1px 2px rgba(15,27,45,.06), 0 4px 14px rgba(15,27,45,.05);
  --radius:16px;
  --tabbar-h:100px;
  --raise-bg:#9fc8f5; --raise-ink:#0d3f7a;
}
/* Dark: the phone's setting unless the person picked Light or Dark in Settings
   (data-theme on <html>, app.js applyTheme). Same values in both blocks. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg:#0b1220; --card:#141c2b; --card2:#1a2334; --ink:#e8eef7; --muted:#94a3b8; --line:#243044;
  --accent:#5aa0f0; --accent-ink:#8ec0ff; --accent-soft:#16304f; --accent-text:#06162b;
  --danger:#ff8a80; --badbg:#3d1512; --badline:#5a2320;
  --okbg:#0f2e22; --okink:#4fd49a; --okline:#1d4d38;
  --warnbg:#3a2a0a; --warnink:#f0b64a; --warnline:#5a4314;
  --infobg:#16304f; --infoink:#8ec0ff;
  --goalbg:#3a2210; --goalink:#f5a35c; --ccrink:#c79bff;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.35);
  --raise-bg:#b9d8fa; --raise-ink:#06162b;
  color-scheme:dark;
} }
/* Violet and Sage (theme key "pink"): bubblegum background, rose cards, hot pink accent, and a faint cat
   outline sitting in the lower right behind everything. Semantic colors (ok,
   warn, bad) stay as they are so chips still read the same. */
:root[data-theme="pink"] {
  --bg:#fde3f0; --card:#fff7fb; --card2:#ffe9f3; --ink:#4a1a35; --muted:#9a5c7c; --line:#f7c3da;
  --accent:#ff4fa3; --accent-ink:#d81b74; --accent-soft:#ffd3e6; --accent-text:#ffffff;
  --raise-bg:#ffb3d6; --raise-ink:#a3104f;
  --infobg:#ffd3e6; --infoink:#d81b74;
  --shadow:0 1px 2px rgba(216,27,116,.08), 0 4px 14px rgba(216,27,116,.08);
  color-scheme:light;
}
:root[data-theme="pink"] body {
  background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 240%22 fill=%22none%22 stroke=%22%23ff4fa3%22 stroke-width=%223%22 stroke-opacity=%220.38%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M62 62 L55 16 L88 40 Q100 36 112 40 L145 16 L138 62 Q152 82 140 102 Q120 120 100 120 Q80 120 60 102 Q48 82 62 62 Z%22/%3E%3Cpath d=%22M72 114 Q38 160 50 216 Q100 234 150 216 Q162 160 128 114%22/%3E%3Cpath d=%22M150 214 Q192 218 186 180 Q183 160 168 166%22/%3E%3Cpath d=%22M80 80 q7 -7 14 0%22/%3E%3Cpath d=%22M106 80 q7 -7 14 0%22/%3E%3Cpath d=%22M95 93 h10 l-5 6 z%22 fill=%22%23ff4fa3%22/%3E%3Cpath d=%22M100 99 q-6 8 -12 4%22/%3E%3Cpath d=%22M100 99 q6 8 12 4%22/%3E%3Cpath d=%22M58 90 l26 3 M57 100 l27 -1 M142 90 l-26 3 M143 100 l-27 -1%22/%3E%3Cpath d=%22M70 176 q30 10 60 0%22/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right -24px bottom 84px; background-size:250px auto; background-attachment:fixed;
}
:root[data-theme="pink"] .tile .material-icons, :root[data-theme="pink"] .avatar { background:var(--accent-soft); color:var(--accent-ink); }
:root[data-theme="pink"] .today .st.me { background:#fff0f7; }
:root[data-theme="pink"] header { background:rgba(253,227,240,.86); }
/* Pip Boy (theme key "vault", Robi only, 2026-10-30): Vault suit blue with gold,
   terminal type (fonts load only when picked, app.js vaultFonts_), ALL CAPS labels,
   a soft gold glow, faint scanlines over everything and a Vault door cog in the
   lower right. app.js shows the button and applies the theme for Robi's login only. */
:root[data-theme="vault"] {
  --bg:#0e2a57; --card:#143a75; --card2:#184485; --ink:#f3f6ff; --muted:#b9cdf2; --line:#2a5296;
  --accent:#ffd23f; --accent-ink:#ffe27a; --accent-soft:#1f4c94; --accent-text:#0e2a57;
  --danger:#ff8a80; --badbg:#3d1512; --badline:#5a2320;
  --okbg:#0f2e22; --okink:#4fd49a; --okline:#1d4d38;
  --warnbg:#3a2a0a; --warnink:#f0b64a; --warnline:#5a4314;
  --infobg:#1f4c94; --infoink:#ffe27a;
  --goalbg:#3a2210; --goalink:#f5a35c; --ccrink:#c79bff;
  --shadow:0 0 0 1px rgba(255,210,63,.08), 0 4px 14px rgba(0,0,0,.35);
  --raise-bg:#ffd23f; --raise-ink:#0e2a57;
  --pip-glow:0 0 6px rgba(255,210,63,.45);
  color-scheme:dark;
}
:root[data-theme="vault"] body {
  font-family:"Share Tech Mono",ui-monospace,Menlo,monospace;
  background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22 fill=%22none%22 stroke=%22%23ffd23f%22 stroke-width=%223%22 stroke-opacity=%220.22%22%3E%3Ccircle cx=%22100%22 cy=%22100%22 r=%2270%22/%3E%3Ccircle cx=%22100%22 cy=%22100%22 r=%2246%22/%3E%3Ccircle cx=%22100%22 cy=%22100%22 r=%2214%22/%3E%3Cg stroke-width=%2214%22%3E%3Cpath d=%22M100 18v14M100 168v14M18 100h14M168 100h14M42 42l10 10M148 148l10 10M42 158l10 -10M148 52l10 -10%22/%3E%3C/g%3E%3Cpath d=%22M100 54v32M100 114v32M54 100h32M114 100h32%22/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right -40px bottom 90px; background-size:240px auto; background-attachment:fixed;
}
:root[data-theme="vault"] body::after { content:""; position:fixed; inset:0; z-index:9999; pointer-events:none;
  background:repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
:root[data-theme="vault"] h1, :root[data-theme="vault"] .seclabel, :root[data-theme="vault"] .eyebrow,
:root[data-theme="vault"] .tile .name, :root[data-theme="vault"] .tabbarnav .tbi, :root[data-theme="vault"] .piptabs {
  font-family:"VT323","Share Tech Mono",ui-monospace,monospace; text-transform:uppercase; letter-spacing:.06em; font-weight:400; }
:root[data-theme="vault"] h1 { font-size:26px; color:var(--accent); text-shadow:var(--pip-glow); }
:root[data-theme="vault"] .homehead h1 { font-size:28px; }
:root[data-theme="vault"] .tile .name { font-size:19px; }
:root[data-theme="vault"] .seclabel, :root[data-theme="vault"] .eyebrow { font-size:17px; color:var(--accent); }
:root[data-theme="vault"] .tile { border-radius:6px; border-color:var(--line); }
:root[data-theme="vault"] .tile .material-icons { color:var(--accent); text-shadow:var(--pip-glow); }
:root[data-theme="vault"] .avatar { background:var(--accent); color:var(--accent-text); font-family:"VT323",monospace; font-size:22px; }
:root[data-theme="vault"] header { background:rgba(14,42,87,.9); }
/* Decorative Pip Boy tab strip on Home; hidden in every other theme. */
.piptabs { display:none; }
:root[data-theme="vault"] .homehead { flex-wrap:wrap; }
:root[data-theme="vault"] .piptabs { flex-basis:100%; display:flex; justify-content:space-between; gap:4px; margin:0 0 4px; padding:0 2px 6px;
  border-bottom:2px solid var(--accent); font-size:20px; color:var(--accent); text-shadow:var(--pip-glow); }
.piptabs span { padding:0 6px; }
.piptabs span.on { background:var(--accent); color:var(--accent-text); text-shadow:none; }
/* Garden State (theme key "gardenstate", Elijah's TMOT win, 2026-11-06): from his
   ServiceTitan bio (New Jersey, crabbing, hoops) in the green and platinum he asked
   for. Jersey type (Bebas Neue, loaded only when picked, app.js themeFonts_), waves
   and a basketball in the lower right, and a strip of real links on Home. app.js
   shows the button and applies the theme for Elijah's login only. */
:root[data-theme="gardenstate"] {
  --bg:#14432f; --card:#1b5a3f; --card2:#1f6447; --ink:#f1f5f2; --muted:#a8cdb9; --line:#2a6b4f;
  --accent:#dfe3e6; --accent-ink:#ffffff; --accent-soft:#1f6447; --accent-text:#14432f;
  --danger:#ff8a80; --badbg:#3d1512; --badline:#5a2320;
  --okbg:#0f2e22; --okink:#4fd49a; --okline:#1d4d38;
  --warnbg:#3a2a0a; --warnink:#f0b64a; --warnline:#5a4314;
  --infobg:#1f6447; --infoink:#dfe3e6;
  --goalbg:#3a2210; --goalink:#f5a35c; --ccrink:#c79bff;
  --shadow:0 0 0 1px rgba(223,227,230,.06), 0 4px 14px rgba(0,0,0,.3);
  --raise-bg:#dfe3e6; --raise-ink:#14432f;
  color-scheme:dark;
}
:root[data-theme="gardenstate"] body {
  background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 120%22 fill=%22none%22 stroke=%22%23dfe3e6%22 stroke-width=%223%22 stroke-opacity=%220.2%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M0 70 q25 -18 50 0 t50 0 t50 0 t50 0 M0 92 q25 -18 50 0 t50 0 t50 0 t50 0%22/%3E%3Ccircle cx=%22150%22 cy=%2230%22 r=%2220%22/%3E%3Cpath d=%22M130 30 h40 M150 10 v40 M136 16 q14 14 0 28 M164 16 q-14 14 0 28%22/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right -30px bottom 90px; background-size:260px auto; background-attachment:fixed;
}
:root[data-theme="gardenstate"] h1, :root[data-theme="gardenstate"] .seclabel, :root[data-theme="gardenstate"] .eyebrow,
:root[data-theme="gardenstate"] .tile .name, :root[data-theme="gardenstate"] .gstabs {
  font-family:"Bebas Neue",system-ui,sans-serif; letter-spacing:.04em; font-weight:400; }
:root[data-theme="gardenstate"] .homehead h1 { font-size:27px; }
:root[data-theme="gardenstate"] .tile .name { font-size:19px; }
:root[data-theme="gardenstate"] .seclabel, :root[data-theme="gardenstate"] .eyebrow { font-size:17px; color:var(--accent); }
:root[data-theme="gardenstate"] .tile .material-icons { color:var(--accent); }
:root[data-theme="gardenstate"] .avatar { background:var(--accent); color:var(--accent-text); }
:root[data-theme="gardenstate"] header { background:rgba(20,67,47,.9); }
:root[data-theme="gardenstate"] .hero { background:var(--card); color:var(--ink); border-left:3px solid var(--accent); border-radius:0; }
:root[data-theme="gardenstate"] .hero .hic { color:var(--accent); }
/* The Garden State link strip on Home (NJ, Crab, Hoops, TMOT); hidden in every other theme. */
.gstabs { display:none; }
:root[data-theme="gardenstate"] .homehead { flex-wrap:wrap; }
:root[data-theme="gardenstate"] .gstabs { flex-basis:100%; display:flex; justify-content:space-between; gap:4px; margin:0 0 4px; padding:0 2px 6px;
  border-bottom:2px solid var(--accent); font-size:20px; }
.gstabs a { color:var(--accent); text-decoration:none; padding:0 6px; }
.gstabs a:active { background:var(--accent); color:var(--accent-text); }
:root[data-theme="dark"] {
  --bg:#0b1220; --card:#141c2b; --card2:#1a2334; --ink:#e8eef7; --muted:#94a3b8; --line:#243044;
  --accent:#5aa0f0; --accent-ink:#8ec0ff; --accent-soft:#16304f; --accent-text:#06162b;
  --danger:#ff8a80; --badbg:#3d1512; --badline:#5a2320;
  --okbg:#0f2e22; --okink:#4fd49a; --okline:#1d4d38;
  --warnbg:#3a2a0a; --warnink:#f0b64a; --warnline:#5a4314;
  --infobg:#16304f; --infoink:#8ec0ff;
  --goalbg:#3a2210; --goalink:#f5a35c; --ccrink:#c79bff;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.35);
  --raise-bg:#b9d8fa; --raise-ink:#06162b;
  color-scheme:dark;
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
/* touch-action:manipulation turns off Safari's double tap zoom on anything tappable,
   so fast taps on the PIN keypad (or a tile) never zoom the page. */
button, [role=button], a, .tile, .row, .tbi, .qa, .st, .need, .keypad, .seg, .tab, .back, .hgear, .material-icons { touch-action:manipulation; }
html { height:100%; }
body { margin:0; min-height:100%; font-family:"Figtree",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; background:var(--bg); color:var(--ink);
  padding-bottom:env(safe-area-inset-bottom); -webkit-font-smoothing:antialiased; }
/* Material Symbols Rounded replaces the 2014 Material Icons set. The class name
   stays "material-icons" so nothing in index.html or app.js has to change. */
/* Icons stay invisible until the symbol font is in (app.js adds html.icons-ready),
   so a fresh load never flashes the icon names as text. */
.material-icons { visibility:hidden; }
html.icons-ready .material-icons { visibility:visible; }
.material-icons { font-family:"Material Symbols Rounded"; font-weight:normal; font-style:normal; font-size:24px; line-height:1;
  letter-spacing:normal; text-transform:none; display:inline-block; white-space:nowrap; word-wrap:normal; direction:ltr;
  font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 24; -webkit-font-feature-settings:'liga'; font-feature-settings:'liga'; }
.wrap { max-width:560px; margin:0 auto; padding:16px; }
header { position:sticky; top:0; z-index:5; background:color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  padding:calc(14px + env(safe-area-inset-top)) 16px 8px; max-width:560px; margin:0 auto; }
h1 { font-size:19px; font-weight:800; letter-spacing:-.01em; margin:0; display:flex; align-items:center; gap:8px; }
h1 .material-icons { color:var(--accent); }
.hlogo, .brandlogo { border-radius:22%; }
.hlogo { width:24px; height:24px; }
.brandlogo { width:72px; height:72px; margin-bottom:10px; }
.brand { text-align:center; margin-bottom:22px; }
.brand h1 { justify-content:center; font-size:24px; }
.sub { font-size:12px; color:var(--muted); margin:2px 0 0; }
.pagetitle { font-size:22px; letter-spacing:-.015em; }
.pillrow { margin:6px 0 4px; }

input[type=text],input[type=password],input[type=date],input[type=number],select,textarea {
  width:100%; font-size:16px; padding:12px 14px; border:1px solid var(--line);
  border-radius:12px; background:var(--card); color:var(--ink); font-family:inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid var(--accent); outline-offset:1px; border-color:var(--accent); }
button { font-size:16px; font-weight:700; color:var(--accent-text); background:var(--accent); border:0; border-radius:12px; padding:13px 16px; width:100%; cursor:pointer; font-family:inherit; transition:transform .12s ease, filter .12s ease; }
button:active { transform:scale(.98); filter:brightness(.95); }
button:disabled { opacity:.6; }
button:focus-visible, [role=button]:focus-visible, .tile:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

.search { display:flex; align-items:center; gap:8px; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:0 12px; margin:8px 0 4px; }
.search .material-icons { color:var(--muted); font-size:20px; }
.search input { border:0; padding:12px 0; outline:none; }
/* A type=search box (claude's) is not covered by the input rule above, so the browser drew its
   own darker, narrower field inside the bar. Same look as the SOP Library's text box: it fills
   the bar and takes the bar's colour. */
.search input[type=search] { flex:1; min-width:0; width:100%; font-size:16px; font-family:inherit; color:var(--ink); background:transparent; -webkit-appearance:none; appearance:none; border-radius:0; }
.search input[type=search]::-webkit-search-decoration { -webkit-appearance:none; }

.tiles { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.tile { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:14px 13px 13px; cursor:pointer; min-height:104px; display:flex; flex-direction:column; justify-content:space-between; gap:10px; box-shadow:var(--shadow); transition:transform .12s ease, box-shadow .12s ease; }
.tile:active { transform:scale(.97); box-shadow:none; }
.tile .material-icons { color:var(--accent-ink); font-size:22px; width:36px; height:36px; border-radius:12px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; flex:none; }
.tile .name { font-size:14.5px; font-weight:700; line-height:1.25; color:var(--ink); letter-spacing:-.005em; }
.tile .cnt { font-size:12px; color:var(--muted); margin-top:3px; line-height:1.35; }
/* Full-width blue call-to-action tile (new field inspection, time clock fix) */
.tile.wide { grid-column:1 / -1; }
.tile.ideacta { background:linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%); border-color:transparent; flex-direction:row; align-items:center; justify-content:flex-start; gap:12px; min-height:auto; padding:14px 16px; }
.tile.ideacta .material-icons { color:var(--accent-text); background:rgba(255,255,255,.18); font-size:24px; }
.tile.ideacta .name { color:var(--accent-text); font-size:15.5px; }
.tile.ideacta .cnt { color:var(--accent-text); opacity:.85; }

/* My Progress — the strip above the Score / Path / Coaching tabs */
/* auto-fit, so the CCR team's two stats (no Coaching) fill the row with no gap */
.pgstrip { display:grid; grid-template-columns:repeat(auto-fit, minmax(0, 1fr)); gap:8px; margin:10px 0 2px; }
.pgstat { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:10px 8px; text-align:center; cursor:pointer; min-height:74px; }
.pgstat .v { font-size:22px; font-weight:800; color:var(--accent); line-height:1.1; font-variant-numeric:tabular-nums; }
.pgstat .v .of { font-size:13px; font-weight:600; color:var(--muted); }
.pgstat .k { font-size:11px; color:var(--muted); font-weight:600; margin-top:3px; text-transform:uppercase; letter-spacing:.03em; }
.pgstat .m { font-size:11px; color:var(--muted); margin-top:2px; }
.tabbar.pg { margin-top:12px; }
.tabbar.pg .tab { font-weight:600; display:flex; align-items:center; justify-content:center; gap:5px; }
.tabbar.pg .tab .material-icons { font-size:16px; }
.pgwindow { font-size:12px; color:var(--muted); margin:8px 4px 0; display:flex; align-items:flex-start; gap:6px; line-height:1.4; }
.pgwindow:empty { display:none; }
.pgwindow .material-icons { font-size:15px; flex:none; margin-top:1px; }

/* My Score (TMOT) */
.scorehead { text-align:center; padding:6px 0 2px; }
.scoretotal { font-size:46px; font-weight:800; color:var(--accent); line-height:1; }
.scoremeta { font-size:13px; color:var(--muted); margin-top:4px; }
.scorenote { text-align:center; margin:8px 0 0; }
.scorebase { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--muted); font-weight:600; margin:14px 4px 8px; }
.scorebase span { color:var(--ink); font-weight:800; }
.scorecat { padding:12px 14px; margin-bottom:10px; }
.scorecathead { display:flex; justify-content:space-between; align-items:center; }
.scl { font-weight:700; font-size:15px; }
.scv, .sp { font-weight:800; font-variant-numeric:tabular-nums; }
.scv.pos, .sp.pos { color:var(--okink); }
.scv.neg, .sp.neg { color:var(--danger); }
.scv.zero, .sp.zero { color:var(--muted); }
.scoreev { display:flex; gap:8px; align-items:baseline; padding:6px 0; border-top:1px solid var(--line); font-size:13px; margin-top:6px; }
.scoreev:first-of-type { margin-top:8px; }
.scoreev .sed { color:var(--muted); flex:none; width:44px; }
.scoreev .sdt { flex:1; }
.scoreev.zeroev { color:var(--muted); justify-content:center; border-top:1px dashed var(--line); }
.scorelegend { margin-top:8px; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:2px 14px; }
.scorelegend summary { font-weight:700; font-size:14px; color:var(--accent); cursor:pointer; padding:11px 0; list-style:none; }
.scorelegend summary::-webkit-details-marker { display:none; }
.scorelegend summary::before { content:'＋ '; }
.scorelegend[open] summary::before { content:'－ '; }
.scorelegend .sllist { padding-bottom:10px; }
.scorelegend p { font-size:13px; color:var(--muted); margin:2px 0 10px; }
.slrow { display:flex; flex-direction:column; gap:2px; padding:7px 0; border-top:1px solid var(--line); font-size:13px; }
.slrow b { color:var(--ink); }
.slrow span { color:var(--muted); }

.seclabel { font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin:18px 4px 6px; }
/* Quality header with the window picker (My Progress → Coaching). */
.seclabel.qualhead { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.qualwin { font-size:12px; text-transform:none; letter-spacing:0; padding:4px 8px; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--ink); }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.row { display:flex; align-items:center; gap:12px; padding:14px; border-bottom:1px solid var(--line); cursor:pointer; transition:background .12s ease; }
.row:active { background:var(--card2); }
.row:last-child { border-bottom:0; }
.row .material-icons { color:var(--accent); font-size:22px; }
.row .t { flex:1; font-size:15px; }
.row .chev { color:var(--muted); font-size:20px; }
.pill { font-size:11px; font-weight:600; padding:2px 8px; border-radius:20px; white-space:nowrap; }
.pill.ok { color:var(--okink); background:var(--okbg); }
.pill.draft { color:var(--warnink); background:var(--warnbg); }
.pill.red { color:var(--danger); background:var(--badbg); }
.pill.mid { color:var(--infoink); background:var(--infobg); }
.pill.grey { color:var(--muted); background:var(--bg); }

/* My Path — progression: the bingo card + the final check */
.pathhead { text-align:center; padding:8px 0 2px; }
.pathlevels { display:flex; align-items:center; justify-content:center; gap:8px; font-weight:700; }
.pathlevels .plfrom { color:var(--muted); font-size:15px; }
.pathlevels .plto { color:var(--accent); font-size:19px; }
.pathlevels .material-icons { color:var(--muted); font-size:18px; }
.pathcount { font-size:13px; color:var(--muted); margin-top:8px; }
.pathcount b { font-size:22px; color:var(--ink); font-weight:800; }
.pathbar { height:8px; border-radius:6px; background:var(--line); margin:8px 4px 0; overflow:hidden; }
.pathbar i { display:block; height:100%; background:var(--accent); border-radius:6px; transition:width .4s ease; }
/* Top-rung card: anything short of every standard is a problem, not progress. */
.pathbar.warn i { background:var(--warnink); }
.pathlevels .pathhold { color:var(--muted); font-size:12px; font-weight:600;
                        text-transform:uppercase; letter-spacing:.06em; }
.pathblurb { margin-top:10px; text-align:left; font-size:12px; line-height:1.45; }

.bingo { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin:14px 0 4px; }
.bsq { position:relative; border-radius:12px; border:1px solid var(--line); background:var(--card);
       padding:12px 4px 8px; text-align:center; cursor:pointer; min-height:74px;
       display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; }
.bsq .bicon { font-size:22px; color:var(--muted); }
.bsq .bl { font-size:11px; font-weight:600; color:var(--muted); line-height:1.2; }
.bsq .bmark { position:absolute; top:3px; right:3px; font-size:15px; color:var(--line); }
.bsq.held { background:var(--okbg); border-color:var(--okline); }
.bsq.held .bicon, .bsq.held .bl { color:var(--okink); }
.bsq.held .bmark { color:var(--okink); }
.bsq.slipped { background:var(--warnbg); border-color:var(--warnline); }
.bsq.slipped .bicon, .bsq.slipped .bl { color:var(--warnink); }
.bsq.slipped .bmark { color:var(--warnink); }
/* Squares are buttons now (each opens its detail sheet), so undo the global button look. */
button.bsq { width:auto; font:inherit; color:inherit; padding:12px 4px 8px; border-radius:12px; }
button.bsq:not(.held):not(.slipped) { background:var(--card); }
.bsq .bwhy { display:inline-flex; align-items:center; font-size:10px; font-weight:700; color:var(--accent); line-height:1; margin-top:1px; }
.bsq .bwhy .material-icons { font-size:13px; margin-left:-1px; }
.bsq.held .bwhy { color:var(--okink); }
.bsq.slipped .bwhy { color:var(--warnink); }
.bsq .bwait { font-size:9px; font-weight:700; color:var(--infoink); background:var(--infobg); border-radius:10px; padding:1px 6px; }
.bingohint { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); margin:2px 0 6px; }
.bingohint .material-icons { font-size:16px; color:var(--accent); }
.card.gate.tap { cursor:pointer; }
.card.gate .gmore { display:flex; align-items:center; justify-content:flex-end; gap:2px; margin-top:8px; font-size:12px; font-weight:700; color:var(--accent); }
.card.gate .gmore .material-icons { font-size:16px; }

/* Square detail sheet (a bottom sheet built on .trpick). */
.sqsheet .trpickbox { gap:0; overflow:hidden; }
.sqhead { display:flex; align-items:center; gap:8px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.sqhead > .material-icons { color:var(--accent); font-size:22px; }
.sqhead b { flex:1; font-size:16px; line-height:1.25; }
button.sqx { width:36px; height:36px; padding:0; background:var(--bg); color:var(--muted); border:1px solid var(--line); border-radius:18px; flex:none; display:flex; align-items:center; justify-content:center; }
.sqbody { overflow-y:auto; padding-top:10px; }
.sqwhy { font-size:14px; font-weight:600; line-height:1.45; margin:0 0 4px; }
.sqsum { font-size:14px; line-height:1.45; margin:14px 0 8px; }
.sqkey { font-size:12px; line-height:1.45; margin:8px 0 0; }
.sqweeks { display:grid; grid-template-columns:repeat(auto-fill, minmax(64px, 1fr)); gap:6px; }
.sqwk { position:relative; border-radius:10px; padding:7px 4px; text-align:center; display:flex; flex-direction:column; gap:2px; border:2px solid transparent; }
.sqwk b { font-size:14px; }
.sqwk span { font-size:10px; color:var(--muted); }
.sqwk em { font-style:normal; font-size:9px; line-height:1.2; color:var(--muted); }
.sqwk.hit { background:var(--okbg); color:var(--okink); }
.sqwk.miss { background:var(--warnbg); color:var(--warnink); }
.sqwk.recent { border-color:var(--accent); }
.sqwk i { position:absolute; top:1px; right:2px; font-size:12px; color:var(--goalink, #b8860b); }
.sqwk b.material-icons { font-size:18px; }
.sqlist { border:1px solid var(--line); border-radius:12px; }
.sqrow { display:flex; gap:10px; align-items:center; padding:9px 12px; border-bottom:1px solid var(--line); font-size:13px; }
.sqrow:last-child { border-bottom:0; }
.sqrow .sqstars { color:#e0a100; letter-spacing:1px; min-width:64px; }
.sqsub { border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-top:8px; display:flex; flex-direction:column; gap:3px; font-size:13px; }
.sqsubhead { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.sqrev { font-size:12px; color:var(--ink); background:var(--bg); border-radius:8px; padding:6px 8px; margin-top:4px; }
.sqtechs { font-size:12px; line-height:1.6; }
.sqform { margin-top:14px; display:flex; flex-direction:column; gap:8px; }
.sqform input, .sqform textarea { width:100%; padding:11px 12px; font-size:16px; border-radius:10px; border:1px solid var(--line); background:var(--bg); color:inherit; font-family:inherit; box-sizing:border-box; }
.card.soloq { padding:12px 14px; margin-bottom:12px; }
.card.soloq .ghead { display:flex; align-items:center; gap:8px; }
.card.soloq .ghead .material-icons { color:var(--accent); }
.card.soloq .gl { flex:1; font-weight:700; }
.card.soloq .trpickbtns button { padding:10px; font-size:14px; }

.pathbanner { display:flex; gap:10px; align-items:flex-start; border-radius:12px; padding:12px 14px; margin:12px 0 2px; }
.pathbanner .material-icons { font-size:22px; flex:none; }
.pathbanner div { display:flex; flex-direction:column; gap:2px; font-size:13px; line-height:1.4; }
.pathbanner b { font-size:14px; }
.pathbanner.ok { background:var(--okbg); color:var(--okink); }
.pathbanner.warn { background:var(--warnbg); color:var(--warnink); }

.card.gate { padding:12px 14px; margin-bottom:10px; }
.card.gate.flash { box-shadow:0 0 0 2px var(--accent); }
.card.gate .ghead { display:flex; align-items:center; gap:8px; }
.card.gate .ghead .material-icons { font-size:20px; color:var(--accent); flex:none; }
.card.gate .gl { flex:1; font-weight:700; font-size:15px; line-height:1.25; }
/* Received raise trigger — matches the filled bingo square (.bsq.held). */
.card.gate.got { background:var(--okbg); border-color:var(--okline); }
.card.gate.got .ghead .material-icons { color:var(--okink); }
.card.gate.got .pill.ok { background:var(--card); }
.gline { display:flex; gap:8px; font-size:13px; padding:6px 0 0; line-height:1.4; }
.gline .gk { flex:0 0 70px; color:var(--muted); font-weight:600; font-size:11px;
             text-transform:uppercase; letter-spacing:.03em; padding-top:2px; }
.gnext { display:flex; gap:6px; align-items:flex-start; margin-top:10px; padding-top:10px;
         border-top:1px solid var(--line); font-size:13px; line-height:1.45; color:var(--ink); }
.gnext .material-icons { font-size:16px; color:var(--accent); flex:none; margin-top:2px; }

.chks { margin-top:10px; padding-top:8px; border-top:1px solid var(--line); }
.chk { display:flex; align-items:baseline; gap:6px; font-size:13px; padding:4px 0; }
.chk .material-icons { font-size:16px; align-self:center; flex:none; }
.chk .ct { font-weight:600; }
.chk .cd { color:var(--muted); font-size:12px; }
.chk.met .material-icons { color:var(--okink); }
.chk.unmet .material-icons { color:var(--muted); }
.chk.unk .material-icons { color:var(--muted); }
.trignote { margin-top:8px; font-size:12px; line-height:1.45; }
.pathasof { margin-top:12px; font-size:11px; line-height:1.5; text-align:center; }

.back { display:inline-flex; align-items:center; gap:4px; color:var(--accent); font-weight:600; font-size:15px; padding:6px 0; cursor:pointer; }

.body h3 { font-size:16px; margin:18px 0 6px; color:var(--accent); }
.body h4 { font-size:14px; margin:14px 0 4px; }
.body p { font-size:15px; line-height:1.6; margin:8px 0; }
.body ul,.body ol { margin:6px 0 10px; padding-left:22px; }
.body li { font-size:15px; line-height:1.55; margin:4px 0; }
.body hr { border:0; border-top:1px solid var(--line); margin:14px 0; }
.body blockquote { margin:12px 0; padding:10px 14px; background:var(--warnbg); border-left:4px solid #f0b400; border-radius:6px; font-size:15px; line-height:1.55; }
.body img { max-width:100%; height:auto; border-radius:8px; margin:10px 0; display:block; }
.body i { color:var(--muted); }
.body .empty { color:var(--muted); font-style:italic; }

.foot { font-size:11px; color:var(--muted); text-align:center; margin:22px auto 8px; line-height:1.5; max-width:560px; padding:0 16px; }
.foot a { color:var(--accent); }
.hidden { display:none !important; }
.err { color:var(--danger); font-size:13px; margin:8px 2px; min-height:16px; }
.req { color:var(--danger); }
.pinwrap { margin-top:12vh; }
.pinwrap input { text-align:center; letter-spacing:4px; font-size:22px; }
.pinwrap button { margin-top:4px; }
/* Loading = skeleton cards in the shape of what is coming, with the message
   underneath so the longer ones ("first load can take 30 seconds") still read. */
.loading { color:var(--muted); font-size:13px; text-align:center; padding:4px 0 16px;
  display:flex; flex-direction:column; align-items:stretch; gap:10px; }
.loading::before, .loading::after { content:""; display:block; border-radius:14px; height:72px;
  background:linear-gradient(100deg, var(--card) 30%, var(--card2) 50%, var(--card) 70%);
  background-size:200% 100%; border:1px solid var(--line); animation:shimmer 1.4s ease-in-out infinite; }
.loading::after { height:52px; animation-delay:.15s; }
@keyframes shimmer { from { background-position:100% 0; } to { background-position:-100% 0; } }
@media (prefers-reduced-motion:reduce) { .loading::before, .loading::after { animation:none; } }

/* forms */
.form { padding:14px; }
.form label { display:block; font-size:13px; font-weight:600; color:var(--muted); margin:12px 0 0; }
.form label input, .form label select, .form label textarea { margin-top:5px; font-weight:400; }
.form button { margin-top:16px; }
/* The submit stays in reach on long forms: sticky just above the tab bar. */
.form > button[type=submit] { position:sticky; bottom:calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); z-index:2; box-shadow:0 6px 18px rgba(15,27,45,.18); }
.card.form { overflow:visible; }
.form label.chk { display:flex; align-items:center; gap:9px; font-weight:400; color:var(--ink, inherit); margin:8px 0 0; }
.form label.chk input { margin-top:0; width:auto; }
.check { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.check:last-child { border-bottom:0; }
.check .ct { font-size:14px; flex:1; line-height:1.4; }
.seg { display:flex; gap:4px; }
.seg button { width:auto; padding:7px 11px; font-size:13px; background:var(--bg); color:var(--muted); border:1px solid var(--line); }
.seg button.on, .invmodeseg button[aria-pressed="true"] { background:var(--accent); color:var(--accent-text); border-color:var(--accent); }
.photos { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.photos img { width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.photos .photo { position:relative; width:64px; height:64px; }
.photos .photo.st-failed img { border-color:#c0392b; }
.photos .pbadge { position:absolute; left:2px; bottom:2px; padding:1px 4px; border-radius:5px;
  font-size:9px; line-height:1.3; color:#fff; background:rgba(0,0,0,.6); }
.photos .photo.st-done .pbadge { background:#1b8a3a; }
.photos .photo.st-failed { cursor:pointer; }
.photos .photo.st-failed .pbadge { background:#c0392b; }
.photos .prm { position:absolute; top:-6px; right:-6px; width:18px; height:18px; padding:0; border:none;
  border-radius:50%; background:#333; color:#fff; font-size:13px; line-height:18px; cursor:pointer; }
.draftbar { background:var(--warnbg); border:1px solid var(--warnline); color:var(--warnink);
  padding:8px 10px; border-radius:8px; margin-bottom:12px; font-size:13px; }
.linkbtn { background:none; border:none; padding:0; font:inherit; color:var(--accent); text-decoration:underline; cursor:pointer; }
.linkrow { text-align:center; margin-top:10px; }
.photobtn { display:block; text-align:center; padding:14px; border:1px dashed var(--accent);
  border-radius:10px; color:var(--accent); font-weight:600; cursor:pointer; }
#qpPending { margin-bottom:14px; }
.pendhead { font-size:13px; font-weight:600; color:var(--muted); margin:0 0 8px 2px; }
.pendrow { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%;
  text-align:left; margin-bottom:8px; padding:12px 14px; background:var(--card); color:var(--ink); border-radius:12px;
  border-left:3px solid var(--accent); cursor:pointer; }
.pendlabel { font-weight:600; color:var(--ink); }
.pendmeta { font-size:13px; color:var(--accent); white-space:nowrap; }

/* stats */
.statcard { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:10px; }
.statcard .nm { font-weight:600; font-size:15px; display:flex; justify-content:space-between; align-items:center; }
.statcard .pct { font-size:14px; color:var(--muted); }
.weeks { display:flex; gap:8px; margin-top:10px; }
.wk { flex:1; text-align:center; border-radius:10px; padding:8px 0; font-size:13px; font-weight:600; }
.wk .d { font-size:10px; font-weight:400; display:block; margin-top:2px; opacity:.75; }
.wk.yes { background:var(--okbg); color:var(--okink); }
.wk.mid { background:var(--warnbg); color:var(--warnink); }
.wk.no { background:var(--badbg); color:var(--danger); }
.wk.na { background:var(--bg); color:var(--muted); }
.wk.vaca { background:var(--infobg); color:var(--infoink); }
.wk .wl { font-size:10px; font-weight:600; display:block; opacity:.7; margin-bottom:1px; }
.wk b { font-size:15px; display:block; line-height:1.1; }
.streak { font-size:12px; color:var(--okink); margin-top:8px; }

/* stats tab bar */
.tabbar { display:flex; gap:6px; margin:10px 0 2px; }
.tab { width:auto; flex:1; background:var(--card); color:var(--muted); border:1px solid var(--line); border-radius:10px; padding:9px 10px; font-size:14px; }
.tab.on { background:var(--accent); color:var(--accent-text); border-color:var(--accent); }

/* daily huddle */
.tabbar.hwk { overflow-x:auto; flex-wrap:nowrap; -webkit-overflow-scrolling:touch; }
.hwbtn { white-space:nowrap; flex:0 0 auto; }
/* SOP Library division tabs: one header per board group inside a tab */
#sopTabs { margin:0 0 12px; }
#sopTabs .tab { flex:1 0 auto; }
.sopsec { display:flex; justify-content:space-between; align-items:baseline; font-size:15px; margin:16px 2px 6px; }
.sopsec span { font-size:12px; font-weight:400; color:var(--muted); }
.hcard { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; }
.htoday { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.05em; color:var(--accent-text); background:var(--accent); padding:3px 9px; border-radius:20px; margin-bottom:8px; }
.htitle { font-size:20px; line-height:1.25; margin:2px 0 10px; }
.hbadges { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }
.pill.theme { background:var(--accent-soft); color:var(--accent); }
.hpres { font-size:12px; color:var(--muted); margin-bottom:6px; }
.hscript .hline { font-size:16px; line-height:1.6; margin:11px 0; }
.hscript .hlabel { font-weight:700; color:var(--accent); }
.hscript .callout { background:var(--accent-soft); border-left:4px solid var(--accent); padding:10px 12px; border-radius:8px; }
.hscript .win { background:var(--okbg); border-left:4px solid var(--okink); padding:10px 12px; border-radius:8px; }
.hwhy { margin-top:14px; }
.hwhy summary, .hlib summary { font-size:13px; color:var(--accent); font-weight:600; cursor:pointer; padding:6px 0; }
.hwhy > div { font-size:14px; color:var(--muted); margin-top:6px; }
.hlib { margin-top:18px; }
.hlibrow { cursor:pointer; }

/* huddle hub (tech + CCR): run panel, meeting record, follow-ups */
#hubTabs { margin-top:8px; }
.hdate { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.05em; color:var(--accent); background:var(--accent-soft); padding:3px 9px; border-radius:20px; margin-bottom:8px; }
.hubstart { display:flex; align-items:center; justify-content:center; gap:6px; margin:6px 0 4px; }
.hubrun { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:12px; margin:6px 0 10px; }
.hubrun input { margin-top:8px; }
.hubrun #hubHeldBtn { margin-top:10px; }
.hubplaud { display:flex; gap:10px; align-items:flex-start; background:var(--warnbg); color:var(--warnink); border-radius:10px; padding:10px 12px; font-size:14px; line-height:1.4; }
.hubplaud .material-icons { font-size:22px; flex:none; }
.hubtimer { font-size:52px; font-weight:800; text-align:center; color:var(--accent); font-variant-numeric:tabular-nums; margin:10px 0 4px; line-height:1; }
.hubtimer.late { color:var(--danger); }
.hubtbtns { display:flex; gap:8px; }
.hubchips { display:flex; flex-wrap:wrap; gap:6px; }
.hubchip { width:auto; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:20px; padding:7px 12px; font-size:14px; font-weight:600; }
.hubchip.on { background:var(--okbg); color:var(--okink); border-color:var(--okline); }
.hubrec { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:12px; margin:6px 0 12px; }
.hubrechead { display:flex; align-items:center; gap:6px; font-weight:700; font-size:14px; color:var(--okink); }
.hubrechead .material-icons { font-size:20px; }
.hubnotes .hline { font-size:15px; }
.hubback { margin-bottom:6px; }
.hmon { margin-top:14px; }
.hmon a { color:var(--accent); }
.hpd { font-size:12px; font-weight:700; color:var(--accent); }
.hubpastrow .t { display:flex; flex-direction:column; gap:3px; }
.hubpastrow .hbadges { margin:4px 0 0; }
.hprev { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hfuhint { margin:4px 4px 10px; }
.furow { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line); }
.furow:last-child { border-bottom:0; }
.fubox { width:auto; background:none; color:var(--accent); padding:0; border:0; flex:none; line-height:0; }
.fubox .material-icons { font-size:26px; }
.fut { flex:1; font-size:15px; line-height:1.35; }
.furow.done .fut > div:first-child { color:var(--muted); text-decoration:line-through; }
.furow.late .fut .sub { color:var(--danger); font-weight:600; }

.toast { position:fixed; left:50%; bottom:calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); transform:translateX(-50%); background:var(--ink); color:var(--bg); padding:12px 18px; border-radius:12px; font-size:14px; font-weight:600; max-width:85vw; text-align:center; z-index:50; box-shadow:0 6px 24px rgba(0,0,0,.25); }
body:not(.hastabs) .toast { bottom:calc(28px + env(safe-area-inset-bottom)); }

/* Reviews */
.card.review { padding:12px 14px; margin-bottom:8px; }
.card.review .nm { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-weight:600; }
.card.review .pct { color:#f5a623; letter-spacing:1px; white-space:nowrap; }
.lcdots { display:flex; gap:6px; margin-top:8px; }
.lcdot { width:9px; height:9px; border-radius:50%; border:1.5px solid var(--muted); flex:none; }
.lcdot.on { background:var(--okink); border-color:var(--okink); }
.lcdot.na { border-style:dashed; opacity:.6; }
.lcmeta { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.lcnoticepick { display:block; margin-top:10px; font-size:11px; font-weight:600;
                text-transform:uppercase; letter-spacing:.4px; color:var(--muted); }
.lcnoticepick select { margin-top:4px; text-transform:none; letter-spacing:0;
                       font-size:14px; font-weight:400; color:var(--ink); }
.lcnoticewarn { color:var(--warnink); margin-top:4px; }
.pill.lcnotice { color:var(--accent); background:var(--accent-soft); font-weight:600; }
.lcstart { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:14px; }
.lcstartbtn { width:auto; display:flex; align-items:center; justify-content:center; gap:6px;
              background:var(--card); color:var(--accent); border:1.5px solid var(--accent);
              font-size:14px; padding:11px 10px; }
.lcstartbtn.on { background:var(--accent); color:var(--accent-text); }
.lcstartbtn .material-icons { font-size:18px; }
.lcconfirm { font-size:11px; color:var(--muted); margin-top:4px; }
.rtext { margin:6px 0 0; font-size:14px; color:var(--ink); }
.rdate { margin-top:6px; font-size:11px; color:var(--muted); display:flex; align-items:center; gap:8px; }
.rbasis { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:2px 7px; border-radius:999px; }
.rbasis.sent { background:var(--accent-soft); color:var(--accent); }
.rbasis.named { background:var(--okbg); color:var(--okink); }

/* Vehicle inspection fields (drill-in): one row per form field */
.vifields { border-top:1px solid var(--line); }
.virow { display:flex; justify-content:space-between; gap:14px; padding:7px 0; border-bottom:1px solid var(--line); font-size:14px; line-height:1.4; }
.virow .vk { font-weight:600; flex:0 0 42%; }
.virow .vv { text-align:right; color:var(--ink); }
#reviewForm button .material-icons { font-size:18px; vertical-align:-3px; margin-right:6px; }
.parknote { margin:10px 0 0; font-size:12.5px; line-height:1.4; color:var(--muted); text-align:center; }

/* ---- QC Scorecard ---- */
.qhint { margin:2px 4px 0; font-size:12px; }
.presencebar { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 4px; }
.qptoggle { width:auto; padding:9px 14px; font-size:14px; font-weight:600; background:var(--bg);
  color:var(--muted); border:1px solid var(--line); border-radius:999px; }
.qptoggle.on { background:var(--accent); color:var(--accent-text); border-color:var(--accent); }
.qphase { margin:16px 0 6px; }
.qphase-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin:0 2px 8px; }
.qphase-head h3 { font-size:15px; margin:0; color:var(--ink); }
.qphase-head .qpscore { font-size:13px; font-weight:700; color:var(--okink); white-space:nowrap; }
.qitems { display:flex; flex-direction:column; gap:6px; }
.qitem { display:flex; align-items:center; gap:10px; text-align:left; padding:10px 11px;
  border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink);
  font-size:14px; line-height:1.35; }
.qitem .qic { font-size:20px; color:var(--muted); flex:0 0 auto; }
.qitem .qt { flex:1; }
.qitem .qsev { font-size:11px; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); flex:0 0 auto; }
.qitem.miss { background:var(--badbg); border-color:var(--danger); }
.qitem.miss .qic { color:var(--danger); }
.qitem.miss .qt { color:var(--danger); font-weight:600; }
.qitem.miss .qsev { color:var(--danger); }
.qnote { margin-top:8px; }
.qnote textarea { width:100%; }
.qccount { display:block; text-align:right; font-size:11px; color:var(--muted); margin-top:2px; }
.qccount.near { color:var(--warnink); font-weight:700; }
.qscorebar { margin:18px 0 6px; padding:14px; border-radius:12px; background:var(--okbg);
  color:var(--okink); font-size:16px; font-weight:700; text-align:center; }
.qscorebar.warn { background:var(--warnbg); color:var(--warnink); }
.qcount { margin:0 0 6px; padding:10px 12px; border-radius:10px; font-size:14px; line-height:1.4;
  background:var(--okbg); color:var(--okink); }
.qcount.warn { background:var(--warnbg); color:var(--warnink); }
.qcount b { font-weight:700; }
.qcskinds { grid-template-columns:1fr 1fr 1fr; }
.qcskinds .photobtn { padding:12px 6px; }
/* A checklist item answered Yes or No (it never passes by default). */
.qitem.qyn { flex-wrap:wrap; }
.qitem.qyn .qynbtns { display:flex; gap:6px; flex:0 0 100%; }
.qitem.qyn .qynb { flex:1; padding:8px; border:1px solid var(--line); border-radius:8px; background:var(--card);
  color:var(--ink); font-weight:600; }
.qitem.qyn .qynb.on.yes { background:var(--okbg); border-color:var(--okink); color:var(--okink); }
.qitem.qyn .qynb.on.no { background:var(--badbg); border-color:var(--danger); color:var(--danger); }
.qitem.qyn.ask { border-color:var(--warnink); background:var(--warnbg); }
.qitem.qyn .qynhint { flex:0 0 100%; font-size:12px; color:var(--muted); }

/* My Schedule (CSA/office) */
.schedcard { margin-bottom:12px; }
.schedname { padding:12px 14px 2px; font-weight:700; font-size:15px; }
.schedday { display:flex; align-items:baseline; gap:10px; padding:9px 14px; border-bottom:1px solid var(--line); font-size:14px; }
.schedday:last-of-type { border-bottom:0; }
.schedday .d { flex:none; width:74px; color:var(--muted); font-weight:600; font-size:13px; }
.schedday .s { flex:1; }
.schedday .s.offday { color:var(--muted); }
.schedday .h { flex:none; color:var(--muted); font-size:13px; }
.schedday.today { background:var(--okbg); border-radius:6px; }
.schedtotal { padding:10px 14px; border-top:1px solid var(--line); font-weight:700; font-size:13px; text-align:right; }
.tcisection { background:var(--accent-soft); border:1px solid var(--line); border-radius:14px; padding:2px 12px 12px; margin:10px 0 6px; }
.tcisection .seclabel { margin-top:12px; }
.weekbanner { background:var(--accent); color:var(--accent-text); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:10px 14px; border-radius:10px; margin:18px 0 8px; }

/* ✅ List — open/close checklists */
.clcheck { display:flex; align-items:flex-start; gap:11px; padding:13px 4px; border-bottom:1px solid var(--line); font-size:15px; font-weight:400; color:var(--ink,inherit); cursor:pointer; }
.clcheck:last-child { border-bottom:0; }
.clcheck input { margin-top:2px; width:20px; height:20px; flex:none; accent-color:var(--accent); }
.clrow { padding:13px 4px; border-bottom:1px solid var(--line); }
.clrow:last-child { border-bottom:0; }
.cllabel { display:block; font-size:15px; margin-bottom:7px; }
.clcoffee, .cltext { width:100%; }
.clnote { display:block; font-size:12px; color:var(--muted); margin-top:3px; font-weight:400; }

/* Inventory Request — multi-item cart */
.invadd { display:flex; gap:8px; align-items:center; }
.invadd select { flex:1; }
.invaddbtn { width:auto; flex:none; padding:10px 16px; }
.invcart { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.invcart li { display:flex; align-items:center; justify-content:space-between; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:14px; color:var(--ink); }
.invrm { width:auto; flex:none; background:transparent; color:var(--danger); font-size:20px; font-weight:700; padding:0 6px; line-height:1; }
.invcarthint { margin-top:6px; }
.invqty { width:64px; flex:none; text-align:center; }
.invcartname { flex:1; }
.invitems { display:flex; flex-direction:column; gap:8px; margin-top:6px; }

/* Take Payment — QR presentation screen. QR frame stays white in dark mode so
   the code always scans; images already carry their own quiet zone. */
.paypanel { text-align:center; margin-top:8px; }
.qrframe { background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px; margin:0 auto 16px; max-width:440px; box-shadow:0 4px 16px rgba(0,0,0,.08); }
.qrimg { display:block; width:100%; height:auto; border-radius:8px; }
.paysteps { text-align:left; max-width:440px; margin:0 auto 12px; padding-left:22px; font-size:14px; line-height:1.5; }
.paysteps li { margin-bottom:8px; }
.paynote { max-width:440px; margin:0 auto; font-size:13px; color:var(--muted); background:var(--bg); border-radius:10px; padding:11px 13px; text-align:left; }
/* Zelle QR only resolves inside a bank app's own Zelle scanner. A phone camera
   lands on Zelle's generic bank directory and the payment dead ends there, so
   the wrong-scanner warning and the email fallback both have to be unmissable. */
.paywarn { display:flex; gap:9px; align-items:flex-start; max-width:440px; margin:0 auto 14px; text-align:left;
  background:var(--warnbg); color:var(--warnink); border-radius:10px; padding:11px 13px; font-size:13.5px; line-height:1.45; }
.paywarn .material-icons { font-size:19px; flex:0 0 auto; margin-top:1px; }
.payalt { max-width:440px; margin:0 auto 16px; text-align:left; }
.payalt-label { display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
.payalt-copy { position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%;
  background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:10px; padding:12px 13px; font-size:15px; font-weight:700; }
.payalt-copy:active { background:var(--bg); }
.payalt-copy .material-icons { font-size:19px; color:var(--accent); flex:0 0 auto; }
.payalt-value { overflow-wrap:anywhere; -webkit-user-select:all; user-select:all; }
.payalt-done { display:none; position:absolute; inset:0; align-items:center; justify-content:center; border-radius:9px; background:var(--okbg); color:var(--okink); }
.payalt-copy.copied .payalt-done { display:flex; }
.payalt-sub { display:block; font-size:12px; color:var(--muted); margin-top:6px; }

/* ---------------------------------------------------------------------------
   Revenue Booked by CCR (ccrRevView). The office TV shows an 8 column grid;
   a phone gets ranked cards with a 6 day bar strip, and the TV grid stays
   available underneath as a horizontally scrolling table.
   --------------------------------------------------------------------------- */
.crvtop { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:12px 0 6px; }
.crvtop .t { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:11px 8px; text-align:center; }
.crvtop .t.mine { border-color:var(--accent); }
.crvtop .v { font-size:17px; font-weight:700; line-height:1.15; }
.crvtop .l { font-size:10px; text-transform:uppercase; letter-spacing:.4px; color:var(--muted); margin-top:4px; }
.crvtop .r { font-size:11px; color:var(--accent); font-weight:600; margin-top:2px; }
.crvrow { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:8px; }
.crvrow.me { border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
.crvhd { display:flex; align-items:baseline; gap:8px; }
.crvhd .rk { font-size:12px; font-weight:700; color:var(--muted); min-width:18px; }
.crvhd .nm { font-weight:600; font-size:15px; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.crvhd .amt { font-weight:700; font-size:15px; white-space:nowrap; }
.crvbar { height:6px; border-radius:4px; background:var(--bg); margin-top:9px; overflow:hidden; }
.crvbar i { display:block; height:100%; background:var(--accent); border-radius:4px; }
.crvdays { display:grid; grid-template-columns:repeat(6,1fr); gap:4px; margin-top:11px; }
.crvday { text-align:center; }
.crvday .db { height:32px; display:flex; align-items:flex-end; justify-content:center; }
.crvday .db i { display:block; width:62%; min-height:2px; border-radius:3px 3px 0 0; background:var(--accent); opacity:.55; }
.crvday.today .db i { opacity:1; }
.crvday.future .db i { background:var(--line); }
.crvday .dv { font-size:10px; color:var(--muted); margin-top:3px; white-space:nowrap; }
.crvday .dk { font-size:10px; text-transform:uppercase; letter-spacing:.3px; color:var(--muted); }
.crvday.today .dk, .crvday.today .dv { color:var(--accent); font-weight:700; }
.crvsub { font-size:12px; color:var(--muted); margin-top:9px; padding-top:8px; border-top:1px solid var(--line); }
.crvempty { color:var(--muted); font-size:14px; padding:6px 0; }
.crvwall { margin-top:10px; }
.crvwall summary { font-size:13px; color:var(--accent); font-weight:600; padding:6px 2px; cursor:pointer; }
.crvwall .scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.crvwall table { border-collapse:collapse; width:100%; min-width:430px; font-size:12px; }
.crvwall th, .crvwall td { padding:7px 9px; text-align:right; white-space:nowrap; border-top:1px solid var(--line); }
.crvwall thead th { border-top:0; color:var(--muted); font-weight:600; text-transform:uppercase; font-size:10px; letter-spacing:.3px; }
.crvwall th:first-child, .crvwall td:first-child { text-align:left; position:sticky; left:0; background:var(--card); }
.crvwall .today { color:var(--accent); font-weight:700; }
.crvwall tr.me td { background:var(--accent-soft); }
.crvwall tr.me td:first-child { background:var(--accent-soft); }
.crvwall tr.teamrow td { font-weight:700; border-top:2px solid var(--line); }

/* Inventory tile (catalog management) */
.invmodeseg { margin-top:8px; flex-wrap:wrap; }
.catbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:8px 0 10px; }
.catadd { width:auto; padding:9px 14px; background:var(--card); color:var(--accent); border:1px solid var(--accent); border-radius:8px; font-weight:600; font-size:14px; }
.catprimary { width:auto; padding:10px 16px; font-size:14px; }
.cathint { font-size:12px; color:var(--muted); flex:1; min-width:150px; }
.catsec { font-weight:700; font-size:13px; color:var(--accent); margin:14px 2px 6px; display:flex; align-items:baseline; gap:8px; }
.cata { font-weight:600; color:var(--ink); font-size:12px; }
.catn { margin-left:auto; font-size:11px; color:var(--muted); font-weight:400; }
.catgrid { display:flex; flex-direction:column; gap:6px; }
.catrow { display:flex; align-items:center; gap:8px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:8px 10px; }
.catrow.catok { border-color:var(--okink); box-shadow:0 0 0 1px var(--okink); }
.catrow.catbad { border-color:var(--danger); }
.catitem { flex:1; min-width:0; }
.catname { font-size:14px; font-weight:600; line-height:1.2; }
.catmeta { font-size:11px; color:var(--muted); margin-top:1px; }
.catf { display:flex; flex-direction:column; align-items:center; gap:2px; flex:none; width:56px; }
.catf.wide { width:88px; }
.catf.period { width:150px; }
.catf > span { font-size:9px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.catf input { width:100%; text-align:center; padding:8px 4px; border:1px solid var(--line); border-radius:8px; font-size:15px; background:var(--card); color:var(--ink); }
.catchk { display:flex; flex-direction:column; align-items:center; gap:3px; flex:none; width:46px; font-size:9px; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); }
.catchk input { width:20px; height:20px; }
.catqty { flex:none; width:46px; text-align:center; font-weight:700; }
.catline { flex:none; width:92px; text-align:right; font-size:13px; }
.catgrand { display:flex; justify-content:space-between; align-items:center; background:var(--accent); color:var(--accent-text); border-radius:10px; padding:12px 16px; margin-top:12px; font-size:14px; }
.catgrand b { font-size:18px; }
.catform { margin-bottom:12px; }
.catmini { display:flex; gap:8px; }
.catmini label { flex:1; }
.catnote { margin-top:16px; display:flex; flex-direction:column; gap:10px; }
.catnote label { display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--muted); }
.catnote textarea { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:10px; font:inherit; resize:vertical; background:var(--card); color:var(--ink); }
.catf input:disabled { opacity:.55; background:var(--bg); cursor:not-allowed; }

/* Inventory — receive search + recent list */
.catsearch { border:1px solid var(--line); border-radius:10px; overflow-y:auto; max-height:260px; margin-top:-2px; }
.catopt { padding:10px 12px; border-bottom:1px solid var(--line); font-size:14px; cursor:pointer; }
.catopt:last-child { border-bottom:0; }
.catopt:active { background:var(--accent-soft); }
.catopt.none { color:var(--muted); cursor:default; }
.catoo { font-size:11px; color:var(--muted); }
.catchosen { font-size:13px; color:var(--accent); font-weight:600; margin:-2px 0 6px; }

/* WOW Score Card results (managers read the filled-out cards) */
.qchfilters { display:grid; grid-template-columns:1fr; gap:10px 12px; margin-bottom:10px; }
.qchfilters label { display:block; font-size:13px; font-weight:600; color:var(--muted); }
.qchfilters select { margin-top:5px; font-weight:400; }
.qchfilters .seg { flex-wrap:wrap; }
@media (min-width:480px) { .qchfilters { grid-template-columns:1fr 1fr; } .qchfilters .seg { grid-column:1 / -1; } }
.qchmode { margin:0 0 12px; }
.qchmode button { flex:1; }
#qchNote { margin:0 4px 10px; }
.qchrow { cursor:pointer; }
.qchrow .pillrow { display:flex; flex-wrap:wrap; gap:4px; margin:8px 0 0; }
.qchrowtop { display:flex; gap:10px; align-items:flex-start; }
.qchrowmain { flex:1; min-width:0; }
.qchthumbs { display:flex; gap:4px; flex:none; align-items:flex-end; }
.qchthumb { position:relative; width:56px; height:56px; border-radius:8px; overflow:hidden; background:var(--bg); border:1px solid var(--line); }
.qchthumb img { width:100%; height:100%; object-fit:cover; display:block; }
.qchthumb em { position:absolute; left:0; right:0; bottom:0; font-style:normal; font-size:9px; font-weight:700; text-align:center; color:#fff; background:rgba(0,0,0,.55); padding:1px 0; }
.qchthumb.gone { display:none; }
.qchmore { font-size:11px; color:var(--muted); margin-left:2px; }
.qchstrip { display:flex; gap:3px; margin-top:7px; }
.qchph { width:22px; height:18px; border-radius:5px; font-size:10px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.qchph.s5 { background:var(--okbg); color:var(--okink); }
.qchph.s4 { background:var(--warnbg); color:var(--warnink); }
.qchph.slow { background:var(--badbg); color:var(--danger); }
.qchph.none { background:var(--infobg); color:var(--infoink); }
.qchph.off { background:transparent; color:var(--muted); border:1px dashed var(--line); }
.qchstars { font-size:14px; font-weight:700; white-space:nowrap; }
.qchbig { font-size:20px; font-weight:800; white-space:nowrap; }
.qchstars.s5, .qchbig.s5 { color:var(--okink); }
.qchstars.s4, .qchbig.s4 { color:var(--warnink); }
.qchstars.slow, .qchbig.slow { color:var(--danger); }
.qchstars.none, .qchbig.none { color:var(--muted); }
.qchflags { display:flex; flex-wrap:wrap; gap:4px; margin:8px 0 2px; }
.qchback { cursor:pointer; color:var(--accent); font-size:14px; margin-bottom:10px; }
.qchphase { padding:10px 0; border-top:1px solid var(--line); }
.qchphase:first-child { padding-top:0; border-top:0; }
.qchphase .ph { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-weight:600; font-size:14px; }
.qchphase.off .ph { color:var(--muted); font-weight:500; }
.qchmiss { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; font-size:13px; padding:6px 0 0 12px; }
.qchmiss .pill { flex:none; }
.qchclean { padding-left:12px; margin-top:4px; }
.qchcl { display:block; font-size:13px; margin:6px 0 0 12px; }
.qchcklist { margin-top:4px; }
.qchck { display:flex; gap:8px; align-items:flex-start; font-size:13px; padding:4px 0 0 12px; }
.qchck .qchmark { width:14px; flex:none; font-weight:800; }
.qchck.ok .qchmark { color:var(--okink); }
.qchck.miss .qchmark { color:var(--danger); }
.qchck.miss > span:nth-child(2) { font-weight:600; }
.qchck .pill { margin-left:auto; flex:none; }
.qchgallery { display:flex; flex-direction:column; gap:10px; }
.qchgl { font-size:12px; font-weight:700; color:var(--muted); margin:0 2px 5px; text-transform:uppercase; letter-spacing:.04em; }
.qchgroup .qchphotos { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; }
.qchgroup .qchphotos img { width:100%; height:auto; aspect-ratio:1 / 1; object-fit:cover; border-radius:8px; border:1px solid var(--line); cursor:zoom-in; display:block; }
.qchnophoto { margin:12px 0 0; padding:10px 12px; border-radius:10px; background:var(--badbg); color:var(--danger); font-size:13px; font-weight:600; }
.qchsup .vifields { margin-top:8px; }
.qchmonday { margin:16px 4px 4px; }
.qchmonday a { color:var(--accent); }
.qchlight { position:fixed; inset:0; z-index:10000; background:rgba(0,0,0,.9); display:flex; align-items:center; justify-content:center;
  padding:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); cursor:zoom-out; }
.qchlight img { max-width:100%; max-height:100%; border-radius:8px; object-fit:contain; }
/* Photos step: Before / After pickers and the tag on each tile */
.qpkinds { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.photos .pkind { position:absolute; left:2px; top:2px; padding:1px 4px; border-radius:5px; font-size:9px; font-weight:700; color:#fff; background:rgba(21,101,192,.85); }
.qchreview { font-size:14px; line-height:1.45; }
.qchreview.flag { background:var(--badbg); border-color:var(--badline); }
.pill.goal { background:var(--goalbg); color:var(--goalink); }
.hscript .hquiz { background:var(--card); border:1px solid var(--line); border-radius:10px; margin:8px 0; }
.hscript .hquiz summary { list-style:none; cursor:pointer; padding:10px 12px; font-size:16px; line-height:1.5; }
.hscript .hquiz summary::-webkit-details-marker { display:none; }
.hscript .hquiz .hqtap { font-size:11px; font-weight:600; color:var(--muted); white-space:nowrap; }
.hscript .hquiz[open] .hqtap { display:none; }
.hscript .hquiz .hans { padding:0 12px 12px; font-size:16px; line-height:1.5; color:var(--okink); font-weight:600; }
/* laptop / TV: wide presenter layout for the huddles (script left, run panel right) */
@media (min-width: 1000px) {
  body.hubwide #huddleView header, body.hubwide #huddleView .wrap, body.hubwide #huddleView .foot { max-width:1180px; }
  body.hubwide .hubcols { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:22px; align-items:start; }
  body.hubwide .hubside { order:2; position:sticky; top:170px; }
  body.hubwide .hubmain { order:1; }
  body.hubwide .hubcard .htitle { font-size:28px; }
  body.hubwide .hscript .hline, body.hubwide .hscript .hquiz summary, body.hubwide .hscript .hquiz .hans { font-size:19px; }
  body.hubwide .hubtimer { font-size:64px; }
}
.hublinks { display:flex; gap:16px; margin-top:6px; }
.hublinks a { color:var(--accent); font-weight:600; }
@media (min-width: 1000px) { body.hubwide .hubcols.hubpast { display:block; max-width:820px; } }

/* CCR WOW Card (preliminary) */
.cwhint { margin:4px 4px 10px; }
#cwTabs .tab { font-size:13px; padding:9px 6px; }

/* Team Member of the Month, everyone on one list (preview 9/26) + CCR Points list */
.eotmlist { padding:4px 12px; }
.eotmrow { display:flex; align-items:center; gap:10px; width:100%; background:none; color:var(--ink); border:0; border-top:1px solid var(--line); border-radius:0; padding:11px 2px; text-align:left; font-weight:400; font-size:15px; }
.eotmrow:first-child { border-top:0; }
.eotmrank { flex:none; width:26px; height:26px; border-radius:50%; background:var(--bg); color:var(--muted); font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; font-variant-numeric:tabular-nums; }
.eotmname { flex:1; min-width:0; font-weight:700; overflow:hidden; text-overflow:ellipsis; }
.eotmrole { display:block; font-size:11px; font-weight:600; margin-top:2px; color:var(--muted); }
.eotmrole.ccr { color:var(--ccrink); }
.eotmrole.tech { color:var(--okink); }
.eotmpts { flex:none; font-size:20px; font-weight:800; color:var(--accent); font-variant-numeric:tabular-nums; }
.eotmpts.none { color:var(--muted); }
.scorecat.coming { opacity:.7; border-style:dashed; }

/* Step cards (huddles, 9/26): numbered run-of-show, offer box, current step */
.hscript .hgoal { background:var(--okbg); color:var(--okink); border-radius:10px; padding:10px 14px; font-size:17px; font-weight:700; line-height:1.45; margin:6px 0 14px; }
.hscript .hgoal .hlabel { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--okink); opacity:.8; margin-bottom:2px; }
.hscript .hstep { background:var(--card); border:1px solid var(--line); border-radius:12px; margin:12px 0; overflow:hidden; }
.hscript .hsteph { display:flex; align-items:center; gap:10px; padding:10px 14px; background:var(--bg); border-bottom:1px solid var(--line); }
.hscript .hstepn { flex:none; width:28px; height:28px; border-radius:50%; background:var(--accent); color:var(--accent-text); font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center; }
.hscript .hstept { flex:1; font-weight:800; font-size:16px; letter-spacing:.2px; }
.hscript .hstepm { flex:none; font-size:12px; font-weight:700; color:var(--muted); white-space:nowrap; }
.hscript .hstepb { padding:4px 14px 10px; }
.hscript .hstepb .hline { margin:9px 0; }
.hscript .hbul { position:relative; padding-left:18px; font-size:16px; line-height:1.55; margin:7px 0; }
.hscript .hbul::before { content:''; position:absolute; left:4px; top:.62em; width:7px; height:7px; border-radius:50%; background:var(--accent); }
.hscript .hsub { font-size:12px; font-weight:800; letter-spacing:.6px; color:var(--muted); margin:12px 0 2px; }
.hscript .hstep.offer { border:2px solid #f0b429; }
.hscript .hstep.offer .hsteph { background:var(--warnbg); }
.hscript .hstep.offer .hstepn { background:#b7791f; }
.hscript .hstep.after .hsteph { background:none; }
.hscript .hstep.now { box-shadow:0 0 0 3px var(--accent); }
.hubnow { text-align:center; font-weight:700; color:var(--accent); min-height:20px; margin:-4px 0 8px; }
.eotmrow.mine { background:var(--okbg); border-radius:10px; }
.eotmrow.static { cursor:default; }

/* WOW visits to do (9/28): the jobs the app picked for the supervisor to observe */
.wowarow .wowaacts { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin-top:10px; }
.wowarow .wowaacts .wowastart { width:auto; padding:9px 22px; font-size:15px; }
.wowarow.replaced { opacity:.65; }
.wowarow.done .nm span:first-child { color:var(--muted); }
.wowanote { color:var(--warnink); }
.wowashort { background:var(--warnbg); color:var(--warnink); border-radius:10px; padding:10px 12px; font-size:13px; margin:8px 0 10px; line-height:1.4; }
.wowasups { margin:4px 0 10px; flex-wrap:wrap; }
.wowaswapped { margin:14px 0 0; }
.wowaswapped summary { cursor:pointer; font-size:13px; color:var(--muted); margin:0 4px 8px; }
.wowabanner { display:flex; gap:10px; align-items:flex-start; background:var(--accent-soft); border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:0 0 12px; font-size:14px; line-height:1.4; }
.wowabanner .material-icons { color:var(--accent); font-size:22px; flex:none; }
.wowabanner .sub { margin-top:3px; }
.wowamiss { color:var(--danger); }
.wowabanner .linkbtn { width:auto; display:inline; font-size:inherit; }

/* ── Deep Clean (form, photo stations, inspection queue, card) ─────────────── */
.dcgroup { font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin:14px 4px 4px; }
.dcline { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 4px; border-bottom:1px solid var(--line); }
.dcline:last-child { border-bottom:0; }
.dcline .dct { flex:1; font-size:14px; line-height:1.3; }
.dcline .seg { flex:none; }
.dcline .seg button { padding:6px 8px; font-size:12px; }
.dccount { display:flex; align-items:center; justify-content:flex-end; gap:8px; font-size:14px; padding:8px 4px; border-bottom:1px solid var(--line); }
.dccount input[type=number] { width:80px; margin:0; }
.seg button.on.bad { background:var(--danger); border-color:var(--danger); }
.seg button.on.warn { background:var(--warnink); border-color:var(--warnink); }
.dcstation { padding:12px 4px; border-bottom:1px solid var(--line); }
.dcstation:last-child { border-bottom:0; }
.dcstation .dcsh { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.dcstation .dcst { font-weight:600; font-size:14px; }
.dcstation .photobtn { margin-top:8px; padding:10px; }
.dcrow { display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line); cursor:pointer; }
.dcrow:last-child { border-bottom:0; }
.dcrow .dcmain { flex:1; min-width:0; }
.dcrow .dcn { font-weight:600; font-size:15px; }
.dcrow .dcm { font-size:12px; color:var(--muted); margin-top:2px; }
.dcrow .chev { color:var(--muted); font-size:20px; }
.dcsec { margin-top:14px; }
.dcsec h3 { font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin:0 0 5px; }
.dcpre { white-space:pre-wrap; font-size:14px; line-height:1.45; }
.dcphotos img { width:96px; height:96px; }
.linkbtn { width:auto; background:none; color:var(--accent); padding:6px 8px; font-size:13px; font-weight:600; }
button.secondary { background:var(--bg); color:var(--accent); border:1px solid var(--line); margin-top:8px; }

.dcltabs { margin-bottom:12px; }
.dcltabs button { flex:1; padding:9px 8px; font-size:14px; }

/* Improvement Requests: six stage filters wrap onto a second line instead of clipping. */
#ideasTabs { flex-wrap: wrap; }
#ideasTabs .tab { flex: 1 1 28%; padding: 9px 6px; white-space: nowrap; }

/* Inventory: sent banner + my recent requests */
.catsent { margin-top:10px; padding:10px 12px; border-radius:10px; background:var(--okbg); color:var(--okink); font-size:14px; font-weight:600; }
.invmine { margin-top:18px; }
.invorder { margin-bottom:10px; padding:12px 14px; }
.invohead { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px; }
.involine { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:5px 0; border-top:1px solid rgba(128,128,128,.18); font-size:14px; }
.invpill { flex:none; padding:2px 9px; border-radius:999px; font-size:12px; font-weight:600; background:var(--card2); color:var(--muted); }
.invpill.ok { background:var(--okbg); color:var(--okink); }
.invpill.bad { background:var(--badbg); color:var(--danger); }
.invpill.wait { background:var(--warnbg); color:var(--warnink); }

/* Inventory admin report */
.invrep { padding:6px 12px; margin-bottom:10px; }
.invrepr { display:grid; grid-template-columns:1fr 56px 56px 84px; gap:6px; align-items:center; padding:6px 0; border-top:1px solid rgba(128,128,128,.18); font-size:14px; }
.invrepr span:nth-child(n+2) { text-align:right; font-variant-numeric:tabular-nums; }
.invrephead { border-top:0; font-size:12px; font-weight:700; opacity:.7; }
.invreptot { font-weight:700; }

/* ── Bottom tab bar (replaces the pinned idea banner) ──────────────────────── */
/* Floating dock (Robi 2026-10-29: the flat white bar got lost on the light page). A solid
   accent pill that floats above the bottom edge, the lit tab gets a soft pill behind its
   icon, and DVIR (.raise) is a big round button that sticks up out of the middle, in a
   lighter sky blue with a white ring so it does not wash out against the light page.
   Colours come from --accent / --accent-text, so dark mode and Violet and Sage follow. */
body.hastabs { padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.tabbarnav { position:fixed; left:12px; right:12px; bottom:max(10px, env(safe-area-inset-bottom)); z-index:30;
  max-width:560px; margin:0 auto; display:flex; justify-content:center; align-items:flex-end;
  background:var(--accent); border-radius:24px; padding:6px 4px;
  box-shadow:0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent), 0 2px 6px rgba(15,27,45,.18); }
.tabbarnav .tbi { position:relative; flex:1; max-width:140px; display:flex; flex-direction:column; align-items:center; gap:3px; padding:4px 0 2px;
  font-size:10.5px; font-weight:700; color:color-mix(in srgb, var(--accent-text) 80%, transparent); cursor:pointer; border-radius:12px; transition:color .12s ease; }
.tabbarnav .tbi .material-icons { font-size:24px; }
.tabbarnav .tbi.on { color:var(--accent-text); }
.tabbarnav .tbi.on::before { content:''; position:absolute; z-index:-1; top:1px; left:50%; width:52px; height:30px; margin-left:-26px;
  border-radius:15px; background:color-mix(in srgb, var(--accent-text) 22%, transparent); }
.tabbarnav .tbi.on .material-icons { font-variation-settings:'FILL' 1,'wght' 500,'GRAD' 0,'opsz' 24; }
.tabbarnav .tbi.raise { color:var(--accent-text); }
.tabbarnav .tbi.raise::before { display:none; }
.tabbarnav .tbi.raise .material-icons { display:flex; align-items:center; justify-content:center; width:58px; height:58px; margin-top:-30px;
  border-radius:50%; background:var(--raise-bg); color:var(--raise-ink); border:4px solid var(--card); font-size:30px;
  font-variation-settings:'FILL' 0,'wght' 600,'GRAD' 0,'opsz' 24;
  box-shadow:0 4px 12px rgba(15,27,45,.22); }
.tabbarnav .tbi:active { transform:scale(.94); }
.tabbarnav .tbi.hidden { display:none; }
.foot { padding-bottom:4px; }

/* ── Lock screen: PIN dots + keypad ─────────────────────────────────────────── */
.pinwrap { margin-top:7vh; display:flex; flex-direction:column; align-items:center; }
.brand .brandlogo { box-shadow:0 8px 20px rgba(21,101,192,.3); }
.brand h1 { font-size:22px; }
.pinwho { font-size:13px; color:var(--muted); margin:-14px 0 18px; text-align:center; }
.pindots { display:flex; gap:14px; justify-content:center; min-height:16px; margin-bottom:22px; }
.pindots i { width:14px; height:14px; border-radius:50%; border:2px solid var(--accent); transition:background .12s ease, transform .12s ease; }
.pindots i.on { background:var(--accent); transform:scale(1.08); }
.pindots.shake { animation:shake .35s ease; }
@keyframes shake { 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(5px)} }
.keypad { display:grid; grid-template-columns:repeat(3, 72px); gap:12px 18px; justify-content:center; }
.keypad button { width:72px; height:72px; border-radius:50%; background:var(--card); color:var(--ink); border:1px solid var(--line); font-size:26px; font-weight:600; padding:0; box-shadow:var(--shadow); }
.keypad button:active { background:var(--accent-soft); transform:scale(.95); }
.keypad button.soft { background:transparent; border:0; box-shadow:none; color:var(--muted); font-size:13px; font-weight:700; }
.keypad button.soft .material-icons { font-size:26px; }
.keypad button.go { background:var(--accent); color:var(--accent-text); border-color:var(--accent); }
.keypad button.go:disabled { opacity:.35; }
.keypad button.go .material-icons { font-size:28px; }
#pinInput { position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.pinwrap .err { text-align:center; margin:14px 0 0; }
/* Username sign in (2026-11-10): the username box on a phone with none saved, and its link. */
.pinwrap input.pinuser { width:min(260px, 80vw); letter-spacing:0; font-size:18px; margin:0 0 18px; }
#pinUseUser { display:block; margin-top:8px; }
/* Sign in help: one row per person; slowed ones carry a Clear button. */
.shrow .t { display:flex; flex-direction:column; flex:1; min-width:0; }
.shrow .t small { color:var(--muted); font-size:12px; margin-top:2px; overflow-wrap:anywhere; }
.shrow { cursor:default; }
.shrow button.shclear { width:auto; margin:0; padding:8px 14px; font-size:14px; }
#signinHelpView .card > .empty { padding:14px; color:var(--muted); font-style:italic; }
#shSearch { margin-bottom:4px; }
.pinwrap .foot { margin-top:26px; }
@media (max-height:640px) { .pinwrap { margin-top:2vh; } .keypad { grid-template-columns:repeat(3, 64px); gap:8px 14px; } .keypad button { width:64px; height:64px; font-size:23px; } }

/* ── Home counts: Today strip, Needs you, quick actions, badges ────────────── */
.hgear { position:absolute; right:12px; top:calc(10px + env(safe-area-inset-top)); width:36px; height:36px; border-radius:12px; background:var(--card); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--muted); cursor:pointer; }
.hgear:active { transform:scale(.94); }
.hgear .material-icons { font-size:20px; }
.eyebrow { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:14px 2px 8px; }
#homeStrip .eyebrow, #homeNeeds .eyebrow, #homeQuick .eyebrow { margin-top:2px; }
#homeStrip + #homeNeeds .eyebrow, #homeStrip + #homeQuick .eyebrow, #homeNeeds + #homeQuick .eyebrow { margin-top:14px; }
#homeToolsLabel { margin-top:14px; }
.today { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:10px; display:grid; grid-template-columns:repeat(auto-fit, minmax(0, 1fr)); gap:6px; box-shadow:var(--shadow); }
.today .st { text-align:center; padding:8px 4px; border-radius:12px; cursor:pointer; min-width:0; }
.today .st:active { background:var(--card2); }
.today .st.me { background:var(--accent-soft); }
.today .v { font-size:22px; font-weight:800; letter-spacing:-.02em; line-height:1.05; font-variant-numeric:tabular-nums; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.today .v.small { font-size:16px; padding-top:4px; }
.today .k { font-size:10.5px; color:var(--muted); font-weight:700; margin-top:4px; text-transform:uppercase; letter-spacing:.04em; }
.today .d { font-size:11px; font-weight:700; margin-top:2px; color:var(--okink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.today .d.warn { color:var(--warnink); }
.today .d.muted { color:var(--muted); font-weight:600; }
.needlist { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.need { display:flex; align-items:center; gap:10px; padding:11px 12px; border-top:1px solid var(--line); font-size:14px; cursor:pointer; }
.need:first-child { border-top:0; }
.need:active { background:var(--card2); }
.need .dot { width:8px; height:8px; border-radius:50%; flex:none; background:var(--warnink); }
.need .dot.bad { background:var(--danger); }
.need .dot.ok { background:var(--okink); }
.need .t { flex:1; min-width:0; }
.need .t b { display:block; font-weight:700; }
.need .t span { font-size:12px; color:var(--muted); }
.need .chev { color:var(--muted); font-size:20px; }
.slackcard { display:flex; align-items:center; gap:12px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:12px 14px; margin:0 0 12px; box-shadow:var(--shadow); cursor:pointer; }
.slackcard:active { background:var(--card2); }
.slackcard .ic { font-size:24px; color:var(--muted); flex:none; }
.slackcard .t { flex:1; min-width:0; }
.slackcard .lbl { display:block; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.slackcard b { display:block; font-size:15px; font-weight:700; margin-top:1px; }
.slackcard .t span:not(.lbl) { display:block; font-size:12px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.slackcard .t span.note { white-space:normal; }
.slackcard .cnt { flex:none; min-width:24px; height:24px; padding:0 7px; border-radius:12px; background:var(--accent); color:var(--accent-text); font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.slackcard .chev { color:var(--muted); font-size:20px; flex:none; }
.slackcard.new { border-color:var(--accent); background:var(--accent-soft); }
.slackcard.new .ic { color:var(--accent); }
/* Read and Sign: the home card (under Slack), my items, and the managers' tracker. */
.rscard { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); margin:0 0 12px; box-shadow:var(--shadow); overflow:hidden; }
.rscard[data-go] { cursor:pointer; }
.rscard.new { border:1.5px solid var(--accent); background:var(--accent-soft); }
.rshead { display:flex; align-items:center; gap:12px; padding:12px 14px; }
.rscard.new .rshead { padding-bottom:8px; }
.rshead .ic { font-size:24px; color:var(--muted); flex:none; }
.rscard.new .rshead .ic { color:var(--accent); }
.rshead .t { flex:1; min-width:0; }
.rshead .lbl { display:block; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.rscard.new .rshead .lbl { color:var(--accent); }
.rshead b { display:block; font-size:15px; font-weight:700; margin-top:1px; }
.rshead .t span:not(.lbl) { display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.rshead .cnt { flex:none; min-width:24px; height:24px; padding:0 7px; border-radius:12px; background:var(--accent); color:var(--accent-text); font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.rshead .chev, .rsrow .chev { color:var(--muted); font-size:20px; flex:none; }
.rsrow { display:flex; align-items:center; gap:10px; background:var(--card); margin:0 8px 6px; border-radius:12px; padding:10px 12px; min-height:44px; cursor:pointer; }
.rsrow:last-child { margin-bottom:8px; }
.rsrow .t { flex:1; min-width:0; }
.rsrow b { display:block; font-size:14px; }
.rsrow .t span { display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.rsmore { text-align:center; font-size:13px; font-weight:700; color:var(--accent); padding:4px 0 10px; cursor:pointer; }
.card.rsitem { display:flex; align-items:center; gap:10px; padding:12px 14px; margin-bottom:8px; cursor:pointer; }
.card.rsitem .t { flex:1; min-width:0; }
.card.rsitem b { display:block; font-size:15px; }
.card.rsitem .t span { display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.rslist { margin-bottom:10px; }
.rsline { display:flex; justify-content:space-between; gap:10px; padding:10px 14px; border-top:1px solid var(--line); font-size:14px; cursor:pointer; }
.rslist .rsline:first-child, .rsgrp + .rsline, .rsgrp + .rsperson { border-top:0; }
.rsmeta { font-size:12px; color:var(--muted); white-space:nowrap; }
.card.rsread { padding:16px; margin-bottom:12px; }
.rschips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.card.rsread .rschips { margin-top:0; }
.card.rsread h2 { margin:10px 0 0; font-size:21px; line-height:1.2; }
.rstext { margin-top:12px; font-size:15px; line-height:1.5; white-space:pre-line; overflow-wrap:anywhere; }
.rslink { display:flex; align-items:center; gap:10px; margin-top:14px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--card2); color:var(--ink); text-decoration:none; font-size:14px; font-weight:600; }
.rslink .material-icons { color:var(--accent); font-size:20px; }
.rslink span:nth-child(2) { flex:1; }
.card.rssign { padding:14px 16px; margin-bottom:12px; }
.rsack { display:flex; align-items:flex-start; gap:12px; min-height:44px; cursor:pointer; font-size:15px; line-height:1.4; }
.rsack input { width:24px; height:24px; margin:1px 0 0; flex:none; accent-color:var(--accent); }
#rsSignBtn { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:10px; min-height:52px; }
#rsSignBtn:disabled { opacity:.45; }
.rsini { width:30px; height:30px; border-radius:15px; border:2px solid currentColor; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; letter-spacing:.02em; }
.card.rssign .sub { text-align:center; margin-top:8px; }
.card.rsdone { padding:22px 18px; text-align:center; margin-bottom:12px; }
.card.rsdone .material-icons.ok { font-size:52px; color:var(--okink); }
.card.rsdone h2 { margin:8px 0 0; font-size:21px; }
.rsstamp { margin:16px auto 0; max-width:280px; border:2px dashed var(--accent); border-radius:14px; padding:12px; }
.rsstamp .ini { font-size:32px; font-weight:800; color:var(--accent); letter-spacing:.06em; }
.rsstamp .nm { font-size:13px; font-weight:600; margin-top:2px; }
.rsfile { display:flex; align-items:center; justify-content:center; gap:6px; margin:14px 0 0; font-size:13px; font-weight:700; color:var(--okink); }
.rsfile .material-icons { font-size:18px; }
.rsnext { display:flex; flex-direction:column; gap:8px; }
.rstop { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin-bottom:10px; }
.rstot { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:10px 12px; }
.rstot b { display:block; font-size:22px; }
.rstot span { font-size:12px; color:var(--muted); }
.rstot.late { background:var(--warnbg); border-color:var(--warnline); }
.rstot.late b, .rstot.late span { color:var(--warnink); }
#rstNew { display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:10px; }
.rstseg { margin:4px 0 12px; }
.rstseg button { flex:1; }
.card.rstcard { padding:12px 14px; margin-bottom:10px; cursor:pointer; }
.card.rstcard.late { border:1.5px solid var(--warnink); }
.rsth { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.rsth b { font-size:15px; }
.rsbar { height:8px; border-radius:4px; background:var(--bg); margin-top:10px; overflow:hidden; }
.rsbar i { display:block; height:8px; background:var(--accent); }
.rstfoot { display:flex; justify-content:space-between; margin-top:6px; font-size:12px; }
.rstfoot .late { color:var(--warnink); font-weight:700; }
.rstfoot .okt { color:var(--okink); font-weight:700; }
.rsmanual { margin-top:6px; font-size:12px; color:var(--warnink); font-weight:600; }
.rsgrp { padding:12px 14px 6px; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.rsgrp.late { color:var(--warnink); }
.rsgrp.ok { color:var(--okink); }
.rsperson { display:flex; align-items:center; gap:10px; padding:10px 14px; border-top:1px solid var(--line); }
.rsperson .t { flex:1; min-width:0; }
.rsperson b { display:block; font-size:14px; }
.rsperson .t span { display:block; font-size:12px; color:var(--muted); }
.rsav { width:36px; height:36px; border-radius:18px; background:var(--warnbg); color:var(--warnink); font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; flex:none; }
.rsav.out { background:var(--accent-soft); color:var(--accent); }
button.rsremind { width:auto; min-height:40px; padding:0 12px; font-size:13px; background:var(--card); color:var(--accent); border:1px solid var(--accent); }
.rstback { display:block; margin:0 0 10px; }
.rsretire { display:block; margin:16px auto 0; color:var(--danger); }
.card.rsbodybox { padding:12px 14px; margin-bottom:10px; }
.card.rsbodybox summary { font-size:14px; font-weight:700; cursor:pointer; }
button.rschip { width:auto; padding:8px 14px; font-size:13px; border-radius:18px; background:var(--card2); color:var(--ink); border:1px solid var(--line); }
button.rschip.on { background:var(--accent); color:var(--accent-text); border-color:var(--accent); }
.rspick { max-height:260px; overflow:auto; border:1px solid var(--line); border-radius:12px; padding:2px 10px 8px; margin-top:8px; }
.rswho { font-size:14px; margin:14px 0 10px; }
.rscount { text-align:right; margin-top:4px; }
button.rslink { width:100%; text-align:left; cursor:pointer; }
.rssophits { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.rssophits:empty { display:none; }
button.rssophit { display:block; text-align:left; background:var(--card2); color:var(--ink); border:1px solid var(--line); padding:10px 12px; font-size:14px; font-weight:400; }
button.rssophit b { display:block; font-weight:700; }
button.rssophit span { display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.rssopchosen { display:flex; align-items:center; gap:8px; margin-top:5px; padding:10px 12px; border:1px solid var(--accent); border-radius:12px; background:var(--accent-soft); font-size:14px; font-weight:600; }
.rssopchosen .material-icons { color:var(--accent); font-size:20px; }
.rssopchosen span:nth-child(2) { flex:1; min-width:0; }
.mnabout { display:flex; gap:10px; align-items:flex-start; background:var(--card2); border:1px solid var(--line); border-radius:var(--radius); padding:10px 12px; margin:0 0 10px; }
.mnabout .material-icons { font-size:18px; color:var(--muted); margin-top:1px; }
.mnabout p { margin:0; font-size:13px; line-height:1.4; color:var(--muted); }
.mnlist { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.mn { display:flex; align-items:flex-start; gap:10px; padding:12px; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; }
.mn:first-child { border-top:0; }
.mn:active { background:var(--card2); }
.mn .dot { width:8px; height:8px; border-radius:50%; flex:none; margin-top:6px; background:var(--accent); }
.mn.seen .dot { background:transparent; }
.mn .t { flex:1; min-width:0; }
.mn .h { display:flex; align-items:baseline; gap:6px; font-size:13px; min-width:0; }
.mn .h b { font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mn .h span { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mn .h .w { margin-left:auto; flex:none; font-size:12px; }
.mn .x { font-size:14px; margin-top:3px; white-space:pre-wrap; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.mn.seen .x { color:var(--muted); }
.mn .k { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; font-size:12px; color:var(--muted); }
.mn .chev { color:var(--muted); font-size:18px; margin-top:2px; }
.quickrow { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin:0 -16px; padding:2px 16px 6px; }
.quickrow::-webkit-scrollbar { display:none; }
.qa { flex:none; display:flex; align-items:center; gap:6px; background:var(--accent); color:var(--accent-text); border-radius:999px; padding:9px 14px 9px 11px; font-size:13px; font-weight:700; white-space:nowrap; cursor:pointer; box-shadow:var(--shadow); }
.qa.ghost { background:var(--card); color:var(--ink); border:1px solid var(--line); }
.qa:active { transform:scale(.96); }
.qa .material-icons { font-size:18px; }
.tile { position:relative; }
.badge { position:absolute; top:10px; right:10px; font-size:10.5px; font-weight:800; padding:2px 7px; border-radius:999px; background:var(--badbg); color:var(--danger); white-space:nowrap; }
.badge.warn { background:var(--warnbg); color:var(--warnink); }
.badge.ok { background:var(--okbg); color:var(--okink); }
/* The strip, list and pills sit above the grid, so the first section heading loses its top gap. */

/* ── Settings ───────────────────────────────────────────────────────────────── */
.themeseg { margin:4px 0 6px; }
.themeseg { flex-wrap:wrap; }
.themeseg button { flex:1 1 30%; display:flex; align-items:center; justify-content:center; gap:4px; padding:10px 4px; font-size:12.5px; }
.themeseg button[data-theme-pick="pink"] { flex-basis:100%; }
.themeseg button[data-theme-pick="pink"].on { background:#ff4fa3; border-color:#ff4fa3; color:#fff; }
.themeseg button[data-theme-pick="vault"] { flex-basis:100%; }
.themeseg button[data-theme-pick="vault"].on { background:#ffd23f; border-color:#ffd23f; color:#0e2a57; }
.themeseg button .material-icons { font-size:18px; }
#settingsView .sub { margin:4px 4px 0; }
#settingsView .form { margin-top:4px; }
#settingsView .form > button[type=submit] { position:static; box-shadow:none; }

/* ── Welcome header (home): initials, greeting, role and date ───────────────── */
.homehead { display:flex; align-items:center; gap:12px; padding-bottom:10px; }
.homehead .avatar { width:44px; height:44px; border-radius:50%; background:var(--accent-soft); color:var(--accent-ink); font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; flex:none; letter-spacing:.02em; }
.homehead .hi { flex:1; min-width:0; }
.homehead h1 { font-size:19px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; }
.homehead .sub { margin-top:1px; }
.homehead .hgear { position:static; flex:none; }
.hero { display:flex; align-items:center; gap:12px; background:linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%); color:var(--accent-text); border-radius:var(--radius); padding:13px 14px; margin-bottom:12px; cursor:pointer; box-shadow:var(--shadow); }
.hero:active { transform:scale(.98); }
.hero .hic { width:36px; height:36px; border-radius:12px; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; flex:none; }
.hero .hic .material-icons { font-size:22px; }
.hero .ht { flex:1; min-width:0; }
.hero .ht b { display:block; font-size:15px; font-weight:800; }
.hero .ht span { font-size:12px; opacity:.85; }
.hero .chev { opacity:.85; }

/* Home schedule card: today's ServiceTitan jobs (techs, app.js renderSched). */
.schedhead { display:flex; align-items:center; justify-content:space-between; margin:14px 2px 8px; }
.schedhead .eyebrow { margin:0; }
.schedlive { display:flex; align-items:center; gap:5px; font-size:11px; font-weight:700; color:var(--okink); white-space:nowrap;
  width:auto; min-height:32px; margin:-6px -6px -6px 0; padding:4px 6px 4px 10px; background:none; border:0; border-radius:999px; font-family:inherit; cursor:pointer; box-shadow:none; }
.schedlive:active { background:var(--card2); transform:none; }
.schedlive .material-icons { font-size:15px; }
.schedlive.busy { color:var(--muted); }
.schedlive.busy .material-icons { animation:schedspin 1s linear infinite; }
@keyframes schedspin { to { transform:rotate(360deg); } }
.schedlive i { width:7px; height:7px; border-radius:50%; background:var(--okink); }
.schedlive.stale { color:var(--warnink); }
.schedlive.stale i { background:var(--warnink); }
.schedwarn { display:flex; align-items:flex-start; gap:8px; width:100%; margin:0 0 8px; padding:9px 12px; text-align:left; font-family:inherit; font-size:12.5px; font-weight:600; line-height:1.35;
  color:var(--danger); background:var(--badbg); border:1px solid var(--badline); border-radius:12px; box-shadow:none; cursor:pointer; }
.schedwarn .material-icons { font-size:18px; flex:none; }
.schedwarn b { font-weight:800; }
.schedtabs { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; margin-bottom:8px; }
.schedtab { text-align:center; padding:7px 4px 6px; border-radius:12px; border:1px solid var(--line); background:var(--card); cursor:pointer; min-width:0; user-select:none; -webkit-user-select:none; }
.schedtab b { display:block; font-size:13px; font-weight:800; letter-spacing:-.01em; }
.schedtab span { display:block; font-size:10.5px; color:var(--muted); font-weight:600; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.schedtab.on { background:var(--accent); border-color:var(--accent); color:var(--accent-text); }
.schedtab.on span { color:var(--accent-text); opacity:.85; }
.schedstrip { position:relative; display:flex; gap:12px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; align-items:flex-start; overscroll-behavior-x:contain; transition:height .2s ease; }
.schedstrip::-webkit-scrollbar { display:none; }
.schedpane { flex:0 0 100%; min-width:0; scroll-snap-align:start; scroll-snap-stop:always; }
.sched { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.sj { display:block; padding:12px 12px 12px 14px; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; cursor:pointer; }
.sj .sjrow { display:flex; align-items:center; gap:12px; }
.sj:first-child { border-top:0; }
.sj:active { background:var(--card2); }
.sj.next, .sj.now { background:var(--accent-soft); border-left:4px solid var(--accent); padding-left:10px; }
.sj.done { opacity:.72; }
.sj.open.done { opacity:1; }
.sj.event .when b { font-weight:700; color:var(--muted); }
.sjmore { margin:10px 0 2px 70px; font-size:13px; line-height:1.45; display:flex; flex-direction:column; gap:3px; }
.sj.next .sjmore, .sj.now .sjmore { margin-left:70px; }
.sjmore .k { font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin-right:4px; }
.sjmore .sum { color:var(--ink); white-space:pre-line; overflow-wrap:anywhere; margin-top:4px; }
.sjmore b { font-weight:800; }
.sjgo { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; margin-top:6px; background:var(--accent); color:var(--accent-text); border-radius:999px; padding:8px 14px 8px 10px; font-size:13px; font-weight:700; text-decoration:none; box-shadow:var(--shadow); }
.sjgo .material-icons { font-size:18px; }
.sjgo:active { transform:scale(.96); }
.spl.ev { background:var(--card2); color:var(--muted); }
.sj .when { width:58px; flex:none; text-align:center; }
.sj .when b { display:block; font-size:17px; font-weight:800; letter-spacing:-.02em; line-height:1.05; font-variant-numeric:tabular-nums; }
.sj .when span { display:block; font-size:11px; color:var(--muted); font-weight:600; margin-top:2px; white-space:nowrap; }
.sj .what { flex:1; min-width:0; }
.sj .what b { display:block; font-size:14.5px; font-weight:700; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sj .what span { display:block; font-size:12px; color:var(--muted); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sj .pills { display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
.spl { font-size:10.5px; font-weight:700; border-radius:999px; padding:2px 8px; background:var(--card2); border:1px solid var(--line); color:var(--muted); white-space:nowrap; }
.spl.next { background:var(--card); color:var(--accent-ink); border-color:color-mix(in srgb, var(--accent) 35%, var(--line)); }
.spl.now, .spl.done { background:var(--okbg); color:var(--okink); border-color:transparent; }
.spl.disp { background:var(--warnbg); color:var(--warnink); border-color:transparent; }
.sj .chev { color:var(--muted); font-size:22px; flex:none; }
.schedfold { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; font-size:12px; color:var(--muted); font-weight:600; cursor:pointer; user-select:none; -webkit-user-select:none; }
.schedfold > span { color:var(--accent-ink); font-weight:700; display:flex; align-items:center; gap:2px; }
.schedfold .material-icons { font-size:16px; }
.schednote { display:flex; align-items:center; gap:6px; padding:8px 14px; border-top:1px solid var(--line); font-size:11.5px; color:var(--muted); font-weight:600; line-height:1.3; }
.schednote .material-icons { font-size:15px; flex:none; }
.schedfoot {display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 14px; border-top:1px solid var(--line); background:var(--card2); font-size:11px; color:var(--muted); font-weight:600; }
.schedempty { padding:12px 14px; font-size:13px; color:var(--muted); }


/* Now Hiring */
.card.gate.hiringcard { margin-bottom:12px; }
.card.gate .hiringhead { cursor:pointer; }
.card.gate .hiringhead .chev { color:var(--muted); font-size:22px; flex:none; }
.hiringdesc { font-size:14px; line-height:1.45; margin:8px 0 4px; }
.hiringdesc p { margin:6px 0; }
.hiringdesc h1, .hiringdesc h2, .hiringdesc h3, .hiringdesc h4 { font-size:15px; margin:10px 0 4px; }
.hiringdesc ul, .hiringdesc ol { margin:4px 0 8px; padding-left:20px; }
.hiringdesc li { margin:2px 0; }
.hiringbtns { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; margin-top:8px; }
.hiringbtns button.secondary { width:auto; margin:0; padding:8px 14px; font-size:14px; display:inline-flex; align-items:center; gap:6px; }
.hiringbtns button.secondary .material-icons { font-size:18px; }
.hiringbtns .linkbtn { padding:8px 4px; font-size:14px; }

/* Interviews: star rating (BambooHR application rating) */
.ivratewrap { display:flex; align-items:center; gap:10px; margin:10px 0 4px; }
.ivratelabel { font-size:13px; font-weight:700; color:var(--ink); }
.ivstars { display:flex; gap:2px; }
.ivstar { width:auto; background:transparent; border:0; box-shadow:none; padding:2px; margin:0; color:var(--muted); cursor:pointer; line-height:1; }
.ivstar .material-icons { font-size:28px; }
.ivstar.on { color:#f5b301; }
.ivstar:active { transform:scale(.9); }

/* DVIR (daily vehicle inspection) */
.dvitem { background:var(--card2); border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-top:8px; }
.dvitem .dl { font-weight:600; font-size:14px; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.dvitem .dh { font-size:12px; color:var(--muted); margin-top:2px; }
.dvitem .seg { margin-top:8px; flex-wrap:wrap; }
.dvitem .seg button { padding:8px 10px; font-size:13px; }
.dvitem.attn { border-color:var(--danger); background:var(--badbg); }
.dvitem.done { border-color:var(--okline); }
.dvitem textarea { width:100%; margin-top:8px; }
.dvslots { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; margin-top:6px; }
.dvslot { position:relative; display:block; border:1px dashed var(--accent); border-radius:12px; aspect-ratio:4/3; overflow:hidden; background:var(--card2); text-align:center; cursor:pointer; }
.dvslot img { width:100%; height:100%; object-fit:cover; display:block; }
.dvslot .dvcap { position:absolute; left:0; right:0; bottom:0; padding:4px 6px; font-size:12px; font-weight:600; background:rgba(15,27,45,.6); color:#fff; }
.dvslot.empty .dvcap { position:static; background:none; color:var(--accent); display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; }
.dvslot.empty .dvcap .material-icons { font-size:26px; }
.dvslot.st-done { border:2px solid var(--okink); }
.dvslot.st-failed { border:2px solid var(--danger); }
.dvslot.small { aspect-ratio:auto; width:120px; height:80px; margin-top:8px; }
.dvday { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:4px 0 10px; }
.dvday button { width:auto; padding:8px 12px; font-size:13px; }
.dvday .dvdate { font-weight:700; font-size:15px; }
.dvgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(72px, 1fr)); gap:6px; margin-top:6px; }
.dvgrid .dvt { border:1px solid var(--line); border-radius:10px; padding:6px 4px; text-align:center; font-size:13px; font-weight:600; background:var(--card); }
.dvgrid .dvt.ok { background:var(--okbg); color:var(--okink); border-color:var(--okline); }
.dvgrid .dvt.miss { background:var(--danger); color:var(--card); border-color:var(--danger); }
.dvgrid .dvt.ok { background:var(--okink); color:var(--card); border-color:var(--okink); }
.dvgrid .dvt.miss small, .dvgrid .dvt.ok small { color:var(--card); opacity:.85; }
/* Red and green squares (Robi 2026-10-26): the tech's own DVIR days and wash weeks, and the legends */
.calcard { padding:12px 14px; }
.calhead { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-weight:700; font-size:15px; }
.calhead .sub { font-weight:600; font-size:12px; }
.calgrid { display:grid; grid-template-columns:repeat(7, 1fr); gap:5px; margin-top:10px; }
.calgrid.wk6 { grid-template-columns:repeat(6, 1fr); }
.caldow { text-align:center; font-size:10px; font-weight:700; color:var(--muted); }
.calsq { aspect-ratio:1; border-radius:8px; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1.05;
  font-size:13px; font-weight:700; border:1px solid var(--line); background:var(--card2); color:var(--muted); }
.calsq.wk { aspect-ratio:auto; padding:12px 0; font-size:12px; }
.calsq small { font-size:9px; font-weight:600; }
.calsq.yes { background:var(--okink); border-color:var(--okink); color:var(--card); }
.calsq.no { background:var(--danger); border-color:var(--danger); color:var(--card); }
.calsq.open { border:2px dashed var(--okink); color:var(--ink); background:var(--card); }
.calsq.off, .calsq.pre { opacity:.55; }
.calsq.future { background:transparent; border-style:dotted; opacity:.4; }
.callegend { display:flex; flex-wrap:wrap; gap:6px 12px; font-size:11px; color:var(--muted); margin-top:8px; }
.callegend span { display:inline-flex; align-items:center; gap:5px; }
.callegend .calsq { display:inline-block; width:12px; height:12px; aspect-ratio:auto; padding:0; border-radius:3px; }
.callegend .calsq.open { border-width:1px; }
.dvgrid .dvt small { display:block; font-weight:400; font-size:10px; color:var(--muted); }
.dvrow { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); font-size:13px; }
.dvrow:last-child { border-bottom:0; }

/* claude: search inside every SOP (results and the managers' search log).
   The tile and search box show Claude the dog (icons/claud.png) in place of a symbol. */
.tile .tileimg { width:36px; height:36px; border-radius:12px; object-fit:contain; background:var(--accent-soft); padding:3px; flex:none; display:block; }
.search .claudface { width:26px; height:26px; object-fit:contain; flex:none; }
/* The bottom bar's claude tab: the dog as an outline, painted in the tab's own colour
   (currentColor through a mask), so it greys out and lights up like the symbol icons. */
.tabbarnav .tbi .tbmask { width:24px; height:24px; background-color:currentColor; -webkit-mask:url(icons/claud-tab.png) center / contain no-repeat; mask:url(icons/claud-tab.png) center / contain no-repeat; }
#claudTabs .tab { padding:9px 4px; font-size:13px; white-space:nowrap; }
.claudrow .t, .claudlogt { display:flex; flex-direction:column; gap:2px; min-width:0; }
.claudtitle { font-weight:600; line-height:1.3; }
.claudgroup { font-size:12px; color:var(--muted); }
.claudsnip { font-size:13px; color:var(--muted); line-height:1.4; }
.claudsnip b { color:var(--ink); background:var(--accent-soft); border-radius:3px; padding:0 2px; }
#claudHint { margin:10px 4px 0; }

/* App Usage: claude searches is the first section, so its heading sits close under the title. */
#appUsageSearches .seclabel:first-child { margin-top:4px; }

/* ── Phone Tree + Email List ────────────────────────────────────────────────── */
.ptwarn { display:flex; gap:10px; align-items:flex-start; background:#c62828; color:#fff; border-radius:14px; padding:14px; margin:8px 0 12px; font-size:14.5px; line-height:1.4; }
.ptwarn .material-icons { font-size:28px; flex:none; }
.ptwarn b { display:block; font-size:16px; letter-spacing:.04em; margin-bottom:2px; }
.ptwarn b.inl { display:inline; font-size:inherit; letter-spacing:0; margin:0; }
.ptoffice { background:var(--accent); color:var(--accent-text); border-radius:14px; padding:16px; margin:12px 0 4px; text-align:center; box-shadow:var(--shadow); }
.ptoffice .lbl { font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; opacity:.85; }
.ptoffice .num { font-size:24px; font-weight:800; margin:4px 0 12px; }
.ptoffice .acts { display:flex; gap:10px; }
/* Same fixed red and white in every theme: the warning and the office buttons must stand out in dark mode too. */
.ptoffice .ptbtn.call, .ptoffice .ptbtn.txt { flex:1; justify-content:center; padding:12px; font-size:16px; background:#fff; color:#0d4f9a; }
.ptoffice .num.ptmail { font-size:19px; overflow-wrap:anywhere; margin-bottom:2px; }
.ptoffice .ptnote { font-size:14px; opacity:.9; margin-bottom:12px; }
.ptsec { margin-top:16px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ptlead { display:inline-flex; align-items:center; gap:3px; text-transform:none; letter-spacing:0; font-weight:700; font-size:11.5px; padding:2px 8px; border-radius:999px; background:var(--warnbg); color:var(--warnink); }
.ptlead .material-icons { font-size:13px; }
.ptrow { display:flex; align-items:center; gap:8px; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:6px; }
.ptwho { flex:1; min-width:0; display:flex; flex-direction:column; }
.ptwho b { font-weight:700; }
.ptwho span { color:var(--muted); font-size:14px; overflow-wrap:anywhere; }
.ptbtn { flex:none; display:inline-flex; align-items:center; gap:4px; text-decoration:none; font-weight:700; font-size:14px; padding:8px 10px; border-radius:10px; }
.ptbtn .material-icons { font-size:17px; }
.ptbtn.call { background:var(--accent); color:var(--accent-text); }
.ptbtn.txt { background:var(--accent-soft); color:var(--accent-ink); }
.vcard { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:12px; margin-bottom:10px; }
.vcard .ptrow { margin:8px 0 0; padding:8px 10px; flex-wrap:wrap; }
.vhead { display:flex; align-items:center; gap:8px; font-size:16px; }
.vhead b { flex:1; min-width:0; }
.vstate { flex:none; font-size:11.5px; font-weight:700; padding:2px 8px; border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); }
.vnotes { font-size:13.5px; color:var(--muted); margin-top:2px; }
.vmail { overflow-wrap:anywhere; }
.vweb { display:inline-flex; align-items:center; gap:4px; margin-top:8px; font-size:14px; font-weight:600; color:var(--accent); text-decoration:none; overflow-wrap:anywhere; }
.vweb .material-icons { font-size:17px; }
.vsds { font-size:12px; color:var(--muted); margin-top:6px; }
/* deep clean: the month at a glance and the bag wash control */
.dcmbar { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 8px 0; }
.dcmbar b { font-size:15px; flex:1; text-align:center; white-space:nowrap; }
.dcmbar button { background:none; border:0; color:var(--accent-ink); font-size:14px; padding:6px 8px; cursor:pointer; min-width:64px; white-space:nowrap; }
.dcmbar button:disabled { color:var(--muted); opacity:.5; cursor:default; }
.dcmstat { padding:2px 14px 10px; font-size:13px; color:var(--muted); }
.dcmstat b { color:var(--ink); }
.dcmtag { display:inline-block; font-size:11px; padding:1px 6px; border-radius:999px; margin-left:4px; color:var(--warnink); background:var(--warnbg); }
.dcmtag.ok { color:var(--okink); background:var(--okbg); }
.dcmrow { cursor:default; }
.dcmrow[data-dc] { cursor:pointer; }
.dcbagform { margin:14px 0 12px; }


/* Gaps card: how many reports sit under each Gap Status this month. */
.gapcounts { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 2px; }
.gapcounts .pill b { margin-left:4px; font-variant-numeric:tabular-nums; }
.gapcap { font-size:11px; color:var(--muted); margin:2px 0 6px; }

/* Training checklist (My Path, Worker training.*): trainer ticks, Kio confirms. */
.trstrip { padding:14px; cursor:pointer; }
.trhead { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }
.trbar { height:6px; border-radius:6px; background:var(--line); overflow:hidden; margin-bottom:8px; }
.trbar span { display:block; height:100%; background:var(--okink); }
.trsec { display:flex; justify-content:space-between; cursor:pointer; }
.trline { display:flex; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line); }
.trline:last-child { border-bottom:0; }
.trline > .material-icons { color:var(--muted); font-size:22px; }
.trline.ticked > .material-icons { color:var(--accent); }
.trline.done > .material-icons { color:var(--okink); }
.trt { flex:1; font-size:14px; line-height:1.4; }
.trm { font-size:12px; color:var(--muted); margin-top:3px; }
.tracts { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:4px; }
.tracts .linkbtn { padding:4px 0; margin-right:10px; }
.trscore { width:96px; padding:6px 8px; font-size:14px; }
/* Three marks per line: tech blue check, trainer green check, manager gold star; green SOP pill. */
.trmarks { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; }
.trk { display:inline-flex; align-items:center; gap:3px; width:auto; margin:0; padding:3px 9px 3px 5px; border-radius:20px; font-size:12px; font-weight:600;
  background:var(--bg); color:var(--muted); border:1px solid var(--line); line-height:1.4; cursor:pointer; }
.trk.ro { cursor:default; }
.trk .material-icons { font-size:17px; }
.trk small { font-weight:400; opacity:.8; }
.trk.tech.on { color:#2563eb; border-color:#2563eb55; background:#2563eb14; }
.trk.trn.on { color:#16a34a; border-color:#16a34a55; background:#16a34a14; }
.trk.mgr.on { color:#c99700; border-color:#e0b00066; background:#e0b0001a; }
.trk.mgr.on .material-icons { color:#e0b000; }
.trsop { width:auto; margin:0; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:700; letter-spacing:.03em;
  color:#fff; background:#16a34a; border:0; cursor:pointer; }
.trlegend { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.trline.done { background:#e0b0000a; }
/* The MGR's star on a whole section (Robi 2026-11-05): a row at the top of the section. */
.trsecstar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding:10px 14px; border-bottom:1px solid var(--line); font-size:13px; color:var(--muted); }
.trsecstar.on { background:#e0b0001a; color:var(--ink); }
.trsecstar .linkbtn { width:auto; margin:0 0 0 auto; padding:2px 0; }
.trsecdone { font-size:16px; vertical-align:middle; color:#e0b000; }
.trchev { font-size:16px; vertical-align:middle; }
/* Week tabs on the trainee's checklist; the MGR's week control. */
.trweeks { margin-bottom:10px; }
.trweeks .tab { flex:1; }
.trweeks .tab .material-icons { font-size:15px; vertical-align:-2px; }
.trweekctl { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; margin-top:10px; font-size:13px; }
.trweekctl .linkbtn { padding:4px 0; }
/* A key step (the system test and the 3 step shutdown): never skipped. */
.trkey { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:#fff; background:#dc2626; border-radius:6px; padding:1px 7px; margin-right:4px; vertical-align:1px; }
.trk.ro[data-trwhy] { cursor:pointer; }
/* Still open: lines from a week that is over with no MGR star (Robi 2026-10-29). */
.trmissed { cursor:default; }
.trmissrow { display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%; margin:8px 0 0; padding:9px 11px; text-align:left;
  font-size:14px; font-weight:400; line-height:1.35; color:var(--ink); background:var(--warnbg); border:1px solid var(--warnline); border-radius:10px; cursor:pointer; }
.trmissrow small { font-size:12px; font-weight:600; color:var(--warnink); }
.trmiss { font-size:11px; margin-right:4px; }
.trline.missed { box-shadow:inset 4px 0 0 var(--warnink); }
.trline.trflash { background:var(--warnbg); transition:background .3s; }
/* Pick people from a list, never typed (training assign, trainers, MGRs). */
.trfield { margin:10px 0; }
.treval ol { margin:6px 0 6px 20px; padding:0; }
.treval li { margin:2px 0; }
#trEvalBtn, #trEvSend { margin-top:10px; }
.trflabel { font-size:13px; font-weight:600; margin-bottom:4px; }
.trfield .pill { display:inline-block; margin:0 4px 4px 0; }
.trfield .linkbtn { padding:4px 0; }
.trpick { position:fixed; inset:0; z-index:200; background:rgba(0,0,0,.45); display:flex; align-items:flex-end; justify-content:center; }
.trpickbox { background:var(--card); width:100%; max-width:560px; max-height:82vh; display:flex; flex-direction:column; border-radius:16px 16px 0 0; padding:14px 14px calc(14px + env(safe-area-inset-bottom)); }
.trpickhead { display:flex; flex-direction:column; gap:2px; margin-bottom:8px; }
.trpickq { margin-bottom:8px; }
.trpicklist { overflow-y:auto; flex:1; border:1px solid var(--line); border-radius:12px; }
.trpickrow { display:flex; align-items:center; gap:10px; padding:12px; border-bottom:1px solid var(--line); cursor:pointer; font-size:15px; }
.trpickrow:last-child { border-bottom:0; }
.trpickrow .material-icons { color:var(--muted); }
.trpickrow.on .material-icons { color:var(--accent); }
.trpickbtns { display:flex; gap:8px; margin-top:10px; }
.trpickbtns button { flex:1; margin-top:0; }
.trpickq { width:100%; padding:10px 12px; font-size:15px; border-radius:10px; border:1px solid var(--line); background:var(--bg); color:inherit; }
/* Quizzes in the app: one tap per question, scored by the Worker, 90% passes. */
.trquizbtn { width:auto; margin:8px 0 0; padding:7px 14px; font-size:13px; font-weight:700; border-radius:20px; }
.qzq { padding:12px 14px; margin-top:10px; }
.qzn { font-weight:600; font-size:15px; margin-bottom:8px; line-height:1.4; }
.qzopt { display:flex; align-items:flex-start; gap:10px; width:100%; text-align:left; margin:6px 0 0; padding:10px 12px; border-radius:10px; font-size:14px; font-weight:500;
  background:var(--bg); color:inherit; border:1px solid var(--line); line-height:1.35; }
.qzopt.on { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 14%, transparent); }
.qzopt.ro { cursor:default; }
.qzl { flex:none; width:22px; height:22px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; border:1px solid var(--line); }
.qzopt.on .qzl { background:var(--accent); color:#fff; border-color:var(--accent); }
.qzbar { position:sticky; bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom)); display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; padding:10px 12px; border-radius:14px; background:var(--card); border:1px solid var(--line); }
.qzbar button { width:auto; margin:0; padding:10px 18px; }
.qzres { text-align:center; }
.qzres .qzscore { font-size:40px; font-weight:800; line-height:1.1; }
.qzres.pass .qzscore { color:#16a34a; }
.qzres.miss .qzscore { color:#dc2626; }
.qzwrong { font-size:13px; color:#dc2626; margin-top:4px; }
.qzright { font-size:13px; color:#16a34a; margin-top:4px; font-weight:600; }
.qzq.must { border-color:#dc262666; }
/* Oral quizzes (Duct sales and cross sell): the answer to listen for, then Right or Missed. */
.qzans { font-size:13px; color:var(--muted); line-height:1.45; padding:8px 10px; border-radius:10px; background:var(--bg); border:1px dashed var(--line); }
.qzans .pill { margin-left:4px; }
.oqbtns { display:flex; gap:8px; }
.oqbtns .qzopt { justify-content:center; text-align:center; font-weight:700; }
/* The sales evaluation: what was offered, and what of it sold. */
.trsales { display:grid; grid-template-columns:1fr 72px 72px; gap:6px 8px; align-items:center; margin:8px 0 4px; font-size:13px; }
.trsales b { font-size:12px; color:var(--muted); text-align:center; }
.trsales input { margin:0; padding:8px; text-align:center; }

/* Inventory > Fulfill */
.fulreq { padding:10px 12px; margin-bottom:10px; }
.fulhead { display:flex; align-items:baseline; gap:8px; margin-bottom:6px; }
.fulhead .cathint { margin-left:auto; }
.fulline { display:flex; align-items:flex-start; gap:8px; padding:6px 0; border-top:1px solid var(--line, rgba(128,128,128,.25)); font-size:15px; }
.fulline input { width:20px; height:20px; margin-top:2px; flex:none; }
.fulnote { display:block; font-size:12px; opacity:.7; }
.fulbo { font-size:12px; font-weight:600; opacity:.8; }
.fulst { margin-left:auto; font-size:13px; opacity:.75; }
.fulbar { margin-top:8px; display:flex; gap:8px; flex-wrap:wrap; }
.catghost { width:auto; padding:10px 14px; font-size:14px; background:transparent; border:1px solid currentColor; border-radius:10px; color:inherit; }
.fuldone { margin-top:14px; }
.fuldone summary { font-weight:600; padding:6px 0; cursor:pointer; }

.fulreg { margin-bottom:10px; }

.fulbarTop { margin-bottom:10px; }
.fulform { margin-bottom:12px; }
.fulrow { display:flex; gap:8px; align-items:center; margin:6px 0; }
.fulrow select { flex:1; min-width:0; }
.fulrow input { width:64px; flex:none; }

.vsearch { width:100%; box-sizing:border-box; padding:10px 12px; font-size:16px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); }

/* Training Board (Robi 2026-11-06): every open plan, grouped by where it stands. */
.trbfilt { margin-bottom:10px; }
.trbfilt .tab { flex:0 0 auto; white-space:nowrap; }
.trbsum { cursor:default; display:flex; flex-wrap:wrap; gap:6px; }
.trbrow .t { flex:1; min-width:0; }
.trbrow .trbar { margin:6px 0 4px; }
.trbehind { color:var(--danger); }
#trBoardBtn { display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:12px; }

/* Office Crew (app.js openCrew): status buttons, live board, team chat. Tones: on = on
   the phone (red), ok = free (green), away = stepped away (amber), off = signed off. */
.crewbtns { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; margin:0 0 14px; }
@media (max-width:520px) { .crewbtns { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.crewbtn { padding:10px 6px; border-radius:12px; border:1px solid var(--line); background:var(--card); color:var(--ink); font:inherit; font-weight:600; cursor:pointer; }
.crewbtn.on.t-ok { background:var(--okbg); border-color:var(--okink); color:var(--okink); }
.crewbtn.on.t-on { background:var(--badbg); border-color:var(--danger); color:var(--danger); }
.crewbtn.on.t-away { background:var(--warnbg); border-color:var(--warnink); color:var(--warnink); }
.crewbtn.on.t-off { background:var(--card2); border-color:var(--muted); color:var(--muted); }
.crewboard { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:6px; margin:0 0 14px; }
/* One line per person: dot, name, status, timer (Robi 11/12: half the height). */
.crewcard { display:flex; align-items:center; gap:8px; min-width:0; border-radius:10px; padding:6px 10px; border:1px solid var(--line); background:var(--card); font-size:14px; line-height:1.25; }
.crewcard.t-on { background:var(--badbg); border-color:var(--danger); color:var(--danger); }
.crewcard.t-ok { background:var(--okbg); border-color:var(--okink); color:var(--okink); }
.crewcard.t-away { background:var(--warnbg); border-color:var(--warnink); color:var(--warnink); }
.crewcard.t-off { background:var(--card2); color:var(--muted); }
.crewname { font-weight:700; flex:none; }
.crewdot { width:10px; height:10px; border-radius:50%; background:currentColor; flex:none; }
.crewcard.t-off .crewdot { background:var(--line); }
.crewsub { font-size:12px; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.crewtime { font-size:12px; flex:none; font-variant-numeric:tabular-nums; }
.crewchat { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); display:flex; flex-direction:column; }
.crewmsgs { height:48vh; min-height:260px; overflow-y:auto; padding:10px 12px; }
.crewday { text-align:center; font-size:12px; color:var(--muted); margin:10px 0 4px; }
.crewmsg { margin:0; }
.crewmsg.head { margin-top:8px; }
.crewwho { font-weight:700; font-size:13px; }
.crewwho span { font-weight:400; color:var(--muted); font-size:12px; margin-left:4px; }
.crewmsg.mine .crewwho { color:var(--accent-ink); }
.crewmsg { position:relative; border-radius:8px; }
.crewtxt { position:relative; padding:1px 0; overflow-wrap:anywhere; line-height:1.4; }
.crewtxt.gone { color:var(--muted); font-style:italic; }
.crewat { color:var(--accent-ink); }
.crewat.me { background:var(--warnbg); color:var(--warnink); border-radius:4px; padding:0 2px; }
/* Reactions and replies (Robi 11/13): a small bar on hover (a tap on phones), chips under the
   message, the emoji picker, the quote above a reply and the reply bar over the box. */
.crewacts { position:absolute; right:0; top:-10px; display:none; gap:2px; background:var(--card); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); padding:2px; z-index:2; }
.crewmsg:hover .crewacts, .crewmsg.act .crewacts, .crewacts:focus-within { display:flex; }
@media (hover:none) { .crewmsg:hover .crewacts { display:none; } .crewmsg.act .crewacts { display:flex; } }
.crewacts button { width:auto; border:0; background:none; color:var(--muted); cursor:pointer; padding:5px 7px; border-radius:8px; line-height:1; }
.crewacts button:hover { background:var(--card2); color:var(--ink); }
.crewacts .material-icons { font-size:18px; }
.crewmsg.act { background:var(--card2); }
.crewreacts { display:flex; flex-wrap:wrap; gap:4px; margin:3px 0 2px; }
.crewreact { width:auto; display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:999px; border:1px solid var(--line); background:var(--card2); color:var(--ink); font-size:14px; line-height:1.4; cursor:pointer; }
.crewreact b { font-size:12px; font-weight:700; }
.crewreact.mine { border-color:var(--accent); background:var(--accent-soft); color:var(--accent-ink); }
.crewreact.add { color:var(--muted); padding:2px 6px; }
.crewreact.add .material-icons { font-size:16px; }
.crewpicker { display:flex; flex-wrap:wrap; gap:2px; margin:4px 0; padding:4px; background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); width:max-content; max-width:100%; }
.crewpicker button { width:auto; border:0; background:none; font-size:22px; line-height:1; padding:6px; border-radius:8px; cursor:pointer; }
.crewpicker button:hover, .crewpicker button:focus { background:var(--card2); }
.crewquote { width:auto; max-width:100%; display:flex; align-items:center; gap:4px; margin:2px 0 1px; padding:2px 8px 2px 6px; border:0; border-left:3px solid var(--line); border-radius:0 6px 6px 0; background:var(--card2); color:var(--muted); font-size:12px; text-align:left; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.crewquote b { color:var(--ink); font-weight:600; }
.crewquote .material-icons { font-size:14px; transform:scaleX(-1); flex:none; }
.crewmsg.flash { animation:crewflash 1.6s ease-out; }
@keyframes crewflash { 0%, 40% { background:var(--accent-soft); } 100% { background:transparent; } }
.crewreply { display:flex; align-items:center; gap:8px; padding:8px 10px 0; color:var(--muted); font-size:13px; }
.crewreply.hidden { display:none; }
.crewreply > .material-icons { font-size:18px; transform:scaleX(-1); }
.crewreplytxt { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.crewreplytxt b { color:var(--ink); }
.crewreplytxt span { margin-left:6px; }
#crewReplyX { width:auto; border:0; background:none; color:var(--muted); padding:2px; cursor:pointer; }
#crewReplyX .material-icons { font-size:18px; }
.crewsend { display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); align-items:flex-end; }
.crewsend textarea { flex:1; resize:none; font:inherit; padding:9px 12px; border-radius:12px; border:1px solid var(--line); background:var(--card2); color:var(--ink); max-height:140px; }
.crewsend .btn { flex:none; }
.crewempty { text-align:center; margin-top:30px; }
.crewbtn, #crewSendBtn { width:auto; }
.crewbtn { font-size:14px; }
#crewSendBtn { padding:10px 14px; }
.crewcard.pickable { cursor:pointer; }
.crewcard.picked { outline:2px solid var(--accent); outline-offset:2px; }
.crewpick { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:10px 12px 2px; margin:0 0 14px; }
.crewpickhead { display:flex; justify-content:space-between; align-items:center; font-weight:700; margin-bottom:8px; }
.crewpickx { width:auto; background:none; color:var(--muted); padding:0; }
/* White outline on every person's card, whatever their colour (Robi 11/12). */
.crewcard, .crewcard.t-on, .crewcard.t-ok, .crewcard.t-away, .crewcard.t-off { border:1.5px solid #ffffff; }
/* Quick buttons, Start my day, End my day, GIFs (Robi 11/12). */
.crewstart { width:100%; padding:14px; margin:0 0 14px; background:var(--okbg); border:1px solid var(--okink); color:var(--okink); font-size:16px; }
.crewend { width:auto; background:none; color:var(--muted); font-size:13px; font-weight:600; padding:0; margin:-6px 0 14px; text-decoration:underline; }
.crewgif { display:block; max-width:min(260px, 100%); max-height:220px; border-radius:10px; margin:4px 0; }
.crewgifbtn { width:auto; flex:none; padding:9px 10px; font-size:13px; background:var(--card2); color:var(--ink); border:1px solid var(--line); }
.crewgifs { border-top:1px solid var(--line); padding:10px; }
.crewgifs input { width:100%; box-sizing:border-box; padding:9px 12px; border-radius:12px; border:1px solid var(--line); background:var(--card2); color:var(--ink); font:inherit; }
.crewgifgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(90px, 1fr)); gap:6px; max-height:240px; overflow-y:auto; margin-top:8px; }
.crewgifpick { width:auto; padding:0; background:none; border-radius:8px; overflow:hidden; }
.crewgifpick img { display:block; width:100%; height:90px; object-fit:cover; }
.crewgifby { font-size:11px; color:var(--muted); text-align:right; margin:6px 0 0; }
.crewbtns.five { grid-template-columns:repeat(5, minmax(0, 1fr)); gap:6px; }
.crewbtns.five .crewbtn { padding:10px 2px; font-size:13px; }
.crewstat { font-size:12px; color:var(--muted); margin:6px 0 2px; }
.crewstat b { color:var(--ink); font-weight:600; }
.crewstat span { font-size:11px; margin-left:4px; }
/* Side by side view: buttons and board on the left, a tall chat on the right (Robi 11/12).
   app.js crewApplyView_ sets .side from the saved choice, else by screen width. */
#crewView.side header, #crewView.side .wrap { max-width:1240px; }
#crewView.side .crewcols { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.25fr); gap:22px; align-items:start; }
#crewView.side .crewleft { position:sticky; top:90px; }
#crewView.side .crewmsgs { height:calc(100vh - 290px); min-height:360px; }
.crewviewbtn { width:auto; margin-left:auto; padding:6px 10px; font-size:12px; font-weight:600; background:var(--card2); color:var(--ink); border:1px solid var(--line); border-radius:10px; }
/* Today's bookings at the far right of each card, side by side view only (CCR wall numbers). */
.crewbook { display:none; flex:none; font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--ink); background:var(--card); border-radius:6px; padding:1px 6px; }
#crewView.side .crewbook { display:inline-block; }
/* Everyone off work on one line under the board (Robi 11/12). */
.crewoffline { grid-column:1 / -1; font-size:13px; color:var(--muted); padding:2px 2px 0; }
.crewoffname[role=button] { cursor:pointer; text-decoration:underline dotted; }
.crewoffname.picked { color:var(--accent-ink); font-weight:700; }
.crewboard > .sub { grid-column:1 / -1; margin:0; }
/* TMOT top 5 under the board, side by side view only (Robi 11/12). */
.crewtmot { display:none; }
#crewView.side .crewtmot { display:block; margin-top:14px; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:10px 12px; }
.crewtmothead { font-size:12px; font-weight:700; color:var(--muted); margin-bottom:6px; }
.crewtmotrow { display:flex; align-items:center; gap:8px; font-size:14px; padding:3px 0; }
.crewtmotrow .rk { width:18px; font-weight:800; color:var(--accent-ink); }
.crewtmotrow .nm { font-weight:700; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.crewtmotrow .rl { font-size:11px; color:var(--muted); }
.crewtmotrow .pt { font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; }
/* Side by side view: bigger person cards, there is room on a desktop (Robi 11/12). */
#crewView.side .crewboard { grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:8px; }
#crewView.side .crewcard { padding:12px 14px; gap:10px; font-size:17px; border-radius:12px; border-width:2px; }
#crewView.side .crewname { font-size:18px; }
#crewView.side .crewdot { width:14px; height:14px; }
#crewView.side .crewsub, #crewView.side .crewtime { font-size:14px; }
#crewView.side .crewbook { font-size:15px; padding:2px 8px; }
.crewpreview { font-size:12px; color:var(--muted); margin:-6px 0 12px; }
/* Ringing banner (Robi 11/12). */
.crewring { display:flex; align-items:center; gap:10px; margin:0 0 12px; padding:10px 14px; border-radius:12px; border:2px solid var(--danger); background:var(--badbg); color:var(--danger); font-weight:700; animation:crewpulse 1.2s ease-in-out infinite; }
.crewring.hidden { display:none; }
.crewringtxt { flex:1; min-width:0; }
.crewringtxt .crewtime { font-weight:600; margin-left:6px; }
.crewringbtn { flex:none; background:var(--danger); color:#fff; border-radius:10px; padding:7px 12px; text-decoration:none; font-size:14px; }
@keyframes crewpulse { 0%, 100% { box-shadow:0 0 0 0 rgba(179,38,30,.35); } 50% { box-shadow:0 0 0 6px rgba(179,38,30,0); } }
@media (prefers-reduced-motion: reduce) { .crewring { animation:none; } }
/* Bigger person cards in every view, not just side by side (Robi 11/12). */
.crewboard { grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:8px; }
.crewcard { padding:11px 14px; gap:10px; font-size:16px; border-radius:12px; border-width:2px; }
.crewname { font-size:17px; }
.crewdot { width:13px; height:13px; }
.crewsub, .crewtime { font-size:13px; }
/* Today's booked dollars show in the stacked view too (Robi 11/12). */
.crewbook { display:inline-block; font-size:13px; }
/* Texts waiting line (Robi 11/12). */
.crewtexts { display:block; margin:0 0 12px; padding:9px 14px; border-radius:12px; border:2px solid var(--warnink); background:var(--warnbg); color:var(--warnink); font-weight:700; }
.crewtexthead { display:flex; align-items:center; gap:10px; }
.crewtextrow { display:flex; align-items:center; gap:8px; margin-top:8px; padding-top:8px; border-top:1px solid var(--warnline, rgba(138,83,0,.25)); font-size:14px; }
.crewtextrow > span { flex:1; min-width:0; }
.crewtextdone { width:auto; flex:none; padding:6px 12px; font-size:14px; background:transparent; color:var(--warnink); border:2px solid var(--warnink); border-radius:10px; }
.crewtexts.hidden { display:none; }
.crewtextsbtn { flex:none; background:var(--warnink); color:var(--warnbg); border-radius:10px; padding:6px 12px; text-decoration:none; font-size:14px; }
/* Chat names in their own colour, apart from the message text (Robi 11/13). */
.crewwho { color:var(--accent-ink); }
.crewmsg.mine .crewwho { color:var(--okink); }
.crewstat b { color:var(--accent-ink); }
/* Tags and notifications (Robi 11/13). */
.badge.tag { background:var(--danger); color:#fff; }
.crewmsg.tagme { background:var(--warnbg); border-radius:8px; margin-left:-6px; margin-right:-6px; padding:0 6px; }
.crewatlist { border-top:1px solid var(--line); padding:6px; display:flex; flex-wrap:wrap; gap:6px; }
.crewatlist.hidden { display:none; }
.crewatpick { width:auto; display:inline-flex; align-items:center; gap:6px; padding:7px 10px; font-size:14px; background:var(--card2); color:var(--ink); border:1px solid var(--line); border-radius:10px; }
.crewatpick .crewdot { width:9px; height:9px; }
.crewatpick .crewdot.t-on { background:var(--danger); } .crewatpick .crewdot.t-ok { background:var(--okink); } .crewatpick .crewdot.t-away { background:var(--warnink); } .crewatpick .crewdot.t-off { background:var(--line); }
.crewathint { color:var(--muted); font-size:12px; font-weight:400; }
.crewbell { margin-left:auto; margin-right:6px; }
.crewbell + .crewviewbtn { margin-left:0; }
.crewbell.on { background:var(--okbg); color:var(--okink); border-color:var(--okink); }
#setNotifyBtn.on { background:var(--okbg); color:var(--okink); border-color:var(--okink); }

/* Office reference pages: phone scripts and city minimums (office.js, Eric 11/16/2026). */
.ofcjump { display:flex; gap:8px; overflow-x:auto; padding:2px 0 12px; -webkit-overflow-scrolling:touch; }
.ofcchip { flex:none; width:auto; min-height:0; margin:0; border:1px solid var(--line); background:var(--card); color:var(--accent-ink); font:inherit; font-size:13px; font-weight:600; padding:8px 12px; border-radius:999px; cursor:pointer; white-space:nowrap; }
.ofcdoc h2 { font-size:19px; margin:26px 0 8px; padding-top:14px; border-top:2px solid var(--line); letter-spacing:-.01em; }
.ofcdoc .ofcsec:first-child h2 { margin-top:4px; padding-top:0; border-top:0; }
.ofcsec { scroll-margin-top:12px; }
.ofcdoc li.ind1 { margin-left:18px; } .ofcdoc li.ind2 { margin-left:36px; } .ofcdoc li.ind3 { margin-left:54px; }
.ofcdoc a { color:var(--accent-ink); font-weight:600; }
.ofcdoc code { background:var(--card2); padding:1px 5px; border-radius:5px; font-size:.92em; }
.ofctw { overflow-x:auto; margin:10px 0 14px; border:1px solid var(--line); border-radius:10px; background:var(--card); -webkit-overflow-scrolling:touch; }
.ofctw table { border-collapse:collapse; width:100%; font-size:14px; }
.ofctw th, .ofctw td { padding:8px 10px; border-bottom:1px solid var(--line); border-right:1px solid var(--line); text-align:left; vertical-align:top; }
.ofctw th:last-child, .ofctw td:last-child { border-right:0; } .ofctw tr:last-child td { border-bottom:0; }
.ofctw th { background:var(--card2); font-weight:700; }
.ofctw p, .ofctw li { font-size:14px; line-height:1.4; margin:2px 0; } .ofctw h3, .ofctw h4 { margin:2px 0 4px; font-size:14px; }
.ofccols { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:10px; margin:10px 0; }
.ofccols > div { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:8px 10px; min-width:0; }
.ofcnote { background:var(--warnbg); color:var(--warnink); border-radius:10px; padding:10px 12px; font-size:13.5px; line-height:1.45; margin:0 0 6px; }
.ofccity { padding:12px 14px; margin-bottom:8px; }
.ofcname { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:16px; font-weight:700; }
.ofcname span { font-size:12.5px; font-weight:600; color:var(--muted); white-space:nowrap; }
.ofcvals { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px 10px; margin-top:10px; }
.ofcval small { display:block; font-size:11px; color:var(--muted); line-height:1.25; }
.ofcval b { display:block; font-size:15px; margin-top:1px; }
.ofcval.no b { color:var(--danger); font-size:13px; } .ofcval.ask b { color:var(--muted); font-size:13px; }
@media (max-width:520px) { .ofccols { grid-auto-flow:row; } }
.ofcdoc { overflow-wrap:anywhere; }
