/* =========================================================================
 * 智投罗盘 · Professional Financial SaaS
 * Design tokens: Navy + Slate + Blue / Light Mode / 扁平白卡片
 * ========================================================================= */

:root {
  color-scheme: light;
  --color-primary: #1E3A5F;
  --color-accent: #2563EB;
  --color-accent-light: #DBEAFE;
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E2E8F0;
  --border-default: #E2E8F0;
  --border-strong: #CBD5E1;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --status-success: #15803D;
  --status-success-bg: #DCFCE7;
  --status-warning: #B45309;
  --status-warning-bg: #FEF3C7;
  --status-danger: #DC2626;
  --status-danger-bg: #FEE2E2;
  --status-info: #2563EB;
  --status-info-bg: #DBEAFE;
  --market-up: #DC2626;
  --market-down: #16A34A;
  --market-neutral: #64748B;
  --radius-card: 10px;
  --radius-button: 6px;
  --radius-input: 8px;
  --font-sans: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --page-gutter: 24px;
  --gap: 16px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

button, textarea, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--color-accent); text-decoration: none; }
strong, b { font-weight: 600; }

.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 顶部工具栏 */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 var(--page-gutter); border-bottom: 1px solid var(--border-default); background: var(--bg-surface); }
.topbar-brand, .brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.brand-mark { display: inline-flex; width: 30px; height: 30px; color: var(--color-primary); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }
.brand-copy span { color: var(--text-muted); font-size: 11px; letter-spacing: 0.02em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.topbar-icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: var(--radius-button); background: var(--bg-surface); color: var(--text-secondary); font-size: 13px; transition: border-color 120ms ease, color 120ms ease; }
.topbar-icon-btn:hover { border-color: var(--border-strong); color: var(--color-accent); }
.topbar-icon-btn .icon { width: 16px; height: 16px; }

.health-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: var(--radius-button); color: var(--text-secondary); font-size: 12px; background: var(--bg-secondary); }
.health-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
.health-dot.is-ok { background: var(--status-success); }
.health-dot.is-warn { background: var(--status-warning); }
.health-dot.is-error { background: var(--status-danger); }
.health-dot.is-loading { background: var(--status-info); animation: softPulse 1.4s ease-in-out infinite; }

/* 三栏布局 */
.app-body { display: grid; grid-template-columns: 224px minmax(0, 1fr); height: calc(100vh - 56px); min-height: 560px; }
.sidebar { display: flex; flex-direction: column; min-height: 0; padding: 16px 12px; border-right: 1px solid var(--border-default); background: var(--bg-surface); }
.side-nav { display: flex; flex-direction: column; gap: 22px; flex: 1; }
.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 0 10px 8px; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }

.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: var(--radius-button); background: transparent; color: var(--text-secondary); font-size: 14px; text-align: left; transition: background 120ms ease, color 120ms ease; }
.nav-item .icon { width: 18px; height: 18px; color: var(--text-muted); }
.nav-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.nav-item.is-active { background: var(--color-accent-light); color: var(--color-primary); font-weight: 500; }
.nav-item.is-active .icon { color: var(--color-accent); }

.sidebar-footer { display: flex; align-items: center; gap: 9px; padding: 10px; border-top: 1px solid var(--border-default); }
.avatar-dot { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: var(--color-primary); background: var(--bg-tertiary); }
.avatar-dot .icon { width: 16px; height: 16px; }
.sidebar-user { display: flex; flex-direction: column; min-width: 0; }
.sidebar-user strong { font-size: 13px; font-weight: 500; }
.sidebar-user small { color: var(--text-muted); font-size: 11px; }
.sidebar-more { margin-left: auto; width: 14px; height: 14px; color: var(--text-muted); transform: rotate(-90deg); }

/* 主工作区 */
.workspace { display: grid; grid-template-columns: minmax(560px, 1fr) 320px; min-width: 0; min-height: 0; height: 100%; }
.chat-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--border-default); background: var(--bg-page); }

.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 14px var(--page-gutter); border-bottom: 1px solid var(--border-default); background: var(--bg-surface); }
.chat-header-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-agent-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-button); color: var(--color-accent); background: var(--color-accent-light); }
.chat-agent-mark .icon { width: 20px; height: 20px; }
.chat-header-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chat-header-copy h1 { margin: 0; color: var(--text-primary); font-size: 16px; font-weight: 600; }
.chat-header-copy p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; color: var(--text-muted); font-size: 12px; }
.dot-sep { color: var(--border-strong); }
.session-chip { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; }
.chat-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 按钮系统 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius-button); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 120ms ease, border-color 120ms ease, color 120ms ease; }
.btn .icon { width: 16px; height: 16px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-primary { color: #fff; background: var(--color-accent); }
.btn-primary:hover { background: #1D4ED8; }
.btn-secondary { color: var(--text-secondary); border-color: var(--border-default); background: var(--bg-surface); }
.btn-secondary:hover { border-color: var(--border-strong); color: var(--text-primary); }
.btn-ghost { color: var(--text-secondary); background: transparent; }
.btn-ghost:hover { background: var(--bg-secondary); }
.btn-danger { color: #fff; background: var(--status-danger); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0px solid var(--border-default); border-radius: var(--radius-button); color: var(--text-secondary); background: var(--bg-surface); transition: border-color 120ms ease, color 120ms ease; }
.icon-btn:hover { border-color: var(--border-strong); color: var(--color-accent); }
.icon-btn .icon { width: 15px; height: 15px; }
.icon-btn.is-stop { color: var(--status-danger); border-color: #FECACA; background: var(--status-danger-bg); }

/* 对话区 */
.chat-scroll { flex: 1; min-height: 0; padding: var(--page-gutter); overflow-y: auto; }
.chat-stream { display: flex; flex-direction: column; gap: 20px; max-width: 960px; margin: 0 auto; }
.chat-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 320px; color: var(--text-muted); font-size: 13px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border-default); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; }

.msg { display: flex; align-items: flex-start; gap: 10px; animation: fadeIn 150ms ease both; }
.msg-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; max-width: 100%; }
.msg-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px; border-radius: var(--radius-button); color: var(--color-accent); background: var(--color-accent-light); }
.msg-avatar .icon { width: 14px; height: 14px; }
.msg-meta { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; }
.msg-meta strong { color: var(--text-secondary); font-weight: 500; }
.msg-user { flex-direction: row-reverse; }
.msg-user .msg-main { align-items: flex-end; }
.msg-user .msg-meta { justify-content: flex-end; }

.bubble { max-width: 720px; padding: 12px 16px; border: 0px solid var(--border-default); border-radius: var(--radius-card); color: var(--text-secondary); font-size: 14px; line-height: 1.72; white-space: pre-wrap; word-break: break-word; background: var(--bg-surface); }
.msg-user .bubble { max-width: 640px; color: #1E3A8A; border-color: #BFDBFE; background: #EFF6FF; }
.cards { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 880px; }
.card-slot { width: 100%; }

/* 欢迎 */
.card-welcome { width: 100%; max-width: 880px; }
.welcome-title { margin: 0 0 8px; color: var(--text-primary); font-size: 22px; font-weight: 600; }
.welcome-text { margin: 0 0 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.starter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.starter { padding: 7px 12px; border: 1px solid var(--border-default); border-radius: var(--radius-button); color: var(--text-secondary); font-size: 13px; background: var(--bg-surface); transition: border-color 120ms ease, color 120ms ease; }
.starter:hover { border-color: var(--border-strong); color: var(--color-accent); }

/* 输入区 */
.composer { padding: 0 var(--page-gutter) 16px; background: var(--bg-page); }
.composer-quick { display: flex; align-items: center; gap: 6px; padding: 10px 0 8px; }
.composer-quick-spacer { flex: 1; }
.text-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 0; border-radius: var(--radius-button); color: var(--text-muted); font-size: 12px; background: transparent; }
.text-btn:hover { color: var(--color-accent); background: var(--bg-secondary); }
.text-btn .icon { width: 13px; height: 13px; }

.composer-box { display: flex; align-items: flex-end; gap: 10px; min-height: 56px; padding: 10px 10px 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-input); background: var(--bg-surface); transition: border-color 150ms ease; }
.composer-box:focus-within { border-color: var(--color-accent); }
.composer-box textarea { flex: 1; min-height: 32px; max-height: 148px; padding: 4px 0; border: 0; outline: none; resize: none; color: var(--text-primary); font-size: 14px; line-height: 1.6; background: transparent; }
.composer-box textarea::placeholder { color: var(--text-muted); }
.composer-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.send-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--color-accent); border-radius: var(--radius-button); color: #fff; background: var(--color-accent); transition: background 120ms ease; }
.send-btn:hover { background: #1D4ED8; }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.send-btn .icon { width: 17px; height: 17px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; color: var(--text-muted); font-size: 11px; }
.composer-tip { text-align: right; }

/* 右侧上下文 */
.context-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-surface); }
.context-head { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 14px 16px; border-bottom: 1px solid var(--border-default); }
.context-kicker { display: block; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.context-head h2 { margin: 3px 0 0; color: var(--text-primary); font-size: 16px; font-weight: 600; }
.wb-scroll { display: flex; flex: 1; flex-direction: column; gap: var(--gap); min-height: 0; padding: 16px; overflow-y: auto; }
.wb-card { padding: 16px; border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--bg-surface); }
.wb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.wb-kicker { color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.wb-head h2 { margin: 2px 0 0; color: var(--text-primary); font-size: 14px; font-weight: 600; }
.wb-empty { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.wb-note { margin: 10px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.wb-alert { padding: 10px 12px; border: 1px solid var(--border-default); border-left: 3px solid var(--status-warning); border-radius: var(--radius-card); color: var(--status-warning); font-size: 12px; background: var(--status-warning-bg); }

.wb-profile-top { display: flex; align-items: flex-start; gap: 12px; }
.wb-ring { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: 2px solid var(--color-accent-light); border-radius: 50%; color: var(--color-primary); font-family: var(--font-mono); font-size: 12px; }
.wb-profile-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wb-profile-copy strong { color: var(--text-primary); font-size: 13px; font-weight: 600; }
.wb-summary { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.wb-confirmed, .wb-pending { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.wb-confirmed { color: var(--status-success); background: var(--status-success-bg); }
.wb-pending { color: var(--status-warning); background: var(--status-warning-bg); }
.wb-items { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.wb-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 12px; }
.wb-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-item b { color: var(--text-primary); font-weight: 500; text-align: right; }
.wb-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

.wb-model-top { display: flex; align-items: center; gap: 8px; }
.wb-model-top strong { color: var(--text-primary); font-size: 14px; font-weight: 600; }
.wb-model-desc { margin: 8px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.wb-version-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.wb-version { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--border-default); border-radius: var(--radius-button); color: var(--text-muted); font-size: 11px; }
.wb-version.is-active { border-color: #BFDBFE; color: var(--color-accent); background: var(--color-accent-light); }
.wb-version-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-mini-chart { margin-top: 8px; min-height: 64px; }
.wb-stock-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wb-stock-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid var(--border-default); border-radius: 4px; color: var(--text-secondary); font-family: var(--font-mono); font-size: 11px; }
.wb-stock-chip b { color: var(--color-primary); font-weight: 600; }
.wb-result-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

/* 卡片 */
.card { width: 100%; overflow: hidden; border: 0px solid var(--border-default); border-radius: var(--radius-card); background: var(--bg-surface); box-shadow: none; }
.card:hover { border-color: var(--border-strong); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 0px solid var(--border-default); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--radius-button); color: var(--color-primary); background: var(--bg-secondary); }
.card-icon .icon { width: 17px; height: 17px; }
.card-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.card-kicker { color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.card-title h3 { margin: 0; color: var(--text-primary); font-size: 16px; font-weight: 600; }
.card-head > .status-pill, .card-head > .meta-tag { margin-left: auto; }
.card-body { padding: 16px; }
.card-summary { margin: 0 0 12px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.status-pill.is-ok { color: var(--status-success); background: var(--status-success-bg); }
.status-pill.is-run { color: var(--status-info); background: var(--status-info-bg); }
.status-pill.is-warn, .status-pill.is-pending { color: var(--status-warning); background: var(--status-warning-bg); }
.status-pill.is-error { color: var(--status-danger); background: var(--status-danger-bg); }
.status-pill .spinner { width: 10px; height: 10px; border-width: 1.5px; }

.tone-blue, .tone-cyan, .tone-info { color: var(--status-info); background: var(--status-info-bg); }
.tone-amber, .tone-orange, .tone-warning { color: var(--status-warning); background: var(--status-warning-bg); }
.tone-slate, .tone-neutral { color: var(--market-neutral); background: var(--bg-secondary); }
.tone-up { color: var(--market-up); background: #FEE2E2; }
.tone-down { color: var(--market-down); background: #DCFCE7; }
.tone-red { color: var(--status-danger); background: var(--status-danger-bg); }
.tone-green { color: var(--status-success); background: var(--status-success-bg); }
.tone-violet { color: var(--status-info); background: var(--status-info-bg); }

/* 指标与表格 */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.metric-card { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--bg-surface); }
.metric-label { color: var(--text-muted); font-size: 12px; }
.metric-value { color: var(--text-primary); font-family: var(--font-mono); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.metric-note { color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.metric-card.tone-up .metric-value { color: var(--market-up); }
.metric-card.tone-down .metric-value { color: var(--market-down); }
.metric-card.tone-info .metric-value, .metric-card.tone-blue .metric-value { color: var(--status-info); }
.metric-card.tone-warning .metric-value, .metric-card.tone-amber .metric-value { color: var(--status-warning); }
.metric-card.tone-neutral .metric-value, .metric-card.tone-slate .metric-value { color: var(--market-neutral); }
.metric-disclaimer { margin: -4px 0 14px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }

.selection-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.sub-block { min-width: 0; }
.sub-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sub-title h4 { margin: 0; color: var(--text-primary); font-size: 14px; font-weight: 600; }
.sub-meta, .chart-note { color: var(--text-muted); font-size: 11px; }
.chart-note { margin: 6px 0 0; line-height: 1.5; }
.chart-box { position: relative; min-height: 120px; }
.chart-empty { display: flex; align-items: center; justify-content: center; min-height: 120px; color: var(--text-muted); font-size: 12px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-card); }
.stock-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stock-table th { padding: 8px 10px; color: var(--text-muted); font-size: 11px; font-weight: 500; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border-default); background: var(--bg-secondary); }
.stock-table td { padding: 9px 10px; color: var(--text-secondary); border-bottom: 1px solid var(--border-default); vertical-align: middle; }
.stock-table tr:last-child td { border-bottom: 0; }
.stock-table tbody tr:hover { background: var(--bg-secondary); }
.stock-rank { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; }
.stock-code { color: var(--text-primary); font-family: var(--font-mono); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stock-score { color: var(--text-primary); font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.industry-tag { display: inline-flex; padding: 1px 6px; border: 1px solid var(--border-default); border-radius: 4px; color: var(--text-secondary); font-size: 11px; background: var(--bg-secondary); white-space: nowrap; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.reason-chip { display: inline-flex; padding: 1px 6px; border-radius: 4px; color: var(--text-secondary); font-size: 11px; background: var(--bg-secondary); white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--border-default); border-radius: 4px; color: var(--text-secondary); font-size: 11px; background: var(--bg-secondary); }
.tag.is-amber { color: var(--status-warning); border-color: #FDE68A; background: var(--status-warning-bg); }

.weight-list { display: flex; flex-direction: column; gap: 8px; }
.weight-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 46px; align-items: center; gap: 8px; font-size: 12px; }
.weight-code { overflow: hidden; color: var(--text-secondary); font-family: var(--font-mono); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.weight-track { height: 5px; overflow: hidden; border-radius: 2px; background: var(--bg-tertiary); }
.weight-fill { height: 100%; border-radius: 2px; background: var(--color-accent); }
.weight-pct { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }

/* 画像 */
.profile-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.profile-item { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border: 1px solid var(--border-default); border-radius: var(--radius-button); background: var(--bg-page); }
.profile-item-label { color: var(--text-muted); font-size: 11px; }
.profile-item-value { color: var(--text-primary); font-size: 13px; font-weight: 500; }
.completeness { margin-top: 13px; }
.completeness-head { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 11px; }
.completeness-head b { color: var(--text-primary); font-size: 12px; }
.progress-line { height: 4px; margin-top: 6px; overflow: hidden; border-radius: 2px; background: var(--bg-tertiary); }
.progress-line i { display: block; height: 100%; border-radius: 2px; background: var(--color-accent); transition: width 180ms ease; }
.missing-line { margin: 8px 0 0; color: var(--status-warning); font-size: 11px; }

/* AI 工作过程 */
.steps { margin: 0 0 14px; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding-bottom: 12px; }
.step-dot, .step-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--border-default); border-radius: 50%; color: var(--text-muted); background: var(--bg-surface); }
.step-icon .icon { width: 11px; height: 11px; }
.step.is-done .step-dot, .step.is-done .step-icon { color: var(--status-success); border-color: #BBF7D0; background: var(--status-success-bg); }
.step.is-run .step-dot, .step.is-run .step-icon { color: var(--color-accent); border-color: #BFDBFE; background: var(--color-accent-light); }
.step.is-error .step-dot, .step.is-error .step-icon { color: var(--status-danger); border-color: #FECACA; background: var(--status-danger-bg); }
.step-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step-title { display: flex; align-items: center; gap: 7px; color: var(--text-primary); font-size: 13px; font-weight: 500; }
.step-kind { padding: 0 5px; border: 1px solid var(--border-default); border-radius: 3px; color: var(--text-muted); font-size: 10px; font-weight: 400; }
.step-detail { color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.step-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text-muted); font-size: 11px; }

.proposal { padding: 12px; border: 0px solid var(--border-default); border-radius: var(--radius-card) }
.proposal-summary { margin: 0 0 8px; color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.proposal-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.risk-list { margin-top: 10px; }
.risk-list h5 { margin: 0 0 4px; color: var(--status-warning); font-size: 12px; font-weight: 600; }
.risk-list ul { margin: 0; padding-left: 16px; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }

.card-approval { border-color: #FDE68A; }
.card-approval .card-icon { color: var(--status-warning); background: var(--status-warning-bg); }
.approval-risk { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0; padding: 9px 10px; border: 1px solid #FDE68A; border-radius: var(--radius-button); color: var(--status-warning); font-size: 12px; line-height: 1.55; background: var(--status-warning-bg); }
.approval-risk .icon { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 1px; }
.approval-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-approval.is-answered .approval-actions { opacity: 0.55; }

/* 版本 */
.version-active { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 0px solid var(--border-default); border-radius: var(--radius-card); }
.version-active-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.version-active-main strong { color: var(--text-primary); font-size: 14px; font-weight: 600; }
.version-metrics { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.version-metric { padding: 1px 6px; border-radius: 3px; color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; background: var(--bg-secondary); font-variant-numeric: tabular-nums; }
.version-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.version-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 0px solid var(--border-default); border-radius: var(--radius-button); color: var(--text-secondary); font-size: 12px; }
.version-row.is-active { border-color: #BFDBFE; color: var(--color-accent); background: var(--color-accent-light); }
.version-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.version-row.is-active .version-dot { background: var(--color-accent); }
.version-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 代码框 */
.code-change { margin: 12px 0; overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--bg-surface); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border-default); background: var(--bg-secondary); }
.code-head-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.code-kind { flex-shrink: 0; padding: 1px 5px; border: 1px solid #BFDBFE; border-radius: 3px; color: var(--color-accent); font-size: 10px; background: var(--color-accent-light); }
.code-file { overflow: hidden; color: var(--text-secondary); font-family: var(--font-mono); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.code-stats { flex-shrink: 0; color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; }
.code-box { max-height: 320px; margin: 0; padding: 6px 0; overflow: auto; color: var(--text-secondary); font-family: var(--font-mono); font-size: 12px; line-height: 1.65; background: var(--bg-surface); }
.code-line { display: flex; min-width: 100%; width: max-content; padding-right: 12px; }
.code-ln { flex: 0 0 38px; padding-right: 9px; color: var(--text-muted); text-align: right; user-select: none; }
.code-text { flex: 1; color: var(--text-secondary); white-space: pre; }
.code-line.is-file .code-text { color: var(--text-secondary); }
.code-line.is-hunk .code-text { color: var(--status-warning); }
.code-line.is-add { background: #EFF6FF; }
.code-line.is-add .code-text { color: #1E3A8A; }
.code-line.is-del { background: var(--status-danger-bg); }
.code-line.is-del .code-text { color: var(--status-danger); }

/* 错误 */
.card-error { border-color: #FECACA; }
.error-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-button); color: var(--status-danger); background: var(--status-danger-bg); }
.error-copy h3 { margin: 0; color: var(--status-danger); font-size: 14px; font-weight: 600; }
.error-copy p { margin: 3px 0 0; color: var(--text-secondary); font-size: 12px; }

/* SVG 图表 */
.chart-tooltip { position: absolute; z-index: 6; min-width: 108px; padding: 8px 10px; border: 1px solid var(--border-default); border-radius: var(--radius-button); background: var(--bg-surface); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); pointer-events: none; }
.tt-title { margin-bottom: 4px; color: var(--text-muted); font-size: 10px; }
.tt-row { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.tt-dot { width: 6px; height: 6px; border-radius: 50%; }

/* 历史/详情弹窗 */
.history-overlay, .info-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, 0.30); }
.history-overlay[hidden], .info-overlay[hidden] { display: none; }
.history-panel, .info-panel { display: flex; flex-direction: column; width: min(700px, 100%); max-height: min(80vh, 720px); overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--bg-surface); box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14); }
.history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border-default); }
.history-head h2 { margin: 3px 0 0; color: var(--text-primary); font-size: 18px; font-weight: 600; }
.history-note { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }
.history-list { display: flex; flex-direction: column; gap: 6px; padding: 12px; overflow-y: auto; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 12px; border: 0px solid var(--border-default); border-radius: var(--radius-button); color: inherit; text-align: left; background: var(--bg-surface); transition: border-color 120ms ease, background 120ms ease; }
.history-item:hover { border-color: var(--border-strong); background: var(--bg-secondary); }
.history-item.is-current { border-color: #BFDBFE; background: #EFF6FF; }
.history-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-item strong { overflow: hidden; color: var(--text-primary); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.history-item-meta { color: var(--text-muted); font-size: 11px; }
.history-item-summary { overflow: hidden; color: var(--text-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.history-item-state { flex-shrink: 0; color: var(--color-accent); font-size: 12px; }
.history-empty { margin: 0; padding: 24px 16px; color: var(--text-muted); font-size: 13px; text-align: center; }
.info-body { padding: 16px 20px 20px; overflow-y: auto; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.info-body h3 { margin: 0 0 8px; color: var(--text-primary); font-size: 14px; font-weight: 600; }
.info-body p { margin: 0 0 10px; }
.info-body ul { margin: 0 0 12px; padding-left: 18px; }
.info-body .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.info-body .info-cell { padding: 10px; border: 1px solid var(--border-default); border-radius: var(--radius-button); background: var(--bg-page); }
.info-body .info-cell span { display: block; color: var(--text-muted); font-size: 11px; }
.info-body .info-cell strong { display: block; margin-top: 2px; color: var(--text-primary); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.info-body .info-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.info-body .info-table th, .info-body .info-table td { padding: 7px 8px; border-bottom: 1px solid var(--border-default); text-align: left; }
.info-body .info-table th { color: var(--text-muted); font-weight: 500; }
.info-body .info-note { margin-top: 12px; padding: 8px 10px; border: 1px solid var(--border-default); border-left: 3px solid var(--status-warning); border-radius: var(--radius-button); color: var(--text-muted); font-size: 11px; background: var(--status-warning-bg); }
body.history-open, body.info-open { overflow: hidden; }

/* 页脚 */
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 8px var(--page-gutter); border-top: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-muted); font-size: 11px; }
.disclaimer { display: flex; align-items: flex-start; gap: 6px; margin: 0; line-height: 1.5; }
.disclaimer .icon { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 1px; }
.disclaimer strong { color: var(--text-secondary); font-weight: 600; }
.footer-meta { flex-shrink: 0; font-family: var(--font-mono); font-size: 11px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 4px; background: var(--border-strong); background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); background-clip: content-box; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes softPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes typing { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.typing { display: inline-flex; align-items: center; gap: 3px; padding: 3px 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.is-streaming .bubble { border-color: #BFDBFE; }

/* 响应式 */
@media (max-width: 1279px) { .workspace { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 1199px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .context-panel { display: none; }
  body.wb-open .workspace { grid-template-columns: minmax(0, 1fr) 300px; }
  body.wb-open .context-panel { display: flex; }
}
@media (max-width: 1023px) {
  .app-body { grid-template-columns: 64px minmax(0, 1fr); }
  .sidebar { padding: 12px 8px; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item span, .nav-label, .sidebar-user, .sidebar-more { display: none; }
  .nav-item .icon { width: 20px; height: 20px; }
  .sidebar-footer { justify-content: center; padding: 8px 0; }
  body.wb-open .workspace { grid-template-columns: minmax(0, 1fr); }
  body.wb-open .context-panel { display: none; }
}
@media (max-width: 767px) {
  .app-body { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .sidebar { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .context-panel { display: none; }
  .chat-header { min-height: 64px; padding: 10px 16px; }
  .chat-header-copy p .session-chip { display: none; }
  .chat-scroll { padding: 16px; }
  .composer { padding: 0 16px 12px; }
  .composer-quick { overflow-x: auto; padding-bottom: 6px; }
  .chat-header-actions .btn span { display: none; }
  .chat-header-actions .btn { padding: 0 8px; }
  .bubble { max-width: 86vw; }
  .selection-split { grid-template-columns: minmax(0, 1fr); }
  .app-footer { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 16px; }
  .topbar { padding: 0 16px; }
  .topbar-icon-btn span { display: none; }
  .brand-copy span { display: none; }
  .history-overlay, .info-overlay { padding: 12px; }
  .info-body .info-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}


/* ================================================================
 * 布局与组件补充
 * ================================================================ */
.app-body { height: calc(100vh - 56px - 40px); }

.wb-head { flex-wrap: wrap; }
.wb-head .wb-kicker { flex: 0 0 100%; }
.wb-head h2 { flex: 1; }
.wb-head > .status-pill { flex: 0 0 auto; margin-top: 2px; }

.wb-confirmed.is-pending { color: var(--status-warning); background: var(--status-warning-bg); }

.card-error { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.card-error .error-copy { flex: 1; min-width: 0; }
.card-error .btn { flex: 0 0 auto; }

.selection-meta-line { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.meta-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--border-default); border-radius: 4px; color: var(--text-muted); font-size: 11px; background: var(--bg-secondary); }
.meta-tag .icon { width: 12px; height: 12px; }
.meta-tag.is-cyan { color: var(--status-info); background: var(--status-info-bg); border-color: #BFDBFE; }

.ai-note { margin-top: 14px; padding: 12px; border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--bg-page); }
.ai-note-label { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px; color: var(--color-accent); font-size: 12px; font-weight: 600; }
.ai-note-label .icon { width: 13px; height: 13px; }
.ai-note p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }

.wb-pending-box { padding: 10px 12px; border: 1px solid #FDE68A; border-radius: var(--radius-button); color: var(--status-warning); background: var(--status-warning-bg); font-size: 12px; line-height: 1.6; }
.wb-pending-box strong { display: block; margin-bottom: 2px; }
.wb-pending-box .btn { margin-top: 8px; }

.wb-profile-copy .wb-pending { align-self: flex-start; }

@media (min-width: 1200px) {
  body.wb-collapsed .workspace { grid-template-columns: minmax(0, 1fr) 0; }
  body.wb-collapsed .context-panel { display: none; }
}

@media (max-width: 1199px) {
  .app-body { height: calc(100vh - 56px - 40px); }
}


[hidden] { display: none !important; }


/* 响应式：窄屏上下文抽屉 + 移动端导航抽屉 */
.mobile-menu-btn, .context-toggle { display: none; }

@media (max-width: 1199px) {
  .context-toggle { display: inline-flex; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .context-panel {
    position: fixed;
    top: 56px;
    right: 0;
    bottom: 40px;
    z-index: 80;
    display: none;
    width: 320px;
    border-left: 1px solid var(--border-default);
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.10);
  }
  body.wb-open .context-panel { display: flex; }
  body.wb-collapsed .context-panel { display: none; }
}

@media (max-width: 1023px) {
  body.wb-open .workspace { grid-template-columns: minmax(0, 1fr); }
  body.wb-open .context-panel { display: flex; }
}

@media (max-width: 767px) {
  .mobile-menu-btn { display: inline-flex; }
  .topbar-brand { gap: 6px; }
  .sidebar { display: none; }
  body.nav-open .sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: flex;
    width: 224px;
    border-right: 1px solid var(--border-default);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.12);
  }
  .context-panel { top: 56px; bottom: 0; width: min(320px, 92vw); }
}


@media (max-width: 767px) {
  body.nav-open .nav-item { justify-content: flex-start; padding: 0 10px; }
  body.nav-open .nav-item span,
  body.nav-open .nav-label,
  body.nav-open .sidebar-user,
  body.nav-open .sidebar-more { display: block; }
  body.nav-open .nav-item span { display: inline; }
  body.nav-open .sidebar-user { display: flex; }
  body.nav-open .nav-label { padding: 0 10px 8px; }
  body.nav-open .sidebar-more { display: inline-block; }
}


/* 上下文收起后，在对话区头部保留展开入口 */
body.wb-collapsed .context-toggle { display: inline-flex; }
body.wb-collapsed .workspace { grid-template-columns: minmax(0, 1fr); }

/* 代码正在逐行写入 */
.card-work.is-running .code-change {
  border-color: #BFDBFE;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.06);
}

.card-work.is-running .code-file::after {
  content: " · 写入中";
  color: var(--color-accent);
}


/* 代码语法高亮 */
.code-text .tok-keyword { color: #1D4ED8; font-weight: 500; }
.code-text .tok-string { color: #B45309; }
.code-text .tok-comment { color: #94A3B8; font-style: italic; }
.code-text .tok-number { color: #6E56CF; }
.code-text .tok-func { color: #1E3A5F; }

/* 代码改动风险提示 */
.code-note {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--border-default);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
  background: var(--bg-page);
}

.code-note strong {
  color: var(--status-warning);
  font-weight: 600;
}


/* ================================================================
 * 网格寻优（服务端参数网格搜索）实时进度卡
 * ================================================================ */
.card-tuning.is-running { border-color: #BFDBFE; }

.tuning-progress { margin-bottom: 12px; }
.tuning-progress-head { display: flex; align-items: baseline; gap: 10px; color: var(--text-muted); font-size: 12px; }
.tuning-progress-head > span:first-child { color: var(--text-secondary); }
.tuning-elapsed { font-family: var(--font-mono); font-size: 11px; }
.tuning-percent { margin-left: auto; color: var(--color-primary); font-family: var(--font-mono); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tuning-progress .progress-line { margin-top: 6px; height: 6px; }
.tuning-progress .progress-line i { background: var(--color-accent); }

.tuning-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tuning-tags .tag { white-space: nowrap; }
.tuning-tags .tag.is-live { color: var(--color-accent); border-color: #BFDBFE; background: #EFF6FF; }

.tuning-wait { margin: 0 0 12px; color: var(--text-muted); font-size: 13px; }

.tuning-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.tuning-metric { padding: 10px 12px; border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--bg-page); }
.tuning-metric span { display: block; color: var(--text-muted); font-size: 11px; }
.tuning-metric strong { display: block; margin-top: 2px; color: var(--text-primary); font-family: var(--font-mono); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }

.tuning-param-list { display: flex; flex-direction: column; gap: 6px; }
.tuning-param-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 10px; border: 1px solid var(--border-default); border-radius: var(--radius-button); background: var(--bg-page); font-size: 12px; }
.tuning-param-row span { color: var(--text-muted); }
.tuning-param-row b { color: var(--text-primary); font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

.tuning-space { margin-top: 14px; overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--bg-surface); }
.tuning-space summary { display: flex; align-items: center; gap: 6px; padding: 9px 12px; color: var(--text-secondary); font-size: 12px; list-style: none; cursor: pointer; }
.tuning-space summary::-webkit-details-marker { display: none; }
.tuning-space summary::before { content: "▸"; color: var(--text-muted); font-size: 10px; transition: transform 120ms ease; }
.tuning-space summary:hover { color: var(--color-accent); }
.tuning-space[open] summary::before { transform: rotate(90deg); }
.tuning-space-body { padding: 0 12px 12px; overflow-x: auto; }
.tuning-space-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tuning-space-table th { padding: 6px 8px; border-bottom: 1px solid var(--border-default); color: var(--text-muted); font-size: 11px; font-weight: 500; text-align: left; white-space: nowrap; }
.tuning-space-table td { padding: 6px 8px; border-bottom: 1px solid var(--bg-secondary); color: var(--text-secondary); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.tuning-space-table td:first-child { color: var(--text-secondary); font-family: var(--font-sans); font-size: 12px; }
.tuning-space-table tr:last-child td { border-bottom: 0; }

.tuning-note { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--border-default); color: var(--text-muted); font-size: 11px; line-height: 1.6; }

/* 工作台 · 会话级模型提示 */
.wb-session-note { margin: 10px 0 0; padding: 8px 10px; border: 1px solid #BFDBFE; border-left: 3px solid var(--color-accent); border-radius: var(--radius-button); color: var(--text-secondary); font-size: 11px; line-height: 1.6; background: #EFF6FF; }
