:root {
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-alt: #f8f7f5;
  --ink: #111113;
  --ink-sub: #4b4b53;
  --ink-muted: #7c7c85;
  --border: #d8d6d0;
  --border-dark: #18181b;
  --red: #e11d48;
  --red-dark: #be123c;
  --red-soft: #fff1f2;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --teal: #0d9488;
  --teal-soft: #f0fdfa;
  --radius: 8px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ===== 顶部黑色作战导航栏（红边底线） ===== */
.war-header {
  background: #111113;
  color: #fff;
  padding: 0 22px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 2px solid var(--red);
}
.war-left { display: flex; align-items: center; gap: 16px; min-width: 0; overflow-x: auto; }
.war-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.war-badge { background: var(--red); color: #fff; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.03em; }
.war-nav { display: flex; align-items: center; gap: 3px; }
.war-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 6px;
  background: transparent;
  color: #b4b4bd;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.war-tab:hover { background: rgba(255,255,255,0.09); color: #fff; }
.war-tab.active { background: var(--red); color: #fff; }
.war-tab svg { width: 14px; height: 14px; flex-shrink: 0; }
.war-num { font-family: var(--mono); font-size: 11px; padding: 0 5px; border-radius: 99px; background: rgba(255,255,255,0.16); color: #fff; }
.war-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.war-user-pill { display: inline-flex; align-items: center; gap: 6px; background: #1e1e22; border: 1px solid #383840; border-radius: 6px; padding: 4px 10px; font-size: 12px; color: #f4f4f5; }

/* ===== 按钮与徽章 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 6px;
  border: 1.5px solid var(--border-dark);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .12s, transform .08s;
}
.btn:hover { background: #efeeea; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-sm { height: 27px; padding: 0 10px; font-size: 12px; }
.btn-lg { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #27272a; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: #0f766e; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-sub); font-weight: 600; }
.btn-ghost:hover { background: #e8e6e0; }
.btn-dark-ghost { border-color: #383840; background: #1e1e22; color: #fff; }
.btn-dark-ghost:hover { background: #2b2b32; }

.flag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; font-family: var(--mono); white-space: nowrap; }
.flag-red { background: var(--red); color: #fff; }
.flag-red-soft { background: var(--red-soft); color: var(--red); border: 1px solid #fecdd3; }
.flag-green { background: var(--green); color: #fff; }
.flag-green-soft { background: var(--green-soft); color: var(--green); border: 1px solid #a7f3d0; }
.flag-amber { background: var(--amber); color: #fff; }
.flag-amber-soft { background: var(--amber-soft); color: #b45309; border: 1px solid #fde68a; }
.flag-teal { background: var(--teal); color: #fff; }
.flag-ink { background: var(--ink); color: #fff; }
.flag-muted { background: #e9e7e1; color: var(--ink-sub); }

/* ===== 主容器与通用布局 ===== */
.container { padding: 18px 22px 54px; max-width: 1440px; width: 100%; margin: 0 auto; }
.boot-loading { text-align: center; padding: 80px 20px; color: var(--ink-sub); font-weight: 600; }
.card { background: var(--surface); border: 1.5px solid var(--border-dark); border-radius: var(--radius); box-shadow: 3px 3px 0 rgba(17,17,19,0.08); }
.card-head {
  padding: 11px 16px;
  border-bottom: 1.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-alt);
  border-radius: 6px 6px 0 0;
  flex-wrap: wrap;
}
.card-title { margin: 0; font-size: 13.5px; font-weight: 800; }
.card-body { padding: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--ink-sub); }
.faint { color: var(--ink-muted); font-size: 12px; }
.empty-box { padding: 28px 16px; text-align: center; color: var(--ink-muted); font-size: 12.5px; }

.seg { display: inline-flex; background: #e4e2dc; border: 1.5px solid var(--border-dark); border-radius: 6px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 11px; border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--ink-sub); }
.seg button.active { background: var(--ink); color: #fff; }

.bar-track { height: 7px; background: #e8e6e0; border-radius: 4px; overflow: hidden; border: 1px solid #d4d1c9; }
.bar-fill { height: 100%; transition: width .25s; }

/* ===== 首页严格 1 → 2 → 3 主次分层 ===== */
.tier-label { font-size: 11px; font-family: var(--mono); color: var(--ink-muted); font-weight: 700; letter-spacing: 0.04em; }
.hero-war {
  background: #111113;
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border-left: 6px solid var(--red);
  box-shadow: 4px 4px 0 rgba(17,17,19,0.14);
}
.goal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.goal-box { background: #1c1c21; border: 1px solid #303038; border-radius: 7px; padding: 14px 15px; display: flex; flex-direction: column; gap: 8px; }
.goal-box.is-primary { border-color: #4b1d28; box-shadow: inset 0 2px 0 var(--red); background: linear-gradient(180deg, #21171b 0%, #1c1c21 100%); }
.goal-val { font-size: 27px; font-weight: 800; font-family: var(--mono); letter-spacing: -0.02em; line-height: 1.1; }

.stats-clickable {
  display: block;
  background: var(--surface);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(17,17,19,0.08);
  cursor: pointer;
  transition: transform .1s, border-color .15s;
}
.stats-clickable:hover { border-color: var(--red); transform: translateY(-1px); }
.stats-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 16px 18px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.stat-cell:last-child { border-right: 0; }
.stat-num { font-size: 25px; font-weight: 800; font-family: var(--mono); }

.flow-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow-row { padding: 11px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flow-row:last-child { border-bottom: 0; }
.flow-row:hover { background: var(--surface-alt); }

/* ===== 表格、选品与表单 ===== */
.prod-split { display: grid; grid-template-columns: 1fr 390px; gap: 12px; align-items: start; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
th { font-size: 11.5px; font-weight: 800; color: var(--ink); background: #edece7; border-bottom: 1.5px solid var(--border-dark); white-space: nowrap; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--surface-alt); }
tr.clickable.active { background: #fff1f2; }

/* ===== 全局硬朗红黑表单与弹窗体系 ===== */
label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}
label.field input,
label.field select,
label.field textarea,
.inline-input {
  border: 1.5px solid #b8b5ac;
  border-radius: 6px;
  padding: 8px 11px;
  background: #faf9f6;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  outline: none;
  width: 100%;
  transition: border-color .14s, background .14s, box-shadow .14s;
}
label.field input[type="number"] {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
label.field select,
select.inline-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
label.field input:hover,
label.field select:hover,
label.field textarea:hover,
.inline-input:hover {
  border-color: var(--ink);
  background-color: #ffffff;
}
label.field input:focus,
label.field select:focus,
label.field textarea:focus,
.inline-input:focus {
  border-color: var(--red);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
}
label.field textarea {
  resize: vertical;
  line-height: 1.55;
}

.input-unit {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #b8b5ac;
  border-radius: 6px;
  background: #faf9f6;
  overflow: hidden;
  transition: border-color .14s, box-shadow .14s, background .14s;
}
.input-unit:hover { border-color: var(--ink); background: #fff; }
.input-unit:focus-within {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
}
.input-unit input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
  min-width: 0;
}
.input-unit .u-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--ink-sub);
  background: #edece7;
  border-left: 1px solid #d4d1c9;
  user-select: none;
  white-space: nowrap;
}
.input-unit .u-tag.u-prefix {
  border-left: 0;
  border-right: 1px solid #d4d1c9;
}

.form-block {
  background: var(--surface-alt);
  border: 1.5px solid #d8d6d0;
  border-radius: 7px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.form-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ===== 趋势柱状图 ===== */
.trend-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 185px; padding: 8px 4px 0; }
.trend-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.trend-val { font-size: 11px; font-family: var(--mono); font-weight: 700; color: var(--ink); }
.trend-bar { width: 26px; border-radius: 4px 4px 0 0; min-height: 4px; transition: height .2s; }
.trend-date { font-size: 11px; font-family: var(--mono); color: var(--ink-muted); }

/* ===== 微动剪辑三栏工作室 ===== */
.edit-studio { display: grid; grid-template-columns: 240px 1fr 300px; gap: 12px; align-items: start; }
.pack-btn { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--border); background: transparent; padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; }
.pack-btn:hover { background: var(--surface-alt); }
.pack-btn.active { background: #fff1f2; box-shadow: inset 4px 0 0 var(--red); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.shot-card { border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--surface); transition: border-color .12s; }
.shot-card:hover { border-color: var(--ink); }
.shot-card.checked { border-color: var(--red); box-shadow: 0 0 0 2px rgba(225,29,72,0.18); }
.shot-box { aspect-ratio: 3/4; position: relative; overflow: hidden; background: #e8e6e0; }
.shot-box img, .shot-box video { width: 100%; height: 100%; object-fit: cover; }
.shot-check { position: absolute; top: 8px; left: 8px; z-index: 2; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; padding: 2px 7px; font-size: 11px; font-weight: 700; }
.shot-card.checked .shot-check { background: var(--red); border-color: var(--red); color: #fff; }
.shot-live { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--teal); color: #fff; font-family: var(--mono); font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 4px; }
.shot-foot { padding: 8px 10px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.shot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dark-inspector { background: #111113; color: #f4f4f5; border: 1.5px solid #111113; border-radius: var(--radius); box-shadow: 3px 3px 0 rgba(17,17,19,0.16); color-scheme: dark; }
.dark-inspector .ins-head { padding: 12px 14px; border-bottom: 1.5px solid #27272d; display: flex; justify-content: space-between; align-items: center; }
.dark-inspector .ins-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.dark-inspector label.field { color: #d4d4d8; font-weight: 700; }
.dark-inspector label.field select,
.dark-inspector select {
  width: 100%;
  background-color: #1c1c21;
  border: 1.5px solid #3f3f46;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 30px 8px 10px;
  font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.dark-inspector label.field select:hover,
.dark-inspector select:hover {
  border-color: #71717a;
  background-color: #24242b;
}
.dark-inspector label.field select:focus,
.dark-inspector select:focus {
  border-color: var(--red);
  background-color: #24242b;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.22);
}
.dark-inspector select option {
  background-color: #18181b;
  color: #f4f4f5;
}

/* ===== 排期看板与拖拽排序 ===== */
.kanban-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; align-items: start; }
.k-col { background: var(--surface); border: 1.5px solid var(--border-dark); border-radius: var(--radius); box-shadow: 3px 3px 0 rgba(17,17,19,0.08); min-height: 440px; display: flex; flex-direction: column; }
.k-col.is-empty { border-color: var(--red); }
.k-col-head { padding: 12px 14px; border-bottom: 1.5px solid var(--border-dark); background: var(--surface-alt); border-radius: 6px 6px 0 0; }
.k-col.is-empty .k-col-head { background: var(--red); color: #fff; border-bottom-color: var(--red); }
.k-zone { padding: 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 360px; }
.k-zone.drag-over { background: #fff1f2; }
.k-card { border: 1.5px solid var(--border); border-radius: 7px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; cursor: grab; }
.k-card:hover { border-color: var(--ink); }
.k-card.dragging { opacity: .4; }
.k-thumb { width: 52px; height: 68px; border-radius: 5px; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; background: #e8e6e0; }
.k-thumb img, .k-thumb video { width: 100%; height: 100%; object-fit: cover; }

.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; padding: 10px; background: var(--surface-alt); border: 1.5px dashed var(--border-dark); border-radius: 7px; }
.strip-tile { cursor: grab; font-size: 11px; text-align: center; font-weight: 600; }
.strip-tile.dragging { opacity: .4; }
.strip-box { aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; margin-bottom: 4px; border: 1px solid var(--border); position: relative; background: #e8e6e0; }
.strip-box img { width: 100%; height: 100%; object-fit: cover; }
.strip-del { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 4px; border: 0; background: rgba(17,17,19,0.78); color: #fff; font-size: 11px; line-height: 18px; padding: 0; }

/* ===== 封面库 ===== */
.cover-layout { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: start; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; }
.cover-card { border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.cover-card.is-used { opacity: 0.72; }
.cover-box { aspect-ratio: 3/4; position: relative; overflow: hidden; background: #e8e6e0; }
.cover-box img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 抽屉、弹窗与登录门禁 ===== */
.drawer-mask { position: fixed; inset: 0; background: rgba(17,17,19,0.45); z-index: 60; display: none; justify-content: flex-end; }
.drawer-mask.open { display: flex; }
.drawer { width: min(440px, 100%); background: #fff; border-left: 2px solid var(--ink); height: 100%; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
dialog {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0;
  width: min(760px, calc(100vw - 24px));
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(17,17,19,0.22);
  background: #ffffff;
  color: var(--ink);
}
dialog::backdrop { background: rgba(17,17,19,0.62); backdrop-filter: blur(2px); }
dialog[open] { display: flex; flex-direction: column; }
dialog > form,
dialog > div.dlg-wrap { display: flex; flex-direction: column; max-height: 90vh; }
.dlg-head {
  background: #111113;
  color: #ffffff;
  padding: 13px 18px;
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.dlg-head-title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; margin: 0; }
.dlg-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.dlg-foot {
  padding: 12px 18px;
  background: #f3f2ef;
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
/* 兼容未包在 .dlg-wrap 中的极简弹窗保底留白 */
dialog > .stack:not(.dlg-wrap) { padding: 18px 20px; overflow-y: auto; }

.auth-gate { max-width: 420px; margin: 54px auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #111113; color: #fff; border-left: 4px solid var(--red); padding: 9px 16px; border-radius: 6px; font-size: 12.5px; font-weight: 600; z-index: 95; display: none; max-width: 90vw; }
.toast.show { display: block; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ===== 手机扫码直发专属窄屏视图（/mobile 与 /p/:id） ===== */
body[data-page="post"] .container,
body[data-page="mobile"] .container { max-width: 560px; padding: 14px 14px 70px; }
.mobile-head {
  background: #111113;
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  border-left: 5px solid var(--red);
  margin-bottom: 14px;
}
.mobile-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mobile-media-item { border: 1.5px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.mobile-media-box { aspect-ratio: 3/4; position: relative; background: #e8e6e0; }
.mobile-media-box img, .mobile-media-box video { width: 100%; height: 100%; object-fit: cover; }

.wx-mask {
  position: fixed;
  inset: 0;
  background: rgba(17,17,19,0.92);
  color: #fff;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  gap: 14px;
}

@media (max-width: 1240px) {
  .goal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1120px) {
  .goal-grid, .stats-4, .flow-board, .prod-split, .edit-studio, .cover-layout, .tr-grid, .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }
  .stat-cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .war-header { height: auto; padding: 10px 14px; flex-wrap: wrap; }
}
