/* ==========================================================================
   FlowLink · 应用样式
   严格对应设计稿：侧栏 232 / 顶栏 64 / 卡 18r / 内薄卡 14r / 胶囊 99r
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D6D6DB; border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #BEBEC5; background-clip: content-box; border: 3px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   1. 应用外壳
   ========================================================================== */

.app {
  display: flex;
  min-height: 100vh;
  background: var(--canvas);
}

.app__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app__main {
  flex: 1;
  min-width: 0;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ==========================================================================
   2. 侧栏 SidebarNav · 232 × 全高 · #1D1D1F
   ========================================================================== */

.sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: var(--dark);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #FFFFFF;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 18px;
  width: 100%;
  text-align: left;
  border-radius: var(--r-chip);
  transition: opacity .15s ease;
}
.sidebar__brand:hover { opacity: .82; }

.brand-mark {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.brand-sub { font-size: 10px; color: var(--ink-3); line-height: 1.4; }

.sidebar__group {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #5A5A5F;
  padding: 10px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-chip);
  color: var(--ink-4);
  font-size: 12px;
  transition: background .15s ease, color .15s ease;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #E5E5E7; }
.nav-item__icon { flex: 0 0 16px; display: flex; }
.nav-item__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.is-active { background: rgba(255, 255, 255, .1); color: #FFFFFF; font-weight: 500; }
.nav-item.is-active .nav-item__icon { color: var(--blue-bright); }

.nav-badge {
  flex: 0 0 auto;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--dark-2);
  color: #E5E5E7;
  font-size: 10px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.nav-badge.is-blue { background: var(--blue); color: #FFFFFF; }

.sidebar__spacer { flex: 1; min-height: 24px; }
.sidebar__divider { height: 1px; background: rgba(255, 255, 255, .1); margin: 10px 0; }

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 0;
}
.avatar {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--dark-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; color: #FFFFFF;
}
.sidebar__user-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sidebar__user-name { font-size: 11px; font-weight: 500; color: #FFFFFF; line-height: 1.3; }
.sidebar__user-role { font-size: 10px; color: var(--ink-3); line-height: 1.4; }

/* ==========================================================================
   3. 顶栏 AppTopBar · 64 高 · 白底
   ========================================================================== */

.topbar {
  height: 64px;
  flex: 0 0 64px;
  background: var(--card);
  border-bottom: 1px solid var(--line-soft);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.topbar__crumb { font-size: 11px; color: var(--ink-3); line-height: 1.4; }

.topbar__actions { display: flex; align-items: center; gap: 12px; }

.search {
  width: 236px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--fill);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--ink-3);
  transition: border-color .15s ease, background .15s ease;
}
.search:focus-within { background: #FFFFFF; border-color: var(--blue); color: var(--ink); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-size: 12px; color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); }

.icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: #EBEBEF; color: var(--ink); }
.icon-btn__dot {
  position: absolute; top: 8px; right: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1.5px var(--fill);
}

.topbar .avatar { width: 32px; height: 32px; flex-basis: 32px; background: #E8E8EE; color: var(--ink); }

/* ==========================================================================
   4. 按钮
   ========================================================================== */

.btn {
  height: 34px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn--primary { background: var(--blue); color: #FFFFFF; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--primary:active { background: var(--blue-press); }
.btn--ghost { background: var(--fill); color: var(--ink); }
.btn--ghost:hover { background: #EBEBEF; }
.btn--outline { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); }
.btn--outline:hover { border-color: #C9C9CF; background: var(--zebra); }
.btn--danger { background: var(--red); color: #FFFFFF; }
.btn--danger:hover { background: #BC0012; }
.btn--sm { height: 28px; padding: 0 12px; font-size: 11px; }
.btn--xs { height: 24px; padding: 0 10px; font-size: 11px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  background: var(--gray-bg); color: var(--ink-4); cursor: not-allowed;
  border-color: transparent;
}
.btn.is-loading { pointer-events: none; opacity: .82; }

.spinner {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
  flex: 0 0 auto;
}
.spinner--lg { width: 20px; height: 20px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   5. 卡片 / 区块
   ========================================================================== */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.card--flush { padding: 0; gap: 0; overflow: hidden; }
.card--inner { border-radius: var(--r-inner); padding: 16px; gap: 12px; }
.card--dark { background: var(--dark); border-color: var(--dark); color: #FFFFFF; }
.card--tight { padding: 14px 16px; gap: 10px; }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-title { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.card-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.card-head__right { font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.divider { height: 1px; background: var(--line-soft); }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ==========================================================================
   6. 徽标 / 标签
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--gray-bg);
  color: var(--gray);
}
.badge--green { background: var(--green-bg); color: var(--green); }
.badge--amber { background: var(--amber-bg); color: var(--amber); }
.badge--red { background: var(--red-bg); color: var(--red); }
.badge--blue { background: var(--blue-soft); color: var(--blue); }
.badge--gray { background: var(--gray-bg); color: var(--gray); }
.badge--dark { background: var(--dark); color: #FFFFFF; }
.badge__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--ink-3);
  background: var(--fill);
  height: 22px; padding: 0 9px; border-radius: var(--r-chip);
}
.kbd {
  font-family: var(--font-num);
  font-size: 10px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--ink-2);
}

/* 进度条 */
.bar { height: 6px; border-radius: var(--r-pill); background: var(--gray-bg); overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--r-pill); background: var(--blue); }
.bar__fill--green { background: var(--green); }
.bar__fill--amber { background: var(--amber); }
.bar__fill--red { background: var(--red); }

/* ==========================================================================
   7. AI 能力条（02 / 03 页顶）
   ========================================================================== */

.ai-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ai-bar__left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ai-bar__title { font-size: 12px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 6px; }
.ai-bar__desc { font-size: 11px; color: var(--ink-3); }
.ai-bar__metrics { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.ai-metric { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.ai-metric__k { font-size: 10px; color: var(--ink-4); }
.ai-metric__v { font-size: 11px; font-weight: 600; color: var(--ink); }
.ai-metric__v em { font-style: normal; color: var(--blue); }

/* ==========================================================================
   8. 指标 / KPI
   ========================================================================== */

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi__label { font-size: 11px; color: var(--ink-3); }
.kpi__icon {
  width: 26px; height: 26px; border-radius: var(--r-chip);
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.kpi__value {
  font-family: var(--font-num);
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.05; font-variant-numeric: tabular-nums;
}
.kpi__value small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.kpi__foot { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta--up { color: var(--green); }
.delta--down { color: var(--red); }
.delta--blue { color: var(--blue); }

/* 统计条（02 页摘要） */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat-cell { padding: 0 20px; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.stat-cell:first-child { border-left: 0; padding-left: 0; }
.stat-cell__k { font-size: 11px; color: var(--ink-3); }
.stat-cell__v { font-family: var(--font-num); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-cell__v small { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }

/* 指标三件套（数值 + 说明） */
.figure { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.figure__v { font-family: var(--font-num); font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.figure__v small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.figure__n { font-size: 11px; color: var(--ink-3); text-align: right; max-width: 62%; }

/* ==========================================================================
   9. 表格
   ========================================================================== */

.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  text-align: left;
  padding: 0 16px;
  height: 40px;
  background: var(--zebra);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.table td {
  padding: 0 16px;
  height: var(--row-h, 64px);
  border-bottom: 1px solid var(--line-faint);
  font-size: 12px;
  vertical-align: middle;
}
.table tbody tr:nth-child(even) td { background: var(--zebra); }
.table tbody tr:hover td { background: var(--blue-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .t-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.table .t-strong { font-weight: 500; }
.table .t-sub { font-size: 10px; color: var(--ink-3); display: block; line-height: 1.45; }
.table .t-right { text-align: right; }
.table--74 { --row-h: 74px; }
.table--64 { --row-h: 64px; }

.table-foot {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--ink-3);
}
.pager { display: flex; align-items: center; gap: 8px; }
.pager__btn {
  height: 26px; padding: 0 10px; border-radius: var(--r-chip);
  border: 1px solid var(--line); background: #FFFFFF; font-size: 11px; color: var(--ink-2);
}
.pager__btn:hover { border-color: #C9C9CF; }
.pager__btn.is-disabled { color: var(--ink-5); cursor: not-allowed; }
.pager__btn.is-disabled:hover { border-color: var(--line); }

/* 表格空态：说明原因，不做纯图标占位 */
.table-empty {
  height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-3);
}
.table-empty span { font-size: 12px; }
.table-empty svg { color: var(--ink-4); }

/* 列表行（非表格） */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-faint);
  min-height: 54px;
}
.rows .row:last-child { border-bottom: 0; }
.row:hover { background: var(--zebra); }
.row.is-active { background: var(--blue-soft); }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row__title { font-size: 12px; font-weight: 500; }
.row__meta { font-size: 10px; color: var(--ink-3); }
.row__side { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }

/* ==========================================================================
   10. 表单控件
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field__label { font-size: 10px; color: var(--ink-3); }
.input, .select {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-input);
  border: 1px solid var(--line);
  background: #FFFFFF;
  font-size: 12px;
  width: 100%;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--ink-4); }
.input:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 102, 204, .12); }
.input.is-error { border-color: var(--red); background: #FFF8F8; }
.input.is-error:focus { box-shadow: 0 0 0 3px rgba(215, 0, 21, .12); }
.select { appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2385858B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4.5 6 7.5 9 4.5'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.field__hint { font-size: 10px; color: var(--ink-3); }
.field__hint.is-error { color: var(--red); }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-bar .input { width: 220px; }
.filter-bar .select { width: 132px; }

.switch {
  width: 34px; height: 20px; border-radius: var(--r-pill);
  background: var(--ink-5); position: relative; transition: background .18s ease; flex: 0 0 34px;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF;
  transition: transform .18s ease;
}
.switch.is-on { background: var(--green); }
.switch.is-on::after { transform: translateX(14px); }

.checkbox {
  width: 16px; height: 16px; border-radius: 5px;
  border: 1.5px solid var(--ink-5); background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF; flex: 0 0 16px;
}
.checkbox.is-on { background: var(--blue); border-color: var(--blue); }
.checkbox.is-on svg { opacity: 1; }
.checkbox svg { opacity: 0; }

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--fill);
  border-radius: var(--r-pill);
}
.segmented__item {
  height: 28px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 11px; color: var(--ink-2); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.segmented__item:hover { color: var(--ink); }
.segmented__item.is-active { background: #FFFFFF; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.segmented__item.is-active.is-danger { color: var(--red); }

.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line-soft); }
.tab {
  padding: 0 0 10px; font-size: 12px; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 500; border-bottom-color: var(--blue); }

/* ==========================================================================
   11. 弹窗 / 浮层
   ========================================================================== */

.scrim {
  position: fixed; inset: 0;
  background: rgba(29, 29, 31, .3);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  z-index: 60;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 420px;
  max-width: 100%;
  max-height: calc(100vh - 64px);
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pop .2s cubic-bezier(.2, .8, .3, 1);
}
.modal--wide { width: 480px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

.modal__head { padding: 20px 22px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.modal__sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.modal__close { width: 26px; height: 26px; border-radius: 50%; color: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.modal__close:hover { background: var(--fill); color: var(--ink); }
.modal__body { padding: 0 22px 4px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal__foot {
  padding: 16px 22px 20px;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  border-top: 1px solid var(--line-soft);
  margin-top: 16px;
}

.info-strip {
  background: var(--blue-soft);
  border-radius: var(--r-inner);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--blue);
}
.info-strip--warn { background: var(--amber-bg); color: var(--amber); }
.info-strip--danger { background: var(--red-bg); color: var(--red); }
.info-strip--plain { background: var(--fill); color: var(--ink-2); }

.pick-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pick-row:hover { border-color: #C9C9CF; }
.pick-row.is-picked { border-color: var(--blue); background: var(--blue-soft); }
.pick-row__radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--ink-5); flex: 0 0 16px;
  display: flex; align-items: center; justify-content: center;
}
.pick-row.is-picked .pick-row__radio { border-color: var(--blue); border-width: 5px; }
.pick-row__main { flex: 1; min-width: 0; }
.pick-row__title { font-size: 12px; font-weight: 500; }
.pick-row__meta { font-size: 10px; color: var(--ink-3); }

/* ==========================================================================
   12. 全局提示 Toast
   ========================================================================== */

.toast-root {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 260px;
  max-width: 360px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  box-shadow: var(--shadow-toast);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: auto;
  animation: toast-in .22s cubic-bezier(.2, .8, .3, 1);
}
.toast.is-out { animation: toast-out .2s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(12px); } }
.toast__icon { width: 18px; height: 18px; flex: 0 0 18px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.toast--success .toast__icon { color: var(--green); }
.toast--error .toast__icon { color: var(--red); }
.toast--info .toast__icon { color: var(--blue); }
.toast--loading .toast__icon { color: var(--blue); }
.toast__main { flex: 1; min-width: 0; }
.toast__title { font-size: 12px; font-weight: 500; }
.toast__desc { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ==========================================================================
   13. 骨架屏 / 加载 / 空状态 / 错误
   ========================================================================== */

.sk { background: linear-gradient(90deg, #EFEFF2 25%, #E6E6EA 37%, #EFEFF2 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 6px; }
@keyframes sk { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
.sk--line { height: 10px; }
.sk--title { height: 14px; width: 42%; }
.sk--img { height: 96px; border-radius: var(--r-inner); }

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 20px;
  text-align: center;
  flex: 1;
}
.state__icon {
  width: 44px; height: 44px; border-radius: var(--r-inner);
  display: flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--ink-3);
}
.state__icon--error { background: var(--red-bg); color: var(--red); }
.state__icon--success { background: var(--green-bg); color: var(--green); }
.state__title { font-size: 12px; font-weight: 500; }
.state__desc { font-size: 11px; color: var(--ink-3); max-width: 260px; }

/* ==========================================================================
   14. 页面 00 · AI 赋能总纲（无外壳）
   ========================================================================== */

.cover {
  min-height: 100vh;
  background: var(--canvas);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.cover__brandbar {
  height: 56px;
  flex: 0 0 56px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brandbar__left { display: flex; align-items: center; gap: 10px; }
.brandbar__name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.brandbar__sep { width: 1px; height: 18px; background: var(--line); }
.brandbar__tag { font-size: 11px; color: var(--ink-3); }
.brandbar__right { font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }

.hero {
  flex: 1;
  min-height: 200px;
  background: var(--dark);
  border-radius: var(--r-hero);
  padding: 34px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  color: #FFFFFF;
}
.hero__eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--blue-bright); margin-bottom: 12px;
}
.hero__title { font-size: 34px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.22; }
.hero__title em { font-style: normal; color: var(--blue-bright); }
.hero__desc { font-size: 12px; color: var(--ink-4); margin-top: 14px; max-width: 620px; line-height: 1.75; }
.hero__metrics { display: flex; gap: 36px; }
.hero-metric { display: flex; flex-direction: column; gap: 6px; min-width: 96px; }
.hero-metric__v { font-family: var(--font-num); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--blue-bright); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-metric__v.is-light { color: #FFFFFF; }
.hero-metric__k { font-size: 10px; color: var(--ink-4); }
.hero-metric__d { font-size: 10px; color: var(--ink-3); }

.dir-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.dir-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.dir-card__top { display: flex; align-items: center; justify-content: space-between; }
.dir-card__icon { width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.dir-card__no { font-family: var(--font-num); font-size: 11px; color: var(--ink-4); }
.dir-card__name { font-size: 13px; font-weight: 600; }
.dir-card__desc { font-size: 11px; color: var(--ink-3); line-height: 1.65; min-height: 36px; }

.mini-list { display: flex; flex-direction: column; gap: 7px; }
.mini-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11px; }
.mini-row__k { color: var(--ink-3); }
.mini-row__v { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }

.link-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.link-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-inner); padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.link-card__head { display: flex; align-items: center; gap: 8px; }
.link-card__no { font-family: var(--font-num); font-size: 10px; color: #FFFFFF; background: var(--ink); width: 18px; height: 18px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex: 0 0 18px; }
.link-card__name { font-size: 12px; font-weight: 600; }
.link-card__desc { font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.tri { display: flex; flex-direction: column; gap: 6px; }
.tri__row { display: flex; align-items: baseline; gap: 8px; }
.tri__k { font-size: 10px; color: var(--ink-4); flex: 0 0 28px; }
.tri__v { font-size: 11px; color: var(--ink); }

/* ==========================================================================
   15. 页面 01 · 运营驾驶舱
   ========================================================================== */

.e2e-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.e2e-steps { display: flex; align-items: stretch; gap: 0; }
.e2e-step { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 0 16px; border-left: 1px solid var(--line-soft); }
.e2e-step:first-child { border-left: 0; padding-left: 0; }
.e2e-step__top { display: flex; align-items: center; gap: 8px; }
.e2e-step__no { font-family: var(--font-num); font-size: 10px; font-weight: 600; color: var(--blue); background: var(--blue-soft); width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex: 0 0 20px; }
.e2e-step__name { font-size: 12px; font-weight: 600; }
.e2e-step__desc { font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.e2e-step__stats { display: flex; gap: 12px; margin-top: auto; }
.e2e-stat__k { font-size: 9px; color: var(--ink-4); }
.e2e-stat__v { font-family: var(--font-num); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.e2e-arrow { flex: 0 0 auto; display: flex; align-items: center; color: var(--ink-5); padding: 0 2px; }

.split { display: grid; gap: var(--gap); align-items: stretch; }
.split--01 { grid-template-columns: minmax(0, 700fr) minmax(0, 444fr); }
.split--03 { grid-template-columns: minmax(0, 336fr) minmax(0, 824fr); }
.split--05 { grid-template-columns: minmax(0, 640fr) minmax(0, 504fr); }
.split--06 { grid-template-columns: minmax(0, 660fr) minmax(0, 484fr); }

.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th { font-size: 10px; font-weight: 500; color: var(--ink-3); text-align: right; padding: 0 0 10px; }
.cmp-table th:first-child { text-align: left; }
.cmp-table td { padding: 11px 0; border-top: 1px solid var(--line-faint); font-size: 12px; text-align: right; }
.cmp-table td:first-child { text-align: left; }
.cmp-table .t-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.cmp-table .t-before { color: var(--ink-4); }
.cmp-table .t-after { font-weight: 600; }

.autonomy { display: flex; flex-direction: column; gap: 8px; }
.autonomy__top { display: flex; align-items: baseline; justify-content: space-between; }
.autonomy__v { font-family: var(--font-num); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.autonomy__v small { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }

.todo { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-faint); }
.todo:last-child { border-bottom: 0; }
.todo__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.todo__title { font-size: 12px; font-weight: 500; }
.todo__title.is-done { color: var(--ink-4); text-decoration: line-through; }
.todo__meta { font-size: 10px; color: var(--ink-3); }
.todo.is-done .checkbox { background: var(--green); border-color: var(--green); }

/* ==========================================================================
   16. 页面 03 · 物流凭证核对
   ========================================================================== */

.queue-card { display: flex; flex-direction: column; min-height: 0; }
.queue-list { display: flex; flex-direction: column; overflow-y: auto; }
.queue-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-faint);
  display: flex; flex-direction: column; gap: 6px;
  text-align: left; width: 100%;
  border-left: 2px solid transparent;
}
.queue-item:hover { background: var(--zebra); }
.queue-item.is-active { background: var(--blue-soft); border-left-color: var(--blue); }
.queue-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.queue-item__no { font-family: var(--font-num); font-size: 11px; font-weight: 600; }
.queue-item__meta { font-size: 10px; color: var(--ink-3); }
.conf { display: flex; align-items: center; gap: 8px; }
.conf__bar { flex: 1; height: 4px; border-radius: 99px; background: var(--gray-bg); overflow: hidden; }
.conf__fill { height: 100%; border-radius: 99px; }

.work { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0; align-items: stretch; }
.work__photo { padding: 20px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }
.photo-box { border-radius: var(--r-inner); overflow: hidden; background: var(--fill); border: 1px solid var(--line-soft); flex: 1; min-height: 268px; display: flex; align-items: center; justify-content: center; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 8px; }
.thumb { width: 76px; height: 54px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--fill); padding: 0; }
.thumb.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0, 102, 204, .18); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.work__fields { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.conf-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 500; padding: 0 6px; height: 17px;
  border-radius: 5px; background: var(--green-bg); color: var(--green);
}
.conf-chip--low { background: var(--red-bg); color: var(--red); }
.work__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ==========================================================================
   17. 页面 04 / 05 · Banner、清单、调控
   ========================================================================== */

.banner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.banner__icon { width: 36px; height: 36px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.banner__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.banner__title { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.banner__desc { font-size: 11px; color: var(--ink-3); }
.banner__stats { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }

.ad-list { display: flex; flex-direction: column; }
.ad-item {
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; height: 68px;
  border-bottom: 1px solid var(--line-faint);
  border-left: 2px solid transparent;
  text-align: left; width: 100%;
}
.ad-item:hover { background: var(--zebra); }
.ad-item.is-active { background: var(--blue-soft); border-left-color: var(--blue); }
.ad-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ad-item__name { font-size: 12px; font-weight: 500; }
.ad-item__sku { font-size: 10px; color: var(--ink-3); font-family: var(--font-num); }
.ad-item__days { flex: 0 0 58px; text-align: center; }
.ad-item__days b { font-family: var(--font-num); font-size: 14px; font-weight: 600; display: block; }
.ad-item__days span { font-size: 9px; color: var(--ink-4); }

.budget { display: flex; flex-direction: column; gap: 16px; }
.budget__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.budget__metric { padding: 0 16px; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.budget__metric:first-child { border-left: 0; padding-left: 0; }
.budget__metric b { font-family: var(--font-num); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.budget__metric span { font-size: 10px; color: var(--ink-3); }

/* ==========================================================================
   18. 页面 06 · 成果价值
   ========================================================================== */

.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.shift-list { display: flex; flex-direction: column; gap: 12px; }
.shift { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.shift__from { flex: 1; color: var(--ink-3); text-align: right; }
.shift__arrow { flex: 0 0 auto; color: var(--ink-5); }
.shift__to { flex: 1; font-weight: 500; }

/* ==========================================================================
   19. 页面 07 · 系统设置（自动化与通知）
   ========================================================================== */

.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.spec-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 172px; }
.spec-card__name { font-size: 12px; font-weight: 600; }
.spec-card__note { font-size: 10px; color: var(--ink-3); line-height: 1.6; }
.spec-demo { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.spec-rows { display: flex; flex-direction: column; gap: 16px; }
.spec-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.spec-row__label { flex: 0 0 118px; font-size: 11px; color: var(--ink-3); }
.spec-item { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); }

.inline-progress { display: flex; align-items: center; gap: 10px; width: 220px; }
.inline-progress .bar { flex: 1; }

.toast-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.toast-preview {
  border: 1px solid var(--line); border-radius: var(--r-inner);
  padding: 14px; background: #FFFFFF;
  display: flex; align-items: flex-start; gap: 10px;
}

/* ==========================================================================
   20. AI 能力标识语法
   产品以 Agent 为主线：凡是 AI 参与判断或执行的位置，都用同一套标记表达
   「谁在做 · 接管到哪一层 · 依据是什么 · 置信度多少」
   ========================================================================== */

/* 20.1 AI 标记 */
.ai-tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 17px; padding: 0 6px;
  border-radius: 5px;
  background: var(--ai-soft); color: var(--ai);
  font-size: 10px; font-weight: 500; white-space: nowrap;
}
.ai-tag--solid { background: var(--ai); color: #FFFFFF; }
.ai-tag svg { flex: 0 0 auto; }

/* 20.2 Agent 名签（可点击，查看职责边界与判断依据） */
.agent-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 19px; padding: 0 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ai-line);
  background: #FFFFFF; color: var(--ai-deep);
  font-size: 10px; font-weight: 500; white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.agent-chip:hover { background: var(--ai-soft); border-color: var(--ai); }

/* 20.3 接管层级 */
.auto-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 19px; padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 500; white-space: nowrap;
}
.auto-chip--full { background: var(--green-bg); color: var(--green); }
.auto-chip--assist { background: var(--blue-soft); color: var(--blue); }
.auto-chip--human { background: var(--gray-bg); color: var(--gray); }

/* 20.4 置信度补充档位（默认档在 16 节 .conf-chip） */
.conf-chip--mid { background: var(--blue-soft); color: var(--blue); }

/* 20.5 AI 判断依据（默认收起，展开看到依据 / 数据 / 阈值 / 输出） */
.ai-why { border: 1px solid var(--ai-line); border-radius: var(--r-inner); background: #FCFCFF; overflow: hidden; }
.ai-why__sum {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px; cursor: pointer;
  font-size: 11px; color: var(--ai-deep);
  list-style: none;
}
.ai-why__sum::-webkit-details-marker { display: none; }
.ai-why__sum b { font-weight: 600; }
.ai-why__n { font-size: 10px; color: var(--ink-4); }
.ai-why__arrow { margin-left: auto; display: flex; color: var(--ink-4); transition: transform .18s ease; }
.ai-why[open] .ai-why__arrow { transform: rotate(90deg); }
.ai-why__body { padding: 2px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-why__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; font-size: 11px; line-height: 1.6; }
.ai-why__k { color: var(--ink-4); }
.ai-why__v { color: var(--ink-2); }

/* 20.6 AI 能力容器：能力条 + 判断依据 */
.ai-cap { display: flex; flex-direction: column; gap: 10px; }

/* 20.7 Agent 输入 → 输出 */
.agent-flow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px; background: var(--fill); border-radius: var(--r-inner);
  font-size: 11px;
}
.agent-flow__k { flex: 0 0 auto; font-size: 10px; color: var(--ink-4); }
.agent-flow__v { color: var(--ink-2); }
.agent-flow__v--out { font-weight: 500; color: var(--ink); }
.agent-flow__arrow { display: flex; color: var(--ink-5); }

/* 20.8 卡片内的 AI 归属行 */
.kpi__ai, .stat-note, .table-note, .spec-card__ai, .dir-card__ai, .link-card__ai {
  display: flex; align-items: center; gap: 6px;
}
.kpi__ai { padding-top: 9px; border-top: 1px solid var(--line-faint); font-size: 10px; color: var(--ink-3); }
.kpi__ai > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 10px; color: var(--ink-3); }
.table-note { padding: 11px 16px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--ink-3); }
.table-note .ai-why { width: 100%; }
.spec-card__ai { margin-top: -2px; }
.dir-card__ai { flex-wrap: wrap; font-size: 10px; color: var(--ink-3); }
.link-card__ai { flex-wrap: wrap; }

/* 20.9 表格内的 AI 标记位置 */
.table th .ai-tag { margin-left: 6px; vertical-align: middle; }
.table .t-sub .ai-tag, .table .t-sub .conf-chip { margin-right: 4px; }
.table .t-sub { display: flex; align-items: center; gap: 4px; }

/* 20.10 表单字段的证据来源 */
.field__src { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--ink-4); }

/* 20.11 侧栏：Agent 常驻运行状态 */
.sidebar__agents {
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; text-align: left;
  margin-top: 10px; padding: 10px;
  border-radius: var(--r-chip);
  background: rgba(94, 92, 230, .16);
  border: 1px solid rgba(94, 92, 230, .34);
  transition: background .16s ease;
}
.sidebar__agents:hover { background: rgba(94, 92, 230, .24); }
.sidebar__agents-top { display: flex; align-items: center; gap: 6px; color: #FFFFFF; font-size: 11px; }
.sidebar__agents-top b { font-weight: 500; }
.sidebar__agents-sub { font-size: 10px; color: var(--ink-4); }
.live-dot {
  width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%;
  background: #6EE7A8; box-shadow: 0 0 0 3px rgba(110, 231, 168, .18);
  animation: live-pulse 2.2s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* 20.12 Agent 详情 / 名册弹窗 */
.agent-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rule-list { display: flex; flex-direction: column; gap: 8px; }
.rule-row { display: flex; align-items: flex-start; gap: 9px; font-size: 11.5px; color: var(--ink-2); line-height: 1.6; }
.rule-row i { width: 5px; height: 5px; flex: 0 0 5px; margin-top: 7px; border-radius: 50%; background: var(--ai); }
.agent-rows { display: flex; flex-direction: column; gap: 8px; }
.agent-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-inner);
  background: #FFFFFF;
  transition: border-color .16s ease, background .16s ease;
}
.agent-row:hover { border-color: var(--ai-line); background: #FCFCFF; }
.agent-row__mark {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px;
  background: var(--ai-soft); color: var(--ai);
  display: flex; align-items: center; justify-content: center;
}
.agent-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.agent-row__name { font-size: 12px; font-weight: 500; }
.agent-row__meta { font-size: 10px; color: var(--ink-3); }

/* 20.13 自动化策略：每条策略绑定执行 Agent */
.spec-row--list { align-items: flex-start; }
.policy-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.policy-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line-soft); border-radius: var(--r-chip);
  background: #FFFFFF;
}
.policy-row__k { font-size: 11px; font-weight: 500; flex: 0 0 140px; }
.policy-row__desc { flex: 1; min-width: 0; text-align: right; font-size: 10px; color: var(--ink-3); }

/* 20.14 AI 标记说明（07 页顶部） */
.ai-legend {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 11px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  font-size: 10px; color: var(--ink-3);
}
.ai-legend__k { font-size: 11px; font-weight: 600; color: var(--ink); }
.ai-legend__item { display: flex; align-items: center; gap: 6px; }

/* 20.15 01 页链路环节内的 AI 行 */
.e2e-step__ai, .e2e-step__stat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* 20.16 05 页风险清单行内的 AI 依据 */
.ad-item__why { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ai-deep); }
.ad-item__why svg { flex: 0 0 auto; color: var(--ai); }

/* ==========================================================================
   21. 响应式（桌面端）
   ========================================================================== */

@media (max-width: 1400px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .hero__metrics { flex-wrap: wrap; }
}

@media (max-width: 1240px) {
  .dir-grid, .kpi-grid, .impact-grid, .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split--01, .split--03, .split--05, .split--06 { grid-template-columns: minmax(0, 1fr) !important; }
  .e2e-steps { flex-wrap: wrap; gap: 16px 0; }
  .e2e-step { flex: 1 1 30%; }
  .search { width: 170px; }
}

@media (max-width: 1024px) {
  :root { --pad: 16px; --gap: 12px; }
  .sidebar { width: 64px; flex-basis: 64px; padding: 16px 12px; align-items: center; }
  .sidebar__brand { padding: 0 0 16px; justify-content: center; }
  .brand-text, .sidebar__group, .nav-item__label, .nav-badge, .sidebar__user-text { display: none; }
  .sidebar__user-text { display: none; }
  .sidebar__agents { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .sidebar__user { justify-content: center; padding-top: 8px; }
  .cover { padding: 20px; }
  .stat-row, .budget__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .stat-cell { padding: 0 16px; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .work__photo { border-right: 0; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 760px) {
  .dir-grid, .kpi-grid, .impact-grid, .spec-grid, .link-grid, .toast-row, .field-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar__actions .search { display: none; }
  .hero__title { font-size: 26px; }
}

@media print {
  .toast-root { display: none !important; }
}
