/* ALC Operations. Flat institutional palette from the design handoff. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  /* ALC brand system: plum #3B1F2B, Mandela red #B33A2E, leadership orange #D9772B, Africa gold #D4A34F, slate #536779, warm fog #F6F4F1. */
  --navy: #3b1f2b; --navy-2: #4b2836; --navy-3: #5d3444;
  --orange: #d9772b; --orange-ink: #a2541a;
  --bg: #f6f4f1; --surface: #fff; --ink: #2a1a21; --slate: #536779; --muted: #5d5a63;
  --line: #e7e1dc; --line-2: #cfc6bf;
  --green: #2e7d4f; --green-ink: #22633d; --green-bg: #e8f3ec;
  --amber: #d4a34f; --amber-ink: #7a5a12; --amber-bg: #fbf3e2;
  --red: #b33a2e; --red-ink: #962f25; --red-bg: #f9ebe8;
  --blue-ink: #2a5785; --blue-bg: #eaf1f8;
  --focus: #2f6db3;
  --r: 10px; --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --shadow: 0 1px 2px rgba(59, 31, 43, .06), 0 1px 1px rgba(59, 31, 43, .04);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--navy-3); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 28px; letter-spacing: -0.5px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
p { margin: 0 0 8px; }
.icon { flex: none; vertical-align: -3px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); color: var(--navy); padding: 10px 14px; border-radius: var(--r); z-index: 100; font-weight: 600; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; position: relative; }
.shell::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 232px; background: var(--navy); z-index: 0; }
.main { position: relative; z-index: 1; }
.sidebar { z-index: 1; }
.sidebar { background: var(--navy); color: #f3e9ec; padding: 24px 12px 16px; min-height: 100vh; display: flex; flex-direction: column; }
.nav { margin-top: 24px; display: grid; gap: 2px; }
.nav .group { font-size: 10px; letter-spacing: 1.6px; color: #d4bfc6; padding: 14px 10px 6px; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; color: #f3e9ec; text-decoration: none; border-radius: 4px; border-left: 3px solid transparent; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--navy-3); border-left-color: var(--orange); color: #fff; font-weight: 600; }
.nav .count { margin-left: auto; font: 600 11px var(--mono); background: var(--orange); color: #2a1a21; border-radius: 10px; padding: 0 7px; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 0; font-size: 11px; color: #e2d2d8; border-top: 1px solid var(--navy-3); }
.sidebar-foot .mode { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 10px; }
.sidebar-foot form { margin-top: 10px; }
.sidebar-foot button { background: transparent; color: #f3e9ec; border: 1px solid var(--navy-3); width: 100%; }
.sidebar-foot button:hover { background: var(--navy-2); }
.topbar { display: none; }
.main { padding: 28px 36px 48px; max-width: 1500px; width: 100%; margin: 0 auto; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow { font-size: 10px; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.edition { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0 18px; margin-bottom: 20px; flex-wrap: wrap; }
.edition .when { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.edition select { min-height: 36px; }

/* Layout helpers */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.section { margin-top: 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row.start { justify-content: flex-start; }
.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Panels and metrics */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.panel.flush { padding: 0; }
.panel.flush > h2 { padding: 16px 18px 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric { font: 600 26px/1.4 var(--mono); letter-spacing: -1px; }
.metric.bad { color: var(--red-ink); }
.metric.good { color: var(--green-ink); }
.metric-note { font-size: 12px; color: var(--muted); }
.qualifier { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--amber-ink); background: var(--amber-bg); border-radius: 3px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }

.bar { height: 10px; background: #e5e9ee; border-radius: 3px; overflow: hidden; margin: 8px 0; display: flex; }
.bar i { display: block; background: var(--green); height: 100%; }
.bar i.amber { background: var(--amber); }
.bar i.red { background: var(--red); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--green); }
.legend span.amber::before { background: var(--amber); }
.legend span.teal::before { background: #5f9e7d; }
.legend span.grey::before { background: #e5e9ee; border: 1px solid var(--line-2); }

.item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.list-plain { list-style: none; margin: 0; padding: 0; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; border-radius: 3px; padding: 2px 7px; border: 1px solid transparent; white-space: nowrap; }
.badge-ok { background: var(--green-bg); color: var(--green-ink); border-color: #cfe5d8; }
.badge-warn { background: var(--amber-bg); color: var(--amber-ink); border-color: #f0dfb9; }
.badge-bad { background: var(--red-bg); color: var(--red-ink); border-color: #efcfc8; }
.badge-neutral { background: #eef1f4; color: var(--slate); border-color: var(--line); }
.tag { font-size: 11px; color: var(--slate); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; background: #fafbfc; }

/* Controls */
button, .btn, input, select, textarea { font: inherit; color: var(--ink); }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); cursor: pointer; text-decoration: none; white-space: nowrap; }
button:hover, .btn:hover { background: #f0f3f6; color: var(--ink); }
.btn-primary, button.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover, button.primary:hover { background: var(--navy-3); color: #fff; }
.btn-danger { color: var(--red-ink); border-color: #e2b9b0; }
.btn-sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }
button:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-btn { border: 0; background: none; padding: 0; min-height: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { background: none; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--navy); vertical-align: -3px; }
input[type=range] { width: 100%; accent-color: var(--navy); }
label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 4px; }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; min-height: 44px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; max-width: 100%; }
.seg a { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); background: var(--surface); }
.seg a + a { border-left: 1px solid var(--line-2); }
.seg a[aria-current="true"] { background: var(--navy); color: #fff; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px 14px; margin: 12px 0 0; }
legend { font-weight: 600; font-size: 13px; padding: 0 6px; }

/* Tables */
.tablewrap { overflow-x: auto; position: relative; }
.tablewrap:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
tbody tr:hover { background: #fafbfc; }
tfoot td { font-weight: 600; border-bottom: 0; }

/* Alerts and states */
.alert { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; background: var(--surface); }
.alert-info { border-left-color: var(--navy-3); }
.alert-ok { border-left-color: var(--green); background: var(--green-bg); }
.alert-warn { border-left-color: var(--amber); background: var(--amber-bg); }
.alert-bad { border-left-color: var(--red); background: var(--red-bg); }
.alert ul { margin: 0; padding-left: 18px; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .icon { width: 28px; height: 28px; color: var(--line-2); display: block; margin: 0 auto 8px; }
.state-block { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 14px; color: var(--muted); background: #fafbfc; }

/* Tasks */
.task-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-row form { margin: 0; }
.task-title { font-weight: 500; }
.task-title a { color: var(--ink); text-decoration: none; }
.task-title a:hover { text-decoration: underline; }
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 2px; align-items: center; }
.done .task-title { color: var(--muted); text-decoration: line-through; }
.check-btn { min-height: 44px; min-width: 44px; padding: 0; border-radius: 50%; border: 0; background: transparent; }
.check-btn .box { width: 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); }
.check-btn[aria-pressed="true"] .box { background: var(--green); border-color: var(--green); color: #fff; }
.project-card { display: block; text-decoration: none; color: inherit; }
.project-card:hover { border-color: var(--slate); color: inherit; }
.project-card[aria-current="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lane { background: #e9edf1; padding: 10px; border-radius: var(--r); min-width: 0; }
.lane .muted { color: #46576a; }
.lane h3 { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 4px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin-top: 8px; }
.card .title { font-weight: 500; display: block; color: var(--ink); text-decoration: none; margin: 2px 0 6px; }
.card .title:hover { text-decoration: underline; }
.group-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 6px; }
.group-head:first-child { margin-top: 0; }

/* Detail drawer (task) */
.drawer-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 16px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--slate); }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); font-size: 12px; }
.kv dd { margin: 0; }

/* Architecture & agents */
.flow { text-align: center; padding: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); }
.flow.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.flow small { display: block; color: var(--muted); }
.flow.dark small { color: #e2d2d8; }
.arrow { text-align: center; color: var(--muted); padding: 6px; }
.agent-card .meta { font-size: 12px; color: var(--muted); }
pre.briefing { white-space: pre-wrap; font: inherit; margin: 0; }
.code { font-family: var(--mono); font-size: 12px; background: #f0f3f6; border-radius: 3px; padding: 1px 5px; overflow-wrap: anywhere; }

/* Auth screens */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .panel { width: min(440px, 100%); padding: 28px; }
.auth .brand-dark { font-size: 22px; font-weight: 700; letter-spacing: 1px; color: var(--navy); }
.auth .brand-dark span { display: block; font-size: 10px; letter-spacing: 2.4px; color: var(--slate); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---- Brand board components ---- */
.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; text-decoration: none; letter-spacing: 0; color: #fff; }
.brand .brand-img { width: 112px; height: auto; flex: none; }
.brand-divider { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .45); margin: 6px 0; }
.brand-caption { font-size: 13px; font-weight: 600; line-height: 1.25; color: #fff; }
.brand .brand-mark { width: 30px; height: 30px; }
.auth-brand .brand .brand-img { width: 220px; }
.auth-brand .brand-caption { font-size: 20px; }
.brand-swoosh { display: block; max-width: 100%; }
.panel { border-color: var(--line); box-shadow: var(--shadow); }
button, .btn { border-radius: 8px; font-weight: 500; }
.btn-primary, button.primary { box-shadow: 0 1px 2px rgba(15, 45, 74, .2); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
.bar { height: 10px; border-radius: 999px; background: #e3e8ed; }
.bar i:first-child { border-radius: 999px 0 0 999px; }
.bar i:only-child { border-radius: 999px; }
.badge { border-radius: 999px; padding: 3px 10px 3px 8px; gap: 5px; font-weight: 600; }
.badge .icon { vertical-align: 0; }
.badge-done { background: var(--green); color: #fff; border-color: var(--green); }
.badge-progress { background: var(--blue-bg); color: var(--blue-ink); border-color: #c9dbee; }
.badge-ok { background: var(--green-bg); color: var(--green-ink); border-color: #cde6d8; }
.badge-warn { background: var(--amber-bg); color: var(--amber-ink); border-color: #f0dcae; }
.badge-bad { background: var(--red-bg); color: var(--red-ink); border-color: #f5c9c6; }
.badge-neutral { background: #f1ede9; color: #4f4a52; border-color: var(--line); }
.prio-high { background: var(--red-bg); color: var(--red-ink); border-color: #f5c9c6; }
.prio-medium { background: var(--amber-bg); color: var(--amber-ink); border-color: #f0dcae; }
.prio-low { background: var(--green-bg); color: var(--green-ink); border-color: #cde6d8; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 3px 9px; white-space: nowrap; }
.chip .icon { color: var(--navy-3); }
.check-btn[aria-pressed="true"] .box { background: var(--green); border-color: var(--green); }
.check-btn .box { border-radius: 5px; }

/* Edition tile (project tile from the board) */
.tile { border-left: 4px solid var(--orange); }
.tile-head { display: flex; gap: 12px; align-items: flex-start; }
.tile-head .tile-ic { width: 40px; height: 40px; border-radius: 8px; background: #f3ebe6; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tile h2 { font-size: 18px; margin: 0; }
.tile-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--slate); font-size: 13px; margin-top: 10px; }
.tile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-card { border-left: 4px solid var(--orange); }
.project-card.blocked { border-left-color: var(--red); }
.project-card.idle { border-left-color: var(--line-2); }

/* Phase stepper */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 4px; padding: 0; position: relative; }
.stepper li { text-align: center; position: relative; font-size: 13px; color: var(--slate); }
.stepper li::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 3px; background: var(--line-2); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.current::before { background: var(--green); }
.stepper .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.stepper li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.stepper li.current .dot { border-color: var(--orange); }
.stepper li.current { color: var(--ink); font-weight: 600; }

/* Readiness donut */
.donut { display: flex; align-items: center; gap: 18px; }
.donut svg { flex: none; }
.donut .big { font: 600 28px/1 var(--mono); }

/* Send from Outlook */
.send-panel { border-left: 4px solid var(--navy); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; }
.steps-list { margin: 0 0 4px; padding-left: 18px; }

/* Login */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-brand { background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand .brand-text strong { font-size: 40px; }
.auth-brand .brand-text span { font-size: 16px; }
.auth-brand .brand .brand-mark { width: 72px; height: 72px; }
.auth-brand h2 { color: #fff; font-size: 22px; font-weight: 600; margin-top: 28px; }
.auth-brand p { color: #e2d2d8; max-width: 30em; }
.auth-form { display: grid; place-items: center; padding: 24px; }
.auth-form .panel { width: min(420px, 100%); padding: 28px; }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; } .auth-brand { padding: 24px; } .auth-brand .brand-arcs { display: none; } }

/* Responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.side, .drawer-page { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper li { font-size: 12px; }
}
@media (max-width: 860px) {
  .shell { display: block; }
  .shell::before { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--navy); color: #fff; padding: 8px 12px; position: sticky; top: 0; z-index: 30; }
  .topbar .brand { font-size: 18px; padding: 0; }
  .topbar button { background: transparent; color: #fff; border-color: var(--navy-3); min-width: 44px; min-height: 44px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100%; z-index: 50; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 0 100vmax rgba(32, 54, 76, 0); visibility: hidden; }
  .sidebar.open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(32, 54, 76, .45); }
  .sidebar .close-nav { display: inline-flex; }
  .main { padding: 18px 16px 40px; }
  .grid.two { grid-template-columns: minmax(0, 1fr); }
  .seg a { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 560px) {
  .grid, .grid.three, .board, .field-row, .field-row.three { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 24px; }
  .metric { font-size: 22px; }
  .edition { flex-direction: column; align-items: flex-start; }
  .toolbar input, .toolbar select { width: 100%; }
  .kv { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: auto minmax(0, 1fr); }
  .task-row > :last-child { grid-column: 2; justify-self: start; }
  th, td { padding: 8px 6px; }
}
.close-nav { display: none; position: absolute; right: 8px; top: 8px; background: transparent; color: #fff; border-color: var(--navy-3); min-width: 44px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .sidebar, .topbar, .actions, .toolbar, form button { display: none !important; } .shell { display: block; } .panel { break-inside: avoid; } }
