/* WatchPoint by Deltrolux — interface styles.
   Layout: white brand sidebar + working area on desktop; top bar + bottom tab bar on phones.
   One light look, matched to the WatchPoint logo. Fonts are bundled (see assets/fonts, OFL). */

@font-face { font-family: "Outfit"; src: url("fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/Outfit-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }

:root {
  --bg: #F3F4EE; --surface: #FFFFFF; --surface-2: #F7F8F3; --line: #E1E4D9; --line-2: #EEF0EA; --field: #CDD3C4;
  --ink: #0F1A12; --ink-2: #34403A; --muted: #56615A; --faint: #7D877F;
  --brand: #0F3D1A; --brand-hover: #17502A; --brand-soft: #D6E0CC; --brand-tint: #E6EDD6;
  --olive: #5A6B07; --olive-ink: #4E5E06; --olive-pale: #C9D69A;
  --crit: #C81E1E; --crit-ink: #A51717; --crit-tint: #FFF5F4; --crit-line: #F1C9C6;
  --high-bg: #FBE7CB; --high: #7A3D00; --low-bg: #E2ECF5; --low: #1F5275; --norm-bg: #ECEEE8; --norm: #3F4842;
  --open: #A84400; --prog: #1F5275; --closed: #2E6B30; --ok-bg: #E3EEDD; --ok: #1F4D21;
  --scrim: rgba(15, 26, 18, .42);
  --display: "Outfit", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 10px; --r-lg: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--olive-ink); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--field); background: var(--surface); cursor: pointer; font-size: 15px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #FFFFFF; font-family: var(--display); font-weight: 500; font-size: 16px; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.danger { color: var(--crit-ink); border-color: var(--crit-line); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.ghost { border-color: transparent; background: none; }
.btn.light { background: #F1F5E2; border-color: transparent; color: var(--brand); font-family: var(--display); font-weight: 600; font-size: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.btn.light:hover { background: #FFFFFF; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 42px; height: 42px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; color: var(--ink); }
.icon-btn.on-dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #FFFFFF; }
.icon-btn.on-dark:hover { background: rgba(255, 255, 255, .18); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- chips ---------- */
.sev { display: inline-flex; align-items: center; justify-content: center; min-width: 66px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sev-Normal { background: var(--norm-bg); color: var(--norm); } .sev-Low { background: var(--low-bg); color: var(--low); }
.sev-High { background: var(--high-bg); color: var(--high); } .sev-Critical { background: var(--crit); color: #FFFFFF; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dotc, currentColor); }
.st-Open { color: var(--open); } .st-Inprogress { color: var(--prog); } .st-Closed { color: var(--closed); }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--high-bg); color: var(--high); } .pill.off { background: var(--norm-bg); color: #46524B; }

/* ---------- fields ---------- */
.field { width: 100%; font-size: 16px; padding: 11px 13px; border: 1px solid var(--field); border-radius: var(--r); background: var(--surface); }
textarea.field { resize: vertical; line-height: 1.5; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(90, 107, 7, .14); }
.lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--muted); }
.err { color: var(--crit-ink); font-size: 13px; font-weight: 500; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- shared green surfaces ---------- */
.greenfield { position: relative; overflow: hidden; isolation: isolate; color: #FFFFFF; background: radial-gradient(120% 120% at 90% 20%, #1A5A2A 0%, rgba(26, 90, 42, 0) 60%), radial-gradient(90% 90% at 0% 100%, #082A12 0%, rgba(8, 42, 18, 0) 70%), #0F3D1A; }
.greenfield::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .45; background-image: radial-gradient(rgba(201, 214, 154, .16) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .15)); mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .15)); }
canvas.radar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-pale); }
.dot-red { width: 10px; height: 10px; border-radius: 50%; background: #E3241B; flex: none; box-shadow: 0 0 0 4px rgba(227, 36, 27, .18), 0 0 18px rgba(227, 36, 27, .6); }
.clock { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: var(--brand-soft); }
.clock .live { width: 8px; height: 8px; border-radius: 50%; background: #9CC25B; box-shadow: 0 0 0 3px rgba(156, 194, 91, .25); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.clock .mono { color: #FFFFFF; font-size: 14px; }
.band { border-radius: 18px; padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-end; justify-content: space-between; box-shadow: 0 14px 34px rgba(15, 61, 26, .16); }
.band-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.band h1 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.02em; line-height: 1.08; }
.band .sub { color: var(--brand-soft); font-size: 15px; }
.band-side { display: flex; flex-direction: column; gap: 12px; flex: 0 1 340px; min-width: 0; }
.band-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.shiftbar { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.shiftbar .r { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--brand-soft); }
.shiftbar .r b { color: #FFFFFF; font-weight: 600; }
.shiftbar .track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); margin-top: 9px; overflow: hidden; }
.shiftbar .fill { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #9CC25B, #C9D69A); }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
.rise { animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }

/* ---------- sign in & password pages ---------- */
.signin { min-height: 100%; display: flex; flex-wrap: wrap; background: var(--surface); }
.signin-hero { flex: 1 1 560px; padding: 44px clamp(24px, 4.5vw, 64px); display: flex; flex-direction: column; gap: 36px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-mid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 36px; align-items: center; }
.signin-hero h1 { font-size: clamp(38px, 4vw, 56px); line-height: 1.02; letter-spacing: -.025em; max-width: 11ch; }
.signin-hero h1 em { font-style: normal; color: var(--olive-pale); }
.signin-hero p { font-size: 17px; line-height: 1.65; color: var(--brand-soft); max-width: 40ch; margin: 22px 0 0; }
.ob-stack { position: relative; height: 330px; }
.ob-card { position: absolute; left: 0; right: 0; padding: 18px 18px 16px; border-radius: 16px; background: linear-gradient(160deg, #2A6A3A, #174D26); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 48px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 10px; }
.ob-card.back { top: 0; transform: scale(.88); transform-origin: top center; opacity: .6; }
.ob-card.mid { top: 46px; transform: scale(.94); transform-origin: top center; opacity: .85; }
.ob-card.front { top: 98px; }
.ob-card .r1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ob-card .no { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.ob-card .tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(156, 194, 91, .18); color: #CFE3A8; }
.ob-card .t { font-family: var(--display); font-size: 17px; font-weight: 500; line-height: 1.3; }
.ob-card .m { font-size: 13px; color: var(--brand-soft); }
.ob-card .seal { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: var(--olive-pale); }
.ob-card .seal .ico { width: 16px; height: 16px; }
.ob-card.front.rise { animation-delay: .55s; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 14px; background: rgba(255, 255, 255, .04); }
.facts .ico { width: 16px; height: 16px; color: var(--olive-pale); }
.signin-form { flex: 0 1 560px; background: var(--surface); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.instance { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.instance b { color: var(--ink-2); font-weight: 600; }
.instance .dot-red { width: 7px; height: 7px; box-shadow: none; }
.signin-card { width: 100%; max-width: 392px; margin: auto 0; display: flex; flex-direction: column; gap: 26px; }
.signin-card .brandmark { width: 230px; height: auto; }
.signin-card h2 { font-size: 34px; letter-spacing: -.02em; }
.in-field { position: relative; display: flex; align-items: center; }
.in-field > .ico { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.in-field .field { padding: 14px 14px 14px 44px; border-radius: 12px; background: var(--surface-2); }
.in-field .field:focus { background: var(--surface); }
.in-field .peek { position: absolute; right: 6px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font-size: 13px; font-weight: 600; color: var(--olive-ink); cursor: pointer; }
.caps { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--high); font-weight: 500; }
.go-btn { min-height: 54px; border-radius: 12px; font-size: 17px; box-shadow: 0 10px 24px rgba(15, 61, 26, .22); }
.go-btn .arrow { transition: transform .2s; }
.go-btn:hover .arrow { transform: translateX(4px); }
.note-box { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 13px; color: var(--ink-2); }
.signin-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12px; color: var(--faint); }
.signin-foot span { display: inline-flex; align-items: center; gap: 6px; }
.signin-foot .ico { width: 14px; height: 14px; }

/* ---------- app shell ---------- */
.shell { min-height: 100%; display: flex; }
.side { width: 256px; flex: none; background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { width: 176px; height: auto; margin: 4px 10px 0; }
.site-switch { position: relative; display: block; }
.site-switch select { appearance: none; width: 100%; padding: 24px 36px 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 15px; font-weight: 600; cursor: pointer; }
.site-switch .client { position: absolute; left: 13px; top: 8px; font-size: 12px; color: var(--muted); pointer-events: none; }
.site-switch .ico { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.site-fixed { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-h { padding: 0 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r); color: var(--ink-2); font-size: 15px; text-decoration: none; }
.nav a:hover { background: var(--bg); color: var(--brand); }
.nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--crit); color: #FFFFFF; }
.side-shift { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.side-shift .r { display: flex; justify-content: space-between; gap: 8px; }
.side-shift b { color: var(--ink); font-weight: 600; }
.side-shift .track { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.side-shift .fill { display: block; height: 5px; border-radius: 999px; background: var(--olive); }
.me { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 8px 4px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 14px; flex: none; background: var(--brand-tint); color: #2C3A06; }
.avatar.dark { background: var(--brand); color: #FFFFFF; }
.main { flex: 1; min-width: 0; padding: 30px clamp(16px, 3vw, 40px) 56px; }
.wrap { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.wrap.enter > * { animation: rise-in .55s cubic-bezier(.2, .7, .2, 1) both; }
.wrap.enter > *:nth-child(2) { animation-delay: .06s; } .wrap.enter > *:nth-child(3) { animation-delay: .12s; } .wrap.enter > *:nth-child(4) { animation-delay: .18s; }
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-h .sub { font-size: 14px; color: var(--muted); }
.page-h h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.01em; margin-top: 4px; }
.page-h .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.topbar, .tabbar { display: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card.clip { overflow: hidden; }
.card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.card-h h2 { font-size: 19px; }
.card-b { padding: 18px 22px; }
.count-pill { padding: 2px 9px; border-radius: 999px; background: var(--norm-bg); font-size: 13px; font-weight: 600; }
.empty { padding: 28px 22px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 12px; }
.empty .ico { color: var(--closed); }
.notice { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* overview */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .2s; }
.kpi:hover { box-shadow: 0 8px 22px rgba(15, 26, 18, .07); }
.kpi .k { font-size: 14px; color: var(--muted); }
.kpi .v { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 19px; font-weight: 500; color: var(--muted); }
.kpi .n { font-size: 13px; color: var(--muted); }
.kpi.crit { background: var(--crit-tint); border-color: var(--crit-line); }
.kpi.crit .k { color: #8E1A1A; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi.crit .k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); animation: pulse-red 1.8s infinite; }
.kpi.crit .v { color: var(--crit-ink); } .kpi.crit .n { color: #6B2B26; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(200, 30, 30, .5); } 70% { box-shadow: 0 0 0 8px rgba(200, 30, 30, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 30, 30, 0); } }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 6px; }
.spark i { flex: 1; border-radius: 2px; background: #C6D3A6; min-height: 3px; }
.spark i.now { background: var(--olive); } .spark i.future { background: var(--line-2); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "need quick" "need shift" "need posts"; gap: 20px; align-items: start; }
.a-need { grid-area: need; } .a-quick { grid-area: quick; } .a-shift { grid-area: shift; } .a-posts { grid-area: posts; }
.need-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 116px 20px; gap: 14px; align-items: center; width: 100%; padding: 15px 22px; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; cursor: pointer; }
.need-row:last-child { border-bottom: 0; }
.need-row:hover { background: var(--surface-2); }
.need-row .t { font-weight: 600; font-size: 15px; }
.need-row .m { font-size: 13px; color: var(--muted); }
.need-row .age { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.need-row .age .mono { font-size: 12px; color: var(--muted); }
.post-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--brand); color: #FFFFFF; }
.post-card .live { width: 10px; height: 10px; border-radius: 50%; background: #9CC25B; flex: none; box-shadow: 0 0 0 4px rgba(156, 194, 91, .22); }
.post-card select { appearance: none; background: transparent; border: 0; color: #FFFFFF; font-family: var(--display); font-weight: 600; font-size: 18px; padding: 0 22px 0 0; cursor: pointer; max-width: 100%; }
.post-card select option { color: var(--ink); }
.post-card .s { font-size: 13px; color: var(--brand-soft); }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 92px; padding: 13px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 26, 18, .08); border-color: var(--olive); }
.tile.confirm { border-color: var(--brand); background: var(--brand-tint); }
.tile .ti { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.tile b { font-size: 15px; font-weight: 600; } .tile span.s { font-size: 12px; color: var(--muted); display: block; }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl li { padding: 0 0 13px; }
.tl button { display: grid; grid-template-columns: 46px 12px minmax(0, 1fr); gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.tl button:hover .tt { text-decoration: underline; }
.tl .tm { font-size: 13px; color: var(--muted); }
.tl .d { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; }
.tl .tt { font-size: 14px; font-weight: 500; } .tl .tm2 { font-size: 12px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 26px; gap: 12px; align-items: center; font-size: 14px; }
.bar .track { height: 10px; border-radius: 999px; background: var(--norm-bg); }
.bar .fill { display: block; height: 10px; border-radius: 999px; background: var(--olive); }

/* book */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.search { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--r); background: var(--surface); flex: 1 1 220px; min-width: 0; }
.search input { border: 0; outline: none; background: transparent; font-size: 15px; flex: 1; min-width: 0; }
.search .ico { width: 17px; height: 17px; color: var(--muted); }
.fsel { min-height: 42px; padding: 0 10px; border: 1px solid var(--field); border-radius: var(--r); background: var(--surface); font-size: 14px; cursor: pointer; }
.fsel.set { background: var(--brand-tint); border-color: #B9C79A; color: var(--brand); font-weight: 500; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--norm-bg); gap: 3px; }
.seg button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--brand); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.reg-head, .reg-row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 84px 112px 56px; gap: 14px; align-items: center; padding: 13px 18px; }
.reg-head { padding-block: 9px; background: var(--surface-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.reg-row { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; cursor: pointer; }
.reg-row:hover { background: var(--surface-2); }
.reg-row.new { animation: flash 2.4s ease-out; }
@keyframes flash { 0% { background: var(--brand-tint); } 100% { background: transparent; } }
.reg-row .no { font-size: 14px; font-weight: 500; } .reg-row .tm { font-size: 12px; color: var(--muted); }
.reg-row .t { font-weight: 600; font-size: 15px; } .reg-row .m { font-size: 13px; color: var(--muted); }
.reg-row .ph { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.reg-row .ph .ico { width: 16px; height: 16px; }
.reg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; font-size: 13px; color: var(--muted); }

/* administration */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.tabs button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: none; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-pressed="true"] { background: var(--brand); color: #FFFFFF; }
.tabs .n { font-size: 12px; opacity: .75; margin-left: 4px; }
.p-head, .p-row { display: grid; grid-template-columns: minmax(220px, 1.6fr) 120px minmax(0, 1.2fr) 150px 92px; gap: 14px; align-items: center; padding: 13px 18px; }
.p-head { padding-block: 9px; background: var(--surface-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.p-row { border-bottom: 1px solid var(--line-2); font-size: 14px; }
.p-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-who .nm { font-weight: 600; font-size: 15px; } .p-who .em { font-size: 13px; color: var(--muted); overflow-wrap: break-word; word-break: break-word; }
.c-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.c-stat .last { font-size: 12px; color: var(--muted); }
.p-row.off { color: var(--muted); }
.p-manage { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.access-list { display: flex; flex-direction: column; gap: 6px; }
.access-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .grow { flex: 999 1 600px; min-width: 0; }
.split > .side-panel { flex: 1 1 340px; max-width: 420px; min-width: 0; }
.role-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 13px; border: 1px solid var(--field); border-radius: var(--r); cursor: pointer; }
.role-opt:has(input:checked) { border-color: var(--brand); background: #F1F5E8; box-shadow: inset 0 0 0 1px var(--brand); }
.role-opt input { margin: 3px 0 0; accent-color: var(--brand); }
.role-opt b { display: block; font-size: 14px; } .role-opt span { font-size: 13px; color: var(--muted); }
.site-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r); background: none; text-align: left; cursor: pointer; }
.site-item:hover { background: var(--bg); }
.site-item[aria-current="true"] { background: var(--brand-tint); }
.posts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--field); border-radius: 999px; background: var(--surface); font-size: 14px; }
.add-inline { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 5px 0 14px; border: 1px dashed #A9B39E; border-radius: 999px; }
.add-inline input { border: 0; outline: none; background: transparent; font-size: 14px; width: 140px; }
.add-inline button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--brand); color: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.add-inline .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.cat-row:last-child { border-bottom: 0; }
.a-row { display: grid; grid-template-columns: 120px 170px minmax(0, 1fr) 96px; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.a-head { padding-block: 9px; background: var(--surface-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.a-what { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kind { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.kind .ico { width: 16px; height: 16px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--olive-ink); font-family: var(--mono); font-size: 13px; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.integrity { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px; box-shadow: 0 14px 34px rgba(15, 61, 26, .16); }
.integrity.bad { background: linear-gradient(160deg, #8E1A1A, #5E0F0F); }
.integrity .ib { width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; flex: none; }
.integrity .ib .ico { width: 28px; height: 28px; color: var(--olive-pale); }
.integrity .tx { flex: 1 1 300px; display: flex; flex-direction: column; gap: 3px; }
.integrity .tx b { font-family: var(--display); font-weight: 600; font-size: 19px; }
.integrity .tx span { font-size: 14px; color: var(--brand-soft); }
.integrity .btn { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .4); }
.integrity .btn:hover { background: rgba(255, 255, 255, .08); }
.table-scroll { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th { text-align: left; padding: 9px 18px; background: var(--surface-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
table.plain td { padding: 12px 18px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.switch-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }

/* overlays */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--surface); z-index: 41; display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(15, 26, 18, .14); animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: .4; } }
.drawer-top { padding: 14px 20px 20px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 12px; flex: none; }
.drawer-top .bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.drawer-top .no { font-family: var(--mono); font-size: 26px; font-weight: 500; }
.drawer-top h2 { font-size: 21px; line-height: 1.3; font-weight: 500; }
.drawer-top .st { color: #FFFFFF; }
.drawer-top .seal { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12px; color: var(--olive-pale); overflow-wrap: anywhere; }
.drawer-top .seal .ico { width: 16px; height: 16px; }
.drawer-b { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 20px; }
.meta { margin: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); row-gap: 7px; column-gap: 12px; font-size: 14px; }
.meta dt { color: var(--muted); } .meta dd { margin: 0; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photo { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r); border: 1px solid var(--line); background: #E9ECE3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; font-size: 12px; color: #46524B; overflow: hidden; cursor: pointer; text-align: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.shown { padding: 0; cursor: zoom-in; }
.verify { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: #EEF3E2; }
.verify.bad { background: var(--crit-tint); }
.verify .ico { color: var(--closed); width: 22px; height: 22px; }
.verify b { font-size: 14px; color: var(--ok); } .verify.bad b { color: var(--crit-ink); }
.verify span { font-size: 12px; color: #3D5A3E; overflow-wrap: anywhere; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hist li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; }
.hist .d { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--olive); }
.hist .d.first { background: var(--brand); }
.hist .n { font-size: 14px; line-height: 1.5; white-space: pre-line; } .hist .by { font-size: 12px; color: var(--muted); }
.sheet { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(640px, calc(100% - 32px)); max-height: calc(100% - 48px); background: var(--surface); border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(15, 26, 18, .22); animation: pop .18s ease-out; }
@keyframes pop { from { transform: translate(-50%, -48%); opacity: .4; } }
.sheet-h { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.sheet-h .tt { text-align: center; display: flex; flex-direction: column; }
.sheet-h .tt b { font-family: var(--display); font-weight: 600; font-size: 18px; } .sheet-h .tt span { font-size: 12px; color: var(--muted); }
.sheet-b { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 20px; }
.sheet-f { padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 15px; border: 1px solid var(--field); border-radius: 999px; background: var(--surface); font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; font-weight: 500; }
.sevseg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #E6E9E0; }
.sevseg button { flex: 1; min-height: 46px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.sevseg button[aria-pressed="true"] { box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }
.sevseg button[data-v="Normal"][aria-pressed="true"] { background: var(--surface); color: var(--norm); }
.sevseg button[data-v="Low"][aria-pressed="true"] { background: var(--low-bg); color: var(--low); }
.sevseg button[data-v="High"][aria-pressed="true"] { background: var(--high-bg); color: var(--high); }
.sevseg button[data-v="Critical"][aria-pressed="true"] { background: var(--crit); color: #FFFFFF; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shot { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 12px; position: relative; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .rm { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(15, 26, 18, .75); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.shot .rm .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.shot-add { border: 1.5px dashed #9EA894; background: var(--surface); color: #2C3A06; font-weight: 600; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.shot-add .ico { width: 26px; height: 26px; }
.done { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 40px 0 12px; }
.done .tick { position: relative; width: 80px; height: 80px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px var(--brand-tint); }
.done .tick::before, .done .tick::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--olive); animation: ripple 2s ease-out infinite; pointer-events: none; }
.done .tick::after { animation-delay: 1s; }
@keyframes ripple { from { transform: scale(.95); opacity: .55; } to { transform: scale(1.9); opacity: 0; } }
.done .tick .ico { width: 40px; height: 40px; color: #FFFFFF; stroke-width: 2.6; }
.done .ob { font-family: var(--mono); font-size: 44px; font-weight: 500; color: var(--brand); line-height: 1.1; }
.menu { position: fixed; z-index: 41; left: 16px; bottom: 16px; width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 48px rgba(15, 26, 18, .2); padding: 8px; display: flex; flex-direction: column; animation: fade .12s; }
.menu .who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; min-width: 0; }
.menu .who span { min-width: 0; overflow-wrap: anywhere; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 12px; background: var(--ink); color: #FFFFFF; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: up .2s ease-out; max-width: calc(100% - 32px); }
.toast.error { background: var(--crit-ink); }
@keyframes up { from { transform: translate(-50%, 10px); opacity: 0; } }
.toast button { border: 0; background: none; color: var(--olive-pale); font-weight: 600; cursor: pointer; min-height: 36px; padding: 0 6px; }
.offline-bar { position: sticky; top: 0; z-index: 35; padding: 8px 16px; background: var(--high-bg); color: var(--high); font-size: 14px; text-align: center; }
.app-foot { font-size: 12px; color: var(--faint); text-align: center; padding-top: 8px; }

/* ---------- phone ---------- */
/* 0.6.0: handover acknowledgement and incident alerts */
.nav .count.calm { background: var(--olive); }
.tab-dot { position: absolute; top: 9px; margin-left: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 2px var(--surface); }
.handin { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-left: 4px solid var(--olive); background: linear-gradient(90deg, var(--brand-tint), var(--surface) 70%); }
.handin-i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--olive-pale); color: var(--brand); }
.handin-i .ico { width: 22px; height: 22px; }
.handin-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--ink-2); }
.handin-t b { font-size: 16px; color: var(--ink); }
.verify.wait { background: var(--high-bg); }
.verify.wait .ico { color: var(--high); } .verify.wait b { color: var(--high); } .verify.wait span { color: var(--ink-2); }
.handaccept { padding: 16px; border-radius: var(--r); border: 1px solid var(--olive-pale); background: var(--brand-tint); gap: 12px; }
.handaccept .field { background: var(--surface); }
.need-row.ho-row { grid-template-columns: 96px minmax(0, 1fr) 20px; }
.alert-opts { display: flex; flex-direction: column; gap: 4px; }
.check.alert-opt { align-items: flex-start; padding: 8px 0; }
.check.alert-opt input { margin-top: 3px; }
.check.alert-opt b { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }

.p-who .rl { display: none; font-size: 13px; color: var(--ink-2); }
/* Narrow People table (laptops with the Add person panel open): role moves under the name. */
.people-card { container-type: inline-size; }
@container (max-width: 820px) {
  .p-head, .p-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 150px 84px; }
  .p-head span:nth-child(2), .p-row .c-role { display: none; }
  .p-who .rl { display: block; }
}
.help-link { color: var(--olive-ink); }
/* Guide */
.g-start { margin-bottom: 20px; }
.g-as .field { min-width: 220px; }
.g-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.g-toc { position: sticky; top: 20px; display: flex; flex-direction: column; padding: 14px 10px; max-height: calc(100vh - 40px); overflow-y: auto; }
.g-toc-h { padding: 4px 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.g-toc button { border: 0; background: none; text-align: left; padding: 6px 10px 6px 20px; border-radius: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.g-toc button:hover { background: var(--surface-2); color: var(--brand); }
.g-toc button.g-toc-part { padding-left: 10px; margin-top: 8px; font-weight: 600; color: var(--olive-ink); }
.g-doc { padding: 28px 36px 36px; max-width: 860px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.g-doc > p:first-of-type { font-size: 17px; color: var(--ink); }
.g-jump { display: none; margin-bottom: 18px; }
.g-doc h2 { font-size: 24px; color: var(--brand); margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--olive-pale); scroll-margin-top: 20px; }
.g-doc h3 { font-size: 18px; color: var(--olive-ink); margin: 28px 0 8px; scroll-margin-top: 20px; }
.g-part { margin: 44px -36px 8px; padding: 16px 36px; background: var(--brand); color: #FFFFFF; font-family: var(--display, inherit); font-size: 22px; font-weight: 700; border-left: 6px solid var(--red, #E3241B); scroll-margin-top: 20px; }
.g-doc p { margin: 0 0 12px; }
.g-doc ol, .g-doc ul { margin: 0 0 16px; padding-left: 24px; }
.g-doc li { margin-bottom: 6px; padding-left: 4px; }
.g-doc ol li::marker { color: var(--olive); font-weight: 700; }
.g-doc ul li::marker { color: var(--olive); }
.g-doc ul.g-check { list-style: none; padding-left: 4px; }
.g-doc ul.g-check li::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 10px -2px 0; border: 2px solid var(--olive); border-radius: 4px; }
.g-doc code { font-family: var(--mono); font-size: 13.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--brand); }
.g-note { padding: 12px 16px; border-left: 4px solid var(--olive); background: var(--brand-tint); border-radius: 0 var(--r) var(--r) 0; color: var(--brand); }
.g-table { margin: 4px 0 18px; border: 1px solid var(--line); border-radius: var(--r); }
.g-table table.plain th { background: var(--brand); color: #FFFFFF; padding: 10px 14px; }
.g-table table.plain td { padding: 10px 14px; font-size: 14px; }
.g-table td:first-child { font-weight: 600; color: var(--ink); }
.g-fig { margin: 18px 0 22px; text-align: center; }
.g-fig a { display: inline-block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(15, 26, 18, .08); }
.g-fig img { display: block; max-width: 100%; height: auto; }
.g-fig.tall img { max-width: 280px; }
.g-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); font-style: italic; }
.g-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-pair .g-fig.tall img { max-width: 100%; }
.g-faq { border-bottom: 1px solid var(--line-2); padding: 4px 0; }
.g-faq summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--brand); }
.g-faq p { margin: 0 0 12px; }
.g-foot { margin-top: 32px; font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) { .g-layout { grid-template-columns: minmax(0, 1fr); } .g-toc { display: none; } .g-jump { display: block; } }
@media (max-width: 1180px) { .hero-mid { grid-template-columns: minmax(0, 1fr); } .ob-stack { max-width: 360px; height: 290px; } }
@media (max-width: 860px) {
  .handin { flex-wrap: wrap; padding: 16px; } .handin .btn { width: 100%; }
  .g-doc { padding: 20px 18px 28px; font-size: 15px; } .g-part { margin: 36px -18px 8px; padding: 14px 18px; font-size: 19px; } .g-pair { gap: 10px; } .g-fig.tall img { max-width: 240px; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .topbar img { width: 128px; height: auto; }
  .topbar .site-mini { appearance: none; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; max-width: 48vw; text-overflow: ellipsis; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar a, .tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; border: 0; background: none; color: var(--muted); font-size: 11.5px; cursor: pointer; text-decoration: none; }
  .tabbar [aria-current="page"] { color: var(--brand); font-weight: 600; }
  .tabbar .plus { margin-top: -18px; }
  .tabbar .plus span { width: 54px; height: 54px; border-radius: 16px; background: var(--brand); color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(15, 61, 26, .3); }
  .tabbar .plus .ico { width: 26px; height: 26px; stroke-width: 2.4; }
  .tabbar .plus:disabled { opacity: .45; }
  .shell { display: block; }
  .main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .wrap { gap: 18px; }
  .hide-phone { display: none !important; }
  .band { padding: 20px 18px; border-radius: 16px; gap: 16px; }
  .band-side { flex: 1 1 100%; }
  .band-acts { justify-content: space-between; }
  .band-acts .btn.light { flex: 1; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "quick" "need" "shift" "posts"; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; } .kpi .v { font-size: 32px; }
  .need-row { grid-template-columns: minmax(0, 1fr) auto; padding: 13px 16px; gap: 6px 10px; }
  .need-row .sev { grid-row: 1; grid-column: 2; justify-self: end; }
  .need-row .main-t { grid-column: 1 / -1; grid-row: 2; }
  .need-row .age { grid-row: 1; grid-column: 1; flex-direction: row; gap: 10px; align-items: center; }
  .need-row .chev { display: none; }
  .reg-head { display: none; }
  .reg-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 13px 16px; }
  .reg-row .c-no { grid-column: 1; grid-row: 1; display: flex; gap: 8px; align-items: baseline; }
  .reg-row .c-st { grid-column: 2; grid-row: 1; justify-self: end; }
  .reg-row .c-t { grid-column: 1 / -1; grid-row: 2; }
  .reg-row .c-sev { grid-column: 2; grid-row: 3; justify-self: end; }
  .reg-row .c-ph { grid-column: 1; grid-row: 3; }
  .filters { padding: 12px 14px; }
  .p-head { display: none; }
  .p-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 13px 14px; }
  .p-row .c-who, .p-row .c-sites { grid-column: 1 / -1; }
  .p-row .c-role, .p-row .c-sites { font-size: 13px; color: var(--muted); }
  .a-head { display: none; }
  .a-row { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; }
  .a-row .c-what, .a-row .c-ref { grid-column: 1 / -1; }
  .sheet { left: 0; top: 0; transform: none; width: 100%; max-height: none; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); animation: rise .2s ease-out; }
  @keyframes rise { from { transform: translateY(24px); opacity: .4; } }
  .drawer { width: 100%; }
  .menu { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: auto; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .signin-hero { padding: 24px 20px 30px; gap: 22px; flex-basis: 100%; }
  .ob-stack, .facts { display: none; }
  .signin-hero h1 { font-size: 34px; }
  .signin-hero p { font-size: 15px; margin-top: 12px; }
  .signin-form { padding: 24px 16px 40px; }
  .instance { align-self: center; }
  .signin-card .brandmark { width: 190px; }
  .signin-card h2 { font-size: 28px; }
}
@media (min-width: 861px) { .phone-only { display: none !important; } }

/* ---------- printed register ---------- */
#print { display: none; }
@media print {
  body { background: #FFFFFF; }
  .shell, #layer, #toast-host { display: none !important; }
  #print { display: block; font-size: 11pt; color: #000000; }
  #print img { width: 180px; }
  #print article { break-inside: avoid; border-bottom: 1px solid #CCCCCC; padding: 10pt 0; }
  #print h2 { font-size: 13pt; }
  #print .g-print img { width: auto; max-width: 100%; }
  #print .g-print .g-logo { width: 200px; }
  #print .g-print figure { break-inside: avoid; text-align: center; margin: 10pt 0; }
  #print .g-print figure.tall img, #print .g-print .g-pair img { max-width: 200px; }
  #print .g-print .g-pair { display: flex; justify-content: center; gap: 20pt; }
  #print .g-print .g-part { font-size: 16pt; font-weight: 700; color: #0F3D1A; background: none; border-left: 0; border-bottom: 2pt solid #0F3D1A; margin: 18pt 0 6pt; padding: 0 0 4pt; break-before: page; }
  #print .g-print th { color: #000000; background: #E6EDD6; }
  #print .g-print .g-table { border: 0; }
  #print .g-print h2 { break-after: avoid; }
  #print .g-print table { border-collapse: collapse; width: 100%; } #print .g-print td, #print .g-print th { border: 1px solid #999999; padding: 4pt 6pt; text-align: left; }
  #print .hashline { font-family: var(--mono); font-size: 8pt; overflow-wrap: anywhere; color: #333333; }
}

/* People & access: alert switches (0.6.4) */
.alert-sel { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.alert-sel select { min-width: 200px; }
