/* MLP SYS · 浅色专业风
   参考风格：左 220px 深紫侧栏 + 右浅米灰内容区；白卡片、细边框、深紫主色。
   约定：无渐变、无阴影、无动画、无外部字体 / 图标库；仅原生样式。 */
:root {
  --primary: #3a1f54;          /* 深紫主色：主按钮、卡片左边框、强调文字 */
  --primary-dark: #2b1641;     /* 主色 hover，比主色更深一档 */
  --primary-soft: #f4eef9;     /* 浅紫底 */
  --primary-bright: #c79aeb;   /* 亮紫：仅用于深色侧栏上的选中标记 */
  --accent: #3a1f54;
  --accent-soft: #f4eef9;
  --muted: #8a8781;            /* 次要文字 */
  --text: #1a1a18;
  --text-weak: #3a3833;
  --bg: #f7f6f3;              /* 浅米灰内容区 */
  --card: #FFFFFF;
  --border: #e6e4de;
  --border-strong: #d3d0c8;
  --thead: #f4f2ec;
  --row-hover: #faf9f6;
  --ok: #4a7c43;
  --ok-soft: #eef3ea;
  /* 危险 / 错误是语义色，不跟随主色变化，避免删除按钮失去警示性。 */
  --bad: #c83c2a;
  --bad-dark: #a83020;
  --bad-soft: #fbefed;
  --neutral-bar: #b5b2aa;
  --side-bg: #3a1f54;          /* 侧栏与主色同色，选中态另用半透明白底 + 亮紫左条 */
  --side-line: #5b4272;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--primary); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--card);
  color: var(--text-weak);
  cursor: pointer;
  line-height: 1.5;
  white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--border-strong); color: var(--text-weak); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #FFFFFF; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-accent:hover { color: #FFFFFF; border-color: var(--primary-dark); background: var(--primary-dark); }
.btn-ghost { background: var(--card); border-color: var(--border-strong); color: var(--text-weak); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 3px 10px; font-size: 12.5px; border-radius: 5px; }
.btn-block { width: 100%; }
.btn-link { border: none; background: none; color: var(--primary); padding: 2px 4px; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #FFFFFF; }
.btn-danger:hover { background: var(--bad-dark); border-color: var(--bad-dark); color: #FFFFFF; }
.btn-danger-text { color: var(--bad); }
.btn-danger-text:hover { color: var(--bad); text-decoration: underline; }

/* ---------- 表单字段 ---------- */
.field-label { display: block; margin: 10px 0 5px; color: var(--text-weak); font-size: 13px; }
.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  outline: none;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--primary); }
.field-textarea { min-height: 64px; resize: vertical; }
.field-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.field-unit { margin-left: 6px; color: var(--muted); font-size: 12px; }
.form-error {
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid #e6b5ac;
  border-radius: 6px;
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 13px;
}

/* ---------- 标签 / 徽章 ---------- */
.tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
}
.tag-ok { border-color: #bcd6c0; background: var(--ok-soft); color: var(--ok); }
.tag-bad { border-color: #e6b5ac; background: var(--bad-soft); color: var(--bad); }
.tag-accent { border-color: #d9c6e8; background: var(--accent-soft); color: var(--primary); }
.tag-primary { border-color: #d9c6e8; background: var(--primary-soft); color: var(--primary); }

/* ---------- 登录视图 ---------- */
.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
}
.login-card {
  width: 100%;
  max-width: 390px;
  padding: 30px 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-logo {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FFFFFF;
  object-fit: contain;
}
.login-brand h1 { font-size: 19px; font-weight: 600; color: var(--text); }
.login-sub { margin-top: 6px; color: var(--muted); font-size: 13px; }
.login-tip { margin-top: 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.login-foot { margin-top: 6px; text-align: center; color: var(--muted); font-size: 12px; }
#login-submit { margin-top: 18px; padding: 9px 15px; }

/* ---------- 布局：左深色侧栏 + 右内容区（无顶部品牌栏） ---------- */
.app-view { min-height: 100vh; }
.layout { display: flex; min-height: 100vh; align-items: stretch; }
.side-nav {
  width: 220px;
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  background: var(--side-bg);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 18px;
  border-bottom: 1px solid var(--side-line);
}
.side-brand-logo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 3px;
  border-radius: 8px;
  background: #FFFFFF;
  object-fit: contain;
}
.side-brand-text { min-width: 0; }
.side-brand-title {
  font-size: 19px; font-weight: 700; letter-spacing: .4px;
  color: #FFFFFF; line-height: 1.35; white-space: nowrap;
}
.side-brand-sub {
  margin-top: 3px; font-size: 11px; color: rgba(255,255,255,.5); white-space: nowrap;
}

.nav-scroll { flex: 1; overflow-y: auto; padding: 14px 12px 10px; }
/* 一级菜单：字号 14px、行高与间距对齐 strategy-os 的 text-sm / gap-3 / py-2.5。 */
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-block { margin-bottom: 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,.7);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}
.nav-item:hover { background: rgba(255,255,255,.10); color: #FFFFFF; }
/* 侧栏底色与主色同为深紫，选中态不能再铺主色实心块，否则会融进背景：
   改用半透明白底 + 亮紫左条，白字对比仍远高于 4.5:1。 */
.nav-item.active {
  background: rgba(255,255,255,.16);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary-bright);
}
/* 一级图标换成 18px 线性 SVG（参考系统 16px，中文环境下再放大一档更清晰）。 */
.nav-ico {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  color: inherit; opacity: .95;
}
.nav-ico svg { width: 18px; height: 18px; display: block; }
.nav-item-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-item-parent { justify-content: space-between; }
.nav-caret { color: rgba(255,255,255,.55); font-size: 12px; }
.nav-item.active .nav-caret { color: #FFFFFF; }

/* 二级菜单不用图标：竖连接线 + 小圆点 + 缩进三重线索建立层级，避免与一级图标混淆。 */
.nav-sub {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 3px 0 5px 14px;
}
.nav-sub::before {
  content: '';
  position: absolute; left: 24px; top: 6px; bottom: 12px;
  width: 1px; background: rgba(255,255,255,.14);
}
.nav-sub .nav-item {
  position: relative;
  padding: 7px 12px 7px 30px;
  gap: 0;
  font-size: 13px;
  color: rgba(255,255,255,.62);
  border-radius: 5px;
}
.nav-sub .nav-item::before {
  content: '';
  position: absolute; left: 10px; top: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.34);
  box-shadow: 0 0 0 3px var(--side-bg);
}
.nav-sub .nav-item:hover { color: #FFFFFF; background: rgba(255,255,255,.06); }
.nav-sub .nav-item:hover::before { background: rgba(255,255,255,.75); }
.nav-sub .nav-item.active {
  background: rgba(255,255,255,.13); color: #ead7fa; font-weight: 600;
  box-shadow: none;
}
.nav-sub .nav-item.active::before {
  background: var(--primary-bright);
  box-shadow: 0 0 0 3px var(--side-bg), 0 0 0 5px rgba(199,154,235,.30);
}
.nav-admin-badge {
  margin-left: auto;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 3px;
  color: rgba(255,255,255,.6);
  font-size: 10.5px;
  line-height: 1.6;
}

.nav-foot { border-top: 1px solid var(--side-line); padding: 14px 14px 16px; }
.side-user { display: flex; align-items: center; gap: 10px; }
.side-user-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-user-info { flex: 1; min-width: 0; }
.side-user-name { font-size: 13px; font-weight: 600; color: #FFFFFF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-role { margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-logout {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 5px;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  cursor: pointer;
}
.side-logout:hover { border-color: var(--primary-bright); color: #FFFFFF; }

.main-content { flex: 1; min-width: 0; padding: 26px 30px 48px; background: var(--bg); }

/* ---------- 面包屑与页头 ---------- */
.crumbs { margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.crumb-sep { margin: 0 8px; color: #c3c0b8; }
.crumb-cur { color: var(--text-weak); }
.page-head { margin-bottom: 18px; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.3; }
.page-desc { margin-top: 6px; color: var(--muted); font-size: 13px; }
.page-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-meta { margin-top: 6px; color: var(--muted); font-size: 12px; }

/* ---------- 卡片 ---------- */
.card {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.card-title-note { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 14px 16px; }
.card-body.tight { padding: 0; }
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid-2 > .card, .card-grid-3 > .card { margin-bottom: 0; }
@media (max-width: 1100px) {
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
}

/* ---------- 工作台两栏：左 70% / 右 30%，浅色无渐变阴影 ---------- */
.wb-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.wb-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wb-col > .card { margin-bottom: 0; }
/* 预览面板常见宽度约 750px，仍保持左右两栏；仅极窄屏才上下堆叠 */
@media (max-width: 560px) {
  .wb-grid { grid-template-columns: 1fr; }
}

/* ---------- 状态块与提示条 ---------- */
.state { padding: 18px 16px; color: var(--muted); font-size: 13px; text-align: center; }
.state-empty { padding: 30px 16px; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.9; }
.state-empty-title { display: block; color: var(--text-weak); font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.state-empty-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary);
  font-size: 20px;
  line-height: 40px;
  background: var(--bg);
}
.state-error {
  margin: 12px 16px;
  padding: 11px 14px;
  border: 1px solid #e6b5ac;
  border-left: 3px solid var(--bad);
  border-radius: 6px;
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 13px;
  line-height: 1.7;
  word-break: break-all;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--text-weak);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.notice-label {
  flex: 0 0 auto;
  padding: 1px 8px;
  border: 1px solid #d9c6e8;
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.notice-info { border-color: #e0dcd2; border-left-color: var(--muted); background: var(--bg); color: var(--text-weak); }
.notice-info .notice-label { border-color: var(--border-strong); color: var(--muted); }

/* ---------- 指标卡（页内概览） ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}
.kpi-label { color: var(--muted); font-size: 12.5px; }
.kpi-value { margin-top: 6px; font-size: 21px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi-value.accent { color: var(--primary); }
.kpi-value.primary { color: var(--primary); }
.kpi-value.over { color: var(--primary); }
.kpi-sub { margin-top: 4px; color: var(--muted); font-size: 11.5px; }

/* ---------- 达成率进度条 ---------- */
.progress-wrap { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.progress {
  flex: 1;
  height: 9px;
  border-radius: 5px;
  background: #edece7;
  overflow: hidden;
}
.progress-bar { height: 100%; border-radius: 5px; background: var(--neutral-bar); }
.progress-bar.over { background: var(--primary); }
.progress-num { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.progress-num.over { color: var(--primary); font-weight: 600; }
.progress-num.empty { color: #9a9da2; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  margin-bottom: -1px;
}
.tab:hover { color: var(--primary); }
.tab.active {
  border-color: var(--border);
  background: var(--card);
  color: var(--primary);
  font-weight: 600;
}

/* ---------- 表格 ---------- */
.table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.table-tools-left, .table-tools-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-filter {
  width: 210px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--card);
  outline: none;
  font-size: 13px;
}
.table-filter:focus { border-color: var(--primary); }
.table-select {
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--card);
  outline: none;
  font-size: 13px;
  max-width: 180px;
}
.table-select:focus { border-color: var(--primary); }
.table-size-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.table-size {
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--card);
  outline: none;
  font-size: 13px;
}
.table-size:focus { border-color: var(--primary); }
.table-count { color: var(--muted); font-size: 12px; }
.table-scroll { width: 100%; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}
table.tbl th {
  background: var(--thead);
  color: var(--text-weak);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-strong);
}
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: var(--row-hover); }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tbl td.center, table.tbl th.center { text-align: center; }
table.tbl td.clip { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.tbl .cell-money { color: var(--text); font-weight: 500; }
table.tbl .cell-empty { color: #b5b2aa; }
.tbl-empty-row td { text-align: center; color: var(--muted); padding: 22px 12px; line-height: 1.9; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.pager-btn { padding: 3px 10px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--card); cursor: pointer; font-size: 12.5px; }
.pager-btn:disabled { opacity: .45; cursor: not-allowed; }
.pager-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }

table.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
table.kv th, table.kv td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.kv th { width: 34%; background: var(--thead); color: var(--text-weak); font-weight: 500; }
table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: none; }
table.kv td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* 两列紧凑只读 kv */
table.kv.kv-tight th { width: 168px; }
table.kv.kv-tight th, table.kv.kv-tight td { padding: 7px 12px; }

/* ---------- 明细行录入 ---------- */
.line-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.line-table th, .line-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.line-table th { background: var(--thead); color: var(--text-weak); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.line-table td .field-input, .line-table td .field-select { padding: 5px 8px; font-size: 13px; }
.line-table td.num, .line-table th.num { text-align: right; }
.line-actions { padding: 10px 0 0; }
.line-total { margin-left: auto; color: var(--text-weak); font-size: 13px; }
.line-total b { color: var(--primary); font-size: 15px; }
.line-subtotal { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.form-grid .field-label { margin-top: 4px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.form-result {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-size: 13px;
  color: var(--text-weak);
  line-height: 1.8;
  word-break: break-word;
}
.form-result.ok { border-color: #bcd6c0; background: var(--ok-soft); color: var(--ok); }
.form-result.bad { border-color: #e6b5ac; background: var(--bad-soft); color: var(--bad); }
.form-result-title { font-weight: 600; color: inherit; margin-bottom: 4px; }

/* ---------- 图片 ---------- */
.img-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.img-empty { color: var(--muted); font-size: 13px; }
.img-cell { width: 132px; border: 1px solid var(--border); border-radius: 6px; padding: 8px; background: var(--card); }
.img-thumb-wrap { position: relative; height: 108px; }
.img-thumb {
  width: 100%; height: 108px;
  object-fit: contain;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg); padding: 4px; display: block;
}
.img-primary-tag { position: absolute; top: 2px; left: 2px; padding: 1px 6px; border-radius: 3px; background: var(--primary); color: #FFFFFF; font-size: 11px; }
.img-cell-name { margin-top: 6px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-cell-ops { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.img-cell-ops .btn { padding: 2px 4px; font-size: 12px; }

/* ---------- SVG 图表 ---------- */
.chart-box { width: 100%; overflow-x: auto; }
.chart-svg { display: block; min-width: 480px; width: 100%; height: auto; }
.chart-grid { stroke: #eae8e1; stroke-width: 1; }
.chart-axis { stroke: #c9c6bd; stroke-width: 1; }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-value { fill: var(--text-weak); font-size: 11px; }
.chart-bar { fill: var(--primary); }
.chart-bar.alt { fill: #d9a08f; }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 2; }
.chart-dot { fill: var(--primary); }

/* ---------- 渠道卡片 ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.channel-card { border: 1px solid var(--border); border-radius: 6px; padding: 13px 14px; background: var(--card); }
.channel-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.channel-name { font-size: 14px; font-weight: 600; color: var(--text); }
.channel-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; }
.channel-cell-label { color: var(--muted); }
.channel-cell-value { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 500; }
.channel-progress { margin-top: 10px; }

/* ---------- 主从双栏报告式（AI 分析 / 统计分析 / 战略报告） ---------- */
.report-layout { display: flex; align-items: flex-start; gap: 20px; }
.report-side { width: 256px; flex: 0 0 256px; }
.report-main { flex: 1; min-width: 0; }
.report-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.report-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted);
}
.report-panel-head b { color: var(--text-weak); font-weight: 600; }
.report-search {
  width: 100%; margin: 10px 0 8px; padding: 6px 10px;
  border: 1px solid var(--border-strong); border-radius: 6px; background: var(--card); outline: none; font-size: 12.5px;
}
.report-search:focus { border-color: var(--primary); }
.report-items { display: flex; flex-direction: column; gap: 8px; }
.report-item {
  border: 1px solid var(--border); border-radius: 8px; background: var(--card);
  padding: 12px 14px; cursor: pointer;
}
.report-item:hover { border-color: #c9c6bd; }
.report-item.active { border-color: var(--primary); background: var(--primary-soft); }
.report-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.report-item-no { font-size: 11px; color: #b5b2aa; }
.report-item-title { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.45; }
.report-item.active .report-item-title { color: var(--primary); }
.report-item-meta { margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.report-item-status { margin-top: 6px; }
.report-badge {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  background: #eae8e1; color: #6b6862; font-size: 11px; line-height: 1.7;
}
.report-badge.b0 { background: #eaeaf4; color: #5656a8; }
.report-badge.b1 { background: #fdf3e3; color: #9a6b1e; }
.report-badge.b2 { background: #eef3ea; color: #4a7c43; }
.report-badge.b3 { background: var(--primary); color: #FFFFFF; }
.report-badge.b4 { background: #e0f2f1; color: #0f766e; }
.report-badge.b5 { background: #e8e6e0; color: #6b6862; }
.report-all {
  width: 100%; margin-top: 4px; padding: 9px; border: 1px dashed var(--border-strong);
  border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer;
}
.report-all:hover { border-color: var(--primary); color: var(--primary); }
.report-compact { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.report-compact-list { max-height: 70vh; overflow-y: auto; }
.report-compact-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-bottom: 1px solid var(--border); font-size: 12.5px; cursor: pointer;
}
.report-compact-item:last-child { border-bottom: none; }
.report-compact-item:hover { background: var(--row-hover); }
.report-compact-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.report-compact-item .rci-no { flex: 0 0 auto; font-size: 10.5px; color: #b5b2aa; }
.report-compact-item .rci-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-compact-item .rci-date { flex: 0 0 auto; font-size: 11px; color: var(--muted); }
.report-back { border: none; background: none; color: var(--primary); font-size: 12px; cursor: pointer; padding: 0; }
.report-back:hover { text-decoration: underline; }

.report-doc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 24px 28px; }
.report-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.report-meta .rm-title { font-size: 14px; font-weight: 600; color: var(--text); }
.report-meta .rm-dot { color: #b5b2aa; }
.report-section-title { font-size: 14px; font-weight: 700; color: var(--text); margin: 20px 0 10px; }
.report-section-title:first-child { margin-top: 0; }
.report-doc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* Markdown 风格排版（标题层级 / 表格 / 加粗强调色） */
.md { color: var(--text); font-size: 13.5px; line-height: 1.85; }
.md h1 { font-size: 20px; font-weight: 700; margin: 18px 0 10px; color: var(--text); }
.md h2 { font-size: 17px; font-weight: 700; margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); color: var(--text); }
.md h3 { font-size: 15px; font-weight: 700; margin: 14px 0 8px; color: var(--text); }
.md p { margin: 8px 0; }
.md strong, .md b { color: var(--primary); font-weight: 700; }
.md ul, .md ol { margin: 8px 0; padding-left: 22px; }
.md li { margin: 4px 0; list-style: disc; }
.md ol li { list-style: decimal; }
.md hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.md table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.md th, .md td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; }
.md th { background: var(--thead); font-weight: 600; white-space: nowrap; }
.md code { padding: 1px 5px; border-radius: 4px; background: var(--bg); font-size: 12.5px; }
.md-pre {
  white-space: pre-wrap; word-break: break-word; padding: 12px 14px;
  border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 6px; background: var(--bg); color: var(--text-weak);
  font-size: 13px; line-height: 1.85; max-height: 360px; overflow-y: auto;
}
.conclusion-box {
  padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 6px; background: var(--bg); font-size: 13px; line-height: 1.9; color: var(--text-weak);
}

/* ---------- 系统设置分组 ---------- */
.settings-note { margin-bottom: 16px; }

/* ---------- 顶部统计卡：一行等宽、不折行 ---------- */
/* ---------- 产品开发：阶段时间轴与渠道多选 ---------- */
.dev-timeline { margin-top: 4px; padding: 4px 0 4px 18px; border-left: 2px solid var(--border); }
.dev-tl-item { position: relative; padding: 0 0 16px 14px; }
.dev-tl-dot {
  position: absolute; left: -25px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--primary); border: 2px solid var(--card);
}
.dev-tl-body b { font-size: 13.5px; color: var(--text); }
.dev-tl-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.dev-tl-note { margin-top: 4px; color: var(--text-weak); font-size: 12.5px; }
.dev-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 2px; }
.dev-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-weak); }
.dev-check input { accent-color: var(--primary); }

/* 产品开发：阶段流程图（已完成/当前绿、未到达灰）与 Markdown 调研报告 */
.dev-flow-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 0 12px; font-size: 12.5px; color: var(--muted);
}
.dev-flow { width: 100%; overflow-x: auto; padding: 4px 0 14px; margin-bottom: 6px; }
.dev-flow-track { display: flex; align-items: flex-start; min-width: max-content; }
.dev-flow-node { width: 88px; flex: 0 0 88px; text-align: center; }
.dev-flow-badge {
  width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  background: #eeece7; color: #8a8781; border: 2px solid #d3d0c8;
}
.dev-flow-node.reached .dev-flow-badge,
.dev-flow-node.current .dev-flow-badge {
  background: var(--ok-soft); color: var(--ok); border-color: var(--ok);
}
.dev-flow-node.current .dev-flow-badge { box-shadow: 0 0 0 4px rgba(74, 124, 67, .18); }
.dev-flow-label { font-size: 12px; line-height: 1.4; color: var(--muted); word-break: break-all; }
.dev-flow-node.reached .dev-flow-label,
.dev-flow-node.current .dev-flow-label { color: var(--ok); font-weight: 600; }
.dev-flow-cur { margin-top: 3px; font-size: 11px; color: var(--ok); }
.dev-flow-arrow { flex: 0 0 24px; padding-top: 11px; text-align: center; font-size: 15px; color: #c9c6be; }
.dev-flow-arrow.reached { color: var(--ok); }
.dev-md-doc { padding: 4px 2px 10px; }
.dev-md-input {
  min-height: 300px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.7;
}

/* 目标对比「取数说明」较长，单行截断 + 悬停看全文，避免把其它列挤窄。 */
/* 这张表列多，统一不折行；超出内容区由 .table-scroll 横向滚动查看。 */
[data-list-body="target-compare"] table.tbl th,
[data-list-body="target-compare"] table.tbl td { white-space: nowrap; }
.cell-clip {
  display: inline-block; max-width: 260px; vertical-align: middle;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 统计卡宿主：普通块级容器，不参与 flex，让内层 .dash-cards 撑满整行。 */
.dash-slot { display: block; width: 100%; }
.dash-cards { display: flex; flex-wrap: nowrap; gap: 12px; margin-bottom: 16px; }
.dash-card {
  flex: 1 1 0; min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: var(--card);
}
.dash-card-label { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-card-value { margin-top: 6px; font-size: 21px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-card-value.accent { color: var(--primary); }
.dash-card-sub { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.dash-block { margin-bottom: 16px; }
/* 仅命中 dashCardsHost 内层渲染出的 .dash-cards，外层宿主 .dash-slot 不带 flex。 */
.dash-block > .dash-slot > .dash-cards { margin-bottom: 0; }
/* 工作台一行 7 张卡：略微收紧内边距与数值字号，防止库存金额过长挤出卡片。 */
.dash-cards-seven .dash-card { padding: 12px 12px; }
.dash-cards-seven .dash-card-value { font-size: 18px; }
.dash-note { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.dash-loading { padding: 14px 16px; color: var(--muted); font-size: 13px; }
.dash-state { padding: 12px 16px; font-size: 13px; }
.dash-state-error { border: 1px solid #e6b5ac; border-left: 3px solid var(--bad); border-radius: 6px; background: var(--bad-soft); color: var(--bad); }

/* ---------- 原生弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 26, 24, .42);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; overflow-y: auto;
}
.modal-card {
  max-width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 15px; font-weight: 600; color: var(--text); }
.modal-close {
  width: 28px; height: 28px; line-height: 1;
  border: 1px solid var(--border); border-radius: 5px;
  background: var(--card); color: var(--muted);
  font-size: 18px; cursor: pointer;
}
.modal-close:hover { border-color: var(--primary); color: var(--primary); }
.modal-body { padding: 16px 18px; max-height: calc(100vh - 220px); overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); }
.confirm-text { margin: 2px 0 6px; color: var(--text-weak); font-size: 13.5px; line-height: 1.9; }

/* ---------- 产品详情顶部信息条 ---------- */
.product-meta-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  margin-bottom: 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card);
}
.product-meta-item { padding: 10px 18px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.product-meta-item span { color: var(--muted); font-size: 12px; }
.product-meta-item b { color: var(--text); font-size: 13.5px; font-weight: 600; }
.product-meta-ops { margin-left: auto; padding: 8px 16px; display: flex; gap: 8px; }

/* 产品详情标签页：下方细线选中态（仅作用于详情页） */
.detail-tabs .tabs { gap: 0; }
.detail-tabs .tab { border-radius: 0; border: 1px solid transparent; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 9px 18px; }
.detail-tabs .tab.active { border-color: transparent; border-bottom: 2px solid var(--primary); background: transparent; }

/* ---------- 提示条 / Toast ---------- */
.prompt-box {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-weak);
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}
.task-detail { margin-top: 12px; }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 380px;
  padding: 11px 16px;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  z-index: 50;
  line-height: 1.7;
  word-break: break-word;
}
.toast.error { border-left-color: var(--bad); color: var(--bad); }
.toast.ok { border-left-color: var(--ok); color: var(--ok); }

/* ---------- 产品详情：基本信息左右分栏（左主图 / 右档案），两列等高 ---------- */
.pd-split { display: grid; grid-template-columns: 38% 62%; gap: 16px; align-items: stretch; }
.pd-split > .pd-split-left, .pd-split > .pd-split-right { display: flex; min-width: 0; }
.pd-split > .pd-split-left > .card, .pd-split > .pd-split-right > .card {
  width: 100%; display: flex; flex-direction: column; margin-bottom: 0;
}
.pd-split > .pd-split-left > .card > .card-body { flex: 1 1 auto; min-height: 0; display: flex; }

/* 只读画廊：主图区随右列档案高度伸缩，底部固定 6 张缩略图跑马灯。 */
.pd-gallery { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; }
.pd-gallery-main {
  position: relative; flex: 1 1 auto; min-height: 190px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg); overflow: hidden;
}
.pd-main-img {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: contain; display: block;
}
.pd-gallery-main > .state-empty { position: relative; width: 100%; }
.pd-main-tag {
  position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 3px;
  background: var(--primary); color: #FFFFFF; font-size: 11px;
}
.pd-main-tag.preview { background: var(--muted); }
.pd-gallery-strip { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pd-gallery-track {
  flex: 1 1 auto; min-width: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
}
.pd-thumb {
  height: 58px; padding: 2px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--card); cursor: pointer; overflow: hidden;
}
.pd-thumb[hidden] { display: none; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.pd-gallery-none { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.pd-gallery-nav {
  width: 26px; height: 58px; flex: 0 0 26px;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--card); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
}
.pd-gallery-nav:disabled { opacity: .35; cursor: default; }
.pd-gallery-hint {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; color: var(--muted); font-size: 11.5px;
}
.pd-gallery-reset { margin-left: 6px; padding: 0 2px; font-size: 11.5px; }
.pd-gallery-reset[hidden] { display: none; }

/* ---------- 列表复选框列 + 批量操作条 ---------- */
.tbl th.col-check, .tbl td.col-check { width: 36px; text-align: center; padding-left: 8px; padding-right: 4px; }
.col-check input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); }
.batch-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 16px; border-top: 1px solid var(--border);
  background: var(--thead); font-size: 12.5px;
}
.batch-count { color: var(--primary); font-weight: 600; white-space: nowrap; }
.batch-hint { color: var(--muted); }
.batch-select {
  padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 5px;
  background: var(--card); font-size: 12.5px; max-width: 150px;
}

/* ---------- 多选筛选下拉面板 ---------- */
.multi-tool, .multi-select { position: relative; }
.multi-select > summary {
  list-style: none; cursor: pointer; padding: 5px 10px;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--card); font-size: 12.5px; color: var(--text-weak); white-space: nowrap;
}
.multi-select > summary::-webkit-details-marker { display: none; }
.multi-select > summary:hover { border-color: var(--primary); color: var(--primary); }
.multi-panel {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0;
  min-width: 180px; max-height: 260px; overflow-y: auto;
  padding: 8px 10px; border: 1px solid var(--border-strong);
  border-radius: 6px; background: var(--card);
}
.multi-opt { display: block; padding: 3px 0; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.multi-opt input { margin-right: 6px; accent-color: var(--primary); }
.multi-empty { color: var(--muted); font-size: 12px; padding: 4px 0; }

/* ---------- 弹窗内多选字段 + 标签 chip ---------- */
.multi-field { margin-top: 6px; }
.multi-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 2px; }
.multi-check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }
.multi-check input { accent-color: var(--primary); }
.chip {
  display: inline-block; padding: 1px 8px; margin: 2px 3px 2px 0;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--primary-soft); color: var(--primary); font-size: 12px;
}

/* ---------- 附件上传组件（标签分组） ---------- */
.attach-upload { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.attach-file { font-size: 12.5px; max-width: 220px; }
.attach-tag { width: 180px; }
.attach-result { margin: 6px 0 10px; padding: 8px 12px; border-radius: 6px; font-size: 12.5px; }
.attach-result.ok { background: var(--ok-soft); color: var(--ok); }
.attach-result.bad { background: var(--bad-soft); color: var(--bad); }
.attach-group { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.attach-group-title { padding: 6px 12px; background: var(--thead); color: var(--text-weak); font-size: 12.5px; font-weight: 600; }
.attach-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--border); font-size: 13px; }
.attach-link { color: var(--primary); text-decoration: none; }
.attach-link:hover { text-decoration: underline; }
.attach-size { color: var(--muted); font-size: 12px; margin-left: auto; }

/* ---------- 小屏适配 ---------- */
@media (max-width: 900px) {
  .pd-split { grid-template-columns: 1fr; }
  .report-layout { flex-direction: column; }
  .report-side { width: 100%; flex: 0 0 auto; }
  .report-items { flex-direction: row; flex-wrap: wrap; }
  .report-item { flex: 1 1 220px; }
}
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .side-nav { width: 100%; flex: 0 0 auto; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--side-line); }
  .side-brand { padding: 12px 14px; }
  .nav-scroll { padding: 8px 10px; }
  .nav-foot { display: none; }
  .nav-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .nav-block { margin-bottom: 0; }
  .nav-item { width: auto; padding: 6px 10px; gap: 8px; }
  .nav-ico, .nav-ico svg { width: 16px; height: 16px; flex-basis: 16px; }
  .nav-sub { display: none; }
  .main-content { padding: 16px 14px 32px; }
  .dash-cards { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .dash-card { flex: 1 1 120px; min-width: 0; }
  .page-title { font-size: 19px; }
}
