/* Arborbrook Help — tokens and components from the design handoff README. */

@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url(/fonts/instrument-sans/instrument-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-display: swap; src: url(/fonts/instrument-sans/instrument-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url(/fonts/instrument-sans/instrument-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 700; font-display: swap; src: url(/fonts/instrument-sans/instrument-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --ink: #1B1E1A; --muted: #5E6359; --faint: #8A8E84;
  --surface: #FBFAF7; --surface-2: #F4F2EC; --canvas: #E7E4DC; --card: #fff;
  --border: #D6D2C8; --border-2: #E2DED5; --border-3: #ECE9E2;
  --brand: #2F5D46; --brand-deep: #1F3A2D; --brand-disabled: #A9B5AD; --link-bg: #EEF3EF;
  --safety: #A61B12; --safety-bg: #FCE5E1;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
/* Class rules like display:flex would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--surface); color: var(--ink);
  font-family: 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
@media (min-width: 560px) {
  body { background: var(--canvas); }
  .screen { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
a { color: var(--brand); }
a:hover { color: #1F4231; }
input, select, textarea, button { font-family: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.screen {
  max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--surface);
  padding: calc(32px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 22px;
}
.screen.gap-18 { gap: 18px; }

/* Connection pill */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill {
  height: 32px; padding: 0 12px; border-radius: 16px; border: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; flex: none; background: #DDEBE2; color: #24513B;
}
.pill .dot { width: 8px; height: 8px; border-radius: 4px; background: #2F5D46; }
.pill[data-conn="backup"] { background: #FAEBD7; color: #7A4B12; }
.pill[data-conn="backup"] .dot { background: #B86A0E; }
.pill[data-conn="offline"] { background: #ECEAE4; color: #4A4F47; }
.pill[data-conn="offline"] .dot { background: #8A8E84; }
.navlink { font-size: 15px; font-weight: 600; color: var(--brand); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }

/* Type */
.stack-4 { display: flex; flex-direction: column; gap: 4px; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.h2 { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 0; }
.lede { font-size: 15px; color: var(--muted); line-height: 1.45; margin: 0; }
.muted-13 { font-size: 13px; color: var(--muted); }
.muted-14 { font-size: 14px; color: var(--muted); }
.mono-13 { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mono-12 { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.label { font-size: 13px; font-weight: 600; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* Form */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.grid-where { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.input {
  height: 48px; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; font-size: 16px;
  background: var(--card); font-weight: 400; min-width: 0; width: 100%;
}
select.input { padding: 0 10px; }
textarea.input { height: auto; padding: 12px 14px; resize: none; line-height: 1.4; }
.input[readonly] { color: var(--ink); }
.input::placeholder { color: var(--faint); }

.prio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prio button {
  text-align: left; min-height: 60px; border-radius: 12px; padding: 10px 12px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1.5px solid var(--border);
}
.prio .t { font-size: 15px; font-weight: 600; }
.prio .s { font-size: 12px; color: var(--muted); line-height: 1.3; }
.prio [data-v="Low"] .t { color: #4A4F47; }
.prio [data-v="Medium"] .t { color: #2C4F7C; }
.prio [data-v="High"] .t { color: #8A4B06; }
.prio [data-v="Low"][aria-pressed="true"] { background: #ECEAE4; border-color: #4A4F47; }
.prio [data-v="Medium"][aria-pressed="true"] { background: #E2EAF5; border-color: #2C4F7C; }
.prio [data-v="High"][aria-pressed="true"] { background: #FAEBD7; border-color: #8A4B06; }

.safety {
  min-height: 52px; border-radius: 12px; padding: 10px 14px; cursor: pointer; display: flex; align-items: center; gap: 12px;
  text-align: left; background: var(--card); border: 1.5px solid var(--border);
}
.safety .box {
  width: 22px; height: 22px; border-radius: 6px; flex: none; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700; background: var(--card); border: 1.5px solid var(--border);
}
.safety .t { font-size: 15px; font-weight: 600; color: var(--safety); }
.safety .s { font-size: 12px; color: var(--muted); }
.safety[aria-checked="true"] { background: var(--safety-bg); border-color: var(--safety); }
.safety[aria-checked="true"] .box { background: var(--safety); border-color: var(--safety); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 44px; padding: 0 14px; border-radius: 22px; font-size: 14px; font-weight: 500; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid var(--border);
}
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

.photo-btn {
  min-height: 56px; border: 1.5px dashed #BDB8AC; border-radius: 12px; background: var(--surface-2);
  font-size: 15px; font-weight: 500; color: #3E4239; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; overflow-wrap: anywhere;
}
.primary {
  height: 54px; border: none; border-radius: 14px; font-size: 17px; font-weight: 600; cursor: pointer; color: #fff; background: var(--brand);
}
.primary:disabled, .primary[aria-disabled="true"] { background: var(--brand-disabled); cursor: default; }
.secondary {
  height: 52px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); font-size: 16px; font-weight: 600; cursor: pointer;
}
.hint { font-size: 13px; color: var(--muted); text-align: center; margin-top: -10px; }
.hint.error { color: var(--safety); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Confirmation */
.done-icon { width: 56px; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; background: #DDEBE2; color: #24513B; }
.done-icon.queued { background: #ECEAE4; color: #4A4F47; }
.card { background: var(--card); border: 1px solid var(--border-2); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card .title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.linkbox { text-decoration: none; font-family: var(--mono); font-size: 13px; color: var(--brand); background: var(--link-bg); border-radius: 8px; padding: 10px 12px; word-break: break-all; }

/* My requests */
.note-banner { font-size: 13px; line-height: 1.45; color: #4A4F47; background: #ECEAE4; border-radius: 12px; padding: 10px 12px; }
.req {
  text-align: left; background: var(--card); border: 1px solid var(--border-2); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-decoration: none; color: inherit;
}
.req .row { display: flex; align-items: center; gap: 8px; }
.req .row .grow { flex: 1; }
.req .title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.req .last { font-size: 13px; color: var(--muted); line-height: 1.4; }
.bar { height: 4px; border-radius: 2px; background: #ECEAE4; overflow: hidden; }
.bar > div { height: 100%; background: var(--brand); }

.status { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.st-new, .st-queued { color: #4A4F47; background: #ECEAE4; }
.st-scheduled { color: #2C4F7C; background: #E2EAF5; }
.st-in_progress { color: #8A4B06; background: #FAEBD7; }
.st-waiting_parts { color: #5E3A91; background: #EEE6F7; }
.st-done { color: #24513B; background: #DDEBE2; }

/* Detail */
.back { align-self: flex-start; height: 44px; padding: 0 4px; border: none; background: none; font-size: 15px; font-weight: 600; color: var(--brand); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.stepper { gap: 0; }
.step { display: flex; gap: 12px; align-items: stretch; }
.step .rail { display: flex; flex-direction: column; align-items: center; width: 14px; }
.step .dot { width: 14px; height: 14px; border-radius: 7px; flex: none; background: #fff; border: 2px solid #CFCBC0; }
.step .line { flex: 1; width: 2px; min-height: 14px; background: #E2DED5; }
.step .lbl { font-size: 15px; padding-bottom: 14px; line-height: 1; font-weight: 500; color: var(--faint); }
.step.reached .dot { background: var(--brand); border-color: var(--brand); }
.step.reached .lbl { color: var(--ink); }
.step.passed .line { background: var(--brand); }
.step.current .lbl { font-weight: 700; }
.step:last-child .line { background: transparent; }
.update { display: flex; flex-direction: column; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--border-3); }
.update .when { font-size: 12px; color: var(--muted); }
.update .text { font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.copyrow { display: flex; gap: 8px; align-items: center; }
.copyrow .linkbox { flex: 1; min-width: 0; font-size: 12px; padding: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.copybtn { height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }

.empty { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- Triage (screen 3) ---------- */
.triage { max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--surface-2); display: flex; flex-direction: column; }
@media (min-width: 560px) { .triage { border-left: 1px solid var(--border); border-right: 1px solid var(--border); } }
.tri-head {
  background: var(--brand-deep); color: var(--surface-2); padding: calc(30px + env(safe-area-inset-top)) 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.tri-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tri-top .pill { align-self: flex-start; }
.tri-date { font-size: 13px; color: #B9CBBF; }
.tri-count { font-size: 24px; font-weight: 700; }
.tri-locate {
  height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #4E6B5B; background: #2A4A3A; color: var(--surface-2);
  font-size: 14px; font-weight: 600; cursor: pointer; flex: none;
}
.tri-locate:disabled { opacity: .8; cursor: default; }
.tri-eyebrow-row { display: flex; align-items: center; gap: 8px; }
.tri-loc { font-size: 12px; color: #B9CBBF; }
.tri-loc-ask { margin-left: auto; border: none; background: none; color: #CFE7D6; font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.tri-eyebrow { font-size: 12px; color: #B9CBBF; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.tri-chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.tri-chips::-webkit-scrollbar { display: none; }
.tri-chip {
  flex: none; height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px; background: transparent; color: var(--surface-2); border: 1px solid #4E6B5B;
}
.tri-chip[aria-pressed="true"] { background: var(--surface-2); color: var(--brand-deep); border-color: var(--surface-2); }
.tri-chip .n { font-size: 12px; font-weight: 500; opacity: .75; }

.tri-banner { padding: 12px 20px; font-size: 13px; line-height: 1.45; border-bottom: 1px solid var(--border-2); }
.tri-banner[data-conn="backup"] { background: #FAEBD7; color: #7A4B12; }
.tri-banner[data-conn="offline"] { background: #ECEAE4; color: #4A4F47; }
.tri-banner[data-conn="error"] { background: var(--safety-bg); color: var(--safety); }

.tri-sticky { position: sticky; top: 0; z-index: 2; background: var(--surface-2); padding: 12px 20px; border-bottom: 1px solid var(--border-2); }
.tri-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; background: var(--canvas); border-radius: 12px; padding: 4px; }
.tri-tab { height: 36px; border: none; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: var(--muted); }
.tri-tab[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.tri-list { padding: 16px 20px calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 26px; }
.tri-sec { display: flex; align-items: baseline; gap: 8px; }
.tri-sec h2 { font-size: 17px; font-weight: 700; margin: 0; }
.tri-sec span { font-size: 13px; color: var(--muted); }
.tri-sub { font-size: 13px; color: var(--muted); margin-top: -6px; line-height: 1.4; }
.tri-empty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 15px; }

.tri-card { background: #fff; border: 1px solid var(--border-2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.tri-card .row, .tri-sheet .row { display: flex; align-items: center; gap: 8px; }
.tri-card .grow, .tri-sheet .grow { flex: 1; }
.tri-card .title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.tri-card .meta { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tri-est { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 4px; }
.tri-est button { height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }

.tag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.tag-safety { color: var(--safety); background: var(--safety-bg); }
.tag-high { color: #8A4B06; background: #FAEBD7; }
.tag-medium { color: #2C4F7C; background: #E2EAF5; }
.tag-low { color: #4A4F47; background: #ECEAE4; }
.tag-pv { color: #2C4F7C; background: #E2EAF5; }

/* "+ My list" toggle, on a card or the ticket sheet */
.mylist-toggle { font: inherit; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); cursor: pointer; }
.mylist-toggle.on { background: var(--link-bg); color: var(--brand); border-color: var(--brand); }

.eff { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.eff-none { color: var(--muted); background: var(--surface-2); }
.eff-5 { color: #24513B; background: #DDEBE2; }
.eff-15 { color: #4D5A1E; background: #EDEFD6; }
.eff-30 { color: #7A4B12; background: #F6E9D6; }
.eff-60 { color: #7A2E1E; background: #F3DFD8; }

.tri-scrim { position: fixed; inset: 0; background: rgba(20,24,18,.42); z-index: 5; }
.tri-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 430px; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 24px 24px 0 0; z-index: 6;
  padding: 12px 20px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px;
}
.tri-sheet .grip { width: 40px; height: 5px; border-radius: 3px; background: var(--border); align-self: center; flex: none; }
.tri-sheet .close { height: 36px; padding: 0 10px; border: none; background: none; font-size: 15px; font-weight: 600; color: var(--brand); cursor: pointer; }
.tri-sheet .title { font-size: 21px; font-weight: 700; line-height: 1.25; margin: 0; }
.tri-sheet .desc { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tri-sheet .navlink { align-self: flex-start; margin: -10px 0; }
.kv { background: #fff; border: 1px solid var(--border-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kv .k { font-size: 12px; color: var(--muted); }
.kv .v { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.opts-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.opts-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--border); }
.eff-opt.eff-5[aria-pressed="true"] { background: #DDEBE2; color: #24513B; border-color: #24513B; }
.eff-opt.eff-15[aria-pressed="true"] { background: #EDEFD6; color: #4D5A1E; border-color: #4D5A1E; }
.eff-opt.eff-30[aria-pressed="true"] { background: #F6E9D6; color: #7A4B12; border-color: #7A4B12; }
.eff-opt.eff-60[aria-pressed="true"] { background: #F3DFD8; color: #7A2E1E; border-color: #7A2E1E; }
.opt.eff-opt:not([aria-pressed="true"]) { background: #fff; color: var(--ink); }
.st-opt[aria-pressed="false"] { background: #fff; color: var(--ink); }
.st-opt.st-new[aria-pressed="true"] { border-color: #4A4F47; }
.st-opt.st-scheduled[aria-pressed="true"] { border-color: #2C4F7C; }
.st-opt.st-in_progress[aria-pressed="true"] { border-color: #8A4B06; }
.st-opt.st-waiting_parts[aria-pressed="true"] { border-color: #5E3A91; }
.st-opt.st-done[aria-pressed="true"] { border-color: #24513B; }
.owner-opt[aria-pressed="true"] { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }
.note-row { display: flex; gap: 8px; }
.note-row .input { flex: 1; }
.send { height: 48px; padding: 0 16px; border: none; border-radius: 12px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.hist { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; }
.hist .when { color: var(--muted); flex: none; width: 76px; }
.hist span:last-child { overflow-wrap: anywhere; white-space: pre-wrap; }
.st-opt.st-new[aria-pressed="true"] { background: #ECEAE4; color: #4A4F47; }
.st-opt.st-scheduled[aria-pressed="true"] { background: #E2EAF5; color: #2C4F7C; }
.st-opt.st-in_progress[aria-pressed="true"] { background: #FAEBD7; color: #8A4B06; }
.st-opt.st-waiting_parts[aria-pressed="true"] { background: #EEE6F7; color: #5E3A91; }
.st-opt.st-done[aria-pressed="true"] { background: #DDEBE2; color: #24513B; }

/* ---------- Sign in (screen 4) ---------- */
.signin {
  max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--surface);
  padding: calc(32px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
}
@media (min-width: 560px) { .signin { border-left: 1px solid var(--border); border-right: 1px solid var(--border); } }
.signin-intro { padding-top: 120px; }
.signin-brand { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.signin-title { font-size: 32px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
.signin-lede { font-size: 16px; color: var(--muted); line-height: 1.5; margin: 0; text-wrap: pretty; }
.google-btn {
  height: 54px; border: 1px solid var(--border); border-radius: 14px; background: #fff; font-size: 16px; font-weight: 600;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.google-btn:hover { color: var(--ink); background: #FDFCFA; }
.google-btn .g { width: 22px; height: 22px; border-radius: 11px; border: 1.5px solid var(--muted); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.signin-hint { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.45; }
.signin-error { font-size: 13px; line-height: 1.45; color: var(--safety); background: var(--safety-bg); border-radius: 12px; padding: 10px 12px; text-align: center; }
.tri-alerts { padding: 10px 20px; font-size: 13px; line-height: 1.45; color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--border-2); display: flex; align-items: center; gap: 12px; }
.tri-alerts span { flex: 1; }
.tri-alerts button { flex: none; height: 36px; padding: 0 14px; border: none; border-radius: 10px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ---------- QR stickers (printed from /admin/qr) ---------- */
.print-body { background: #fff; margin: 0; }
.print-bar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--border-2); }
.stickers { display: grid; grid-template-columns: repeat(3, 2.4in); gap: 0.25in; padding: 0.4in; justify-content: center; }
.sticker { border: 1px dashed var(--border); border-radius: 14px; padding: 0.18in; display: flex; flex-direction: column; align-items: center; gap: 4px; break-inside: avoid; text-align: center; }
.sticker .qr { width: 1.7in; height: 1.7in; }
.sticker .qr svg { width: 100%; height: 100%; display: block; }
.sticker .s-title { font-size: 16px; font-weight: 700; margin-top: 6px; color: var(--brand); }
.sticker .s-sub { font-size: 11px; color: var(--muted); }
.sticker .s-where { font-size: 12px; font-weight: 600; margin-top: 4px; }
@media print {
  .print-bar { display: none; }
  .stickers { padding: 0.3in 0; }
  @page { margin: 0.4in; }
}

/* ---------- everyday helpers ---------- */
.tri-search { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; font-size: 16px; background: #fff; margin-bottom: 10px; }
.tag-yours { color: #fff; background: var(--brand-deep); }
.tri-est button.suggested, .opt.eff-opt.suggested { border: 1.5px solid var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-chip { min-height: 36px; padding: 6px 12px; border-radius: 18px; border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; }
.assist-note { font-size: 13px; color: var(--brand); line-height: 1.4; }
.safety-hint { font-size: 13px; color: var(--safety); line-height: 1.4; }
.nearby { background: #fff; border: 1px solid var(--border-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.nearby-item { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border-3); }
.nearby-item .grow { flex: 1; min-width: 0; }
.nearby-item .title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.metoo { flex: none; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--brand); background: #fff; color: var(--brand); font-size: 14px; font-weight: 600; cursor: pointer; }
.nearby-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 36px; padding: 0; border: none; background: none; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.nearby-toggle .navlink { min-height: 0; padding: 0; }
.tri-footer { display: flex; justify-content: center; gap: 24px; padding-top: 8px; border-top: 1px solid var(--border-2); }

/* ---------- "Try this first" quick fixes ---------- */
.fix-panel { background: #F2F7F3; border: 1px solid #CFE0D4; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.fix-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fix-badge { font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 3px 9px; }
.fix-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.fix-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.fix-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 4px; }
.fix-yes, .fix-no { min-height: 44px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.fix-yes { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.fix-no { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.fix-other { align-self: flex-start; border: none; background: none; padding: 4px 0; color: var(--brand); font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.comment-box { display: flex; flex-direction: column; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 14px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.toast button { border: none; background: none; color: #9FD3B5; font-size: 14px; font-weight: 700; cursor: pointer; padding: 6px 4px; }
.save-fix { align-self: flex-start; }
a.primary { display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; }
a.primary:hover { color: #fff; }

/* ---------- AI helpers in triage ---------- */
.tri-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: none; }
.card-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.flag-dup { color: #5E3A91; background: #EEE6F7; }
.flag-recur { color: #7A2E1E; background: #F3DFD8; }
.dup-box { background: #F6F2FB; border: 1px solid #DDD0EE; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.dup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.on-my-way { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font-size: 15px; font-weight: 700; cursor: pointer; }
.tidy-row { display: flex; gap: 14px; }
.tidy { border: none; background: none; padding: 4px 0; color: var(--brand); font-size: 14px; font-weight: 600; cursor: pointer; }
.tidy:disabled { color: var(--faint); }
.plan-item { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--border-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.plan-item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-item .title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.plan-opt[aria-pressed="true"] { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }

/* Triage menu drawer (top right): settings live here, not under 200 tickets. */
.tri-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tri-menu-btn {
  width: 40px; height: 40px; border-radius: 20px; border: 1px solid #4E6B5B; background: #2A4A3A; cursor: pointer; flex: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.tri-menu-btn span { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--surface-2); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); z-index: 6; box-shadow: -8px 0 32px rgba(20,24,18,.18);
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px; animation: drawer-in .18s ease-out;
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.drawer .row { display: flex; align-items: center; gap: 8px; }
.drawer .grow { flex: 1; min-width: 0; }
.drawer .title { font-size: 21px; font-weight: 700; margin: 0; }
.drawer .close { height: 36px; padding: 0 10px; border: none; background: none; font-size: 15px; font-weight: 600; color: var(--brand); cursor: pointer; }
.drawer-group { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; }
.drawer-link { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; text-decoration: none; font-size: 18px; color: var(--faint); }
.drawer-link + .drawer-link { border-top: 1px solid var(--border-3); }
.drawer-link .grow { display: flex; flex-direction: column; gap: 2px; }
.drawer-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.drawer-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border-2); border-radius: 14px; }
.drawer-btn { height: 36px; padding: 0 14px; border-radius: 18px; border: none; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.drawer-btn:disabled { background: var(--brand-disabled); }
.drawer-signout { margin-top: auto; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: none; font-size: 15px; font-weight: 600; color: var(--safety); cursor: pointer; }

/* "Needs tools" tag: tools = bring the bag; no tools = can do it walking past. */
.tag-tools { color: #5B4A1E; background: #F1E9D2; }
.tag-hands { color: #23553C; background: #DDEDE3; }
.tag-guess { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.opt.tools-opt.suggested { border: 1.5px solid var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

/* Parent volunteers (GroupMe) */
.tag-parent { color: #4A2F6B; background: #ECE3F5; }
.pv-post { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--card); }
.pv-post .grow { flex: 1; min-width: 0; }
.pv-state { font-size: 15px; font-weight: 600; }
.pv-stop { height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 18px; background: none; font-size: 14px; font-weight: 600; color: var(--safety); cursor: pointer; flex: none; }
.pv-send {
  height: 48px; border: 1.5px solid var(--brand); border-radius: 12px; background: var(--link-bg); color: var(--brand);
  font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.pv-send:disabled { opacity: .6; cursor: default; }
.pv-preview {
  margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-2);
  font: 14px/1.45 inherit; font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 4em;
}
.pv-tools { display: flex; flex-direction: column; gap: 6px; }
.pv-tool { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; min-height: 36px; padding: 6px 0; cursor: pointer; }
.pv-tool input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.door-code { font-family: var(--mono); font-size: 40px; font-weight: 600; letter-spacing: .12em; color: var(--ink); }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
details.card > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 14px; }

/* The "Done" moment */
.celebrate { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(20,24,18,.28); animation: cel-fade .18s ease-out; }
.celebrate.out { opacity: 0; transition: opacity .3s ease; }
.celebrate .confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: var(--surface); border-radius: 28px; padding: 28px 32px 24px; min-width: 240px; max-width: 86vw;
  box-shadow: 0 18px 50px rgba(20,24,18,.28); animation: cel-pop .42s cubic-bezier(.2,1.4,.4,1);
}
.cel-check { width: 84px; height: 84px; margin-bottom: 6px; }
.cel-ring { fill: var(--brand); stroke: var(--brand); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: cel-ring .45s ease-out forwards; transform-origin: center; }
.cel-tick { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: cel-draw .3s .32s ease-out forwards; }
.cel-title { font-size: 28px; font-weight: 700; color: var(--brand-deep); }
.cel-sub { font-size: 14px; color: var(--muted); max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cel-count { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--brand); background: var(--link-bg); border-radius: 999px; padding: 6px 14px; }
@keyframes cel-fade { from { opacity: 0; } }
@keyframes cel-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes cel-ring { to { stroke-dashoffset: 0; } }
@keyframes cel-draw { to { stroke-dashoffset: 0; } }
.tri-count.tick { animation: count-tick .5s ease-out; }
@keyframes count-tick { 0% { transform: translateY(0); } 30% { transform: translateY(-4px); color: #CFE7D6; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .celebrate, .cel-card, .cel-ring, .cel-tick, .tri-count.tick { animation: none; }
  .cel-ring, .cel-tick { stroke-dashoffset: 0; }
}
.drawer-toggle { width: 48px; height: 28px; border-radius: 14px; border: none; background: var(--border); position: relative; cursor: pointer; flex: none; }
.drawer-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.drawer-toggle[aria-checked="true"] { background: var(--brand); }
.drawer-toggle[aria-checked="true"]::after { transform: translateX(20px); }

/* Undo stays tappable above the Done moment. */
.toast { z-index: 30; }

/* Gemma overnight / shopping list / Get ready */
.gap-18 { gap: 18px; }
.card-link { text-decoration: none; color: inherit; }
.progress { width: 100%; height: 10px; border: none; border-radius: 5px; overflow: hidden; background: var(--surface-2); accent-color: var(--brand); appearance: none; }
.progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 5px; }
.progress::-webkit-progress-value { background: var(--brand); border-radius: 5px; }
.progress::-moz-progress-bar { background: var(--brand); border-radius: 5px; }
.shop-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card); border: 1px solid var(--border-2); border-radius: 12px; cursor: pointer; }
.shop-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-row .title { font-size: 15px; font-weight: 600; }
.shop-row input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.shop-row input:checked ~ .grow .title { text-decoration: line-through; color: var(--faint); }
.shop-row a { color: var(--brand); text-decoration: none; margin-right: 6px; }
.shop-n { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--link-bg); border-radius: 999px; padding: 3px 10px; flex: none; }
.prep { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border-2); }
.prep-head { display: flex; align-items: center; gap: 8px; }
.prep-head .grow { flex: 1; }
.prep-head b { font-size: 15px; }
.prep-refresh { height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 15px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--brand); cursor: pointer; }
.prep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prep-chip { display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--border-2); font-size: 14px; font-weight: 600; }
.prep-chip span { font-size: 12px; font-weight: 500; color: var(--muted); }
.prep-chip.part { background: #FFF8E8; border-color: #F1E3BE; }
.prep-caution { font-size: 14px; color: var(--safety); background: var(--safety-bg); border-radius: 10px; padding: 8px 12px; }
.prep ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.prep details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--brand); }
.prep details[open] summary { margin-bottom: 8px; }
.prep-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 14px; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--border-2); }
.prep-link .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prep-link .grow span:first-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prep-link .icon { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #FCE5E1; color: #A61B12; font-size: 12px; flex: none; }
.prep-link .icon.doc { background: var(--link-bg); color: var(--brand); }
.prep-foot { font-size: 12px; color: var(--faint); }

/* Today (morning plan) — .today itself also marks "today" on a pb-card (Parents board), so it stays */
.today { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--brand); box-shadow: 0 4px 16px rgba(31,58,45,.08); }
.today-hide { border: none; background: none; color: var(--faint); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px; }
.today-link { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }
.today-plan { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.today-plan-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.today-time { flex: 1; min-width: 64px; height: 38px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--brand); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.today-review { align-self: flex-start; border: none; background: var(--link-bg); color: var(--brand); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* Gemma's suggestions (one card at a time) */
.review-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--border-2); animation: review-in .22s ease-out; }
@keyframes review-in { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .review-card { animation: none; } }
.review-ticket { display: flex; align-items: center; gap: 8px; text-align: left; border: none; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.review-ticket .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.review-actions { display: flex; flex-direction: column; gap: 8px; }
.review-accept { background: var(--brand); color: #fff; border-color: var(--brand); }
.review-skip { height: 44px; border: none; background: none; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.review-done { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 12px 0; }
.night-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-3); }
.night-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.night-row .title { font-size: 14px; font-weight: 600; }
.night-row.tonight .title::after { content: ' · tonight'; color: var(--brand); }
.gap-10 { gap: 10px; }

/* Due dates and routines */
.tag-due { color: #2C4F7C; background: #E2EAF5; }
.tag-overdue { color: #fff; background: var(--safety); }
.tag-routine { color: #4A3F12; background: #F4EBC9; }
.overdue-text { color: var(--safety); font-weight: 600; }
.due-pick { position: relative; overflow: hidden; }
.due-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* Routines: checklist, room history, the routines page */
.checklist { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #FBF7E8; border: 1px solid #EDE2BC; }
.checklist .row { display: flex; align-items: center; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check-item input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.check-item.done span { text-decoration: line-through; color: var(--faint); }
.room-history summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--brand); padding: 4px 0; }
.room-history[open] summary { margin-bottom: 6px; }
.room-history .review-ticket { width: 100%; margin-top: 4px; }
.drawer-eyebrow { margin: 2px 4px -10px; }
.alerts-later { border: none; background: none; color: inherit; opacity: .75; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.template-chip { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 14px; }
.template-chip span { font-size: 12px; color: var(--muted); }
.template-chip.own { border-style: dashed; }
.routine .row { display: flex; align-items: center; gap: 8px; }
.routine .grow { flex: 1; }
.routine.paused { opacity: .6; }
.routine-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.routine-actions .prep-refresh { text-decoration: none; display: inline-flex; align-items: center; }
.every-n { width: 80px; flex: none; }
.radio-opt { position: relative; cursor: pointer; }
.radio-opt input { position: absolute; opacity: 0; pointer-events: none; }
.radio-opt:has(input:checked) { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.check-row span { display: flex; flex-direction: column; gap: 2px; }
.cal-url { display: block; margin-top: 4px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; user-select: all; }

/* After photo, contractors */
.cel-photo { margin-top: 10px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.link-btn { border: none; background: none; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; color: var(--brand); padding: 0 4px; text-align: left; }
.hist-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.pro-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border-2); }
.pro-row .grow { flex: 1; min-width: 0; }
.pro-btn { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; flex: none; }
.pro-btn + .pro-btn { background: var(--link-bg); color: var(--brand); }

/* Ticket sheet: "More" row and the sticky action bar */
.mb-10 { margin-bottom: 10px; }
.more-row { display: flex; align-items: center; gap: 6px; }
.more-row .more-label { font-size: 14px; color: var(--muted); width: 48px; flex: none; }
.more-row .opt { flex: 1; }
.more-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.more-btn { height: 38px; padding: 0 12px; border-radius: 19px; border: 1px solid var(--border); background: var(--card); color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.sheet-bar {
  position: sticky; bottom: calc(-28px - env(safe-area-inset-bottom)); margin: 4px -20px calc(-28px - env(safe-area-inset-bottom));
  padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--border-2);
}
.bar-btn { flex: 1; height: 48px; border-radius: 14px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.bar-done { background: var(--brand); color: #fff; }
.bar-state { flex: 1; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Request form: what → photo → where → safety → details */
.request-form { gap: 20px; }
.sending-as { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sending-as span { color: var(--faint); }
.more-details { border: 1px solid var(--border-2); border-radius: 14px; background: var(--card); }
.more-details > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; min-height: 48px; }
.more-details > summary::-webkit-details-marker { display: none; }
.details-label { font-size: 14px; font-weight: 600; }
.details-sum { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.details-edit { font-size: 14px; font-weight: 600; color: var(--brand); flex: none; }
.more-details[open] .details-edit { visibility: hidden; }
.details-body { display: flex; flex-direction: column; gap: 18px; padding: 4px 14px 16px; }

/* My requests: open first, then finished; older ones fold away */
.mine-done { margin-top: 10px; }
.req-done { opacity: .8; }
.older > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--brand); padding: 6px 0; }
.older[open] > summary { margin-bottom: 8px; }

/* Request detail: full text, "Still not fixed?" */
.detail-desc { font-size: 15px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; margin-top: 4px; }
.reopen-box { border: 1px solid var(--border-2); border-radius: 14px; background: var(--card); padding: 0 14px; }
.reopen-box > summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--brand); padding: 12px 0; }
.reopen-box[open] { padding-bottom: 14px; }

/* Compact cards: Gemma's estimate as one tap; the backlog banner */
.eff-guess { border: 1.5px dashed var(--brand); background: var(--link-bg); color: var(--brand); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.est-banner { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1px dashed var(--border); background: var(--surface-2); }
.tri-alerts .alerts-later { background: none; border: none; color: inherit; box-shadow: none; text-decoration: underline; text-underline-offset: 2px; }

/* Triage: "+" (report something you spotted), finished search results */
.tri-bar .grow { flex: 1; }
.tri-add { width: 40px; height: 40px; border-radius: 20px; border: 1px solid #4E6B5B; background: #2A4A3A; color: var(--surface-2); font-size: 24px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: none; }
.done-card { opacity: .75; }

/* Log work */
.tri-log { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid #4E6B5B; background: #2A4A3A; color: var(--surface-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.log-text { min-height: 84px; resize: vertical; font: inherit; }
.log-match { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); font: inherit; cursor: pointer; }
.log-match.likely { border: 1.5px solid var(--brand); background: var(--link-bg); }
.log-match .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.log-match-title { font-size: 14px; font-weight: 700; }
.log-go { flex: none; font-size: 13px; font-weight: 700; color: var(--brand); }
.log-new { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }

.topbar .grow { flex: 1; }

/* Private notes (team only) */
.note-mode { display: flex; gap: 6px; }
.note-mode .opt { flex: 1; }
.my-notes { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #FFF8E6; border: 1px solid #F0DFB0; }
.my-note { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hist-private { color: #6B5A1E; }

/* Calmer list: "Show more", Someday shelf, private note preview */
.sec-more { align-self: stretch; height: 40px; border-radius: 12px; border: 1px dashed var(--border-2); background: transparent; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sec-fold { margin-left: auto; border: none; background: none; color: var(--faint); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.someday { opacity: .92; }
.someday .tri-sec h2 { color: var(--muted); }
.tri-later { font-size: .6em; font-weight: 600; opacity: .7; }
.card-note { font-size: 13px; color: #6B5A1E; background: #FFF8E6; border-radius: 8px; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Notepad */
.pad-sheet { max-height: 92vh; }
.pad-note { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); }
.pad-note.pinned { border-color: #E6C873; background: #FFFBEF; }
.pad-text { min-height: 64px; resize: none; border: none; padding: 2px; background: transparent; font: inherit; font-size: 15px; line-height: 1.45; overflow: hidden; }
.pad-foot { display: flex; align-items: center; gap: 6px; }
.pad-foot .grow { flex: 1; }
.pad-btn { border: none; background: none; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 4px; }
.pad-status { margin-right: 8px; }
.my-note-actions { display: flex; align-items: center; gap: 4px; }
.my-note-actions .grow { flex: 1; }
.my-note-edit { min-height: 64px; resize: vertical; font: inherit; font-size: 14px; }

/* "Will this take longer than an hour?" before a GroupMe post */
.len-ask { padding: 12px; border-radius: 14px; background: var(--link-bg); }
.len-q { font-size: 15px; font-weight: 700; }
.len-ask .opt[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.len-ask .pv-send { width: 100%; }

/* Updates */
.tri-top { align-items: flex-end; }
.tri-updates { position: relative; margin-left: auto; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid #4E6B5B; background: #2A4A3A; color: var(--surface-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.tri-updates.has-new { background: #F2C14E; border-color: #F2C14E; color: #1F3A2D; }
.tri-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #1F3A2D; color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.feed-item { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); font: inherit; cursor: pointer; }
.feed-item.unseen { border-color: #E6C873; background: #FFFBEF; }
.feed-who { font-size: 13px; font-weight: 700; }
.feed-title { font-size: 14px; font-weight: 600; }
.feed-text { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-new { background: #E4EFE7; color: #1F3A2D; }
.feed-teacher { background: #E6EEF8; color: #23466E; }
.feed-parent { background: #F6E9F5; color: #6B2E66; }
.feed-team { background: #FFF1D6; color: #6B5A1E; }

/* Parent links: copy / share */
.pv-links { display: flex; gap: 6px; margin-top: 6px; }
.pv-link-btn { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--surface); color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pv-link-url { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; padding: 8px; border-radius: 8px; background: var(--surface); }

/* Building locations */
.geo-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); }
.geo-row .grow { flex: 1; }
.geo-here { width: auto; height: 36px; padding: 0 14px; font-size: 14px; }

/* Select several */
.tri-select { margin-left: auto; }
.tri-select.on { background: var(--brand); color: #fff; }
.tri-card.picked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.pick-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex: none; }
.pick-box.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.bulk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--border-2); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
.bulk-n { font-size: 14px; font-weight: 700; flex: 1 1 100%; }
.bulk-btn, .bulk-select { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--brand); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.bulk-btn.done { background: var(--brand); color: #fff; border-color: var(--brand); }
.bulk-btn:disabled, .bulk-select:disabled { opacity: .45; cursor: default; }

/* Snooze, timer, parts, visits */
.tag-snooze { background: #ECEAF6; color: #3E3A6B; }
.tag-timer { background: #E4EFE7; color: #1F3A2D; }
.tag-parts { background: #FFF1D6; color: #6B5A1E; }
.tag-visit { background: #E6EEF8; color: #23466E; }
.parts-box { padding: 10px; border-radius: 12px; background: #FFF8E6; border: 1px solid #F0DFB0; }
.parts-eta { max-width: 170px; }
.pv-edit { font: inherit; font-size: 14px; line-height: 1.45; min-height: 180px; resize: vertical; white-space: pre-wrap; }

/* ---------- Full screen (desktop): the whole width, the open ticket docked on the right ---------- */
.tri-top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.tri-top-actions .tri-updates { margin-left: 0; }
.triage.wide { max-width: none; padding-right: min(44vw, 660px); }
.triage.wide .tri-head, .triage.wide .tri-sticky, .triage.wide .tri-list { padding-left: 28px; padding-right: 28px; }
.triage.wide .tri-list section { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; align-items: start; }
.triage.wide .tri-list section > :not(.tri-card) { grid-column: 1 / -1; }
.triage.wide .today { max-width: 900px; }
.triage.wide .ticket-sheet, .triage.wide .ticket-dock-empty {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto; margin: 0; width: min(44vw, 660px); max-width: none; max-height: none;
  border-radius: 0; border-left: 1px solid var(--border-2); box-shadow: -8px 0 24px rgba(0,0,0,.06); z-index: 4; animation: none;
}
.triage.wide .ticket-sheet .grip { display: none; }
.ticket-dock-empty { display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--faint); font-size: 15px; }
.triage.wide .bulk-bar { right: min(44vw, 660px); }

/* ---------- Overview ---------- */
.ov-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ov-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--card); font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left; }
.ov-tile:disabled { opacity: .5; cursor: default; }
.ov-tile .ov-n { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.ov-tile.danger .ov-n { color: #B3261E; }
.ov-tile.warn .ov-n { color: #9A5B00; }
.ov-table-wrap { overflow-x: auto; }
.ov-table { border-collapse: separate; border-spacing: 4px; width: 100%; font-size: 14px; }
.ov-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 2px 6px; white-space: nowrap; }
.ov-table td { text-align: center; }
.ov-cell { min-width: 44px; height: 36px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; }
.ov-cell.ov-safety { background: #FDE8E6; color: #B3261E; border-color: #F3C7C2; }
.ov-cell.ov-high { background: #FFF1D6; color: #6B5A1E; border-color: #F0DFB0; }
.ov-cell.ov-later { color: var(--faint); }
.ov-cell.ov-all { background: var(--link-bg); color: var(--brand); }
.ov-zero { color: var(--faint); }
.ov-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ov-col { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--border-2); }
.ov-col-head { display: flex; justify-content: space-between; align-items: baseline; }
.ov-item { display: flex; flex-direction: column; gap: 1px; text-align: left; padding: 6px 8px; border-radius: 8px; border: none; background: var(--surface); font: inherit; cursor: pointer; }
.ov-item-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-chip { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--link-bg); font-weight: 700; font-size: 14px; }
.focus-chip .grow { flex: 1; }

/* Other staff said "Same problem" */
.tag-seconds { background: #eef2ff; color: #3730a3; }

/* Facilities / Tech switch */
.kind-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.kind-opt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.kind-opt[aria-pressed="true"] { background: #fff; border-color: #fff; color: #1B1E1A; }
.kind-n { font-size: 12px; font-weight: 600; opacity: .75; }
.kind-alert { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #B42318; color: #fff; font-size: 11px; font-weight: 700; }
.tag-tech { background: #E8F1FB; color: #1D4F86; }
/* Ask the requester */
.tag-asked { background: #FFF4D6; color: #7A5300; }
.tag-answered { background: #DDEBE2; color: #24513B; }
.ask-wait { font-size: 13px; color: #7A5300; background: #FFF8E6; border-radius: 10px; padding: 8px 10px; }
.kind-move { border: 1px solid #D6D2C8; background: #fff; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 600; color: #1B1E1A; cursor: pointer; white-space: nowrap; }

/* ---------- Work day: the parents' list (/w/:id) and work-day mode on triage ---------- */
.error-text { color: #B42318; font-size: 14px; font-weight: 600; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wd { gap: 16px; padding-bottom: 48px; }
.wd-progress { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.wd-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--border-3); overflow: hidden; }
.wd-fill { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.wd-doors, .wd-here, .wd-messages { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.wd-door { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.wd-door b { font-size: 17px; color: var(--ink, #1B1E1A); letter-spacing: .08em; }
.wd-person { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.wd-announce { background: #FFF4D6; border: 1px solid #F0D68A; border-radius: 12px; padding: 10px 12px; font-size: 15px; line-height: 1.4; }
.wd-messages summary { font-weight: 700; cursor: pointer; }
.wd-msg { font-size: 14px; line-height: 1.4; }
.wd-msg.team { background: var(--link-bg); border-radius: 8px; padding: 4px 8px; }
.wd-thread { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.wd-building { font-size: 18px; font-weight: 700; margin: 6px 0 0; }
.wd-job { background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.wd-job.wd-done { border-color: #9CC5AE; background: #F3F9F5; }
.wd-job.wd-taken { border-color: #E3B341; }
.wd-job.wd-stuck { border-color: #E8A39B; }
.wd-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.wd-badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 8px; white-space: nowrap; align-self: flex-start; }
.wd-badge-taken { background: #FFF4D6; color: #7A5300; }
.wd-badge-done { background: #DDEBE2; color: #24513B; }
.wd-badge-stuck { background: #FDE7E4; color: #8A1C12; }
.wd-details summary { font-size: 13px; color: var(--brand); cursor: pointer; font-weight: 600; }
.wd-details div { font-size: 14px; line-height: 1.45; margin-top: 4px; }
.wd-note { font-size: 14px; font-style: italic; color: var(--muted); }
.wd-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-2); }
.wd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); font: inherit; font-size: 15px; font-weight: 600; color: inherit; cursor: pointer; }
.wd-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.wd-btn.quiet { border-color: transparent; color: var(--muted); }
.wd-file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wd-file { font-size: 14px; }
.wd-form { border-top: 1px solid var(--border-3); padding-top: 10px; }
.wd-closed { background: #DDEBE2; color: #24513B; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.wd-banner { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #FFF8E6; border: 1.5px solid #F0D68A; border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 15px; cursor: pointer; color: inherit; }
.wd-pick { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.wd-share { display: flex; gap: 12px; align-items: center; }
.wd-qr-small { width: 96px; height: 96px; border-radius: 8px; border: 1px solid var(--border-2); background: #fff; flex-shrink: 0; }
.wd-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; }
.wd-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.wd-hours { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.wd-hours .input { width: 72px; height: 40px; }
.tag-wd { background: #FFF4D6; color: #7A5300; }
.tag-wd.wd-tag-done { background: #DDEBE2; color: #24513B; }
.tag-wd.wd-tag-stuck { background: #FDE7E4; color: #8A1C12; }

/* the printed list */
.wd-print { max-width: 760px; margin: 0 auto; padding: 24px 20px; font-size: 14px; color: #1B1E1A; background: #fff; }
.wd-print-head { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #1B1E1A; padding-bottom: 14px; margin-bottom: 8px; }
.wd-print h1 { font-size: 26px; margin: 0; }
.wd-print h2 { font-size: 17px; margin: 18px 0 6px; border-bottom: 1px solid #ccc; padding-bottom: 4px; }
.wd-print-day { font-size: 16px; font-weight: 600; margin: 2px 0 6px; }
.wd-qr { width: 150px; height: 150px; flex-shrink: 0; }
.wd-print-job { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #ddd; break-inside: avoid; }
.wd-box { width: 18px; height: 18px; border: 2px solid #1B1E1A; border-radius: 3px; flex-shrink: 0; margin-top: 2px; }
.wd-print-title { font-weight: 700; font-size: 15px; }
.wd-print-room { font-weight: 400; color: #555; }
.wd-print-details { color: #333; margin-top: 2px; }
.wd-print-lines { color: #777; font-size: 12px; margin-top: 8px; }
.wd-print-foot { color: #777; font-size: 11px; margin-top: 18px; }
.wd-print-btn { margin-top: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
@media print { .wd-print-btn { display: none; } .wd-print { padding: 0; } body { background: #fff; } }
@media (max-width: 480px) { .wd-print-head { flex-direction: column; } }

/* the printed My list (/admin/mylist/print) */
.ml-print { max-width: 760px; margin: 0 auto; padding: 24px 20px; font-size: 14px; color: #1B1E1A; background: #fff; }
.ml-print h1 { font-size: 26px; margin: 0 0 4px; }
.ml-print h2 { font-size: 17px; margin: 18px 0 6px; border-bottom: 1px solid #ccc; padding-bottom: 4px; }
.ml-print-sec { margin-top: 10px; }
.ml-print-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #ddd; break-inside: avoid; }
.ml-print-btn { margin-top: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
@media print { .ml-print-btn { display: none; } .ml-print { padding: 0; } body { background: #fff; } }
a.pv-link-btn { text-decoration: none; color: inherit; }

/* Requester: their own controls on a request */
.quiet-row { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.quiet-row input { width: 20px; height: 20px; }
.tag-affects { background: #EEF2FF; color: #3730A3; }

/* People: search card and the person panel */
.person-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 15px; color: inherit; cursor: pointer; }
.person-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--link-bg); color: var(--brand); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.person-avatar.big { width: 52px; height: 52px; font-size: 18px; }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-facts { display: flex; gap: 8px; flex-wrap: wrap; }
.person-fact { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; min-width: 76px; }
.person-fact b { font-size: 18px; }
.person-row { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--border-2); border-radius: 12px; padding: 8px 12px; font: inherit; color: inherit; cursor: pointer; }
.person-row-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }

/* The Parents area */
.pb-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--border-2); border-radius: 12px; padding: 10px 12px; }
.pb-card.today { border-color: #E3B341; background: #FFFBEF; }
.pb-card.done { background: #F3F9F5; }
.pb-when { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.pb-job { font-size: 14px; font-weight: 500; }
.pb-thanks { display: flex; flex-direction: column; }
.pb-thanks-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border-3); font-size: 15px; }

/* Undo: the ticket's changes */
.undo-last { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink, #1B1E1A); cursor: pointer; margin-right: 6px; }
.changes-box summary { font-weight: 600; cursor: pointer; font-size: 14px; }
.change-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border-3); }
.change-row.undone { opacity: .55; }

/* Parents: profiles, late visits, the public volunteer page and poster, the hours report */
.pb-name { font-size: 15px; }
.pb-late { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #FFF4D6; border-radius: 10px; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.pb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vh-job { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px; color: inherit; text-decoration: none; }
.vh-job-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.vh-go { font-size: 14px; font-weight: 700; color: var(--brand); margin-top: 4px; }
.vh-checks { display: grid; grid-template-columns: 1fr; gap: 6px; font-weight: 400; }
.vh-checks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 380px) { .vh-checks.two { grid-template-columns: 1fr; } }
.vh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vh-poster { max-width: 640px; margin: 0 auto; padding: 40px 24px; text-align: center; background: #fff; color: #1B1E1A; }
.vh-poster h1 { font-size: 44px; line-height: 1.1; margin: 8px 0 14px; }
.vh-poster p { font-size: 20px; line-height: 1.45; margin: 0 auto 20px; max-width: 32em; }
.vh-poster-eyebrow { font-size: 18px; font-weight: 700; color: #2F5D46; text-transform: uppercase; letter-spacing: .06em; }
.vh-poster-qr { width: 300px; height: 300px; max-width: 80%; }
.vh-poster-link { font-size: 18px; font-weight: 700; margin: 10px 0; }
.vh-poster-small { font-size: 15px !important; color: #555; }
.vh-range { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.vh-range a.wd-print-btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.vh-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.vh-table th, .vh-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ddd; }
.vh-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #555; }
@media print { .vh-range { display: none; } }

/* Routines: parents taking turns */
.rot-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--border-3); }
.rot-weeks { display: flex; gap: 6px; flex-wrap: wrap; }
.rot-week { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; background: var(--card); cursor: pointer; }
.rot-week input { margin: 0; }

/* Routine sign-up sheet */
.rs-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border-2); border-radius: 12px; padding: 10px 12px; }
.rs-row.mine { border-color: #9CC5AE; background: #F3F9F5; }
.rs-row form { margin: 0; }
button.small { min-height: 38px; padding: 0 14px; font-size: 14px; width: auto; }
.rs-list-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border-3); font-size: 15px; }
.rs-row .grow { flex: 1; min-width: 0; }
.rs-row.week { flex-wrap: wrap; }
.rs-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rs-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.rs-day { height: 38px; padding: 0 8px; font-size: 14px; width: auto; }
.rs-row.week { flex-direction: column; align-items: stretch; }
.rs-row.week .rs-actions:empty { display: none; }
.desc a, .wd-details a { color: var(--brand); font-weight: 600; word-break: break-all; }

/* "Already reported, we're on it" */
.known-box { background: #FFF4D6; border: 1.5px solid #F0D68A; border-radius: 14px; padding: 12px 14px; }
.known-head { font-weight: 700; font-size: 15px; }

/* Saved views */
.views-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; width: 100%; margin-top: 6px; }
.view-chip { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--card); overflow: hidden; }
.view-chip.on { background: var(--brand); border-color: var(--brand); }
.view-chip.on .view-go, .view-chip.on .view-x { color: #fff; }
.view-go, .view-x { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; padding: 5px 10px; cursor: pointer; color: var(--ink, #1B1E1A); }
.view-x { padding-left: 0; font-size: 15px; }
.view-save, .view-edit { border: 1px dashed var(--border); background: none; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.view-edit { border-style: solid; border-color: transparent; }

/* Stale review banner and the one-card-at-a-time reviewer */
.stale-banner { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface-2); border: 1.5px dashed var(--border); border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 15px; cursor: pointer; color: inherit; }
.swipe-sheet { max-height: 94vh; }
.swipe-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; touch-action: none; user-select: none; transition: transform .2s; position: relative; min-height: 180px; }
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card[data-hint="done"] { border-color: #2F8A57; box-shadow: 0 0 0 3px #CDEBD9; }
.swipe-card[data-hint="someday"] { border-color: #8A8E84; box-shadow: 0 0 0 3px #E7E4DC; }
.swipe-card[data-hint="keep"] { border-color: #2F5D46; box-shadow: 0 0 0 3px #DDEBE2; }
.swipe-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.swipe-desc { font-size: 15px; line-height: 1.45; white-space: pre-wrap; max-height: 9em; overflow: hidden; }
.swipe-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.swipe-btn { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--card); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; color: inherit; }
.swipe-btn.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.swipe-btn.someday { color: var(--muted); }

/* Keeps happening */
.recur-box { display: flex; flex-direction: column; gap: 6px; background: #FFF8E6; border: 1px solid #F0D68A; border-radius: 12px; padding: 10px 12px; font-size: 14px; }

/* The week */
.week-sheet { max-height: 94vh; }
.week-title { text-align: center; font-size: 17px; }
.week-days { display: grid; grid-template-columns: 1fr; gap: 8px; }
.triage.wide .week-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.week-day { background: var(--card); border: 1px solid var(--border-2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.week-day.today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--link-bg); }
.week-day.past { opacity: .6; }
.week-date { font-weight: 700; font-size: 14px; }
.week-ev { text-align: left; border: 0; background: var(--surface-2); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; line-height: 1.35; }
.week-ev.danger { background: #FDE7E4; }
.week-ev.high { background: #FAEBD7; }
.week-ev.parent { background: #EEF3EF; }
.week-ev.workday { background: #FFF4D6; }

/* Campus map */
.map-wrap { background: var(--surface-2); border-radius: 14px; overflow: hidden; }
.campus-map { width: 100%; height: auto; display: block; }
.map-pin { cursor: pointer; }
.map-pin circle { fill: #2F5D46; fill-opacity: .85; stroke: #fff; stroke-width: 4; }
.map-pin.high circle { fill: #C27A12; }
.map-pin.danger circle { fill: #B42318; }
.map-pin.empty circle { fill: #9CC5AE; }
.map-pin:hover circle, .map-pin:focus circle { stroke: #1B1E1A; }
.map-n { fill: #fff; font-size: 36px; font-weight: 800; text-anchor: middle; font-family: inherit; }
.map-label { fill: #1B1E1A; font-size: 30px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.map-cell { display: flex; flex-direction: column; gap: 2px; border-radius: 12px; border: 0; background: #DDEBE2; padding: 10px; font: inherit; cursor: pointer; text-align: left; color: #1B1E1A; }
.map-cell.high { background: #FAEBD7; }
.map-cell.danger { background: #FDE7E4; }
.map-cell.empty { background: var(--surface-2); color: var(--muted); }

/* Speak instead of typing */
.mic-btn { border: 1px solid var(--border); background: var(--card); border-radius: 999px; min-width: 40px; height: 40px; font-size: 16px; cursor: pointer; flex-shrink: 0; }
.mic-btn.on { background: #B42318; border-color: #B42318; color: #fff; animation: mic-pulse 1.2s infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 6px rgba(180, 35, 24, .2); } }
.log-row .log-text { flex: 1; }

/* The wall screen */
.wall-body { background: #12201A; color: #F4F2EC; margin: 0; }
.wall { padding: 28px 36px; display: flex; flex-direction: column; gap: 22px; min-height: 100vh; box-sizing: border-box; font-size: 20px; }
.wall-head { display: flex; justify-content: space-between; align-items: flex-end; }
.wall-title { font-size: 40px; font-weight: 800; }
.wall-date { font-size: 22px; opacity: .8; }
.wall-clock { font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wall-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wall-tile { background: #1F3A2D; border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; }
.wall-tile b { font-size: 56px; line-height: 1; }
.wall-tile span { opacity: .85; }
.wall-tile.danger { background: #8A1C12; }
.wall-tile.good { background: #24513B; }
.wall-cols { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; flex: 1; }
.wall-card { background: #1A2E24; border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.wall-card h2 { font-size: 24px; margin: 0 0 4px; opacity: .9; }
.wall-sub { margin-top: 14px !important; }
.wall-bar-row { display: grid; grid-template-columns: 90px 1fr 50px auto; gap: 12px; align-items: center; }
.wall-bar-label { font-weight: 700; }
.wall-bar { height: 18px; background: #24382E; border-radius: 999px; overflow: hidden; }
.wall-bar-fill { display: block; height: 100%; background: #6FBF8E; border-radius: 999px; }
.wall-bar-n { font-weight: 800; text-align: right; }
.wall-bar-flags { display: flex; gap: 6px; }
.wall-flag { font-size: 15px; background: #C27A12; color: #fff; border-radius: 999px; padding: 2px 10px; }
.wall-flag.danger { background: #B42318; }
.wall-flag.going { background: #2F5D46; }
.wall-safety h3 { margin: 10px 0 4px; color: #FFB4A9; }
.wall-event { line-height: 1.35; }
.wall-event span, .wall-safety span { opacity: .7; }
.wall-event.danger { color: #FFB4A9; }
.wall-event.good { color: #B8E3C9; }
.wall-empty { opacity: .6; margin: 0; }
.wall-foot { font-size: 14px; opacity: .5; text-align: right; }
.wall-loading { font-size: 28px; opacity: .6; }
@media (max-width: 900px) { .wall-tiles { grid-template-columns: 1fr 1fr; } .wall-cols { grid-template-columns: 1fr; } .wall { font-size: 16px; padding: 16px; } .wall-clock { font-size: 36px; } }

/* The menu scrolls instead of squashing its sections (they clip their contents). */
.drawer > * { flex-shrink: 0; }
.tri-sheet > * { flex-shrink: 0; }
/* Menu entries that are buttons look like the link entries. */
button.drawer-link { width: 100%; border: 0; border-radius: 0; background: transparent; font: inherit; font-size: 18px; text-align: left; cursor: pointer; }
button.drawer-link + .drawer-link, .drawer-link + button.drawer-link { border-top: 1px solid var(--border-3); }
/* Header buttons stay on one line. */
.tri-bar .tri-log { white-space: nowrap; }
.tri-bar { flex-wrap: nowrap; min-width: 0; }

/* Scheduling a visit */
.cal-links { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-links .pv-link-btn { text-decoration: none; color: inherit; }
.also-coming { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.wd-add-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #FFF8E6; border: 1px solid #F0D68A; border-radius: 12px; padding: 8px 12px; font-size: 14px; }

/* Work day: details, "I'm coming", filters */
.wd-info { background: var(--card); border: 1px solid var(--border-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; }
.wd-info-notes { white-space: pre-wrap; }
.wd-coming { font-size: 14px; }
.wd-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wd-chip { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: inherit; }
.wd-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.wd-reserved { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: #4A2F6B; background: #ECE3F5; border-radius: 999px; padding: 2px 8px; }

/* Work-day mode: plan, sections, stars */
.wd-plan { background: var(--surface-2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wd-rsvps { display: flex; flex-direction: column; }
.wd-section { border: 1px solid var(--border-2); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.wd-section > summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.wd-section[open] > summary { margin-bottom: 10px; }
.wd-star { border: 0; background: none; font-size: 22px; line-height: 1; color: #C9A227; cursor: pointer; padding: 0 6px 0 0; }
.wd-job-tools { margin-top: 6px; }
.wd-reserve { height: 36px; font-size: 14px; padding: 0 8px; width: auto; flex: 1; }
.wd-check.done span { text-decoration: line-through; opacity: .6; }
.wd-sug { display: flex; align-items: center; gap: 10px; background: #FFF8E6; border: 1.5px solid #F0D68A; border-radius: 14px; padding: 12px 14px; color: inherit; text-decoration: none; font-size: 15px; }
.wd-rsvps .pb-thanks-row { flex-direction: column; gap: 0; }
.wd-steps { margin: 0; padding-left: 18px; line-height: 1.5; }

/* Work-day mode, full screen: the controls down the side, every job on a board */
.tri-sheet.wd-full { top: 0; max-width: none; max-height: none; height: 100dvh; border-radius: 0; padding: 14px 24px; overflow: hidden; gap: 12px; }
.wd-full-grid { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 24px; flex: 1 1 auto; min-height: 0; }
.wd-side, .wd-main { overflow-y: auto; overscroll-behavior: contain; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 0 4px 24px 0; }
.wd-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.wd-col { display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border-radius: 16px; padding: 10px; min-height: 140px; }
.wd-col-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 15px; padding: 2px 4px; }
.wd-col-taken .wd-col-head { color: #7A5A0E; }
.wd-col-done .wd-col-head { color: #24513B; }
.wd-col-stuck .wd-col-head { color: #8A2F22; }
@media (max-width: 1280px) { .wd-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .tri-sheet.wd-full { overflow-y: auto; padding: 12px 16px; }
  .wd-full-grid { grid-template-columns: minmax(0, 1fr); }
  .wd-side, .wd-main { overflow: visible; }
  .wd-board { grid-template-columns: minmax(0, 1fr); }
}
.wd-job.wd-needs { border-color: #D9822B; box-shadow: 0 0 0 2px #F6D9B8; }
.wd-help { background: #FFF1E0; border-radius: 10px; padding: 6px 10px; font-size: 14px; font-weight: 600; color: #7A4B12; }
.wd-timer { font-size: 12px; font-weight: 700; color: #7A5A0E; margin-top: 4px; }
.wd-timer.slow { color: #8A2F22; }
.pad-btn.on { background: var(--link-bg); border-color: var(--brand); }
.wd-fills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wd-sched { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border-2); border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.wd-sched-text { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wd-sched-done { padding: 4px 0; }
.wd-preview { border: 1px dashed var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.wd-preview pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 1.45; max-height: 340px; overflow-y: auto; }
.pv-link-btn.armed { background: #8A2F22; border-color: #8A2F22; color: #fff; }
.wd-agenda-edit { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.wd-announce-pick { display: flex; align-items: center; gap: 4px; font-size: 16px; cursor: pointer; }
.wd-activity { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; font-size: 14px; line-height: 1.35; }
.wd-act { display: flex; gap: 10px; }
.wd-act-time { flex: none; width: 64px; }
.wd-forecast { font-size: 14px; font-weight: 600; }
.wd-forecast.wet { color: #1F4E79; }
/* The parents' page */
.wd-today { background: #FFF8E6; border: 1.5px solid #F0D68A; border-radius: 12px; padding: 10px 12px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.wd-agenda { display: flex; flex-direction: column; gap: 2px; }
.wd-agenda-row { display: flex; gap: 12px; }
.wd-agenda-row b { flex: none; min-width: 64px; }
.wd-saved { font-size: 14px; font-weight: 700; color: #4A2F6B; align-self: center; }
.wd-badge-help { background: #FFF1E0; color: #7A4B12; }
.wd-claim { border-color: var(--brand); }
.wd-notice { background: var(--link-bg); border-radius: 10px; padding: 8px 12px; font-size: 15px; font-weight: 600; }
.wd-edit { border-top: 1px dashed var(--border); padding-top: 10px; }
.wd-edit .note-row textarea { flex: 1; }
.wd-job-details { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.wd-job-details.edited { border-left: 3px solid var(--brand); padding-left: 8px; }
.wd-job-tools { flex-wrap: wrap; }
.wd-priority { width: auto; flex: none; }
.wd-first > h2 { color: #7A5A0E; }
.wd-flex { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1.5px dashed var(--brand); border-radius: 14px; padding: 12px 14px; }
.wd-flex.on { border-style: solid; background: var(--link-bg); }
.wd-flex.ask { box-shadow: 0 0 0 3px var(--link-bg); }
.wd-flex-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wd-flex-pick { width: auto; max-width: 100%; flex: 1 1 200px; }
.wd-came .wd-check { min-width: 0; }
.wd-came-add { padding-top: 8px; }
/* Anything opened from work-day mode (a ticket, a person, the docked ticket panel) shows on top of it */
body:has(.wd-mode) .tri-scrim:not(.wd-scrim) { z-index: 7; }
body:has(.wd-mode) .tri-sheet:not(.wd-mode) { z-index: 8; }
body:has(.wd-mode) .ticket-dock-empty { display: none; }
.wd-mark { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-mark .pad-btn { height: 32px; padding: 0 10px; font-size: 13px; }
.wd-mark-done { border-color: #9CC5AE; color: #24513B; font-weight: 700; }
/* Finished tickets: crossed out, still readable */
.struck, .is-done .pb-job, .week-ev.is-done > span:first-child, .req-done .title {
  text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(47, 93, 70, .7); color: var(--muted);
}
.tag-done { background: #DDEBE2; color: #24513B; }
.week-ev.is-done { opacity: .75; }
/* When a ticket came in */
.stamp { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 8px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.stamp-fresh { background: #DDEBE2; color: #24513B; }
.stamp-recent { background: #E6EEF6; color: #2C4F7C; }
.stamp-old { background: #F1ECE2; color: #7A6A4F; }
/* Header: fits a narrow column; the someday count on its own line */
.tri-bar { gap: 8px; }
.tri-bar .tri-log { padding: 0 10px; }
.tri-date { white-space: nowrap; }
.tri-count .tri-later { display: block; font-size: 13px; font-weight: 600; opacity: .75; margin-top: 2px; }
/* Work-day job card: the title gets the room; two buttons, the rest under More */
.wd-job-head { display: flex; gap: 6px; align-items: flex-start; }
.wd-job-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wd-job-main .wd-title { overflow-wrap: anywhere; }
.wd-job-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.wd-job-tags .wd-reserved, .wd-job-tags .wd-timer { margin-top: 0; }
.wd-more { display: contents; }
.wd-more > summary { list-style: none; cursor: pointer; }
.wd-more > summary::-webkit-details-marker { display: none; }
.wd-more[open] > summary { background: var(--surface-2); }
.wd-more-body { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.wd-more-pickers { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-more-pickers .input { width: auto; flex: 1 1 140px; min-width: 0; }
.wd-mode .row > .close { white-space: nowrap; }
.wd-full > .stack-8, .wd-full > section, .wd-full > .muted-13, .wd-full > .wd-closed, .wd-full > .row.gap-10 { max-width: 820px; }
.wd-more > summary.pad-btn { display: inline-flex; align-items: center; }
@media (max-width: 900px) { .wd-full-grid { flex: none; } .wd-side, .wd-main { min-height: auto; } }
.pv-links .pv-link-btn, .pv-links a.pv-link-btn { white-space: nowrap; }
.pv-links { flex-wrap: wrap; }
.wd-banner-sub { display: block; }
.wd-banner-go { white-space: nowrap; flex: none; }
/* Sign-in: another Google account (people Daniel added from outside the school) */
.signin-other { font-size: 14px; color: inherit; opacity: .8; text-align: center; }
/* Team & access */
.team-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; border-top: 1px solid var(--border-2); padding: 10px 0; }
.team-row .team-who, .team-row button { grid-column: 1 / -1; }
.team-row select:only-of-type { grid-column: 1 / -1; }
.team-row .input { width: auto; min-width: 0; }
.team-who { min-width: 0; overflow-wrap: anywhere; }
.team-outside { color: #7A4B12; font-weight: 600; }
/* How it works */
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-toc a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--brand); border: 1px solid var(--border-2); border-radius: 999px; padding: 6px 12px; background: var(--card); }
.guide-group { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 12px; }
.guide-h { font-size: 19px; margin: 10px 0 0; }
.guide-item h3 { margin: 0; font-size: 17px; }
.guide-where { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.guide-what { margin: 6px 0 4px; font-size: 15px; }
.guide-item ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; }
.watchdog-code { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.4; white-space: pre; }
.team-page code, .screen code { overflow-wrap: anywhere; word-break: break-all; }
/* Also kept posted (tagged staff, same problem) */
.tag-box { border-top: 1px solid var(--border-2); padding-top: 10px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--link-bg); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 14px; font-weight: 600; }
.tag-chip.metoo { background: var(--surface-2); padding-right: 10px; }
.tag-x { border: 0; background: none; font-size: 16px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.tag-form { background: var(--surface-2); border-radius: 12px; padding: 10px; }
.tag-watch { background: #E6EEF6; color: #2C4F7C; }
/* Parents sign-up sheets */
.crew-label { align-self: center; margin-right: 4px; }
.crew-time-edit { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.crew-dots { display: inline-flex; gap: 4px; }
.crew-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brand); }
.crew-dot.on { background: var(--brand); }
.crew-slot { border-top: 1px solid var(--border-2); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.crew-slot.full .crew-dot.on { background: #24513B; border-color: #24513B; }
.crew-slot.past { opacity: .5; }
.crew-you { background: var(--link-bg); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.crew-slot .row, .card > .row { display: flex; align-items: center; gap: 10px; }
/* Any option button that's picked shows it (the colored ones above keep their own colors) */
.opt:where([aria-pressed="true"]) { background: var(--link-bg); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); color: var(--ink); }
/* Sign-up times: the day on its own line, from and to under it */
.crew-time-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "day day x" "from to ."; }
.crew-time-edit > :nth-child(1) { grid-area: day; }
.crew-time-edit > :nth-child(2) { grid-area: from; }
.crew-time-edit > :nth-child(3) { grid-area: to; }
.crew-time-edit > :nth-child(4) { grid-area: x; }
/* Send to parents: the post, where it goes */
.pv-card { white-space: pre-wrap; background: var(--card); border: 1px solid var(--border-2); border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.pv-dest { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--card); border: 1.5px solid var(--border-2); border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.pv-dest[aria-pressed="true"], .pv-dest.on { border-color: var(--brand); background: var(--link-bg); }
.pv-check { width: 24px; height: 24px; border-radius: 12px; border: 1.5px solid var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand); flex: none; }
.pv-dest .opts-wrap { margin-top: 6px; }
.pv-dest-more { border: 1.5px solid var(--border-2); border-radius: 14px; padding: 10px 12px; background: var(--card); }
.pv-dest-more > summary { cursor: pointer; }
.pv-more > summary { cursor: pointer; font-weight: 700; }
.lead-own { background: var(--link-bg); border-radius: 12px; padding: 8px 10px; }
.group-card { text-decoration: none; color: inherit; }
.group-member { border-top: 1px solid var(--border-2); padding-top: 8px; }
.group-member .grow, .group-card .grow { flex: 1; min-width: 0; }
.group-member { display: flex; align-items: center; gap: 10px; }
.tag-grounds { background: #E3EFDA; color: #2F5D2A; }
.kind-moves { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.kind-moves { align-items: center; }
.kind-moves-label { font-size: 12px; color: #6B6F66; }
/* Four tabs on one line on a phone */
@media (max-width: 440px) {
  .kind-switch { gap: 5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .kind-opt { padding: 6px 9px; font-size: 13px; gap: 4px; flex: none; }
}
.room-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #ECE8DF; color: inherit; text-decoration: none; }
.room-item .title { font-weight: 600; font-size: 15px; }
.room-item.req-done .title { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.room-pick { width: auto; max-width: 60%; padding: 4px 8px; font-size: 13px; }
.stale-banner.is-friday { border-color: #2F5D2A; background: #EEF5E8; }
.flag-fixed { color: #2F5D2A; background: #E3EFDA; }
.sheet-more { border-top: 1px solid var(--border); padding-top: 10px; }
.sheet-more > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 6px; padding: 6px 0; }
.sheet-more > summary::-webkit-details-marker { display: none; }
.sheet-more > summary::before { content: '▸'; margin-right: 6px; color: var(--muted); }
.sheet-more[open] > summary::before { content: '▾'; }
.sheet-more-label { font-weight: 700; }
.sheet-more-body { padding-top: 10px; }
.guess-line { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 10px; font-size: 14px; }
.guess-x { border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px 6px; }
.notices-more { align-self: flex-start; border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 0; }
.tri-alerts-notice { display: flex; align-items: center; gap: 10px; border-radius: 12px; }
.today-line { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.today-line .eyebrow { display: inline; margin-right: 4px; }
.plan-sheet { max-width: 920px; min-height: 82vh; }
.today-line .navlink { white-space: nowrap; }
.plan-tabs { display: flex; gap: 4px; background: var(--chip, #EFEBE3); border-radius: 12px; padding: 4px; }
.plan-tab { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 8px 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.plan-tab[aria-selected="true"] { background: var(--card); color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.plan-body { padding-top: 6px; }

/* My list: the checklist tab inside the Plan sheet */
.ml-top { font-size: 16px; font-weight: 700; }
.ml-list { display: flex; flex-direction: column; }
.ml-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-3); }
.ml-row:last-child { border-bottom: none; }
.ml-check { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.ml-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ml-title { text-align: left; border: none; background: none; padding: 0; font: inherit; font-size: 15px; font-weight: 600; color: inherit; cursor: pointer; }
.ml-row.done { opacity: .55; }
.ml-row.done .ml-title { text-decoration: line-through; }
.ml-x { border: none; background: none; color: var(--faint); font-size: 15px; cursor: pointer; padding: 4px 6px; flex: none; }
.ml-sec { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }

.drawer-top { margin-top: 6px; }
.hub-sheet { min-height: 70vh; }
.setup-step { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; }
.setup-step .grow { display: flex; flex-direction: column; gap: 2px; }
.setup-mark { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.setup-step.is-done .setup-mark { background: #2F5D2A; border-color: #2F5D2A; color: #fff; }
.setup-step.is-done .drawer-label { color: var(--muted); }
.backlog-bldg { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; background: var(--card); }
.backlog-bldg > summary { cursor: pointer; padding: 6px 0; }
.backlog-body { padding-top: 6px; }
.backlog-actions { flex-wrap: wrap; position: sticky; top: 0; background: var(--card); padding: 6px 0; z-index: 1; }
.backlog-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #ECE8DF; cursor: pointer; }
.backlog-row input { width: 20px; height: 20px; flex: none; }
.backlog-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.backlog-title { font-weight: 600; font-size: 14px; }
