/* ============================================================
   macOS 风格设计系统
   - 字体：系统 SF / 苹方
   - 侧栏：毛玻璃 vibrancy
   - 控件：mac 按钮、分段控件、内阴影输入框
   - 支持深色模式（prefers-color-scheme）
   ============================================================ */

:root {
  --accent: #007aff;
  --accent-weak: rgba(0, 122, 255, .12);
  --accent-press: #0063d1;

  --bg: #ececee;
  --window: #ffffff;
  --sidebar: rgba(246, 246, 248, .78);
  --sidebar-line: rgba(0, 0, 0, .08);
  --titlebar: rgba(250, 250, 252, .82);

  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, .09);
  --line-strong: rgba(0, 0, 0, .16);

  --fill: rgba(0, 0, 0, .04);
  --fill-hover: rgba(0, 0, 0, .06);
  --control: #ffffff;
  --control-press: #f0f0f2;

  --red: #ff3b30;
  --red-weak: rgba(255, 59, 48, .1);
  --orange: #ff9500;
  --orange-weak: rgba(255, 149, 0, .12);
  --green: #34c759;
  --green-weak: rgba(52, 199, 89, .12);

  --radius-window: 12px;
  --radius: 10px;
  --radius-sm: 6px;

  --shadow-window: 0 0 0 .5px rgba(0, 0, 0, .12), 0 24px 60px rgba(0, 0, 0, .18);
  --shadow-card: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .1);
  --ring: 0 0 0 3.5px rgba(0, 122, 255, .28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --window: #26262a;
    --sidebar: rgba(38, 38, 42, .76);
    --sidebar-line: rgba(255, 255, 255, .08);
    --titlebar: rgba(40, 40, 45, .82);

    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --line: rgba(255, 255, 255, .1);
    --line-strong: rgba(255, 255, 255, .18);

    --fill: rgba(255, 255, 255, .06);
    --fill-hover: rgba(255, 255, 255, .1);
    --control: #3a3a3e;
    --control-press: #46464b;

    --accent-weak: rgba(10, 132, 255, .18);
    --shadow-window: 0 0 0 .5px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .5);
    --shadow-card: 0 0 0 .5px rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(0, 122, 255, .25); }

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .3); background-clip: content-box; border: 3px solid transparent; }
@media (prefers-color-scheme: dark) { ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); background-clip: content-box; border: 3px solid transparent; } }

.app-loading { display: grid; place-items: center; height: 100%; color: var(--text-3); font-size: 13px; }

/* ---------- 窗口骨架 ---------- */
.shell { display: flex; height: 100%; }
.mac-window { display: flex; width: 100%; height: 100%; background: var(--window); }

.sidebar {
  width: 218px; flex: 0 0 218px;
  background: var(--sidebar);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-right: .5px solid var(--sidebar-line);
  display: flex; flex-direction: column;
  padding: 10px 10px 12px;
  user-select: none;
}

.traffic { display: flex; gap: 8px; padding: 4px 4px 14px; }
.tl { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.tl.red { background: #ff5f57; }
.tl.yellow { background: #febc2e; }
.tl.green { background: #28c840; }

.brand {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 0 8px 10px; letter-spacing: .02em;
}

.nav-group { font-size: 11px; font-weight: 600; color: var(--text-3); padding: 10px 8px 4px; }

.nav-item {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 8px; margin-bottom: 1px;
  border: 0; border-radius: 7px; background: transparent;
  color: var(--text); text-align: left; width: 100%; cursor: default;
  font-size: 13px;
}
.nav-item:hover { background: var(--fill); }
.nav-item.active { background: var(--accent); color: #fff; font-weight: 500; }
.nav-item.active .nav-icon { opacity: 1; }
.nav-icon { font-size: 14px; width: 18px; text-align: center; opacity: .85; }
.nav-spacer { flex: 1; }
.nav-foot { padding: 8px; font-size: 11px; color: var(--text-3); border-top: .5px solid var(--sidebar-line); }

/* ---------- 主区 ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--window); }

.titlebar {
  height: 38px; flex: 0 0 38px; display: flex; align-items: center; justify-content: center;
  background: var(--titlebar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.titlebar .title { font-size: 13px; font-weight: 600; color: var(--text); }
.titlebar .traffic { position: absolute; left: 14px; padding: 0; }
.titlebar .traffic + .title { margin-left: 0; }

.main > .content, .main { overflow-y: auto; }
.main { padding: 0 0 32px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 22px 26px 14px; flex-wrap: wrap;
}
.page-title { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.page-sub { color: var(--text-3); font-size: 12px; margin-top: 3px; }

/* 主区里的块统一左右留白 */
.main > .card,
.main > .grid,
.main > .tabs,
.main > .timeline,
.main > section { margin-left: 26px; margin-right: 26px; }
.main > .card:first-of-type { margin-top: 0; }

/* ---------- 卡片（mac 分组面板） ---------- */
.card {
  background: var(--window);
  border: .5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin-top: 14px;
}
.grid + .card, .card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-title { font-size: 13px; font-weight: 600; margin: 0; color: var(--text); }

.grid { display: grid; gap: 14px; margin-top: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-main { grid-template-columns: 3fr 2fr; }
.grid > .card { margin-top: 0; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }

/* ---------- 徽标 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: var(--fill); color: var(--text-2);
}
.tag.red { background: var(--red-weak); color: var(--red); }
.tag.yellow { background: var(--orange-weak); color: #b26a00; }
.tag.green { background: var(--green-weak); color: #1f8b3b; }
.tag.gray { background: var(--fill); color: var(--text-3); }
@media (prefers-color-scheme: dark) {
  .tag.yellow { color: #ffb340; }
  .tag.green { color: #4ade80; }
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red); } .dot.yellow { background: var(--orange); }
.dot.green { background: var(--green); } .dot.gray { background: var(--text-3); opacity: .5; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: var(--radius-sm);
  border: .5px solid var(--line-strong);
  background: var(--control);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  cursor: default; font-size: 12px; white-space: nowrap;
  transition: background .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--control-press); }
.btn:active { background: var(--fill-hover); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary {
  background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 1px 2px rgba(0, 122, 255, .35);
}
.btn.primary:hover { background: #0a84ff; }
.btn.primary:active { background: var(--accent-press); }
.btn.danger { color: var(--red); border-color: rgba(255, 59, 48, .3); background: var(--control); }
.btn.danger:hover { background: var(--red-weak); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-weak); }
.btn.sm { height: 22px; padding: 0 8px; font-size: 11px; border-radius: 5px; }
.btn:disabled { opacity: .45; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 11px; color: var(--text-3); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 28px; padding: 0 9px;
  border: .5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--control); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .03);
}
.textarea { height: auto; min-height: 76px; padding: 7px 9px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.select { padding-right: 26px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 13px) 12px, calc(100% - 9px) 12px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.inline { display: flex; gap: 8px; }
.inline > * { flex: 1; }
input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent); }

/* ---------- 表格（mac 列表） ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { text-align: left; padding: 8px 10px; font-size: 12.5px; vertical-align: middle; }
.table th { color: var(--text-3); font-weight: 500; font-size: 11px; border-bottom: .5px solid var(--line); }
.table td { border-bottom: .5px solid var(--line); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--fill); }

/* ---------- 列表行 ---------- */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
}
.list-item + .list-item { box-shadow: 0 -0.5px 0 var(--line); }
.list-item:hover { background: var(--fill); }
.list-item.clickable { cursor: pointer; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-size: 13px; font-weight: 500; }
.item-sub { color: var(--text-3); font-size: 11.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 空态 / 骨架 ---------- */
.empty { text-align: center; color: var(--text-3); padding: 30px 12px; font-size: 12.5px; }
.empty .btn { margin-top: 10px; }
.skeleton { height: 44px; border-radius: 8px; background: var(--fill); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- 弹层（mac sheet） ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 16px;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--window); border-radius: 12px;
  width: min(560px, 100%); max-height: 86vh; overflow: auto;
  box-shadow: var(--shadow-pop);
  animation: pop .18s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: .5px solid var(--line); font-size: 13px; font-weight: 600; }
.modal-body { padding: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: .5px solid var(--line); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); top: 14px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; color: var(--text);
  background: rgba(250, 250, 252, .92); border: .5px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  animation: pop .18s ease;
}
@media (prefers-color-scheme: dark) { .toast { background: rgba(58, 58, 62, .92); } }
.toast.success { color: #1f8b3b; }
.toast.error { color: var(--red); }

/* ---------- 首页：紧急区 ---------- */
.emergency { border-left: 3px solid var(--red); }
.kpi { display: flex; gap: 26px; flex-wrap: wrap; }
.kpi-item { min-width: 88px; }
.kpi-value { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.kpi-label { color: var(--text-3); font-size: 11px; margin-top: 1px; }

.checkitem { display: flex; align-items: flex-start; gap: 10px; padding: 9px 4px; }
.checkitem + .checkitem { box-shadow: 0 -0.5px 0 var(--line); }
.checkitem input[type=checkbox] { margin-top: 3px; }

.timeline { border-left: .5px solid var(--line); margin-left: 32px; padding-left: 14px; display: flex; flex-direction: column; gap: 12px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }

/* ---------- 分段控件（阶段切换 / 标签页） ---------- */
.stagebar { display: flex; gap: 3px; flex-wrap: wrap; background: var(--fill); padding: 3px; border-radius: 8px; width: fit-content; }
.stage { height: 24px; padding: 0 10px; border-radius: 6px; border: 0; background: transparent; color: var(--text-2); font-size: 12px; cursor: default; }
.stage:hover { color: var(--text); }
.stage.active { background: var(--control); color: var(--text); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

.tabs { display: flex; gap: 2px; background: var(--fill); padding: 3px; border-radius: 8px; margin-top: 14px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { height: 24px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font-size: 12px; cursor: default; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--control); color: var(--text); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* ---------- 移动端 ---------- */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  body { background: var(--window); }
  .shell { flex-direction: column; }
  .mac-window { flex-direction: column; }
  .sidebar { display: none; }
  .titlebar { height: 44px; flex: 0 0 44px; }
  .titlebar .traffic { display: none; }
  .page-head { padding: 16px 16px 10px; }
  .page-title { font-size: 20px; }
  .main > .card, .main > .grid, .main > .tabs, .main > .timeline, .main > section { margin-left: 16px; margin-right: 16px; }
  .main { padding-bottom: 78px; }
  .grid-2, .grid-3, .grid-main { grid-template-columns: 1fr; }

  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(250, 250, 252, .86);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: .5px solid var(--line);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
  }
  @media (prefers-color-scheme: dark) { .bottom-nav { background: rgba(38, 38, 42, .86); } }
  .bn-item { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--text-3); font-size: 10px; padding: 4px 0; }
  .bn-item.active { color: var(--accent); font-weight: 600; }
  .bn-icon { font-size: 19px; line-height: 1.1; }

  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 6px 0; border-bottom: .5px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; }
  .table td::before { content: attr(data-label); color: var(--text-3); font-size: 11.5px; }
}

/* ============ 首页看板（指标条 + 流程看板） ============ */
.dash-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 20px 26px 12px; flex-wrap: wrap;
}
.dash-greet { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.dash-sub { color: var(--text-3); font-size: 12px; margin-top: 3px; }

.tiles {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  margin: 0 26px;
}
.tile {
  height: 74px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 0 14px; border-radius: 10px;
  background: var(--window); border: .5px solid var(--line); box-shadow: var(--shadow-card);
  text-decoration: none; color: var(--text);
}
.tile:hover { background: var(--fill); text-decoration: none; }
.tile-value { font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.tile-label { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.tile.red .tile-value { color: var(--red); }
.tile.orange .tile-value { color: #c26a00; }
.tile.blue .tile-value { color: var(--accent); }
@media (prefers-color-scheme: dark) { .tile.orange .tile-value { color: #ffb340; } }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; margin: 14px 26px 0; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 14px; }

/* 流程看板 */
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pipe-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pipe-col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px; border-radius: 7px; background: var(--fill);
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
}
.pipe-count { font-size: 11px; color: var(--text-3); font-weight: 500; }
.pipe-empty {
  border: 1px dashed var(--line-strong); border-radius: 8px; height: 62px;
  display: grid; place-items: center; color: var(--text-3); font-size: 11px;
}
.pipe-card {
  border: .5px solid var(--line); border-radius: 9px; background: var(--control);
  padding: 8px 9px; cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,.03);
  display: flex; flex-direction: column; gap: 5px; min-height: 76px;
}
.pipe-card:hover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-weak); }
.pipe-name { font-size: 12.5px; font-weight: 600; line-height: 1.25; display: flex; align-items: center; gap: 5px; }
.pipe-meta { font-size: 11px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.pipe-flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.flag { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: var(--fill); color: var(--text-2); }
.flag.red { background: var(--red-weak); color: var(--red); }
.flag.yellow { background: var(--orange-weak); color: #b26a00; }
.avatar {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent-weak);
  color: var(--accent); font-size: 9.5px; font-weight: 700;
  display: inline-grid; place-items: center; flex: 0 0 auto;
}
.urgency { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.urgency.red { background: var(--red); box-shadow: 0 0 0 3px var(--red-weak); }
.urgency.yellow { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-weak); }
.urgency.gray { background: var(--line-strong); }

/* 侧栏紧凑列表 */
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 8px; padding: 7px 2px; }
.mini-row + .mini-row { box-shadow: 0 -0.5px 0 var(--line); }
.mini-main { flex: 1; min-width: 0; }
.mini-title { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-empty { color: var(--text-3); font-size: 12px; padding: 10px 2px; }

@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .dash-head { padding: 16px 16px 10px; }
  .dash-greet { font-size: 19px; }
  .tiles { margin: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { margin: 12px 16px 0; grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(6, 160px); }
}

/* ============ 折叠卡 ============ */
.collapse { padding: 0; overflow: hidden; }
.collapse-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 16px; background: none; border: 0; text-align: left; cursor: default;
}
.collapse-head:hover { background: var(--fill); }
.collapse-title { font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.collapse-sub {
  font-size: 11.5px; color: var(--text-3); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%;
}
.collapse-side { display: inline-flex; align-items: center; gap: 8px; }
.chevron { color: var(--text-3); font-size: 14px; line-height: 1; transition: transform .15s ease; }
.collapse-head.open .chevron { transform: rotate(90deg); }
.collapse-body { padding: 0 16px 14px; }
.collapse-body .timeline { margin-left: 22px; padding-left: 14px; }

/* 分店铺看板 */
.board + .board { margin-top: 14px; }
@media (max-width: 1180px) {
  .dash-grid > .board { margin-bottom: 0; }
}

/* 店铺看板容器：左侧一列纵向堆叠，避免多店横向挤压 */
.dash-boards { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-boards > .card { margin-top: 0; }
.dash-boards .board + .board { margin-top: 0; }
.dash-side { min-width: 0; }
@media (max-width: 1180px) {
  .dash-boards { gap: 12px; }
}

/* ============ 店铺看板：可折叠 ============ */
.boards-toolbar { display: flex; align-items: center; gap: 8px; padding: 0 2px 2px; }
.board { padding: 0; overflow: hidden; }
.board-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 11px 14px; background: none; border: 0; text-align: left; cursor: default;
}
.board-head:hover { background: var(--fill); }
.board-head .chevron { color: var(--text-3); font-size: 14px; line-height: 1; transition: transform .15s ease; }
.board-head.open .chevron { transform: rotate(90deg); }
.board-name { font-size: 13px; font-weight: 600; }
.board-meta { font-size: 11px; color: var(--red); }
.pipe-body { padding: 0 14px 14px; }
.pipe-body .pipeline { margin-top: 0; }
@media (max-width: 860px) {
  .boards-toolbar { padding: 0 2px; }
}
