:root {
  --ground: #07100b;
  --ground-raised: #0b1510;
  --ground-active: #111e16;
  --ink: #f0eee3;
  --ink-soft: #d2d2c5;
  --muted: #98a098;
  --dim: #626d65;
  --line: rgba(204, 219, 205, .13);
  --line-strong: rgba(204, 219, 205, .25);
  --signal: #a7e77d;
  --signal-deep: #557c3c;
  --amber: #e1bd72;
  --red: #df7865;
  --blue: #88b9d2;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --content: min(1440px, calc(100vw - 4rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ground); }
body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(112, 145, 96, .07), transparent 28rem),
    linear-gradient(rgba(255,255,255,.012), rgba(255,255,255,0) 40rem),
    var(--ground);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: '';
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, summary, [role='button'] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [role='button']:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; }
h1 { margin-bottom: 0; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .95; text-wrap: balance; }
h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1; }
a { color: inherit; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 50; padding: .7rem 1rem; color: #07100b; background: var(--signal); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.topbar, .view-tabs, main { width: var(--content); margin-inline: auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 11, .91);
  backdrop-filter: blur(14px);
}
.brand-lockup { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand-lockup img { width: 38px; height: 38px; border-radius: 3px; object-fit: cover; }
.wordmark { font-family: var(--display); font-size: 1.42rem; letter-spacing: -.03em; }
.top-actions { display: flex; align-items: center; gap: .7rem; }
.clock { color: var(--dim); font-family: var(--mono); font-size: .65rem; font-variant-numeric: tabular-nums; }
.sync-button, .account-menu summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: .48rem;
  padding: 0 .75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.sync-button:hover, .account-menu summary:hover { border-color: var(--line-strong); color: var(--ink); }
.sync-button:active { transform: translateY(1px); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.status-dot.offline { background: var(--red); }
.status-dot.received { animation: receipt .65s ease-out; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu button { position: absolute; top: calc(100% + .5rem); right: 0; width: 110px; padding: .72rem; border: 1px solid var(--line-strong); background: var(--ground-raised); cursor: pointer; }

.view-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.view-tabs::-webkit-scrollbar, .mission-board::-webkit-scrollbar, .history-map::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 1rem 1.25rem; border: 0; color: var(--dim); background: transparent; cursor: pointer; }
.tab:first-child { padding-left: 0; }
.tab:hover { color: var(--ink-soft); }
.tab.active { color: var(--signal); background: rgba(167, 231, 125, .055); }

.orientation { min-height: 340px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.orientation[hidden] { display: none; }
.commander-brief { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .32fr); gap: clamp(3rem, 8vw, 8rem); align-items: end; padding: clamp(3rem, 5vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem); }
.brief-copy { max-width: 1000px; }
.brief-kicker { display: block; margin-bottom: 1.5rem; color: var(--signal); font-size: .74rem; font-weight: 600; letter-spacing: .06em; }
.brief-copy h1 { max-width: 1000px; font-size: clamp(3rem, 5.2vw, 5.35rem); }
.brief-copy > p { max-width: 760px; margin: 1.8rem 0 0; color: var(--muted); font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.65; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.text-action { padding: 0 0 .18rem; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--ink-soft); background: transparent; cursor: pointer; text-align: left; }
.text-action:hover { color: var(--signal); border-color: var(--signal); }
.watch-note { display: grid; gap: .75rem; padding: 1.1rem 0 0 1.2rem; border-top: 1px solid var(--signal-deep); border-left: 1px solid var(--line); }
.watch-note strong { font-family: var(--display); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.watch-note span { color: var(--dim); font-family: var(--mono); font-size: .62rem; line-height: 1.5; }

.view { display: none; padding: clamp(4rem, 7vw, 7.5rem) 0 8rem; animation: view-in .2s ease both; }
.view.active { display: block; }
.section-heading, .panel-heading, .modal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-heading { margin-bottom: clamp(2rem, 4vw, 4rem); }
.section-heading h1 { font-size: clamp(2.7rem, 5vw, 5rem); }
.section-heading p { max-width: 680px; margin: .85rem 0 0; color: var(--muted); line-height: 1.65; }
.primary, form > button[type='submit'] { min-height: 44px; padding: .75rem 1rem; border: 1px solid var(--signal); border-radius: 2px; color: #07100b; background: var(--signal); font-weight: 600; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.primary:hover, form > button[type='submit']:hover { background: #b8f28f; }
.primary:active, form > button[type='submit']:active { transform: translateY(1px); }
.inline-status { min-height: 1.5rem; margin: -1.5rem 0 .8rem; color: var(--dim); font-size: .76rem; }
.inline-status.success { color: var(--signal); }
.inline-status.error { color: var(--red); }

.mission-board { display: flex; min-height: 500px; overflow-x: auto; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.board-column { flex: 1 1 230px; min-width: 215px; border-right: 1px solid var(--line); transition: background .16s ease, box-shadow .16s ease; }
.board-column:last-child { border-right: 0; }
.board-column.is-empty { flex: 0 0 105px; min-width: 105px; }
.board-column.drop-target { background: rgba(167, 231, 125, .055); box-shadow: inset 0 3px var(--signal); }
.column-head { display: flex; min-height: 62px; align-items: center; justify-content: space-between; padding: .8rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.column-head span:last-child { color: var(--dim); font-family: var(--mono); }
.is-empty .column-head { writing-mode: vertical-rl; min-height: 120px; justify-content: flex-start; gap: .6rem; }
.column-body { min-height: 430px; padding: .65rem; }
.is-empty .column-body { padding-inline: .3rem; }
.mission-card { position: relative; margin-bottom: .58rem; padding: .95rem .9rem 1rem; border-left: 2px solid var(--signal); background: rgba(16, 24, 18, .84); cursor: pointer; transition: background .16s ease, transform .16s ease, opacity .16s ease; }
.mission-card[draggable='true'] { cursor: grab; }
.mission-card:hover { background: var(--ground-active); transform: translateX(2px); }
.mission-card.dragging { opacity: .32; cursor: grabbing; }
.state-blocked .mission-card, .state-retry .mission-card { border-left-color: var(--amber); }
.state-review .mission-card { border-left-color: var(--blue); }
.state-done .mission-card { border-left-color: var(--dim); opacity: .72; }
.card-topline { display: flex; justify-content: space-between; gap: .6rem; color: var(--dim); font-size: .58rem; line-height: 1.3; }
.card-topline span:first-child { color: var(--muted); }
.mission-card h3 { margin: .72rem 0 1rem; color: var(--ink-soft); font-size: .87rem; line-height: 1.48; font-weight: 500; }
.mission-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .38rem; color: var(--dim); font-family: var(--mono); font-size: .56rem; }
.badge { display: inline-flex; padding: .2rem .38rem; border: 1px solid var(--line-strong); color: var(--muted); font-style: normal; }
.badge.green { color: var(--signal); border-color: rgba(167, 231, 125, .28); }
.badge.amber { color: var(--amber); border-color: rgba(225, 189, 114, .3); }
.badge.red { color: var(--red); border-color: rgba(223, 120, 101, .3); }
.badge.blue { color: var(--blue); border-color: rgba(136, 185, 210, .3); }
.empty-state, .loading-card { padding: 2rem 1rem; color: var(--dim); font-size: .72rem; text-align: center; }
.board-column.is-empty .empty-state { writing-mode: vertical-rl; padding: 1rem .25rem; text-align: left; }

.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: 5.5rem; }
.panel { min-width: 0; }
.panel-heading { min-height: 42px; margin-bottom: .7rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line-strong); }
.panel-heading h2 { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.panel-heading span { color: var(--dim); font-size: .65rem; }
.decision-list { display: grid; }
.decision-item { display: grid; grid-template-columns: 115px 1fr auto; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.decision-item > span, .decision-item small { color: var(--dim); font-size: .64rem; }
.decision-item strong { font-family: var(--display); font-size: 1.07rem; font-weight: 500; line-height: 1.35; }
.decision-item:hover strong { color: var(--signal); }
.activity-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.item-head { display: flex; flex-wrap: wrap; gap: .55rem; align-items: baseline; color: var(--dim); font-size: .63rem; }
.item-head strong { color: var(--ink-soft); }
.item-head time { margin-left: auto; }
.activity-item p { margin: .55rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

.map-key { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; color: var(--dim); font-size: .64rem; }
.map-key span { display: inline-flex; align-items: center; gap: .38rem; }
.map-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.map-key .key-live { background: var(--signal); }
.map-key .key-ready { background: var(--blue); }
.map-key .key-blocked { background: var(--amber); }
.map-key .key-retired { border: 1px solid var(--dim); background: transparent; }
.theater-map { min-height: 570px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); overflow: hidden; }
.theater-map svg { display: block; width: 100%; min-width: 760px; }
.theater-link { stroke: rgba(204,219,205,.1); stroke-width: 1; }
.theater-link.moving { stroke: rgba(167,231,125,.36); }
.theater-link.ready { stroke: rgba(136,185,210,.3); }
.theater-link.blocked { stroke: rgba(225,189,114,.24); stroke-dasharray: 5 6; }
.commander-node circle { fill: #0f1b13; stroke: var(--signal); stroke-width: 1.5; }
.commander-node text { fill: var(--ink); font-family: var(--mono); font-size: 13px; letter-spacing: 1px; }
.commander-node text:last-child { fill: var(--signal); font-size: 9px; }
.theater-node { cursor: pointer; }
.theater-node circle { fill: #101b14; stroke: var(--dim); stroke-width: 1.2; transition: fill .16s ease, stroke .16s ease; }
.theater-node text { fill: var(--muted); font-family: var(--body); font-size: 12px; }
.theater-node.moving circle { fill: rgba(167,231,125,.18); stroke: var(--signal); }
.theater-node.ready circle { fill: rgba(136,185,210,.14); stroke: var(--blue); }
.theater-node.blocked circle { fill: rgba(225,189,114,.09); stroke: var(--amber); }
.theater-node.selected circle, .theater-node:hover circle { fill: var(--signal); stroke: var(--ink); }
.theater-node.selected text, .theater-node:hover text { fill: var(--ink); }
.retired-line { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; padding: 1rem 0; color: var(--dim); font-size: .65rem; }
.retired-line button { padding: .3rem .5rem; border: 1px solid var(--line); color: var(--dim); background: transparent; cursor: pointer; }
.retired-line button:hover, .retired-line button.selected { color: var(--ink-soft); border-color: var(--line-strong); }
.theater-detail-panel { display: grid; grid-template-columns: minmax(200px,.55fr) minmax(280px,1fr) minmax(220px,.7fr); gap: clamp(2rem,5vw,5rem); padding: 2rem 0; border-bottom: 1px solid var(--line); }
.theater-detail-panel h2 { margin-top: .8rem; }
.detail-status { color: var(--dim); font-size: .65rem; }
.detail-status.moving { color: var(--signal); }
.detail-status.ready { color: var(--blue); }
.detail-status.blocked { color: var(--amber); }
.theater-front { display: grid; align-content: start; gap: .65rem; }
.theater-front > span { color: var(--dim); font-size: .64rem; }
.theater-front strong { font-family: var(--display); font-size: 1.15rem; font-weight: 500; line-height: 1.42; }
.campaign-chips { display: flex; align-content: start; flex-wrap: wrap; gap: .4rem; }
.campaign-chips span { padding: .35rem .5rem; border: 1px solid var(--line); color: var(--muted); font-size: .64rem; }
.theater-latest { grid-column: 2 / -1; display: grid; }
.theater-latest button { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: .75rem 0; border: 0; border-top: 1px solid var(--line); color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.theater-latest time { color: var(--dim); font-size: .62rem; }
.theater-latest button:hover span { color: var(--signal); }

.history-heading { align-items: end; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); }
.segmented button { padding: .5rem .75rem; border: 0; color: var(--dim); background: transparent; cursor: pointer; }
.segmented button.active { color: #07100b; background: var(--signal); }
.history-coverage { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-bottom: 1rem; padding: 1rem 0; border-top: 1px solid var(--signal-deep); border-bottom: 1px solid var(--line); color: var(--dim); font-size: .72rem; line-height: 1.5; }
.history-coverage strong { color: var(--ink-soft); }
.history-controls { display: grid; grid-template-columns: 1fr 220px 220px; gap: .55rem; margin: 1.3rem 0; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink); background: rgba(12,21,15,.94); }
input, select { min-height: 42px; padding: .65rem .72rem; }
textarea { resize: vertical; padding: .78rem; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--dim); }
.history-map { overflow-x: auto; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.history-map svg { display: block; width: max(100%, 1180px); min-height: 360px; }
.month-tick line { stroke: rgba(204,219,205,.055); stroke-width: 1; }
.month-tick text { fill: var(--dim); font-family: var(--mono); font-size: 10px; }
.lane-label { fill: var(--muted); font-family: var(--body); font-size: 12px; }
.lane-rule { stroke: rgba(204,219,205,.08); stroke-width: 1; }
.source-span { stroke: rgba(204,219,205,.26); stroke-width: 3; stroke-linecap: round; }
.campaign-line { fill: none; stroke: var(--signal-deep); stroke-width: 2; }
.campaign-node { fill: var(--ground); stroke: var(--muted); stroke-width: 2; cursor: pointer; }
.campaign-node.green { fill: var(--signal); stroke: var(--signal); }
.campaign-node.blue { fill: var(--blue); stroke: var(--blue); }
.campaign-node.amber { fill: var(--amber); stroke: var(--amber); }
.campaign-node.red { fill: var(--red); stroke: var(--red); }
.campaign-node:hover, .campaign-node:focus { stroke: var(--ink); stroke-width: 4; }
.history-detail { display: grid; grid-template-columns: minmax(210px,.7fr) minmax(360px,1.4fr) minmax(130px,.35fr); gap: clamp(2rem,5vw,5rem); min-height: 225px; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.history-detail > div > span { color: var(--dim); font-size: .65rem; }
.history-detail h2 { margin-top: .7rem; font-size: clamp(1.5rem,2.8vw,2.5rem); }
.history-detail p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.history-detail p strong { display: block; margin-bottom: .25rem; color: var(--ink-soft); }
.history-proof { display: flex; align-items: flex-start; flex-direction: column; gap: .8rem; }
.history-proof time { color: var(--dim); font-size: .65rem; }
.history-list { border-top: 1px solid var(--line-strong); }
.history-item { width: 100%; display: grid; grid-template-columns: 150px 1fr 145px; gap: 1.5rem; align-items: start; padding: 1.2rem 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.history-item time, .history-item small { color: var(--dim); font-size: .64rem; }
.history-item strong { display: block; margin: .5rem 0 .35rem; font-family: var(--display); font-size: 1.16rem; font-weight: 500; line-height: 1.35; }
.history-item em { display: block; color: var(--muted); font-size: .78rem; font-style: normal; line-height: 1.5; }
.history-item:hover strong { color: var(--signal); }

.comms-layout { display: grid; grid-template-columns: minmax(320px,.72fr) minmax(430px,1.28fr); gap: clamp(2rem,6vw,6rem); align-items: start; border-top: 1px solid var(--line-strong); }
.compose-panel { position: sticky; top: 85px; display: grid; gap: 1rem; padding-top: 1.25rem; }
.compose-panel label, .modal-card label { display: grid; gap: .45rem; color: var(--muted); font-size: .72rem; }
.message-options { padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.message-options summary { color: var(--muted); cursor: pointer; }
.message-options[open] summary { margin-bottom: .9rem; color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.optional { color: var(--dim); font-size: .65rem; }
.channel-panel { min-height: 500px; padding-top: .2rem; }
.message-item { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.message-item p { margin: .65rem 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.58; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-foot { display: flex; justify-content: space-between; gap: 1rem; color: var(--dim); font-size: .6rem; }

dialog { width: min(720px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink); background: var(--ground-raised); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(2,8,4,.78); backdrop-filter: blur(4px); }
.modal-card { display: grid; gap: 1rem; padding: clamp(1.3rem,4vw,2.5rem); }
.modal-heading { align-items: flex-start; }
.modal-heading h2 { font-size: 2.3rem; }
.modal-card > p { max-width: 580px; color: var(--muted); line-height: 1.6; }
.icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 1.3rem; cursor: pointer; }
.form-status { min-height: 1.1rem; color: var(--amber); font-size: .76rem; }
.form-status.success { color: var(--signal); }
.mission-detail-card h3 { margin: .2rem 0 0; font-family: var(--display); font-size: clamp(1.5rem,3vw,2.4rem); font-weight: 500; line-height: 1.35; }
.mission-detail-card p { color: var(--muted); line-height: 1.6; }
.mission-detail-card dl { display: grid; gap: .7rem; margin: 1.4rem 0 0; }
.mission-detail-card dl div { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.mission-detail-card dt { color: var(--dim); font-size: .65rem; }
.mission-detail-card dd { margin: 0; color: var(--ink-soft); font-family: var(--mono); font-size: .66rem; overflow-wrap: anywhere; }

.login-shell { display: grid; min-height: 100dvh; place-items: center; padding: 1.2rem; }
.login-panel { position: relative; width: min(560px,100%); padding: clamp(1.8rem,7vw,4.2rem); border-top: 1px solid var(--signal); border-bottom: 1px solid var(--line); background: rgba(10,14,11,.96); }
.login-panel h1 { max-width: 420px; margin: 2.3rem 0 1rem; font-size: clamp(3rem,10vw,5.5rem); }
.login-panel p { max-width: 410px; color: var(--muted); line-height: 1.65; }
.login-panel small { display: block; margin-top: 1.6rem; color: var(--dim); line-height: 1.5; }
.stack { display: grid; gap: 1rem; margin-top: 2rem; }

@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes receipt { 0% { box-shadow: 0 0 0 0 rgba(167,231,125,.6); } 100% { box-shadow: 0 0 0 12px rgba(167,231,125,0); } }

@media (max-width: 980px) {
  :root { --content: min(100% - 2.4rem, 1440px); }
  .commander-brief { grid-template-columns: 1fr; gap: 2.5rem; }
  .watch-note { max-width: 520px; }
  .lower-grid, .comms-layout { grid-template-columns: 1fr; }
  .compose-panel { position: static; }
  .theater-map { overflow-x: auto; }
  .theater-detail-panel { grid-template-columns: 1fr 1fr; }
  .theater-latest { grid-column: 1 / -1; }
  .history-detail { grid-template-columns: 1fr 1.4fr; }
  .history-proof { grid-column: 1 / -1; flex-direction: row; }
}

@media (max-width: 680px) {
  :root { --content: calc(100% - 2rem); }
  .topbar { min-height: 62px; }
  .brand-lockup img { width: 32px; height: 32px; }
  .wordmark { font-size: 1.14rem; }
  .clock { display: none; }
  .account-menu summary { width: 38px; padding: 0; justify-content: center; font-size: 0; }
  .account-menu summary::after { content: '•••'; font-size: .62rem; letter-spacing: .08em; }
  .tab { padding: .9rem 1rem; }
  .orientation { min-height: 360px; }
  .commander-brief { padding: 3rem 0 2.5rem; }
  .brief-copy h1 { font-size: clamp(2.7rem,13vw,4.5rem); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading .primary { width: 100%; }
  .mission-board { margin-right: -1rem; }
  .board-column { min-width: 228px; }
  .board-column.is-empty { min-width: 72px; flex-basis: 72px; }
  .decision-item { grid-template-columns: 95px 1fr; }
  .decision-item small { grid-column: 2; }
  .theater-map svg { min-width: 760px; }
  .theater-detail-panel, .history-detail { grid-template-columns: 1fr; gap: 1.4rem; }
  .theater-latest, .history-proof { grid-column: auto; }
  .history-controls, .field-row { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 1fr; gap: .55rem; }
  .comms-layout { gap: 3rem; }
  .mission-detail-card dl div { grid-template-columns: 1fr; gap: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
