/* 战役简报沿用主控台的循环色板、纸面层次与直角控件。 */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg, #f6f0eb);
  color: var(--ink, #24211d);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
button, select, input, a.link-button { border-radius: 0; font: inherit; }
:is(button, a, input, select, [role="button"]):focus-visible { outline: 2px solid var(--accent, #7f4b26); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.briefing-shell { width: min(1680px, 100%); margin: 0 auto; padding: 24px clamp(18px, 3vw, 40px) 32px; }

/* 标题、最新备份概览与操作栏。 */
.briefing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 18px; }
.head-title { min-width: 0; }
.head-eyebrow, .section-label { color: var(--muted, #706a60); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.head-title h1 {
  display: flex; align-items: center; gap: 14px; margin-top: 8px;
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif;
  font-size: clamp(28px, 3vw, 36px); line-height: 1.3; letter-spacing: .04em;
  color: var(--accent-strong, #5f341b);
}
.cycle-symbol { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.head-sub { margin-top: 10px; font-size: 12px; color: var(--muted, #706a60); }
.head-side { display: grid; justify-items: end; gap: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent, #7f4b26); text-decoration: none; font-size: 12px; padding: 3px 0; border-bottom: 1px solid transparent; }
.back-link:hover { border-color: currentColor; }
.head-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.head-summary > div { min-width: 86px; padding: 0 16px; border-left: 1px solid var(--line, #e3d4c8); }
.head-summary > div:first-child { border: 0; }
.head-summary > div:last-child { padding-right: 0; }
.head-summary dt { color: var(--muted, #706a60); font-size: 11px; }
.head-summary dd { margin: 2px 0 0; color: var(--accent-strong, #5f341b); font-family: Georgia, "Times New Roman", serif; font-size: 28px; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.head-summary small { margin-left: 7px; color: var(--muted, #706a60); font: 11px "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.briefing-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; border-block: 1px solid var(--line, #e3d4c8); padding: 10px 0; }
.head-actions, .export-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.field { display: flex; align-items: center; gap: 10px; color: var(--muted, #706a60); font-size: 12px; min-width: 0; }
.field select { min-width: 0; max-width: 100%; height: 40px; border: 1px solid var(--line, #e3d4c8); background: var(--panel, #fffdfb); color: var(--ink, #24211d); padding: 0 30px 0 12px; font-size: 12px; }
.field select:disabled { opacity: .55; cursor: not-allowed; }
button, .link-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary-button { background: var(--accent-strong, #5f341b); border-color: var(--accent-strong, #5f341b); color: #fff; }
.primary-button:not(:disabled):hover { background: var(--accent, #7f4b26); border-color: var(--accent, #7f4b26); }
.ghost-button { background: var(--panel, #fffdfb); border-color: var(--line, #e3d4c8); color: var(--accent-strong, #5f341b); }
.ghost-button:not(:disabled):hover { border-color: var(--accent, #7f4b26); background: var(--accent-soft, #f0e3d7); }
.button-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.export-description { display: grid; margin-right: 6px; gap: 2px; }
.export-description strong { color: var(--accent-strong, #5f341b); font-size: 12px; font-weight: 600; }
.export-description span { color: var(--muted, #706a60); font-size: 11px; }
.head-status { flex-basis: 100%; display: flex; align-items: center; gap: 10px; border-left: 2px solid var(--accent, #7f4b26); background: var(--accent-soft, #f0e3d7); padding: 9px 12px; color: var(--accent-strong, #5f341b); font-size: 12px; overflow-wrap: anywhere; }
.head-status[data-state="error"] { border-color: var(--danger, #9d332c); color: var(--danger, #9d332c); }
#exportFilesButton[aria-busy="true"] { opacity: 1; }
#exportFilesButton[aria-busy="true"] .button-icon { display: none; }
#exportFilesButton[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border: 1px solid rgb(255 255 255 / 40%); border-top-color: #fff; border-radius: 50%; animation: export-spin 1s linear infinite; }
@keyframes export-spin { to { transform: rotate(360deg); } }

/* 日期回放：画布独立分栏，避免多层卡片边框。 */
.briefing-body { display: grid; gap: 24px; padding-top: 18px; min-width: 0; }
.replay { display: grid; gap: 14px; min-width: 0; }
.replay-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; }
.day-readout { display: grid; gap: 3px; min-width: 0; }
.day-heading { display: flex; align-items: center; gap: 12px; }
.day-index { border-left: 1px solid var(--line, #e3d4c8); padding-left: 12px; font-size: 11px; color: var(--muted, #706a60); font-variant-numeric: tabular-nums; }
.day-title { font-family: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif; font-size: 26px; color: var(--accent-strong, #5f341b); line-height: 1.35; letter-spacing: .03em; }
.day-meta { font-size: 11px; color: var(--muted, #706a60); overflow-wrap: anywhere; }
.replay-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.playback-buttons { display: flex; gap: 5px; }
.replay-controls button { min-width: 66px; font-size: 12px; }
#playButton[aria-pressed="true"] { border-color: var(--accent, #7f4b26); background: var(--accent-soft, #f0e3d7); color: var(--accent-strong, #5f341b); }
.axis-wrap { display: grid; gap: 8px; }
#dayRange { width: 100%; margin: 0; appearance: none; height: 5px; border: 0; background: var(--line, #e3d4c8); cursor: pointer; }
#dayRange::-webkit-slider-thumb { appearance: none; width: 10px; height: 17px; background: var(--accent-strong, #5f341b); border: 0; }
#dayRange::-moz-range-thumb { width: 10px; height: 17px; background: var(--accent-strong, #5f341b); border: 0; border-radius: 0; }
.axis-ticks { display: flex; gap: 2px; color: var(--muted, #706a60); font-size: 10px; overflow: hidden; }
.axis-ticks span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; border-top: 1px solid var(--line, #e3d4c8); padding-top: 4px; }
.axis-ticks span.gap { border-top-style: dashed; }
.axis-ticks span.current { color: var(--accent-strong, #5f341b); border-top-color: var(--accent, #7f4b26); font-weight: 600; }
.panes { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
.campaign-overview { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr); gap: 16px; align-items: stretch; }
.campaign-overview .pane-cards { grid-column: auto; }
.pane-progress { padding: 16px 18px 12px; grid-template-rows: auto 1fr auto; gap: 12px; }
.progress-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.progress-heading h3 { font-family: "Songti SC", SimSun, Georgia, serif; font-size: 18px; color: var(--accent-strong); }
.progress-heading span, .progress-heading small { font-family: inherit; font-size: 10px; font-weight: 400; color: var(--muted); }
.inward-readout { display: flex; align-items: baseline; gap: 12px; padding-top: 5px; }
.inward-readout strong { font-family: Georgia, serif; font-size: 32px; font-weight: 400; color: var(--accent-strong); line-height: 1.25; }
.inward-readout span { font-size: 12px; color: var(--muted); }
.hub-progress { border-top: 1px solid var(--line); padding-top: 12px; }
.hub-progress-list { display: grid; gap: 7px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.hub-progress-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 8px; align-items: center; }
.hub-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-progress-row.active .hub-name { color: var(--accent-strong); font-weight: 600; }
.hub-boxes { display: flex; gap: 3px; }
.hub-box { display: grid; place-items: center; width: 13px; height: 14px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1; }
.hub-box.checked { background: var(--accent); border-color: var(--accent); color: #fff; }
.hub-box.current { outline: 1px solid var(--accent-strong); outline-offset: 1px; }
.hub-count { font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.progress-source { color: var(--muted); font-size: 10px; }
.zoom-controls { display: flex; align-items: center; gap: 4px; }
.zoom-controls button { min-width: 28px; min-height: 28px; padding: 3px 7px; font-size: 12px; background: var(--bg); border-color: var(--line); color: var(--accent-strong); }
.zoom-controls output { width: 42px; font-size: 11px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.pane { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; background: var(--panel, #fffdfb); border: 1px solid var(--line, #e3d4c8); }
.pane-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line, #e3d4c8); }
.pane-head h3 { display: flex; align-items: center; gap: 10px; font-family: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif; font-size: 20px; color: var(--accent-strong, #5f341b); letter-spacing: .03em; }
.pane-number { font-family: Georgia, "Times New Roman", serif; color: var(--muted, #706a60); font-size: 12px; font-weight: 400; }
.pane-sub { font-size: 11px; color: var(--muted, #706a60); font-variant-numeric: tabular-nums; }
.pane-canvas { position: relative; overflow: auto; min-height: 300px; background: var(--bg, #f6f0eb); }
.map-canvas, .tech-canvas { height: clamp(420px, 56vh, 680px); }
/* 板块定位、token 尺寸保持与地图页一致。 */
.map-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

/* 板块之间不留缝、不描边：几块拼起来就是一张连续的地图（外框由 .map-canvas 负责）。
   翻开当天的提示靠 .new / .current 的高亮环，而不是给每块加边框。 */
.map-tile {
  position: absolute;
  overflow: hidden;
  background: #f4ece4;
  transition: box-shadow .25s ease, filter .25s ease;
}
.map-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-face {
  position: absolute;
  inset: 0;
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tile-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted, #706a60);
  background: repeating-linear-gradient(45deg, #efe4d8, #efe4d8 6px, #e7d9ca 6px, #e7d9ca 12px);
}
.map-tile.new { box-shadow: 0 0 0 3px var(--accent, #7f4b26), 0 4px 10px rgb(0 0 0 / 22%); }
.map-tile.current { box-shadow: 0 0 0 3px var(--done, #346447), 0 4px 10px rgb(0 0 0 / 22%); z-index: 3; }
.map-tile .tile-badge {
  position: absolute;
  left: 2px; top: 2px;
  z-index: 5;
  font-size: 10px;
  line-height: 1;
  padding: 2px 4px;
  background: rgb(36 33 29 / 72%);
  color: #fff;
  max-width: calc(100% - 4px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-tile .tile-pin {
  position: absolute;
  right: 2px; bottom: 2px;
  display: flex; gap: 2px;
}
.map-tile .tile-pin span {
  font-size: 10px; line-height: 1;
  padding: 2px 3px;
  background: var(--panel, #fffdfb);
  border: 1px solid var(--line, #e3d4c8);
}

/* ---------- 板块上的 token 图标 ----------
   位置、尺寸、圆角都与地图页（map/styles.css 的 .tile-tokens / .map-token /
   .tile-edge-tokens）保持一致：普通图标排在板块左上角，方形图标用方角，沙尘暴这类
   画在板块边上并带方向。注意 .map-tile img 那条 100% 尺寸是给板块大图用的，
   这里必须显式覆盖，否则图标会被拉满整格。 */
.map-tile .tile-tokens {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3px;
  /* 上方留出日期标签的高度：标签占左上角，图标行从它下面开始，互不压字。 */
  padding: 20px 5px 5px;
  pointer-events: none;
}
.map-tile .map-token {
  width: 22%;
  height: auto;
  max-width: 34px;
  min-width: 18px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 1px 5px rgb(0 0 0 / 35%);
}
.map-tile .map-token.token-ag { width: 30%; max-width: 44px; min-width: 24px; }
.map-tile .map-token.token-square { border-radius: 4px; }
.map-tile .tile-edge-tokens {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.map-tile .map-edge-token {
  position: absolute;
  width: 24%;
  height: auto;
  max-width: 38px;
  min-width: 20px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 1px 6px rgb(0 0 0 / 48%);
}
.map-tile .map-edge-token.edge-up { top: 3px; left: 50%; transform: translateX(-50%); }
.map-tile .map-edge-token.edge-right { top: 50%; right: 3px; transform: translateY(-50%); }
.map-tile .map-edge-token.edge-down { bottom: 3px; left: 50%; transform: translateX(-50%); }
.map-tile .map-edge-token.edge-left { top: 50%; left: 3px; transform: translateY(-50%); }
.map-tile .token-fallback {
  font-size: 10px; line-height: 1;
  padding: 2px 3px;
  background: var(--panel, #fffdfb);
  border: 1px solid var(--line, #e3d4c8);
  color: var(--accent-strong, #5f341b);
}

/* 科技选择器保持顶层，GIF 导出会将这些规则复制进离屏 SVG。 */
.tech-svg { display: block; }
.tech-node rect { fill: var(--panel, #fffdfb); stroke: var(--line, #e3d4c8); stroke-width: 1.5; }
.tech-node.locked rect { fill: var(--bg, #f6f0eb); stroke: var(--line, #e3d4c8); }
.tech-node.locked text { fill: var(--muted, #706a60); }
.tech-node.unlocked rect { fill: var(--panel, #fffdfb); stroke: var(--accent, #7f4b26); stroke-width: 2; }
.tech-node.unlocked text { fill: var(--accent-strong, #5f341b); }
.tech-node.today rect { fill: var(--accent-strong, #5f341b); stroke: var(--accent-strong, #5f341b); stroke-width: 2.5; }
.tech-node.today text { fill: #fff; }
.tech-node text { font-size: 10px; pointer-events: none; }
.tech-node .node-day { font-size: 8px; fill: var(--done, #346447); }
.tech-node.today .node-day { fill: #fff; }
.tech-edge { fill: none; stroke: var(--line, #e3d4c8); stroke-width: 1.2; }
.tech-edge.live { stroke: var(--accent, #7f4b26); stroke-width: 2; }
.pane-foot { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; border-top: 1px solid var(--line, #e3d4c8); padding: 10px 16px; color: var(--muted, #706a60); font-size: 11px; min-height: 40px; }
.pane-foot strong { color: var(--accent-strong, #5f341b); font-weight: 600; }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; }
.legend-key { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }
.legend-key::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--accent, #7f4b26); }
.legend-key.current::before { border-color: var(--done, #346447); }

/* 两面卡图左右紧贴，按原图比例占满整行；不使用定高框和留白缩图。 */
.pane-cards { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
.card-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.card-half { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.card-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; color: var(--muted, #706a60); font-size: 11px; border-bottom: 1px solid var(--line, #e3d4c8); }
.card-strip h4 { margin: 0; color: var(--accent-strong, #5f341b); font-size: 13px; font-weight: 600; }
.card-canvas { display: grid; place-items: center; min-width: 0; min-height: 160px; background: var(--bg, #f6f0eb); }
.card-image-button { position: relative; display: block; width: 100%; height: auto; min-height: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.card-image-button img { display: block; width: 100%; height: auto; max-width: 100%; }
.card-half .pane-foot { align-items: center; padding: 8px 12px; font-size: 10px; }
.card-side-badge, .card-progress-badge { position: absolute; top: 8px; padding: 4px 8px; font-size: 11px; font-weight: 600; line-height: 1.6; pointer-events: none; }
.card-side-badge { left: 8px; background: var(--panel, #fffdfb); border: 1px solid var(--line, #e3d4c8); color: var(--accent-strong, #5f341b); }
.card-progress-badge { right: 8px; background: var(--accent-strong, #5f341b); color: #fff; }
.card-empty { max-width: 260px; color: var(--muted, #706a60); font-size: 12px; text-align: center; white-space: pre-line; }
.card-preview-dialog { width: min(1400px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 14px; border: 1px solid var(--line, #e3d4c8); background: var(--panel, #fffdfb); color: var(--ink, #24211d); }
.card-preview-dialog::backdrop { background: rgb(24 21 18 / 55%); }
.card-preview-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.card-preview-dialog h2 { font-family: "Songti SC", SimSun, Georgia, serif; color: var(--accent-strong, #5f341b); font-size: 22px; }
.card-preview-dialog p { margin-block: 8px 12px; color: var(--accent-strong, #5f341b); font-size: 13px; }
.card-preview-dialog > img { display: block; max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; margin-inline: auto; }

/* 日期列表采用细分隔线与日期边栏，播放时只滚动列表本身。 */
.log { min-width: 0; border-top: 1px solid var(--line, #e3d4c8); padding-top: 22px; }
.log-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.log-head h2 { margin-top: 3px; font-family: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif; color: var(--accent-strong, #5f341b); font-size: 25px; letter-spacing: .03em; }
.log-sub { color: var(--muted, #706a60); font-size: 11px; }
.log-list { position: relative; list-style: none; margin: 0; padding: 0; max-height: min(56vh, 560px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line, #e3d4c8); background: var(--panel, #fffdfb); scrollbar-width: thin; scrollbar-color: var(--line, #e3d4c8) transparent; }
.log-day { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line, #e3d4c8); border-left: 3px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.log-day:last-child { border-bottom: 0; }
.log-day:hover { background: var(--bg, #f6f0eb); }
.log-day.active { border-left-color: var(--accent, #7f4b26); background: var(--accent-soft, #f0e3d7); }
.log-day:focus-visible { outline-offset: -3px; }
.log-day.gap { cursor: default; color: var(--muted, #706a60); }
.log-day.gap:hover { background: transparent; }
.log-day-marker { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 400; color: var(--accent, #7f4b26); padding-top: 2px; }
.log-day-content { min-width: 0; }
.log-day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.log-day-title { font-weight: 600; color: var(--accent-strong, #5f341b); }
.log-day-meta, .log-detail, .log-empty { font-size: 11px; color: var(--muted, #706a60); }
.log-detail, .log-empty { margin-top: 5px; overflow-wrap: anywhere; }
.log-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.log-tag { border: 1px solid var(--line, #e3d4c8); background: var(--panel, #fffdfb); color: var(--muted, #706a60); font-size: 10px; padding: 2px 7px; overflow-wrap: anywhere; }
.log-tag.map, .log-tag.tech { color: var(--accent-strong, #5f341b); }

.notice { display: grid; place-items: center; padding: 54px 0; }
.notice-card { width: min(560px, 100%); text-align: center; background: var(--panel, #fffdfb); border: 1px solid var(--line, #e3d4c8); padding: 32px 28px; }
.notice-mark { display: block; color: var(--accent, #7f4b26); font-family: Georgia, serif; font-size: 38px; margin-bottom: 12px; }
.notice-card h2 { color: var(--accent-strong, #5f341b); font-family: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif; font-size: 24px; margin: 7px 0 12px; }
.notice-card #noticeText { color: var(--muted, #706a60); font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.notice-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (min-width: 1400px) {
  .log-list { max-height: 480px; }
}
@media (max-width: 960px) {
  .campaign-overview { grid-template-columns: minmax(0, 1fr); }
  .panes { grid-template-columns: minmax(0, 1fr); }
  .briefing-head { gap: 20px; }
  .head-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 0; }
  .head-summary > div { min-width: 80px; padding-inline: 14px; }
  .head-summary > div:nth-child(4) { border-left: 0; }
  .head-summary dd { font-size: 28px; }
  .export-description { display: none; }
}
@media (max-width: 720px) {
  .briefing-shell { padding: 24px 18px 30px; }
  .briefing-head { position: relative; display: grid; gap: 20px; padding-bottom: 22px; }
  .head-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
  .head-summary { order: -1; }
  .head-summary { width: 100%; }
  .back-link { position: absolute; top: 0; right: 0; }
  .head-summary > div { min-width: 0; }
  .head-summary > div:nth-child(4) { padding-left: 0; }
  .head-summary > div:first-child { padding-left: 0; }
  .briefing-toolbar { align-items: stretch; gap: 12px; }
  .head-actions { flex: 1 1 100%; }
  .head-actions .field { flex: 1; }
  .head-actions select { flex: 1; }
  .export-actions { flex: 1; justify-content: space-between; }
  .export-description { display: grid; }
  .replay-head { align-items: flex-start; flex-direction: column; }
  .replay-controls { width: 100%; justify-content: space-between; gap: 8px; }
  .replay-controls .field { gap: 6px; }
  .replay-controls .field select { padding-left: 8px; padding-right: 20px; }
  .panes { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card-strip, .card-half .pane-foot { padding-inline: 6px; font-size: 9px; }
  .card-side-badge, .card-progress-badge { top: 4px; padding: 2px 4px; font-size: 9px; }
  .card-side-badge { left: 4px; }
  .card-progress-badge { right: 4px; }
  .card-canvas { min-height: 100px; }
  .axis-ticks { font-size: 8px; }
  .axis-ticks span:nth-child(even):not(.current):not(:last-child) { color: transparent; }
  .log-head { display: grid; gap: 8px; }
  .log-day { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 12px; }
}
@media (max-width: 380px) {
  .briefing-shell { padding-inline: 12px; }
  .export-description span { font-size: 10px; }
  #exportFilesButton { padding-inline: 10px; font-size: 12px; }
  .head-summary > div { min-width: 0; }
  .replay-controls { gap: 12px; }
  .replay-controls button { min-width: 60px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  button, .map-tile, .log-day { transition: none; }
  #exportFilesButton[aria-busy="true"]::before { animation: none; }
}
