@import url("button.css");
:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: #0e1b2a;
  --line: #1e3a5f;
  --text: #e7eef6;
  --muted: #93a4b8;
  --posture: #f2c94c;
  --pin: #7dd3fc;
  --dock: #0b1520;
  --training: #1d4ed8;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; height: 100dvh; overflow: hidden; background: var(--bg); color: var(--text); font: 15px/1.3 "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.banner, .practice-banner, .training-banner { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.35rem 1rem; margin: 0; padding: 0.55rem 1rem; color: #fff; text-align: center; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.practice-banner { background: #ff1a1a; box-shadow: 0 0 18px #ff1a1a; }
.training-banner { background: var(--training); box-shadow: 0 0 18px var(--training); }
.practice-banner-name, .practice-clock, .training-banner-name { text-transform: none; letter-spacing: 0; font-weight: 700; }
.prototype-banner { margin: 0; padding: 0.5rem 1rem; text-align: center; font: inherit; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: repeating-linear-gradient(-45deg, #111 0 12px, var(--posture) 12px 24px); }
.prototype-banner span, .lesson span { background: var(--posture); color: #1c1917; }
.prototype-banner span { padding: 0.12rem 0.75rem; border-radius: 4px; }
.page-banners { position: sticky; top: 0; z-index: 40; }
.page-banners .practice-banner, .page-banners .training-banner { position: static; }
.skill { margin: 0.8rem 0; max-width: 40rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem; }
.skill h2, .group h2 { margin: 0 0 0.4rem; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--text); }
.skill p { margin: 0.35rem 0; }
.nav-dock { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.45rem; margin: 0.35rem 0; }

.lesson { margin: 0.35rem 0; padding: 0.45rem 0.7rem; max-width: 36rem; border: 1px dashed var(--posture); border-radius: 8px; background: var(--panel); }
.lesson span { margin-left: 0.45rem; padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.lesson-read { margin: 0.4rem 0; max-width: 40rem; color: var(--text); font-weight: 650; }
.lesson .lesson-read { margin: 0.45rem 0 0; }
body.sketch .back { position: static; display: inline-block; margin: 0.9rem 1.2rem 0; }
body.sketch .work-main { padding-top: 0.4rem; }
.work-main h2 { margin: 1.2rem 0 0.4rem; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.work-main .skill h2 { margin: 0 0 0.4rem; letter-spacing: 0; text-transform: none; color: var(--text); }
/* Practice banner is flex-shrink:0; glance takes leftover — do not hard-cap glance height. */
body.cop:has(.practice-banner) .practice-banner { flex-shrink: 0; }
body.cop, body.support { display: flex; flex-direction: column; height: 100%; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.desk-alert { flex-shrink: 0; margin: 0; padding: 0.45rem 0.8rem; background: var(--posture); color: #1c1910; font-weight: 700; text-align: center; }
.status-legend { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; align-items: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.status-legend li { display: inline-flex; align-items: center; gap: 0.28rem; }
.status-legend .swatch { width: 0.7rem; height: 0.7rem; border-radius: 2px; border: 1px solid rgba(255,255,255,0.25); flex: none; }
.bar { position: relative; z-index: 20; flex-shrink: 0; display: flex; flex-wrap: nowrap; gap: 0.65rem; align-items: center; padding: 0.45rem 0.8rem; background: var(--dock); border-bottom: 1px solid var(--line); overflow-x: auto; }
.bar > strong { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.bar .status-legend { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.bar .ingest-clock { flex: 0 0 auto; }
.bar .clock { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.bar .who { flex: 0 0 auto; white-space: nowrap; }
.posture { display: inline-flex; align-items: center; padding: 0.2rem 0.7rem; border-radius: 6px; border: 1px solid transparent; background: #334155; color: #f8fafc; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.02em; }
/* Full-chip ladder fill (not left-edge only). Readable contrast on each color. */
.posture.status-monitor { background: #2f80ed; border-color: #2f80ed; color: #fff; }
.posture.status-prepare { background: #f2c94c; border-color: #f2c94c; color: #1c1917; }
.posture.status-escalate { background: #f2994a; border-color: #f2994a; color: #1c1917; }
.posture.status-act-now { background: #eb5757; border-color: #eb5757; color: #fff; }
.posture.status-major { background: #9b1c1c; border-color: #9b1c1c; color: #fff; }
.ingest-clock { font-size: 0.85rem; white-space: nowrap; border: 1px solid transparent; border-radius: 6px; padding: 0.12rem 0.45rem; }
.ingest-clock.current { background: #14532d; border-color: #86efac; color: #dcfce7; }
.ingest-clock.aging { background: #9a3412; border-color: #fdba74; color: #fff7ed; }
.ingest-clock.stale { background: #7f1d1d; border-color: #fca5a5; color: #fee2e2; }
.ingest-clock.current strong, .ingest-clock.current .timer,
.ingest-clock.aging strong, .ingest-clock.aging .timer,
.ingest-clock.stale strong, .ingest-clock.stale .timer { color: inherit; }
.clock { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
.dial.status-monitor .name { color: #2f80ed; }
.dial.status-prepare .name { color: #f2c94c; }
.dial.status-escalate .name { color: #f2994a; }
.dial.status-act-now .name { color: #eb5757; }
.dial.status-major .name { color: #9b1c1c; }
.who { color: var(--muted); }
.glance { position: relative; z-index: 0; flex: 1 1 0%; min-height: 0; min-width: 0; display: flex; flex-direction: row; align-items: stretch; overflow: hidden; }
/* Dial strip ~25% / map ~75%. Dense (Chemung) stays two-col but capped near 25vw. */
/* height:100% + stretch: dial column must reach the dock line; dials scroll inside. */
.glance > .dials { flex: 0 0 22rem; width: 22rem; max-width: 28%; min-width: 0; min-height: 0; height: 100%; max-height: none; align-self: stretch; overflow: auto; position: relative; z-index: 2; }
.glance.gauges-dense > .dials { flex: 0 0 clamp(18rem, 25vw, 24rem); width: clamp(18rem, 25vw, 24rem); max-width: 28%; }
.glance > .map { flex: 1 1 0%; min-width: 0; min-height: 0; height: 100%; max-height: none; align-self: stretch; position: relative; z-index: 0; overflow: hidden; }
.glance.gauges-hide > .dials { display: none; }
.glance.gauges-hide > .map { flex: 1 1 auto; }
.dials { position: relative; z-index: 2; min-width: 0; overflow: auto; border-right: none; padding: 0.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; align-content: start; background: var(--bg); }
.dial { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.35rem 0.5rem; min-width: 0; }
.dial .name { display: block; font-weight: 650; }
.dial svg { display: block; width: 100%; height: 4.2rem; }
.leaflet-div-icon.offshore-diamond { background: transparent; border: 0; }
.leaflet-div-icon.personnel-pin { background: transparent; border: 0; }
.personnel-tip .gauge-meta { text-align: left; font-variant-numeric: tabular-nums; }
.personnel-pop { min-width: 12rem; }
.offshore-diamond span { display: block; width: 12px; height: 12px; margin: 2px; transform: rotate(45deg); border: 2px solid #041018; }
.dial { cursor: pointer; }
.dial-readout {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.28rem;
  margin-top: 0.05rem;
  text-align: center;
}
.dial .stage {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.15;
}
.dial-readout .unit {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}
.dial-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
  margin-top: 0.18rem;
  line-height: 1.15;
  text-align: center;
}
.dial-status,
.dial-source,
.dial small.dial-source {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #64748b;
}

.dial-ic {
  margin-top: 0.15rem;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dial-ic-next { color: #7dd3fc; }
.gauge-fact--ic { background: #0f172a; color: #e2e8f0; border: 1px solid #475569; font-weight: 650; }
.gauge-ic { color: #cbd5e1; }
.leaflet-tooltip-pane { z-index: 750; }
.leaflet-popup-pane { z-index: 760; }
.leaflet-tooltip.gauge-tip-wrap { padding: 0; border: none; background: transparent; box-shadow: none; color: #f8fafc; white-space: normal; }
.leaflet-tooltip.gauge-tip-wrap.leaflet-tooltip-top::before { border-top-color: #0f172a; }
.gauge-tip { box-sizing: border-box; width: 168px; padding: 8px 10px 10px; border-radius: 8px; background: #0f172a; border: 1px solid #334155; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); color: #f1f5f9; font-size: 12px; line-height: 1.3; }
.gauge-tip strong, .gauge-pop strong { display: block; margin-bottom: 4px; color: #f8fafc; }
.gauge-tip svg, .gauge-pop svg { display: block; width: 132px; height: auto; margin: 0 auto; }
.gauge-pop svg { width: 180px; }
.gauge-chip { display: block; margin: 6px auto 0; padding: 3px 8px; border-radius: 999px; text-align: center; font-size: 11px; font-weight: 800; }
.gauge-chip.status-monitor { color: #eff6ff; background: #1d4ed8; }
.gauge-chip.status-prepare { color: #1c1917; background: #f2c94c; }
.gauge-chip.status-escalate { color: #1c1917; background: #f2994a; }
.gauge-chip.status-act-now { color: #fff; background: #eb5757; }
.gauge-chip.status-major { color: #fff; background: #9b1c1c; }
.gauge-meta { margin-top: 3px; color: #94a3b8; font-size: 10px; text-align: center; }
.gauge-fact { margin-top: 6px; padding: 6px 8px; border-radius: 6px; background: #fff; color: #0f172a; font-size: 12px; font-weight: 700; line-height: 1.35; text-align: left; white-space: normal; }
.gauge-fact--id, .gauge-fact--ror { border: 1px solid #cbd5e1; font-variant-numeric: tabular-nums; }
.gauge-fact--marfc { background: #f0f9ff; color: #0e7490; border: 1px solid #06b6d4; }
.gauge-pop { color: #e2e8f0; font-size: 13px; line-height: 1.4; }
.gauge-pop .dial-well { margin: 0 0 8px; padding: 6px 4px 2px; border-radius: 6px; background: #0f172a; }
.leaflet-popup.gauge-pop-wrap .leaflet-popup-content-wrapper { border-radius: 8px; background: var(--dock); color: var(--text); }
.leaflet-popup.gauge-pop-wrap .leaflet-popup-content { margin: 12px 14px; min-width: 180px; }
.leaflet-popup.gauge-pop-wrap .leaflet-popup-tip { background: var(--dock); }
.dial .unit, .dial small, .empty { color: var(--muted); }
.map { position: relative; z-index: 1; background: var(--bg); min-width: 0; min-height: 0; overflow: hidden; }
#cop-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-note { position: absolute; left: 0.6rem; bottom: 0.6rem; z-index: 500; margin: 0; color: var(--muted); background: rgba(7, 16, 24, 0.8); padding: 0.2rem 0.45rem; border-radius: 6px; }
.radar-scale, .rain-note { position: absolute; z-index: 500; margin: 0; padding: 0.4rem 0.5rem; border-radius: 8px; background: rgba(7, 16, 24, 0.92); color: var(--text); }
.radar-scale { top: 0.6rem; right: 0.6rem; width: 11rem; }
.rain-note { top: 4.6rem; left: 0.6rem; width: 10.5rem; }
/* Phone stack + quirks load AFTER this sheet via <link href="/browser-quirks.css"> (cascade). */
.radar-scale[hidden], .rain-note[hidden] { display: none; }
.radar-scale p, .rain-note p { margin: 0.3rem 0 0; font-size: 0.72rem; line-height: 1.35; color: var(--muted); }
.radar-scale strong, .rain-note strong { display: block; margin-bottom: 0.3rem; color: var(--text); font-size: 0.75rem; }
.radar-row { display: flex; align-items: center; gap: 0.35rem; margin: 0.12rem 0; font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.radar-swatch { width: 0.85rem; height: 0.55rem; border-radius: 2px; flex: none; }
.menu button, .menu a, .menu span { display: block; width: 100%; text-align: left; background: transparent; color: var(--text); border: 0; font: inherit; padding: 0.35rem 0.45rem; text-decoration: none; white-space: nowrap; }
.frame { position: absolute; inset: 0.6rem; }
.pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--pin); border: 2px solid #041018; }
body.cop-walk .cop-shield { position: fixed; inset: 0; z-index: 900; background: rgba(71, 85, 105, 0.55); }
body.cop-walk .glance, body.cop-walk .bar { pointer-events: none; }
body.cop-walk .cop-step { position: relative; z-index: 1100; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; margin: 0; padding: 0.45rem 1rem; background: var(--training); color: #fff; font-weight: 650; text-align: center; }
body.cop-walk .cop-step p, body.cop-walk .cop-step form { margin: 0; }
body.cop-walk .dock { z-index: 1100; flex-direction: row; flex-wrap: nowrap; direction: ltr; }
body.cop-walk .dock .menu { display: none !important; }
body.cop-walk .dock .dock-item.open .menu { display: grid !important; pointer-events: none; }
body.cop-walk .dock .menu .btn,
body.cop-walk .dock .menu .btn:disabled { opacity: 1; background: #7f1d1d; border-color: #ef4444; color: #fff; pointer-events: none; cursor: not-allowed; }
body.cop-walk .dock .dock-item > .btn, body.cop-walk .dock .dock-item > a.btn { background: #7f1d1d; border-color: #ef4444; color: #fff; pointer-events: none; }
body.cop-walk .dock .dock-item.is-step > .btn, body.cop-walk .dock .dock-item.is-step > a.btn { background: #166534; border-color: #4ade80; color: #fff; pointer-events: auto; cursor: pointer; }
body.cop-child .cop-shield { background: transparent; }
body.cop-child .dock .menu .is-child .btn { opacity: 1; background: #166534; border-color: #4ade80; color: #fff; pointer-events: auto; cursor: pointer; }
.lesson-page-bar { position: fixed; z-index: 1200; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; margin: 0; padding: 0.55rem 1rem; background: var(--training, #1d4ed8); color: #fff; font-weight: 650; text-align: center; }
.lesson-page-bar p, .lesson-page-bar form { margin: 0; }
.lesson-page-shield { position: fixed; z-index: 1100; inset: 0; background: transparent; }
.nav-dock .lesson-off .btn:disabled { opacity: 1; background: #7f1d1d; border-color: #ef4444; color: #fff; cursor: not-allowed; }
.lesson-live .btn, .lesson-live .btn:disabled, .nav-dock .lesson-live .btn { opacity: 1; background: #166534; border-color: #4ade80; color: #fff; }
.dock { position: relative; z-index: 1000; flex-shrink: 0; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 0.25rem; padding: 0.35rem; padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px)); background: var(--dock); border-top: 1px solid var(--line); }
.nav-menu.menu { display: grid; position: static; min-width: 14rem; }
.dock-item { position: relative; }
.menu { display: none; position: absolute; bottom: 2.4rem; left: 0; z-index: 1001; background: var(--panel); border: 1px solid var(--line); min-width: 14rem; padding: 0.3rem; }
.dock-item.open .menu, .dock-item:focus-within .menu { display: grid; }
.menu button.btn[aria-pressed="true"],
.menu a.btn[aria-pressed="true"] {
  background: #1d4ed8;
  border-color: #93c5fd;
  color: #fff;
}
.dock-item:nth-last-child(-n + 2) .menu { left: auto; right: 0; }

.sheet { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; padding: 0.6rem; }
.group { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem; overflow: hidden; }

.opt { display: block; margin: 0.25rem 0; }
.opt small { display: block; color: var(--muted); }
a { color: var(--pin); }
.dock-link { color: var(--text); text-decoration: none; display: inline-block; padding: 0.35rem 0.4rem; }
body.child { display: block; }
.back { position: absolute; top: 0.8rem; left: 0.9rem; }
.hero { height: 100vh; display: grid; align-content: center; justify-items: start; padding: 3rem 8vw; }
.kicker { margin: 0; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-size: 0.75rem; }
.hero h1 { margin: 0.3rem 0; font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 650; letter-spacing: -0.03em; }
.note { max-width: 36rem; color: var(--muted); }
.login-wrap { height: 100vh; display: grid; place-items: center; }
/* Sign-in is a document. The desk keeps overflow:hidden on html/body.
   These selectors outrank phone-stack's portrait html, body clip. */
html:has(body.login),
body.login {
  display: block;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: visible;
  overflow-y: auto;
}
body.login .login-wrap {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  align-content: center;
  overflow: visible;
  gap: 0.9rem;
  padding: 1.25rem 0 max(1.25rem, env(safe-area-inset-bottom, 0px));
}
.login-card { width: min(26rem, calc(100% - 2rem)); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem 1.4rem; }
.login-card h1 { margin: 0.2rem 0 0.8rem; font-size: 1.8rem; }
.login-card label { display: block; margin: 0.45rem 0; color: var(--muted); font-size: 0.85rem; }
.login-card input, .login-card select { width: 100%; margin-top: 0.2rem; background: #071018; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.5rem; font: inherit; }
.login-card .actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; }

.login-error { color: #f2c94c; }
html:has(body.work) { height: auto; overflow: auto; }
body.work { display: block; height: auto; min-height: 100%; overflow: auto; }
.work-main { max-width: 52rem; margin: 0 auto; padding: 4.2rem 1.2rem 2.5rem; }
.work-main h1 { margin: 0.3rem 0 0.8rem; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 650; letter-spacing: -0.03em; }
.work-main .login-card { width: min(36rem, 100%); margin: 0.6rem 0 1rem; }
textarea { width: 100%; min-height: 8rem; background: #071018; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem; font: inherit; }
.log-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; }
.log-table th, .log-table td { text-align: left; padding: 0.4rem 0.45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.log-table th { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.work-main .screen-grid { display: grid; gap: 0.8rem; margin: 0.8rem 0 1.2rem; }
@media (min-width: 800px) { .work-main .screen-grid { grid-template-columns: 1fr 1fr; } }
.work-main .screen-card, .work-main .screen-photo { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.work-main .screen-card { padding: 1rem 1.1rem 1.15rem; }
.work-main .screen-card h2, .work-main .screen-photo h2, .work-main .login-card h2 { margin: 0 0 0.45rem; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; text-transform: none; color: var(--text); }
.work-main .screen-card p { margin: 0.35rem 0; }

html:has(body.job-desk),
body.job-desk { height: auto; min-height: 100%; overflow: auto; }
body.job-desk .back { position: static; display: inline-block; margin: 0.75rem 1rem 0; }
body.job-desk .job-main {
  max-width: none;
  margin: 0;
  padding: 0.35rem 0.85rem 2rem;
}
body.job-desk .job-main > .kicker {
  margin: 0.35rem 0.15rem 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
body.job-desk .job-main > h1 {
  margin: 0.15rem 0.15rem 0.85rem;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
/* Finished seats: full-width seat banner across the desk (Ops, IC, Planning).
   Edge-to-edge so an EOC glance can read the job from a few feet away. */
body.job-desk.job-seat-finished .job-main > .kicker {
  margin: 0.45rem 0 0;
  padding: 0 1.1rem;
}
body.job-desk.job-seat-finished .job-main > h1,
body.job-desk.job-seat-finished .job-main > h1.job-seat-banner {
  display: block;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin: 0.35rem 0 1rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0.85rem 1.25rem 0.9rem;
  background: var(--dock);
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--pin);
  color: var(--text);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.05;
  text-align: center;
  text-transform: none; /* text already uppercase in markup */
}
body.job-desk .job-board {
  display: grid;
  grid-template-columns: minmax(16.5rem, 22rem) minmax(0, 1fr);
  gap: 0.85rem 1rem;
  padding: 0 0.15rem;
  align-items: start;
}
body.job-desk .job-side { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
body.job-desk .job-cop {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: visible;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(125, 211, 252, 0.06), 0 10px 28px rgba(0, 0, 0, 0.28);
}
body.job-desk .job-cop .bar { border-radius: 14px 14px 0 0; padding: 0.5rem 0.85rem; }
body.job-desk .job-cop .glance { height: min(48vh, 34rem); min-height: 16rem; flex: none; overflow: hidden; }
body.job-desk .job-cop .map { min-height: 16rem; }
body.job-desk .job-cop .bar { flex-wrap: wrap; }
body.job-desk .job-cop .clock { margin-left: auto; }
body.job-desk .job-cop .dock { flex-wrap: wrap; border-radius: 0 0 14px 14px; }
body.job-desk .job-map-note {
  margin: 0;
  padding: 0.4rem 0.85rem 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
body.job-desk .job-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
body.job-desk .job-tools li {
  margin: 0;
  padding: 0.7rem 0.85rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
body.job-desk .job-tools li > p:first-child {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
body.job-desk .job-tools li > p:first-child strong {
  display: block;
  margin: 0 0 0.2rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
body.job-desk .job-tools p { margin: 0.3rem 0; }
body.job-desk .job-tools .opt { margin: 0.15rem 0 0; }
body.job-desk .job-profile {
  margin: 0;
  padding: 0.75rem 0.85rem 0.85rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
body.job-desk .job-profile p { margin: 0.4rem 0; line-height: 1.45; }
body.job-desk .job-profile p:first-child { margin-top: 0; }
body.job-desk .job-profile p:last-child { margin-bottom: 0; }
body.job-desk .job-profile .note { font-size: 0.82rem; }
body.job-desk .job-rest {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
body.job-desk .job-rest > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
body.job-desk .job-rest .screen-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem 0.95rem;
}
body.job-desk .job-rest .screen-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}
body.job-desk .job-rest .screen-card p { margin: 0.35rem 0; line-height: 1.4; }
body.job-desk .job-rest .note { max-width: 44rem; }
@media (max-width: 800px) {
  body.job-desk .job-main { padding: 0.25rem 0.7rem 1.6rem; }
  body.job-desk.job-seat-finished .job-main > h1,
  body.job-desk.job-seat-finished .job-main > h1.job-seat-banner {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    letter-spacing: 0.1em;
    padding: 0.7rem 0.85rem 0.75rem;
  }
  body.job-desk .job-board { grid-template-columns: 1fr; gap: 0.75rem; }
  body.job-desk .job-cop { grid-column: 1; grid-row: auto; min-height: 0; }
  body.job-desk .job-cop .glance { height: 18rem; }
  body.job-desk .job-side { grid-row: auto; }
}
.screen-photo { margin: 0.8rem 0; overflow: hidden; }
.screen-photo img { display: block; width: 100%; height: auto; background: #071018; }
.screen-photo figcaption { padding: 0.75rem 1rem 1rem; }
.login-card label.check { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--text); }
.login-card label.check input { width: auto; margin-top: 0.2rem; }
.login-card label.check small { display: block; color: var(--muted); }


/* NWS COP warning banner — high contrast above radar tiles; not posture color. */
.nws-warn-banner {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: min(36rem, calc(100% - 1.4rem));
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 3px solid #fbbf24;
  border-radius: 10px;
  background: linear-gradient(165deg, #7f1d1d 0%, #450a0a 55%, #1c1917 100%);
  color: #fffbeb;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 28px rgba(251, 191, 36, 0.35);
  pointer-events: auto;
}
.nws-warn-banner[hidden] { display: none !important; }
.nws-warn-banner-body { flex: 1 1 14rem; min-width: 0; }
.nws-warn-banner-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.15rem;
}
.nws-warn-banner-kicker {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fde68a;
}
.nws-warn-banner-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fecaca;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}
.nws-warn-banner-event {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.nws-warn-banner-headline {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.35;
  color: #fef3c7;
}
.nws-warn-banner-ack {
  flex: 0 0 auto;
  min-height: 2.75rem;
  min-width: 5.5rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: #fbbf24;
  color: #1c1917;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 2px 0 #92400e;
}
.nws-warn-banner-ack:hover { background: #fcd34d; }
.nws-warn-banner-ack:active { transform: translateY(1px); box-shadow: none; }
.nws-warn-banner-ack:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Draggable dials|map splitter (landscape / side-by-side only). */
.glance > .glance-split {
  flex: 0 0 6px;
  width: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--dock);
  cursor: col-resize;
  touch-action: none;
  position: relative;
  z-index: 3;
  align-self: stretch;
  -webkit-user-select: none;
  user-select: none;
}
.glance > .glance-split::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2.2rem;
  transform: translate(-50%, -50%);
  border-radius: 1px;
  background: rgba(148, 163, 184, 0.85);
  pointer-events: none;
}
.glance > .glance-split:hover,
.glance > .glance-split:focus-visible,
.glance > .glance-split.is-dragging {
  background: #1e293b;
  outline: none;
}
.glance > .glance-split:focus-visible {
  box-shadow: inset 0 0 0 2px #38bdf8;
}
body.glance-splitting { cursor: col-resize; }
body.glance-splitting .glance > .dials,
body.glance-splitting .glance > .map { pointer-events: none; }
.glance.gauges-hide > .glance-split { display: none; }
/* Two-column dials (Harris/Chemung prior proportions). */
.dials {
  grid-template-columns: 1fr 1fr;
}
