@charset "UTF-8";
/* 观澜 · 核心基础布局、导航、指标卡、表格、详情与登录样式 */
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--page-wash);
  background-attachment: fixed;
}
::selection { background: var(--accent-soft); color: var(--ink); }
button, input, select { font: inherit; }
button, a, input, select { outline-offset: 3px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, .batch-choice:focus-within {
  outline: 2px solid var(--focus-ring);
}
input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-raised) inset;
  caret-color: var(--ink);
}
option { color: var(--ink); background: var(--surface-solid); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:not(:disabled):active, .button:active { transform: scale(.985); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; letter-spacing: -.4px; font-weight: 700; color: var(--ink); }
h2 { font-size: 16px; font-weight: 650; color: var(--ink); }
h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
p { line-height: 1.7; }
small { font-size: 11px; color: var(--muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 应用外框与侧栏 */
.app { display: flex; min-height: 100vh; background: transparent; }
.sidebar {
  position: fixed;
  inset: 12px auto 12px 14px;
  width: 212px;
  padding: 24px 16px 18px;
  background: var(--shell);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  box-shadow: var(--glass-float);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-fill);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  box-shadow: var(--brand-shadow);
  flex-shrink: 0;
}
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); margin-top: 3px; letter-spacing: .2px; }
.sidebar-label { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--quiet); margin: 28px 10px 10px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: background .16s, color .16s, border-color .16s;
}
.nav-link:hover { color: var(--ink); background: var(--surface-hover); border-color: var(--border); }
.nav-link.active {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-color: var(--accent-edge);
  font-weight: 650;
  box-shadow: var(--inner-shadow);
}
.nav-symbol { width: 16px; font-size: 16px; text-align: center; }
.fund-dot { height: 8px; width: 8px; border-radius: 50%; background: var(--accent); margin: 0 4px; flex-shrink: 0; }
.fund-dot.blue { background: var(--purple); }
.fund-dot.gold { background: var(--teal); }
.sidebar-bottom {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.sidebar-bottom strong { font-size: 11px; font-weight: 600; color: var(--ink); }
.sidebar-bottom p { font-size: 11px; margin: 5px 0 14px; color: var(--muted); }
.unit-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.account-button { border: 0; background: none; padding: 6px 0; color: var(--ink); font-size: 12px; font-weight: 600; display: block; }
.account-button:hover { color: var(--accent-ink); }
.text-button { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: 12px; }
.text-button:hover { color: var(--ink); }

/* 工作区与顶栏 */
.workspace { margin-left: 238px; width: calc(100% - 238px); min-width: 0; }
.topbar {
  position: sticky;
  top: 12px;
  margin: 12px 28px 0;
  height: 56px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--shell);
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  box-shadow: var(--glass-float);
  font-size: 12px;
  color: var(--muted);
  z-index: 15;
}
#breadcrumb { font-weight: 600; color: var(--ink); }
.top-actions { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sync-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.preview-badge {
  padding: 4px 9px;
  background: var(--warning-soft);
  border: 1px solid var(--warning-edge);
  color: var(--orange);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
}
.appearance-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--accent-ink);
  box-shadow: var(--inner-shadow);
  flex-shrink: 0;
}
.appearance-control:hover { background: var(--surface-hover); border-color: var(--accent-edge); }
.appearance-icon { width: 15px; font-size: 14px; text-align: center; line-height: 1; }
.appearance-control .theme-select {
  width: 86px;
  min-width: 0;
  padding: 6px 2px;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.button, .primary {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 14px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  box-shadow: var(--inner-shadow);
  transition: background .15s, border-color .15s, transform .15s;
}
.button:hover { background: var(--surface-hover); border-color: var(--accent-edge); color: var(--accent-ink); }
.button.small { font-size: 11px; padding: 6px 11px; border-radius: 8px; }
.primary {
  background: var(--primary-fill);
  color: var(--primary-ink);
  border-color: var(--accent-edge);
  box-shadow: var(--brand-shadow);
  font-weight: 600;
}
.primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.mobile-menu { display: none; }

/* 主内容区与页头 */
main { max-width: 1560px; margin: auto; padding: 24px 28px 24px; }
.eyebrow, .chart-kicker {
  display: block;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 18px;
}
.page-heading p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.date-badge {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  padding: 10px 14px;
  border: 1px solid var(--glass-edge);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  flex-shrink: 0;
}
.date-badge small { display: block; margin-top: 3px; font-size: 10px; font-weight: 450; color: var(--muted); }

/* 顶部作战指标卡 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  position: relative;
  border: 1px solid var(--glass-edge);
  background: var(--surface);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  opacity: .85;
}
.stat-card.tone-done::before { background: var(--success); }
.stat-card.tone-sprint::before { background: var(--sprint); }
.stat-card.tone-warn::before { background: var(--orange); }
.stat-card.highlight {
  background: linear-gradient(135deg, var(--success-soft), var(--surface) 75%);
  border-color: var(--success-edge);
}
.stat-card.highlight::before { background: var(--success); opacity: 1; }
.stat-card .stat-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat-symbol { position: absolute; right: 18px; top: 16px; font-size: 16px; color: var(--quiet); opacity: .75; }
.stat-value {
  font-size: clamp(26px, 2.2vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -.6px;
  color: var(--ink);
  margin: 10px 0 6px;
  line-height: 1.2;
}
.stat-card.highlight .stat-value { color: var(--success); }
.stat-card.tone-warn .stat-value { color: var(--orange); }
.stat-value.amount { white-space: nowrap; }
.stat-value span { font-size: 12px; letter-spacing: 0; font-weight: 500; margin-left: 5px; color: var(--muted); }
.stat-card p { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* 面板与图表容器 */
.panel {
  background: var(--surface);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px 0;
  gap: 14px;
  flex-wrap: wrap;
}
.panel-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.chart { height: 300px; width: 100%; padding: 8px 10px 10px; }
.chart.large { height: 345px; }
.chart-note { font-size: 11px; color: var(--muted); padding: 0 22px 16px; line-height: 1.7; }

/* 语义徽章 */
.pill {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  border-radius: 7px;
  padding: 4px 8px;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--border);
}
.pill.recovered { background: var(--success-soft); color: var(--success); border-color: var(--success-edge); }
.pill.sprint { background: var(--sprint-soft); color: var(--sprint); border-color: var(--sprint-edge); }
.pill.partial { background: var(--teal-soft); color: var(--teal); border-color: var(--teal-edge); }
.pill.pending { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-edge); }
.pill.risk, .pill.warning { background: var(--warning-soft); color: var(--orange); border-color: var(--warning-edge); }

/* 工具栏与表单控件 */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.toolbar .spacer { flex: 1; }
.toolbar-label { font-size: 12px; font-weight: 550; color: var(--muted); }
select, input {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 11px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  box-shadow: var(--inner-shadow);
}
input::placeholder { color: var(--quiet); opacity: 1; }
select { cursor: pointer; }
input[type="checkbox"] { accent-color: var(--accent); box-shadow: none; }
.segmented {
  display: inline-flex;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: none;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 7px;
  color: var(--muted);
}
.segmented button.active {
  background: var(--surface);
  color: var(--accent-ink);
  font-weight: 650;
  box-shadow: 0 1px 3px #00000012;
}

/* 表格与回本进度条 */
.table-wrap { overflow-x: auto; scrollbar-color: var(--scroll-thumb) transparent; scrollbar-width: thin; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; text-align: left; }
th {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tr[data-batch] { cursor: pointer; transition: background .12s; }
tr[data-batch]:hover { background: var(--surface-hover); }
.batch-cell strong { display: block; font-weight: 650; color: var(--ink); font-size: 13px; }
.batch-cell small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.batch-mobile-meta { display: none; }
.money { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
.subline { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.trend-up { color: var(--success); font-weight: 600; }
.trend-down { color: var(--orange); font-weight: 600; }
.variant-progress { min-width: 118px; margin-top: 8px; }
.variant-progress:first-child { margin-top: 0; }
.variant-progress .labels { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); gap: 12px; }
.variant-progress .labels strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.progress-track { height: 6px; background: var(--progress-track); border-radius: 99px; margin-top: 5px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--line-fill); }
.progress-fill.sprint { background: var(--line-sprint); }
.progress-fill.done { background: var(--line-done); }
.progress-fill.risk { background: var(--line-risk); }
.variant-cost { margin-bottom: 6px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.variant-cost:last-child { margin-bottom: 0; }
.variant-cost strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* 提示条与对账块 */
.warning-strip, .reconcile {
  padding: 12px 16px;
  background: var(--warning-soft);
  border: 1px solid var(--warning-edge);
  color: var(--orange);
  font-size: 12px;
  line-height: 1.7;
  border-radius: 12px;
  margin-bottom: 18px;
}
.reconcile { margin: 14px 22px 20px; }
.reconcile p { margin-top: 4px; font-size: 11px; }
.empty, .loading { padding: 52px 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* 详情页布局与成本卡 */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.two-col .panel { min-width: 0; }
.detail-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.back { font-size: 12px; font-weight: 550; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.back:hover { color: var(--accent-ink); }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 18px 22px 22px; }
.cost-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px 20px;
  box-shadow: var(--inner-shadow);
}
.cost-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.cost-title { font-size: 14px; font-weight: 650; color: var(--ink); }
.cost-equation { display: flex; justify-content: space-between; font-size: 12px; line-height: 2; color: var(--muted); font-variant-numeric: tabular-nums; }
.cost-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; color: var(--ink); }
.cost-rate-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.cost-rate { font-size: 28px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.cost-rate.done { color: var(--success); }
.cost-rate.sprint { color: var(--sprint); }
.cost-rate.risk { color: var(--orange); }
.cost-gap { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cost-gap strong { color: var(--ink); }
.cost-footer { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.cost-footer strong { color: var(--ink); }

/* 管理台、登录与弹窗 */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-body { padding: 18px 22px; line-height: 1.85; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.admin-body strong { color: var(--ink); }
.admin-body > p { margin-bottom: 10px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.admin-source { margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.admin-source:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.alert-text { color: var(--orange); font-weight: 550; }
.success-text { color: var(--success); font-weight: 550; }
.error { color: var(--red); font-size: 12px; margin-top: 8px; min-height: 18px; }
.row-action { border: 0; background: transparent; color: var(--accent-ink); padding: 4px 6px; font-size: 12px; font-weight: 550; }
.row-action:hover { text-decoration: underline; }
footer {
  max-width: 1560px;
  margin: auto;
  padding: 4px 28px 26px;
  color: var(--quiet);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  padding: 28px;
  gap: 28px;
}
.login-appearance { position: absolute; top: 28px; right: 36px; z-index: 3; }
.login-story {
  background: var(--story-fill);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow: var(--glass-float);
  padding: 44px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand-en { font-size: 11px; letter-spacing: 2px; font-weight: 500; color: var(--muted); margin-left: 10px; }
.login-story h1 { font-size: 40px; font-weight: 700; line-height: 1.35; letter-spacing: -.5px; color: var(--ink); }
.login-story p { color: var(--muted); font-size: 14px; margin-top: 18px; line-height: 1.9; }
.login-line { height: 76px; display: flex; align-items: flex-end; gap: 11px; margin-top: 32px; }
.login-line i { width: 28px; background: var(--story-bar); border: 1px solid var(--accent-edge); border-radius: 6px 6px 0 0; height: 18%; }
.login-line i:nth-child(2) { height: 30%; }
.login-line i:nth-child(3) { height: 38%; }
.login-line i:nth-child(4) { height: 50%; }
.login-line i:nth-child(5) { height: 60%; }
.login-line i:nth-child(6) { height: 74%; }
.login-line i:nth-child(7) { height: 86%; background: var(--line-sprint); }
.login-line i:nth-child(8) { height: 100%; background: var(--line-done); }
.login-panel {
  align-self: center;
  margin: 40px auto;
  width: min(410px, 92%);
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  box-shadow: var(--glass-float);
}
.login-panel h2 { font-size: 24px; margin-bottom: 8px; }
.login-panel > p { font-size: 13px; margin-bottom: 26px; }
.login-panel form { display: grid; gap: 16px; }
.login-panel label, dialog label { display: grid; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 550; }
.login-panel input { padding: 12px 14px; font-size: 14px; border-radius: 11px; }
.login-panel .primary { padding: 13px 16px; justify-content: space-between; margin-top: 4px; border-radius: 11px; font-size: 13px; }
.login-panel small { display: block; margin-top: 24px; line-height: 1.8; }
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  background: var(--surface-solid);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--glass-float);
  padding: 11px 20px;
  max-width: 90vw;
  z-index: 100;
  font-size: 13px;
  font-weight: 550;
}
dialog {
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: var(--glass-float), 0 24px 70px #02081845;
  padding: 26px 28px;
  width: 450px;
  max-width: calc(100vw - 28px);
  color: var(--ink);
}
dialog::backdrop { background: var(--backdrop); }
dialog h2 { margin-bottom: 18px; }
dialog form { display: grid; gap: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }

@media (max-width: 1150px) {
  .sidebar { width: 192px; padding: 22px 13px 16px; }
  .workspace { margin-left: 218px; width: calc(100% - 218px); }
  .topbar { margin: 12px 20px 0; padding: 0 18px; }
  main { padding: 22px 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .two-col, .account-grid { grid-template-columns: 1fr; }
  footer { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 760px) {
  .sidebar {
    inset: 10px auto 10px 10px;
    width: 220px;
    transform: translateX(-115%);
    transition: transform .18s;
    z-index: 30;
  }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin: 0; width: 100%; }
  .topbar { height: 52px; margin: 10px 12px 0; top: 10px; padding: 0 12px; gap: 8px; border-radius: 14px; }
  .mobile-menu { display: block; border: 0; background: none; color: var(--accent-ink); padding: 6px; font-size: 18px; }
  .topbar #breadcrumb, .sync-label, .topbar .preview-badge { display: none; }
  .top-actions { gap: 6px; margin-left: auto; }
  .appearance-control { padding: 0 7px; min-height: 32px; }
  .appearance-control .theme-select { width: 78px; font-size: 11px; }
  main { padding: 18px 12px 18px; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  .page-heading h1 { font-size: 22px; }
  .page-heading p { font-size: 12px; }
  .date-badge { padding: 7px 10px; font-size: 11px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .stat-card { padding: 14px 14px; border-radius: 15px; }
  .stat-card .stat-label { font-size: 11px; }
  .stat-value { font-size: 22px; margin: 8px 0 4px; }
  .stat-card p { font-size: 10px; }
  .stat-symbol { font-size: 13px; right: 12px; top: 13px; }
  .panel { border-radius: 16px; margin-bottom: 14px; }
  .panel-head { padding: 16px 15px 0; }
  .panel-head h2 { font-size: 15px; }
  .chart { height: 280px; padding: 4px 0 8px; }
  .chart.large { height: 300px; }
  .chart-note { padding: 0 15px 14px; font-size: 10px; }
  .toolbar { padding: 12px 14px; gap: 8px; }
  .toolbar .spacer { display: none; }
  .toolbar select, .toolbar input { flex: 1; font-size: 12px; }
  /* 手机表格：保留批次（内联运行与回血）、单群账面（含移动端缺口胶囊）、进度，隐藏次要宽列避免横向挤压 */
  .batch-table .col-groups,
  .batch-table .col-age,
  .batch-table .col-recent,
  .batch-table .col-target,
  .batch-table .col-gap,
  .batch-table .col-status { display: none; }
  .batch-table th, .batch-table td { padding: 12px 10px; }
  .batch-cell strong { font-size: 12px; white-space: normal; min-width: 96px; max-width: 150px; line-height: 1.45; }
  .batch-mobile-meta { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); white-space: normal; line-height: 1.5; }
  .variant-progress { min-width: 92px; }
  .variant-progress .labels { font-size: 10px; gap: 4px; }
  .cost-grid { padding: 14px; grid-template-columns: 1fr; gap: 12px; }
  .detail-heading .date-badge { display: none; }
  .login-shell { display: block; padding: 58px 14px 16px; }
  .login-appearance { top: 14px; right: 14px; }
  .login-story { padding: 24px; border-radius: 20px; }
  .login-story h1 { font-size: 26px; }
  .login-story p, .login-line, .login-story > small { display: none; }
  .login-panel { width: 100%; margin: 14px auto 0; padding: 24px; border-radius: 20px; }
  .login-panel input, dialog input { font-size: 16px; }
  footer { padding: 2px 14px 22px; font-size: 10px; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
