/* ═══════════════════════════════════════════════════════════════
   components.css — Design System Component Definitions
   Auto-extracted from preview/component-*.html
   DO NOT EDIT MANUALLY — regenerate via extract-components-css.mjs
   ═══════════════════════════════════════════════════════════════ */

/* ── Accordion ─────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Default</span> <div class="accordion"> <div class="accordion-item"> <button class="accordion-trigger" aria-expanded="true" onclick="this.setAttribute('aria-expanded',this.getAttribute('aria-expanded')==='true'?'false':'true');this.nextElementSibling.classList.toggle('open')">OneUI 是什么？<svg class="accordion-icon" width="20" height="20"><use href="#icon-chevron-down"/></svg></...
*/
/* Component definitions — extracted to components.css by deterministic script */
.accordion { width: 100%; max-width: 480px; }
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--space-3) 0; border: none; background: transparent; cursor: pointer; font-family: var(--font-family-base); font-size: var(--font-size-body); font-weight: var(--font-weight-medium, 500); color: var(--color-on-surface); transition: background .15s; }
.accordion-trigger:hover { background: var(--color-surface-dim); }
.accordion-icon { width: 20px; height: 20px; color: var(--color-muted-foreground); transition: transform .25s; flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-content { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.accordion-content-inner { padding: 0 0 var(--space-4); font-size: var(--font-size-body); color: var(--color-on-surface-variant); line-height: var(--line-height-body); }
.accordion-content.open { max-height: 200px; }
.accordion--bordered .accordion-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-2); }
.accordion--bordered .accordion-item:last-child { margin-bottom: 0; }
.accordion--bordered .accordion-trigger { padding: var(--space-4); }
.accordion--bordered .accordion-content-inner { padding: 0 var(--space-4) var(--space-4); }

/* ── Ai Copilot ────────────────────────────────────────────── */
/* @anatomy
   <div class="specimen"> <div class="header">AI Copilot</div>
*/
.copilot { width: 380px; height: 420px; background: var(--popover); border-left: 2px solid var(--primary); border-radius: var(--radius-lg); box-shadow: var(--shadow-4); display: flex; flex-direction: column; overflow: hidden; }
  .copilot-header { background: var(--primary); color: var(--primary-foreground); padding: var(--space-3) var(--space-4); font-family: var(--font-heading); font-size: var(--font-size-body); font-weight: 600; display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
  .copilot-header .glow { box-shadow: var(--glow-primary); border-radius: var(--radius-full); width: 28px; height: 28px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; }
  .copilot-messages { flex: 1; overflow-y: auto; padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); }
  .msg { max-width: 88%; padding: var(--space-2) var(--space-3); border-radius: var(--radius-lg); font-size: var(--font-size-caption); line-height: 1.6; word-break: break-all; white-space: normal; }
  .msg.ai { background: var(--color-surface-container-low); color: var(--color-on-surface); align-self: flex-start; border-bottom-left-radius: var(--radius-sm); }
  .msg.user { background: var(--primary); color: var(--primary-foreground); align-self: flex-end; border-bottom-right-radius: var(--radius-sm); }
  .copilot-input { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--color-border); display: flex; gap: var(--space-2); align-items: center; flex-shrink: 0; }
  .copilot-input input { flex: 1; min-width: 0; height: var(--size-input-height); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 0 var(--space-3); font-size: var(--font-size-caption); font-family: var(--font-family-base); background: var(--color-surface-container-low); color: var(--color-on-surface); outline: none; transition: border-color .15s; }
  .copilot-input input:focus { border-color: var(--primary); }
  .copilot-input input::placeholder { color: var(--color-muted-foreground); }
  .send-btn { width: 32px; height: 32px; min-width: 32px; border-radius: var(--radius-full); border: none; background: var(--primary); color: var(--primary-foreground); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; flex-shrink: 0; }
  .send-btn:hover { background: var(--accent-hover); }

/* ── Alert ─────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">信息</span> <div class="alert info"> <svg class="alert-icon"><use href="#icon-info"/></svg> <div class="alert-body"><span class="alert-title">系统提示</span><span class="alert-msg">新版本已发布，请刷新页面。</span>
*/
/* Component definitions — extracted to components.css */
  .alert { display: flex; align-items: flex-start; gap: var(--space-3); border-left: 3px solid; border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); flex-shrink: 0; max-width: 400px; }
  .alert-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: currentColor; }
  .alert-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .alert-title { font-size: var(--font-size-body); font-weight: 600; color: var(--color-on-surface); white-space: nowrap; }
  .alert-msg { font-size: var(--font-size-caption); color: var(--color-muted-foreground); word-break: keep-all; overflow-wrap: break-word; }
  .alert.info { border-left-color: var(--info); background: var(--one-info-50); }
  .alert.info .alert-icon { color: var(--info); }
  .alert.error { border-left-color: var(--error); background: var(--one-error-50); }
  .alert.error .alert-icon { color: var(--error); }
  .alert.success { border-left-color: var(--success); background: var(--one-success-50); }
  .alert.success .alert-icon { color: var(--success); }
  .alert.warning { border-left-color: var(--warning); background: var(--one-warning-50); }
  .alert.warning .alert-icon { color: var(--warning); }

/* ── Area Chart ────────────────────────────────────────────── */
/* @anatomy
   <div class="label">单区域图
*/
.area-chart { width: 100%; }
.area-chart .axis-line { stroke: var(--color-border); stroke-width: 1; }
.area-chart .grid-line { stroke: var(--color-border); stroke-width: 1; stroke-dasharray: none; }
.area-chart .axis-label { font-family: var(--font-body); font-size: 10px; fill: var(--color-muted-foreground); text-anchor: end; dominant-baseline: middle; }
.area-chart .x-label { text-anchor: middle; dominant-baseline: hanging; }

/* ── Avatar ────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">默认</span> <div class="avatar sm">张
*/
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-on-primary); font-weight: 500; flex-shrink: 0; user-select: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.md { width: 40px; height: 40px; font-size: 14px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-group { display: flex; }
.avatar-group .avatar { border: 2px solid var(--color-card); margin-left: -8px; }
.avatar-group .avatar:first-child { margin-left: 0; }
.avatar-status { position: relative; }
.avatar-status::after { content: ''; position: absolute; bottom: 0; right: 0; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-success); border: 2px solid var(--color-card); }

/* ── Badge ─────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Dot</span><a class="nav-anchor" href="#">消息<span class="badge-dot"></span></a>
*/
.badge-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-primary); flex-shrink: 0; }
.badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: var(--radius-full); background: var(--color-error); color: #fff; font-size: 11px; font-weight: 600; padding: 0 5px; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: var(--radius-full); background: var(--color-success); color: #fff; flex-shrink: 0; }
.badge-icon svg { width: 12px; height: 12px; }
.nav-anchor { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); font-size: var(--font-size-body); color: var(--color-foreground); text-decoration: none; transition: background .15s; position: relative; }
.nav-anchor:hover { background: var(--muted); }
.nav-anchor .badge-dot { position: absolute; top: 4px; right: 4px; }
.nav-anchor .badge-count { position: absolute; top: -2px; right: -6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); border: none; background: transparent; cursor: pointer; transition: background .15s; position: relative; color: var(--color-foreground); }
.icon-btn:hover { background: var(--muted); }
.icon-btn .badge-dot { position: absolute; top: 8px; right: 8px; }
.icon-btn .badge-count { position: absolute; top: 2px; right: 2px; }
.icon-btn .badge-icon { position: absolute; bottom: 0; right: 0; }

/* ── Bar Chart ─────────────────────────────────────────────── */
/* @anatomy
   <div class="chart-card"> <div class="chart-title">纵向柱图
*/
.bc .grid{stroke:var(--border);stroke-dasharray:4 4;stroke-width:.5}
.bc .axis{stroke:var(--border);stroke-width:1}
.bc .lbl{fill:var(--muted-foreground);font-size:10px;font-family:var(--font-body)}
.bc .bar{transition:opacity .15s ease,filter .15s ease;cursor:pointer}
.bc .bar:hover{opacity:.85;filter:brightness(1.12)}
.bc .hbar{transition:opacity .15s ease,filter .15s ease;cursor:pointer}
.bc .hbar:hover{opacity:.85;filter:brightness(1.12)}

/* ── Bento Grid ────────────────────────────────────────────── */
/* @anatomy
   <div class="specimen"> <div class="header">Bento Grid</div>
*/
.bento { display: grid; gap: var(--space-4); }
  .bento.default { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto auto; }
  .bento.dashboard { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto auto; }
  .cell { background: var(--popover); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: var(--space-4); display: flex; flex-direction: column; justify-content: space-between; transition: box-shadow .15s; overflow: hidden; }
  .cell:hover { box-shadow: var(--shadow-3); }
  .cell .cell-label { font-size: var(--font-size-caption); color: var(--color-muted-foreground); margin-bottom: var(--space-1); }
  .cell .cell-value { font-family: var(--font-heading); font-size: var(--font-size-h2); font-weight: 700; letter-spacing: -0.02em; color: var(--color-on-surface); }
  .cell .cell-delta { font-size: var(--font-size-caption); margin-top: var(--space-1); }
  .cell .cell-delta.up { color: var(--color-success); }
  .cell .cell-delta.down { color: var(--color-error); }
  .cell .cell-delta.neutral { color: var(--color-muted-foreground); }
  .cell.large { grid-column: span 2; grid-row: span 2; }
  .cell.large .cell-value { font-size: var(--font-size-display); }
  .cell.medium { grid-column: span 2; }
  .cell.small { grid-column: span 1; }
  /* dashboard variant uses gradient accent */
  .bento.dashboard .cell.large { background: var(--gradient-primary); border: none; color: #fff; }
  .bento.dashboard .cell.large .cell-label { color: rgba(255,255,255,0.7); }
  .bento.dashboard .cell.large .cell-value { color: #fff; }
  .bento.dashboard .cell.large .cell-delta.up { color: rgba(255,255,255,0.85); }

/* ── Breadcrumb ────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Default</span> <div class="breadcrumb"> <a class="breadcrumb-item" href="#">控制台</a> <span class="breadcrumb-sep">/</span> <a class="breadcrumb-item" href="#">数据中心</a> <span class="breadcrumb-sep">/</span> <span class="breadcrumb-item current">智能分析</span>
*/
.breadcrumb { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--font-size-body); }
.breadcrumb-item { color: var(--color-on-surface-variant); text-decoration: none; white-space: nowrap; transition: color .15s; }
.breadcrumb-item:hover { color: var(--color-primary); }
.breadcrumb-item.current { color: var(--color-on-surface); cursor: default; pointer-events: none; font-weight: 500; }
.breadcrumb-sep { color: var(--color-on-surface-variant); user-select: none; }
.breadcrumb-dropdown { display: inline-flex; align-items: center; gap: 2px; color: var(--color-on-surface-variant); cursor: pointer; padding: 2px 6px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: var(--font-size-caption); background: var(--color-surface); transition: background .15s, border-color .15s; }
.breadcrumb-dropdown:hover { background: var(--color-surface-container-low); border-color: var(--color-primary); }
.breadcrumb-dropdown svg { width: 12px; height: 12px; }

/* ── Button ────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Primary</span><button class="btn primary" type="button">提交</button>
*/
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border: none; border-radius: var(--radius-md); font-family: var(--font-body); font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; min-width: var(--size-button-md); height: var(--size-button-md); padding: var(--space-3) var(--space-6); font-size: var(--font-size-body); line-height: 1; flex-shrink: 0; }
.btn.primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn.primary:hover { background: var(--color-primary-hover); }
.btn.secondary { background: var(--color-surface); color: var(--color-foreground); border: 1px solid var(--color-border); }
.btn.secondary:hover { background: var(--muted); }
.btn.ghost { background: transparent; color: var(--color-foreground); }
.btn.ghost:hover { background: var(--muted); }
.btn.danger { background: var(--color-error); color: #ffffff; }
.btn.danger:hover { filter: brightness(1.08); }
.btn.sm { height: var(--size-button-sm); min-width: var(--size-button-sm); padding: var(--space-2) var(--space-4); font-size: 14px; }
.btn.lg { height: var(--size-button-lg); min-width: var(--size-button-lg); padding: var(--space-4) var(--space-6); font-size: var(--font-size-lead); }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── Card ──────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">默认卡片</span>
*/
.card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-2); width: 100%; }
.card-title { font-family: var(--font-heading); font-size: var(--font-size-h4); font-weight: var(--font-weight-h4); line-height: var(--line-height-h4); margin-bottom: var(--space-2); color: var(--color-foreground); }
.card-body { font-family: var(--font-body); font-size: var(--font-size-body); font-weight: var(--font-weight-body); line-height: var(--line-height-body); color: var(--color-muted-foreground); }
.card-interactive { cursor: pointer; transition: box-shadow 200ms; }
.card-interactive:hover { box-shadow: var(--shadow-3); }
.card-footer { margin-top: var(--space-4); }
.card-action { font-family: var(--font-body); font-size: var(--font-size-body); font-weight: 500; color: var(--color-primary); text-decoration: none; white-space: nowrap; transition: filter 150ms; display: inline-block; }
.card-action:hover { filter: brightness(1.08); }
.card-stat { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.card-stat-label { font-family: var(--font-body); font-size: var(--font-size-caption); font-weight: var(--font-weight-caption); color: var(--color-muted-foreground); }
.card-stat-value { font-family: var(--font-heading); font-size: var(--font-size-h2); font-weight: var(--font-weight-h2); line-height: var(--line-height-h2); color: var(--color-foreground); }
.card-stat-trend { font-family: var(--font-body); font-size: var(--font-size-body); font-weight: var(--font-weight-body); color: var(--color-success); }

/* ── Chat ──────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Default</span> <div class="chat"> <div class="chat-header"><span class="chat-header-title">项目讨论</span><span class="chat-header-status">3人在线</span>
*/
/* Component definitions — extracted to components.css by deterministic script */
.chat { width: 100%; max-width: 420px; display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.chat-header-title { font-weight: 600; font-size: var(--font-size-body); color: var(--color-on-surface); white-space: nowrap; }
.chat-header-status { font-size: var(--font-size-caption); color: var(--color-success); white-space: nowrap; }
.chat-messages { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); min-height: 260px; }
.chat-msg { display: flex; gap: var(--space-2); max-width: 70%; }
.chat-msg--sent { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar { width: 28px; height: 28px; border-radius: var(--radius-full); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; background: var(--one-neutral-400); }
.chat-msg--sent .chat-avatar { background: var(--color-primary); }
.chat-bubble { padding: var(--space-2) var(--space-3); border-radius: var(--radius-lg); font-size: var(--font-size-body); line-height: var(--line-height-body); word-break: break-word; }
.chat-bubble--received { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-on-surface); border-top-left-radius: var(--radius-sm); }
.chat-bubble--sent { background: var(--color-primary); color: #fff; border-top-right-radius: var(--radius-sm); }
.chat-time { font-size: var(--font-size-caption); color: var(--color-muted-foreground); margin-top: 2px; }
.chat-msg--sent .chat-time { text-align: right; }
.chat-input-bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border); background: var(--color-surface); }
.chat-input { flex: 1; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: var(--font-size-body); background: var(--color-surface-dim); color: var(--color-on-surface); outline: none; font-family: var(--font-family-base); }
.chat-input:focus { border-color: var(--color-primary); }
.chat-send { width: 36px; height: 36px; border-radius: var(--radius-full); border: none; background: var(--color-primary); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s; }
.chat-send:hover { background: var(--color-primary-hover); }

/* ── Checkbox ──────────────────────────────────────────────── */
/* @anatomy
   <span class="label">未选中</span> <div class="cell"><div class="cb">
*/
.cb { width: 18px; height: 18px; border: 2px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-background); flex-shrink: 0; position: relative; transition: background .15s, border-color .15s; cursor: pointer; }
.cb:hover { border-color: var(--color-primary); }
.cb.checked { background: var(--color-primary); border-color: var(--color-primary); }
.cb.checked:hover { filter: brightness(1.08); }
.cb.checked::after { content: ''; position: absolute; left: 4px; top: 1px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cb.indeterminate { background: var(--color-primary); border-color: var(--color-primary); }
.cb.indeterminate:hover { filter: brightness(1.08); }
.cb.indeterminate::after { content: ''; position: absolute; left: 3px; top: 6px; width: 8px; height: 2px; background: #fff; border-radius: 1px; }

/* ── Command Palette ───────────────────────────────────────── */
/* @anatomy
   <span class="label">命令面板</span> <button class="open-btn" onclick="document.getElementById('cmd').style.display='flex';">打开命令面板 <span class="cmd-shortcut"><span class="cmd-kbd">Ctrl</span><span class="cmd-kbd">K</span></span></button>
*/
.cmd-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh; }
  .cmd-palette { width: 520px; max-width: 100vw; max-height: 480px; background: var(--popover); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-5); display: flex; flex-direction: column; overflow: hidden; font-family: var(--font-family-base); }
  .cmd-search { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); }
  .cmd-search-icon { color: var(--color-muted-foreground); flex-shrink: 0; }
  .cmd-search input { flex: 1; border: none; outline: none; background: transparent; font-size: var(--font-size-body); color: var(--color-on-surface); font-family: var(--font-family-base); }
  .cmd-search input::placeholder { color: var(--color-muted-foreground); }
  .cmd-shortcut { font-size: var(--font-size-caption); color: var(--color-muted-foreground); display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
  .cmd-kbd { display: inline-flex; align-items: center; padding: 1px 6px; background: var(--color-surface-container-low); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 11px; font-family: var(--font-mono); color: var(--color-muted-foreground); }
  .cmd-list { list-style: none; margin: 0; padding: var(--space-1) 0; overflow-y: auto; flex: 1; }
  .cmd-item { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) var(--space-4); cursor: pointer; transition: background .15s; white-space: nowrap; }
  .cmd-item:hover, .cmd-item.active { background: var(--color-surface-container-low); }
  .cmd-item-text { font-size: var(--font-size-body); color: var(--color-on-surface); }
  .cmd-item-hint { font-size: var(--font-size-caption); color: var(--color-muted-foreground); }

/* ── Context Menu ──────────────────────────────────────────── */
/* @anatomy
   <span class="label">With Shortcuts</span><div class="ctx-menu"><button class="ctx-item" type="button"><span>复制</span><span class="ctx-shortcut">Ctrl+C</span></button><button class="ctx-item" type="button"><span>粘贴</span><span class="ctx-shortcut">Ctrl+V</span></button><hr class="ctx-sep"><button class="ctx-item" type="button"><span>重命名</span><span class="ctx-shortcut">F2</span></button><hr clas...
*/
.ctx-menu { display: inline-block; background: var(--popover); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-3); min-width: 200px; padding: var(--space-1) 0; overflow: hidden; }
.ctx-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--space-2) var(--space-4); border: none; background: transparent; font-family: var(--font-body); font-size: var(--font-size-body); color: var(--color-foreground); cursor: pointer; text-align: left; transition: background .15s; white-space: nowrap; }
.ctx-item:hover { background: var(--muted); }
.ctx-item.danger { color: var(--color-error); }
.ctx-item.danger:hover { background: var(--color-error); color: #fff; }
.ctx-shortcut { font-size: var(--font-size-caption); color: var(--color-muted-foreground); font-family: var(--font-mono); }
.ctx-item:hover .ctx-shortcut { color: inherit; opacity: .7; }
.ctx-item.danger:hover .ctx-shortcut { color: #fff; opacity: .8; }
.ctx-sep { border: none; border-top: 1px solid var(--color-border); margin: var(--space-1) 0; }

/* ── Data Display ──────────────────────────────────────────── */
/* @anatomy
   <span class="label">指标卡片</span>
*/
/* Component definitions — extracted to components.css by deterministic script */
.metric-card { background: var(--color-card); border: 1px solid var(--color-border); border-top: 3px solid var(--color-primary); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-2); width: 100%; box-sizing: border-box; }
.mc-label { font-size: var(--font-size-body); color: var(--muted-foreground); margin-bottom: var(--space-2); white-space: nowrap; }
.mc-value { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--color-on-surface); white-space: nowrap; }
.mc-trend { font-size: var(--font-size-caption); font-weight: 500; display: inline-flex; align-items: center; gap: 2px; margin-top: var(--space-1); white-space: nowrap; }
.mc-trend.up { color: var(--color-success); }
.mc-trend.down { color: var(--color-error); }
.progress-card { background: var(--color-card); border: 1px solid var(--color-border); border-top: 3px solid var(--color-primary); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-2); width: 100%; box-sizing: border-box; }
.pc-label { font-size: var(--font-size-body); color: var(--muted-foreground); margin-bottom: var(--space-2); white-space: nowrap; }
.pc-value { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--color-on-surface); white-space: nowrap; }
.pc-bar-track { background: var(--muted); height: 6px; border-radius: var(--radius-full); margin-top: var(--space-2); overflow: hidden; }
.pc-bar-fill { height: 100%; border-radius: var(--radius-full); background: var(--gradient-primary); width: 78%; }

/* ── Date Picker ───────────────────────────────────────────── */
/* @anatomy
   <div class="specimen"> <div class="stage"> <div class="story"> <div class="story-label">默认日历</div>
*/
/* Component definitions — extracted to components.css by deterministic script */
.dp-trigger { display: flex; align-items: center; gap: var(--space-2); height: var(--size-input-height); padding: 0 var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--font-size-body); color: var(--color-on-surface); font-family: var(--font-mono); margin-bottom: var(--space-2); transition: border-color .15s; }
.dp-trigger:hover { border-color: var(--color-primary); }
.dp-panel { width: 100%; background: var(--popover); border-radius: var(--radius-lg); box-shadow: var(--shadow-4); border: var(--glow-border); padding: var(--space-3); }
.dp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.dp-title { font-family: var(--font-heading); font-size: var(--font-size-body); font-weight: 600; }
.dp-nav { display: flex; gap: var(--space-1); }
.dp-nav-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; background: transparent; border-radius: var(--radius-md); cursor: pointer; color: var(--color-on-surface); transition: background .15s; }
.dp-nav-btn:hover { background: var(--muted); }
.dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.dp-weekday { text-align: center; font-size: var(--font-size-caption); font-weight: 500; color: var(--color-muted-foreground); line-height: 40px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp-cell { display: flex; align-items: center; justify-content: center; height: 40px; font-size: var(--font-size-body); cursor: pointer; transition: background .15s; position: relative; }
.dp-cell:hover:not(.muted):not(.selected):not(.range):not(.rs):not(.re) { background: var(--muted); border-radius: var(--radius-full); }
.dp-cell.muted { color: var(--color-muted-foreground); opacity: .45; }
.dp-cell.selected { background: var(--color-primary); color: var(--color-on-primary); border-radius: var(--radius-full); box-shadow: var(--glow-primary); font-weight: 600; }
.dp-cell.today { border-radius: var(--radius-full); box-shadow: inset 0 0 0 1.5px var(--color-primary); }
.dp-cell.range { background: var(--one-primary-100); }
.dp-cell.range:hover { background: var(--one-primary-200); }
.dp-cell.rs { background: var(--color-primary); color: var(--color-on-primary); border-radius: 20px 0 0 20px; box-shadow: var(--glow-primary); font-weight: 600; }
.dp-cell.re { background: var(--color-primary); color: var(--color-on-primary); border-radius: 0 20px 20px 0; box-shadow: var(--glow-primary); font-weight: 600; }
.dp-footer { display: flex; justify-content: flex-end; margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.dp-today-btn { font-size: var(--font-size-body); font-weight: 500; color: var(--color-primary); background: transparent; border: none; cursor: pointer; padding: var(--space-1) var(--space-2); border-radius: var(--radius-md); transition: background .15s; }
.dp-today-btn:hover { background: var(--color-primary-container); }
.dp-month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.dp-mc { display: flex; align-items: center; justify-content: center; padding: var(--space-2); border-radius: var(--radius-md); font-size: var(--font-size-body); cursor: pointer; transition: background .15s; }
.dp-mc:hover { background: var(--muted); }
.dp-mc.selected { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--glow-primary); font-weight: 600; }

/* ── Description List ──────────────────────────────────────── */
/* @anatomy
   <span class="label">Horizontal</span>
*/
.dl { width: 100%; max-width: 560px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); overflow: hidden; }
.dl-row { display: flex; align-items: center; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); }
.dl-row:last-child { border-bottom: none; }
.dl-term { min-width: 120px; font-weight: 500; color: var(--color-foreground); font-size: var(--font-size-body); flex-shrink: 0; }
.dl-value { color: var(--color-muted-foreground); font-size: var(--font-size-body); }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-full); font-size: var(--font-size-caption); font-weight: 500; }
.tag.success { background: var(--color-primary-container); color: var(--color-success); }

/* ── Drawer ────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">右侧面板</span> <button class="drawer-open-btn" onclick="document.getElementById('drawer').style.display='flex';document.getElementById('overlay').style.display='block';">打开面板</button>
*/
.drawer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); z-index: 100; }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 100vw; background: var(--popover); border-left: 1px solid var(--color-border); box-shadow: var(--shadow-4); z-index: 101; display: flex; flex-direction: column; font-family: var(--font-family-base); }
  .drawer-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); border-bottom: 1px solid var(--color-border); }
  .drawer-title { font-family: var(--font-heading); font-size: var(--font-size-h4); font-weight: var(--font-weight-h4); color: var(--color-on-surface); margin: 0; }
  .drawer-close { display: inline-flex; align-items: center; justify-content: center; width: var(--size-icon-lg); height: var(--size-icon-lg); background: none; border: none; cursor: pointer; color: var(--color-muted-foreground); transition: background .15s; border-radius: var(--radius-sm); }
  .drawer-close:hover { background: var(--color-surface-container); }
  .drawer-body { flex: 1; overflow-y: auto; padding: var(--space-4); }
  .drawer-footer { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: var(--space-4); border-top: 1px solid var(--color-border); }
  .drawer-btn { display: inline-flex; align-items: center; justify-content: center; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-size: var(--font-size-body); font-family: var(--font-family-base); cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s; border: 1px solid var(--color-border); min-width: var(--size-button-md); }
  .drawer-btn.secondary { background: var(--color-surface); color: var(--color-on-surface); }
  .drawer-btn.secondary:hover { background: var(--color-surface-container); }
  .drawer-btn.primary { background: var(--color-primary); color: var(--color-on-primary); border-color: transparent; }
  .drawer-btn.primary:hover { filter: brightness(1.08); }
  .desc-list { display: flex; flex-direction: column; gap: var(--space-3); }
  .desc-item { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-surface-container-low); }
  .desc-item:last-child { border-bottom: none; }
  .desc-key { font-size: var(--font-size-body); color: var(--color-muted-foreground); }
  .desc-value { font-size: var(--font-size-body); font-weight: 500; color: var(--color-on-surface); }

/* ── Dropdown ──────────────────────────────────────────────── */
/* @anatomy
   <span class="label">默认</span> <div class="dropdown-wrapper"> <div class="dropdown-trigger" onclick="toggleDropdown(this)"> <span>选择模块</span> <svg class="chevron" width="16" height="16"><use href="#icon-chevron-down"/></svg>
*/
/* Component definitions — extracted to components.css by deterministic script */
  .dropdown-wrapper { position: relative; min-width: 220px; }
  .dropdown-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; height: var(--size-input-height); padding: 0 var(--space-3); background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-family: var(--font-family-base); font-size: var(--font-size-body); color: var(--color-on-surface); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
  .dropdown-trigger:hover { background: var(--color-surface-container-low); }
  .dropdown-trigger.open { border-color: var(--color-primary); box-shadow: var(--glow-primary); background: var(--color-surface-container-low); }
  .dropdown-trigger.error { border-color: var(--color-error); }
  .dropdown-trigger .chevron { width: var(--size-icon-sm); height: var(--size-icon-sm); transition: transform .2s; flex-shrink: 0; }
  .dropdown-trigger.open .chevron { transform: rotate(180deg); }
  .dropdown-panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); z-index: 10; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
  .dropdown-panel.visible { opacity: 1; visibility: visible; transform: translateY(0); }
  .dropdown-option { display: flex; align-items: center; padding: var(--space-2) var(--space-3); font-size: var(--font-size-body); color: var(--color-on-surface); cursor: pointer; transition: background .15s; white-space: nowrap; }
  .dropdown-option:hover { background: var(--muted); }
  .dropdown-option.selected { color: var(--color-primary); font-weight: 500; }
  .dropdown-search { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); }
  .dropdown-search input { width: 100%; height: var(--size-input-height); padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-background); font-family: var(--font-family-base); font-size: var(--font-size-body); color: var(--color-on-surface); outline: none; transition: border-color .15s; box-sizing: border-box; }
  .dropdown-search input:focus { border-color: var(--color-primary); }

/* ── Empty State ───────────────────────────────────────────── */
/* @anatomy
   <span class="label">默认</span> <div class="empty-state"> <svg class="empty-icon"><use href="#icon-inbox"/></svg> <span class="empty-title">暂无数据</span> <span class="empty-desc">还没有任何记录。</span>
*/
/* Component definitions — extracted to components.css */
  .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-8) var(--space-5); text-align: center; width: 320px; border: 1px dashed var(--color-border); border-radius: var(--radius-lg); flex-shrink: 0; }
  .empty-icon { width: 48px; height: 48px; color: var(--color-muted-foreground); flex-shrink: 0; }
  .empty-title { font-family: var(--font-heading); font-size: var(--font-size-h4); font-weight: var(--font-weight-h4); color: var(--color-on-surface); margin-top: var(--space-4); white-space: nowrap; }
  .empty-desc { font-size: var(--font-size-body); color: var(--color-muted-foreground); margin-top: var(--space-2); word-break: keep-all; overflow-wrap: break-word; }
  .empty-btn { margin-top: var(--space-4); display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--space-4); height: var(--size-button-sm); background: var(--accent); color: var(--accent-foreground); border: none; border-radius: var(--radius-md); font-size: var(--font-size-body); font-weight: 500; cursor: pointer; white-space: nowrap; min-width: var(--size-button-sm); transition: background .15s, border-color .15s; }
  .empty-btn:hover { background: var(--accent-hover); }

/* ── Faq ───────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Default</span> <div class="faq"> <div class="faq-item"><button class="faq-question" aria-expanded="true" onclick="this.setAttribute('aria-expanded',this.getAttribute('aria-expanded')==='true'?'false':'true');this.nextElementSibling.classList.toggle('open')">如何创建账户？<svg class="faq-icon" width="20" height="20"><use href="#icon-plus"/></svg></button><div class="faq-answer open"...
*/
/* Component definitions — extracted to components.css by deterministic script */
.faq { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: var(--space-2); }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); border: none; background: transparent; cursor: pointer; width: 100%; font-family: var(--font-family-base); font-size: var(--font-size-body); font-weight: 500; color: var(--color-on-surface); transition: background .15s; }
.faq-question:hover { background: var(--color-surface-dim); }
.faq-icon { width: 20px; height: 20px; color: var(--color-primary); transition: transform .25s; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-inner { padding: 0 var(--space-4) var(--space-4); font-size: var(--font-size-body); color: var(--color-on-surface-variant); line-height: var(--line-height-body); }
.faq-answer.open { max-height: 200px; }
.faq-tabs { display: flex; gap: var(--space-1); border-bottom: 2px solid var(--color-border); margin-bottom: var(--space-3); }
.faq-tab { padding: var(--space-2) var(--space-4); border: none; background: transparent; cursor: pointer; font-family: var(--font-family-base); font-size: var(--font-size-body); font-weight: 500; color: var(--color-muted-foreground); position: relative; transition: color .15s; white-space: nowrap; }
.faq-tab:hover { color: var(--color-on-surface); }
.faq-tab.active { color: var(--color-primary); }
.faq-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--color-primary); }

/* ── Feature Card ──────────────────────────────────────────── */
/* @anatomy
   <div class="feature-grid" data-evidence-sample="Icon Feature"> <div class="feature-card"> <div class="icon-wrap"><svg viewBox="0 0 24 24"><use href="#icon-bar-chart"/></svg>
*/
.feature-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:var(--space-5); width:100%; }
.feature-card { background:var(--color-card); border:1px solid var(--color-border); border-radius:var(--radius-xl); padding:var(--space-5); display:flex; flex-direction:column; gap:var(--space-3); transition:box-shadow .2s; }
.feature-card:hover { box-shadow:var(--shadow-2); }
.feature-card .icon-wrap { width:48px; height:48px; border-radius:var(--radius-md); background:var(--one-primary-50); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.feature-card .icon-wrap svg { width:24px; height:24px; color:var(--color-primary); }
.feature-card .title { font-family:var(--font-heading); font-size:var(--font-size-h4); font-weight:var(--font-weight-h4); margin:0; }
.feature-card .desc { font-size:var(--font-size-body); line-height:var(--line-height-body); color:var(--color-muted-foreground); margin:0; }
.step-grid { display:flex; gap:var(--space-5); flex-wrap:wrap; width:100%; }
.step-card { flex:1; min-width:200px; max-width:340px; display:flex; gap:var(--space-4); padding:var(--space-5); }
.step-card .step-num { font-family:var(--font-display); font-size:36px; font-weight:var(--font-weight-display); color:var(--color-primary); line-height:1; flex-shrink:0; }
.step-card .step-content { display:flex; flex-direction:column; gap:var(--space-2); }
.step-card .step-title { font-family:var(--font-heading); font-size:var(--font-size-h4); font-weight:var(--font-weight-h4); margin:0; }
.step-card .step-desc { font-size:var(--font-size-body); line-height:var(--line-height-body); color:var(--color-muted-foreground); margin:0; }

/* ── File Upload ───────────────────────────────────────────── */
/* @anatomy
   <span class="label">Dropzone</span>
*/
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); width: 100%; max-width: 480px; padding: var(--space-8); border: 2px dashed var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: var(--color-primary); background: var(--color-primary-container); }
.dropzone-icon { color: var(--color-muted-foreground); }
.dropzone-title { font-size: var(--font-size-body); font-weight: 500; color: var(--color-foreground); }
.dropzone-subtitle { font-size: var(--font-size-caption); color: var(--color-muted-foreground); }

/* ── Filter Bar ────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Inline</span>
*/
.filter-select { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--size-input-height); padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); font-family: var(--font-body); font-size: var(--font-size-body); color: var(--color-foreground); cursor: pointer; transition: border-color .15s; white-space: nowrap; flex-shrink: 0; appearance: none; min-width: 120px; }
.filter-select:hover { border-color: var(--color-primary); }
.filter-search { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--size-input-height); padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); font-family: var(--font-body); font-size: var(--font-size-body); color: var(--color-foreground); min-width: 160px; flex-shrink: 0; }
.filter-search::placeholder { color: var(--color-muted-foreground); }
.filter-search:focus { border-color: var(--color-primary); outline: none; }
.filter-btn { display: inline-flex; align-items: center; justify-content: center; height: var(--size-input-height); padding: 0 var(--space-4); border: none; border-radius: var(--radius-md); background: var(--color-primary); color: var(--color-on-primary); font-family: var(--font-body); font-size: var(--font-size-body); font-weight: 500; cursor: pointer; transition: background .15s; white-space: nowrap; flex-shrink: 0; }
.filter-btn:hover { background: var(--color-primary-hover); }
.filter-tag { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px 8px 2px var(--space-2); border-radius: var(--radius-full); background: rgba(10,132,255,0.1); color: var(--color-primary); font-size: var(--font-size-caption); font-weight: 500; cursor: pointer; transition: background .15s; white-space: nowrap; flex-shrink: 0; }
.filter-tag:hover { background: rgba(10,132,255,0.18); }
.filter-tag-close { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); border: none; background: transparent; color: var(--color-primary); cursor: pointer; font-size: 12px; line-height: 1; padding: 0; }
.filter-tag-close:hover { background: rgba(10,132,255,0.25); }
.filter-clear { border: none; background: transparent; color: var(--color-primary); font-family: var(--font-body); font-size: var(--font-size-caption); font-weight: 500; cursor: pointer; padding: var(--space-1); transition: opacity .15s; white-space: nowrap; }
.filter-clear:hover { opacity: .7; }
.filter-bar { display: flex; align-items: center; gap: var(--space-3); width: 100%; flex-wrap: wrap; }

/* ── Floating Action Button ────────────────────────────────── */
/* @anatomy
   <div class="specimen"> <div class="header">Floating Action Button</div>
*/
.fab { display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; font-family: var(--font-family-base); transition: background .15s, box-shadow .15s; }
  .fab.default { width: 56px; height: 56px; min-width: 56px; border-radius: var(--radius-full); background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-4); }
  .fab.default:hover { background: var(--accent-hover); box-shadow: var(--shadow-5); }
  .fab.extended { height: 48px; min-height: 48px; border-radius: var(--radius-full); background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-4); padding: var(--space-3) var(--space-5); gap: var(--space-2); font-size: var(--font-size-body); font-weight: 500; }
  .fab.extended:hover { background: var(--accent-hover); box-shadow: var(--shadow-5); }
  .fab svg { flex-shrink: 0; }

/* ── Footer ────────────────────────────────────────────────── */
/* @anatomy
   <div class="footer-section" data-evidence-sample="Default"> <div class="footer-grid"> <div class="footer-col"> <div class="footer-col-title">产品
*/
.footer-section { width:100%; background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-xl); padding:var(--space-8) var(--space-6); }
.footer-section .footer-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-6); margin-bottom:var(--space-6); }
.footer-section .footer-col { display:flex; flex-direction:column; gap:var(--space-3); }
.footer-section .footer-col-title { font-family:var(--font-heading); font-size:var(--font-size-body); font-weight:var(--font-weight-h4); color:var(--color-on-surface); white-space:nowrap; }
.footer-section .footer-link { font-size:var(--font-size-body); color:var(--color-muted-foreground); text-decoration:none; white-space:nowrap; transition:color .15s; }
.footer-section .footer-link:hover { color:var(--color-primary); }
.footer-section .footer-bottom { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--color-border); padding-top:var(--space-5); }
.footer-section .footer-copy { font-size:var(--font-size-caption); color:var(--color-muted-foreground); }
.footer-section .footer-social { display:flex; gap:var(--space-3); }
.footer-section .footer-social a { display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:var(--radius-md); color:var(--color-muted-foreground); transition:color .15s,background .15s; }
.footer-section .footer-social a:hover { color:var(--color-primary); background:var(--one-primary-50); }
.footer-section .footer-social a svg { width:20px; height:20px; }
.footer-minimal { width:100%; background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-xl); padding:var(--space-6); text-align:center; }
.footer-minimal .footer-minimal-copy { font-size:var(--font-size-caption); color:var(--color-muted-foreground); margin:0; }

/* ── Hero ──────────────────────────────────────────────────── */
/* @anatomy
   <div class="hero-section centered" data-evidence-sample="Centered"> <div class="hero-title">重新定义数据分析
*/
.hero-section { width:100%; min-height:480px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:var(--space-8) var(--space-5); box-sizing:border-box; }
.hero-section.centered { background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-xl); }
.hero-section.gradient { background:var(--gradient-aurora); border-radius:var(--radius-xl); color:#fff; }
.hero-section .hero-title { font-family:var(--font-display); font-size:var(--font-size-display); font-weight:var(--font-weight-display); letter-spacing:-0.03em; margin:0 0 var(--space-3); line-height:var(--line-height-display); }
.hero-section.gradient .hero-title { color:#fff; }
.hero-section .hero-subtitle { font-size:var(--font-size-lead); line-height:var(--line-height-lead); margin:0 0 var(--space-6); max-width:600px; }
.hero-section.centered .hero-subtitle { color:var(--color-muted-foreground); }
.hero-section.gradient .hero-subtitle { color:rgba(255,255,255,0.85); }
.hero-section .hero-ctas { display:flex; gap:var(--space-3); flex-wrap:wrap; justify-content:center; }
.hero-section .btn { display:inline-flex; align-items:center; justify-content:center; padding:12px 32px; border-radius:var(--radius-md); font-size:var(--font-size-body); font-weight:var(--font-weight-h4); cursor:pointer; border:none; white-space:nowrap; min-width:120px; transition:background .15s,filter .15s; }
.hero-section .btn:hover { filter:brightness(1.08); }
.hero-section .btn-primary { background:var(--color-primary); color:#fff; }
.hero-section .btn-ghost { background:transparent; color:var(--color-on-surface); border:1px solid var(--color-border); }
.hero-section .btn-ghost:hover { background:var(--color-surface-container-low); }
.hero-section.gradient .btn { background:rgba(255,255,255,0.2); color:#fff; border:1px solid rgba(255,255,255,0.4); backdrop-filter:blur(8px); }
.hero-section.gradient .btn:hover { background:rgba(255,255,255,0.3); }
.hero-section.gradient .btn:first-child { background:rgba(255,255,255,0.3); border:1px solid rgba(255,255,255,0.5); }

/* ── Input ─────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">默认</span> <div class="input-group"> <label class="input-label">用户名</label> <input type="text" class="input-field" placeholder="请输入用户名">
*/
/* Component definitions — extracted to components.css by deterministic script */
.input-group { display: flex; flex-direction: column; gap: var(--space-1); min-width: 200px; flex: 1; max-width: 320px; }
.input-label { font-size: 14px; font-weight: 500; color: var(--color-foreground); line-height: 1.4; }
.input-field { height: var(--size-input-height); background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0 var(--space-3); font-size: var(--font-size-body); font-family: var(--font-family-base); color: var(--color-foreground); outline: none; width: 100%; transition: border-color .15s, box-shadow .15s; }
.input-field::placeholder { color: var(--color-muted-foreground); }
.input-field:hover { border-color: var(--one-neutral-400); }
.input-field:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--ring); }
.input-field.error { border-color: var(--color-error); }
.input-field.error:focus { border-color: var(--color-error); box-shadow: 0 0 0 2px var(--color-error); }
.input-helper { font-size: var(--font-size-caption); color: var(--color-muted-foreground); line-height: 1.4; }
.input-helper.error { color: var(--color-error); }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper .input-field { padding-left: calc(var(--size-icon-md) + var(--space-3) + var(--space-1)); }
.input-wrapper .input-icon { position: absolute; left: var(--space-3); width: var(--size-icon-md); height: var(--size-icon-md); color: var(--color-muted-foreground); pointer-events: none; flex-shrink: 0; }

/* ── Kanban ────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Kanban Board</span>
*/
.kanban { display: flex; gap: var(--space-4); width: 100%; overflow-x: auto; }
.kanban-column { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-3); width: 280px; flex-shrink: 0; }
.kanban-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.kanban-title { font-size: var(--font-size-body); font-weight: 600; color: var(--color-on-surface); }
.kanban-count { font-size: var(--font-size-caption); color: var(--color-on-surface-variant); background: var(--color-surface-container-low); border-radius: var(--radius-full); padding: 2px 8px; }
.kanban-cards { display: flex; flex-direction: column; gap: var(--space-2); }
.kanban-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); transition: background .15s; }
.kanban-card:hover { background: var(--color-surface-container-low); }
.kanban-card-title { font-size: var(--font-size-body); font-weight: 500; color: var(--color-on-surface); margin-bottom: var(--space-2); white-space: nowrap; }
.kanban-tag { display: inline-flex; align-items: center; font-size: var(--font-size-caption); padding: 2px 8px; border-radius: var(--radius-full); white-space: nowrap; }
.kanban-tag.high { background: var(--one-error-50); color: var(--color-error); }
.kanban-tag.medium { background: var(--one-warning-50); color: var(--color-warning); }
.kanban-tag.low { background: var(--one-info-50); color: var(--color-info); }
.kanban-tag.done { background: var(--one-success-50); color: var(--color-success); }

/* ── Kebab Menu ────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Menu</span><button class="kebab-trigger" type="button"><svg width="16" height="16"><use href="#icon-kebab"/></svg></button><div class="kebab-panel"><button class="kebab-item" type="button">编辑</button><button class="kebab-item" type="button">复制</button><button class="kebab-item" type="button">导出</button><hr class="kebab-sep"><button class="kebab-item danger" type="button">删除<...
*/
.kebab-trigger { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; border-radius: var(--radius-md); background: transparent; cursor: pointer; color: var(--color-foreground); transition: background .15s; flex-shrink: 0; }
.kebab-trigger:hover { background: var(--muted); }
.kebab-panel { display: inline-block; background: var(--popover); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-3); min-width: 160px; padding: var(--space-1) 0; overflow: hidden; }
.kebab-item { display: flex; align-items: center; gap: var(--space-2); width: 100%; padding: var(--space-2) var(--space-4); border: none; background: transparent; font-family: var(--font-body); font-size: var(--font-size-body); color: var(--color-foreground); cursor: pointer; text-align: left; transition: background .15s; white-space: nowrap; }
.kebab-item:hover { background: var(--muted); }
.kebab-item.danger { color: var(--color-error); }
.kebab-item.danger:hover { background: var(--color-error); color: #fff; }
.kebab-sep { border: none; border-top: 1px solid var(--color-border); margin: var(--space-1) 0; }

/* ── Line Chart ────────────────────────────────────────────── */
/* @anatomy
   <div class="chart-card"> <div class="chart-title">单线趋势
*/
.lc .grid{stroke:var(--border);stroke-dasharray:4 4;stroke-width:.5}
.lc .axis{stroke:var(--border);stroke-width:1}
.lc .lbl{fill:var(--muted-foreground);font-size:10px;font-family:var(--font-body)}
.lc .line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lc .area{opacity:.08}
.lc .dot{stroke:var(--card);stroke-width:2;cursor:pointer;transition:r .15s ease}
.lc .dot:hover{r:6}
.lc .s1{stroke:var(--primary)}.lc .s2{stroke:var(--secondary)}.lc .s3{stroke:var(--neon)}
.lc .d1{fill:var(--primary)}.lc .d2{fill:var(--secondary)}.lc .d3{fill:var(--neon)}
.lc .a1{fill:var(--primary)}

/* ── Loader ────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Spinner</span> <div class="loader-demo"><div class="loader-spinner">
*/
/* Component definitions — extracted to components.css by deterministic script */
@keyframes spin { to { transform: rotate(360deg); } }
.loader-spinner { width: 32px; height: 32px; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: var(--radius-full); animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes dot-bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-8px); } }
.loader-dots { display: flex; gap: 6px; align-items: center; }
.loader-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-primary); animation: dot-bounce 0.6s ease-in-out infinite; flex-shrink: 0; }
.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes indeterminate { 0% { left: -30%; width: 30%; } 50% { left: 50%; width: 30%; } 100% { left: 100%; width: 30%; } }
.loader-bar-track { width: 200px; height: 3px; background: var(--color-muted); border-radius: var(--radius-full); overflow: hidden; position: relative; }
.loader-bar-fill { position: absolute; top: 0; height: 100%; background: var(--gradient-primary); border-radius: var(--radius-full); animation: indeterminate 1.5s ease-in-out infinite; }

/* ── Modal ─────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">默认弹窗</span>
*/
.modal-backdrop { background: rgba(0,0,0,0.4); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; height: 300px; }
  .modal { background: var(--popover); border-radius: var(--radius-xl); box-shadow: var(--shadow-5); padding: var(--space-6); max-width: 480px; width: 100%; }
  .modal-confirm { max-width: 400px; padding: var(--space-5); }
  .modal-title { font-family: var(--font-heading); font-size: var(--font-size-h4); font-weight: var(--font-weight-h4); color: var(--color-foreground); margin: 0 0 var(--space-2) 0; line-height: var(--line-height-h4); }
  .modal-body { font-family: var(--font-body); font-size: var(--font-size-body); font-weight: var(--font-weight-body); color: var(--color-muted-foreground); margin: 0 0 var(--space-5) 0; line-height: var(--line-height-body); }
  .modal-footer { display: flex; justify-content: flex-end; gap: var(--space-2); }
  .modal-btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: var(--font-size-body); font-weight: 500; border-radius: var(--radius-md); padding: var(--space-2) var(--space-4); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; min-width: var(--size-button-sm); height: var(--size-button-sm); border: none; }
  .modal-btn-cancel { background: transparent; color: var(--color-muted-foreground); border: 1px solid var(--color-border); }
  .modal-btn-cancel:hover { background: var(--surface-container-low); }
  .modal-btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
  .modal-btn-primary:hover { background: var(--color-primary-hover); }
  .modal-btn-danger { background: var(--color-error); color: #ffffff; }
  .modal-btn-danger:hover { filter: brightness(.92); }

/* ── Navigation ────────────────────────────────────────────── */
/* @anatomy
   <span class="label">页头导航</span>
*/
.nav { display: flex; align-items: center; width: 100%; height: var(--size-button-lg); padding: var(--space-4) var(--space-8); background: var(--background); border-bottom: 1px solid var(--border); }
.nav-brand { font-family: var(--font-heading); font-size: var(--font-size-h4); font-weight: var(--font-weight-h4); color: var(--color-foreground); text-decoration: none; white-space: nowrap; margin-right: var(--space-8); }
.nav-links { display: flex; align-items: center; gap: var(--space-8); list-style: none; margin: 0; padding: 0; }
.nav-link { font-size: var(--font-size-body); font-weight: 400; color: var(--color-muted-foreground); text-decoration: none; white-space: nowrap; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); transition: background .15s; }
.nav-link:hover { background: var(--surface-container-low); }
.nav-link.active { color: var(--color-foreground); font-weight: 500; }
.nav-spacer { flex: 1; }
.nav-action { display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--space-4); background: var(--color-primary); color: var(--color-on-primary); border: none; border-radius: var(--radius-md); font-family: var(--font-family-base); font-size: var(--font-size-body); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s; height: var(--size-button-sm); min-width: var(--size-button-sm); }
.nav-action:hover { background: var(--color-primary-hover); }
.tabs { display: flex; align-items: center; width: 100%; height: 40px; border-bottom: 1px solid var(--border); padding: 0 var(--space-8); }
.tab { display: inline-flex; align-items: center; font-size: var(--font-size-body); font-weight: 400; color: var(--color-muted-foreground); background: none; border: none; border-bottom: 2px solid transparent; padding: var(--space-2) var(--space-4); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; font-family: var(--font-family-base); }
.tab:hover { background: var(--surface-container-low); }
.tab.active { color: var(--color-foreground); font-weight: 500; border-bottom-color: var(--color-primary); }

/* ── Notification Banner ───────────────────────────────────── */
/* @anatomy
   <div class="specimen"> <div class="header">Notification Banner</div>
*/
.banner { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-size: var(--font-size-caption); line-height: 1.5; }
  .banner.info { background: var(--primary); color: var(--primary-foreground); }
  .banner.warning { background: var(--color-warning); color: var(--one-warning-900); }
  .banner-icon { flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
  .banner-text { flex: 1; min-width: 0; word-break: break-all; white-space: normal; }
  .banner-dismiss { flex-shrink: 0; width: 20px; height: 20px; border: none; background: transparent; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0.7; transition: opacity .15s; border-radius: var(--radius-sm); }
  .banner-dismiss:hover { opacity: 1; }

/* ── Numeric Keypad ────────────────────────────────────────── */
/* @anatomy
   <div class="specimen"> <div class="story-label">NumericKeypad</div>
*/
.nkp-panel { background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-4); padding: var(--space-4); }
/* Calculator display */
.nkp-display { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); text-align: right; margin-bottom: var(--space-2); }
.nkp-expr { font-family: var(--font-mono); font-size: var(--font-size-caption); color: var(--color-muted-foreground); margin-bottom: var(--space-1); }
.nkp-result { font-family: var(--font-mono); font-size: var(--font-size-h2); font-weight: 700; color: var(--color-on-surface); }
/* Calculator grid */
.nkp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); border-top: 1px solid var(--color-border); padding-top: var(--space-2); }
.nkp-key { height: 56px; border: none; border-radius: var(--radius-lg); font-family: var(--font-body); font-size: var(--font-size-h4); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; white-space: nowrap; }
.nkp-key:hover { filter: brightness(.92); }
.nkp-key-fn { background: var(--muted); color: var(--color-on-surface); }
.nkp-key-num { background: var(--surface); color: var(--color-on-surface); }
.nkp-key-num:hover { background: var(--surface-container); }
.nkp-key-op { background: var(--color-primary-container); color: var(--color-primary); }
.nkp-key-op:hover { background: var(--one-primary-100); }
.nkp-key-eq { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-glow-blue); }
.nkp-key-eq:hover { background: var(--color-primary-hover); }
.nkp-span2 { grid-column: span 2; }
/* PIN keypad */
.nkp-pin { width: 200px; background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-4); padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.nkp-dots { display: flex; gap: var(--space-3); margin-bottom: var(--space-2); }
.nkp-dot { width: 12px; height: 12px; border-radius: var(--radius-full); }
.nkp-dot-filled { background: var(--color-primary); }
.nkp-dot-empty { border: 2px solid var(--color-border); background: transparent; }
.nkp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); width: 100%; }
.nkp-pin-key { height: 64px; border: none; border-radius: var(--radius-full); background: var(--surface); color: var(--color-on-surface); font-size: var(--font-size-h3); font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.nkp-pin-key:hover { background: var(--surface-container); }
.nkp-pin-action { height: 64px; border: none; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-on-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; box-shadow: var(--shadow-glow-blue); }
.nkp-pin-action:hover { background: var(--color-primary-hover); }
.nkp-pin-spacer { height: 64px; }
/* Phone keypad */
.nkp-phone { width: 240px; background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-4); padding: var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.nkp-phone-key { height: 56px; border: none; border-radius: var(--radius-lg); background: var(--surface); color: var(--color-on-surface); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .15s; gap: 2px; }
.nkp-phone-key:hover { background: var(--surface-container); }
.nkp-phone-num { font-size: var(--font-size-h4); font-weight: 600; line-height: 1; }
.nkp-phone-sub { font-size: var(--font-size-caption); color: var(--color-muted-foreground); letter-spacing: 0.12em; line-height: 1; }
.nkp-call { width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--color-success); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow-green); margin-top: var(--space-1); transition: filter .15s; }
.nkp-call:hover { filter: brightness(1.1); }

/* ── Otp Input ─────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Default</span><div class="otp-group"><input class="otp-box filled" value="4" readonly /><input class="otp-box filled" value="7" readonly /><input class="otp-box filled" value="2" readonly /><span class="otp-sep">-</span><input class="otp-box filled" value="9" readonly /><input class="otp-box" value="1" readonly /><input class="otp-box" value="" readonly />
*/
.otp-group { display: flex; gap: var(--space-2); }
.otp-box { width: 44px; height: 52px; text-align: center; font-size: var(--font-size-h3); font-weight: 700; font-family: var(--font-heading); border: 2px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-foreground); outline: none; transition: border-color .15s; caret-color: var(--color-primary); }
.otp-box:focus { border-color: var(--color-primary); box-shadow: var(--glow-primary); }
.otp-box.filled { border-color: var(--color-primary); }
.otp-sep { display: flex; align-items: center; width: 12px; justify-content: center; color: var(--color-muted-foreground); font-size: 20px; }

/* ── Pagination ────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Default</span> <div class="pagination"> <span class="pagination-info">共 48 条</span> <a class="pagination-btn disabled" href="#">&lsaquo;</a> <a class="pagination-btn active" href="#">1</a> <a class="pagination-btn" href="#">2</a> <a class="pagination-btn" href="#">3</a> <a class="pagination-btn" href="#">4</a> <a class="pagination-btn" href="#">5</a> <span class="pagination-...
*/
.pagination { display: inline-flex; align-items: center; gap: var(--space-1); }
.pagination-info { font-size: var(--font-size-caption); color: var(--color-on-surface-variant); margin-right: var(--space-3); white-space: nowrap; }
.pagination-btn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--size-button-sm); height: var(--size-button-sm); padding: var(--space-1) var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-on-surface); font-size: var(--font-size-body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.pagination-btn:hover { background: var(--color-surface-container-low); border-color: var(--color-primary); }
.pagination-btn.active { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
.pagination-btn.active:hover { background: var(--color-primary-hover); }
.pagination-btn.disabled { opacity: .4; pointer-events: none; }
.pagination-ellipsis { display: inline-flex; align-items: center; justify-content: center; width: var(--size-button-sm); height: var(--size-button-sm); color: var(--color-on-surface-variant); }

/* ── Pie Chart ─────────────────────────────────────────────── */
/* @anatomy
   <div class="chart-card"> <div class="chart-title">完整饼图
*/
.pc .seg{transition:transform .2s ease,filter .2s ease;transform-origin:center;cursor:pointer}
.pc .seg:hover{transform:scale(1.04);filter:brightness(1.1)}
.pc .seg-lbl{fill:var(--color-foreground);font-size:11px;font-family:var(--font-body);font-weight:500}
.pc .seg-pct{fill:var(--color-foreground);font-size:10px;font-family:var(--font-body)}
.pc .leg-item{fill:var(--muted-foreground);font-size:11px;font-family:var(--font-body)}
.pc .leg-dot{r:5}
.pc .center-lbl{fill:var(--muted-foreground);font-size:12px;font-family:var(--font-body);text-anchor:middle}
.pc .center-val{fill:var(--color-foreground);font-family:var(--font-display);font-size:32px;font-weight:700;text-anchor:middle}
.pc .gauge-pct{fill:var(--color-foreground);font-family:var(--font-display);font-size:28px;font-weight:700;text-anchor:middle}
.pc .gauge-lbl{fill:var(--muted-foreground);font-size:12px;font-family:var(--font-body);text-anchor:middle}

/* ── Popover ───────────────────────────────────────────────── */
/* @anatomy
   <span class="label">点击弹出</span> <div class="popover-wrapper"> <button class="popover-trigger" onclick="document.getElementById('popover').style.display=this.nextElementSibling.style.display==='block'?'none':'block';">用户信息</button> <div id="popover" class="popover-card" style="display:block;"> <div class="popover-info"> <div class="popover-avatar">张
*/
.popover-wrapper { position: relative; display: inline-flex; }
  .popover-trigger { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--font-size-body); color: var(--color-on-surface); cursor: pointer; white-space: nowrap; transition: border-color .15s; }
  .popover-trigger:hover { border-color: var(--color-primary); }
  .popover-card { position: absolute; top: calc(100% + 10px); left: 0; width: 280px; background: var(--popover); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: var(--space-4); z-index: 10; }
  .popover-card::before { content: ''; position: absolute; top: -6px; left: 24px; width: 12px; height: 12px; background: var(--popover); border-top: 1px solid var(--color-border); border-left: 1px solid var(--color-border); transform: rotate(45deg); }
  .popover-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-on-primary); display: flex; align-items: center; justify-content: center; font-size: var(--font-size-h4); font-weight: 600; flex-shrink: 0; }
  .popover-name { font-family: var(--font-heading); font-size: var(--font-size-body); font-weight: 600; color: var(--color-on-surface); margin: 0; }
  .popover-role { font-size: var(--font-size-caption); color: var(--color-muted-foreground); margin: 0; }
  .popover-email { font-size: var(--font-size-caption); color: var(--color-primary); margin: 0; }
  .popover-info { display: flex; gap: var(--space-3); align-items: center; }

/* ── Pricing Table ─────────────────────────────────────────── */
/* @anatomy
   <div class="pricing-grid" data-evidence-sample="Default"> <div class="pricing-card" data-evidence-sample="Default"> <div class="plan-name">免费版
*/
.pricing-grid { display:flex; gap:var(--space-5); flex-wrap:wrap; width:100%; }
.pricing-card { flex:1; min-width:260px; max-width:340px; background:var(--color-card); border:1px solid var(--color-border); border-radius:var(--radius-xl); padding:var(--space-6); display:flex; flex-direction:column; transition:box-shadow .2s; }
.pricing-card:hover { box-shadow:var(--shadow-2); }
.pricing-card .plan-name { font-family:var(--font-heading); font-size:var(--font-size-h4); font-weight:var(--font-weight-h4); margin-bottom:var(--space-2); }
.pricing-card .price { font-family:var(--font-display); font-size:48px; font-weight:var(--font-weight-display); margin-bottom:var(--space-1); font-variant-numeric:tabular-nums; }
.pricing-card .price span { font-size:var(--font-size-body); font-weight:var(--font-weight-body); color:var(--color-muted-foreground); }
.pricing-card .features { list-style:none; padding:0; margin:var(--space-4) 0; flex:1; display:flex; flex-direction:column; gap:var(--space-2); }
.pricing-card .features li { display:flex; align-items:center; gap:var(--space-2); font-size:var(--font-size-body); line-height:var(--line-height-body); }
.pricing-card .features li .check { color:var(--color-primary); flex-shrink:0; width:20px; height:20px; }
.pricing-card .features li .cross { color:var(--color-error); flex-shrink:0; width:20px; height:20px; }
.pricing-card .cta { display:inline-flex; align-items:center; justify-content:center; padding:10px 24px; border-radius:var(--radius-md); font-size:var(--font-size-body); font-weight:var(--font-weight-h4); cursor:pointer; border:none; transition:background .15s,filter .15s; }
.pricing-card .cta:hover { filter:brightness(1.08); }
.pricing-card.highlighted { position:relative; background:var(--color-card); border:none; box-shadow:var(--shadow-gradient-aurora); }
.pricing-card.highlighted::before { content:''; position:absolute; inset:-1px; border-radius:var(--radius-xl); padding:2px; background:var(--gradient-border-aurora); -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; }
.pricing-card .badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--color-primary); color:#fff; font-size:var(--font-size-caption); font-weight:var(--font-weight-eyebrow); padding:4px 16px; border-radius:var(--radius-full); white-space:nowrap; }
.pricing-card .cta-primary { background:var(--color-primary); color:#fff; }
.pricing-card .cta-ghost { background:transparent; color:var(--color-primary); border:1px solid var(--color-border); }

/* ── Progress ──────────────────────────────────────────────── */
/* @anatomy
   <span class="label">条形进度</span> <div class="progress-bar"><div class="progress-bar-fill">
*/
/* Component definitions — extracted to components.css */
  .progress-bar { width: 280px; height: 6px; background: var(--muted); border-radius: var(--radius-full); overflow: hidden; flex-shrink: 0; }
  .progress-bar-fill { height: 100%; width: 68%; background: var(--gradient-primary); border-radius: var(--radius-full); }
  .progress-bar-label { font-size: var(--font-size-caption); color: var(--color-muted-foreground); font-weight: 500; flex-shrink: 0; }
  .progress-circular { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
  .progress-circular svg { transform: rotate(-90deg); }
  .progress-circular-bg { fill: none; stroke: var(--muted); stroke-width: 4px; }
  .progress-circular-fill { fill: none; stroke: var(--primary); stroke-width: 4px; stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: 18.85; }
  .progress-circular-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 11px; font-weight: 600; color: var(--color-on-surface); }
  .progress-steps { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
  .progress-step { display: flex; align-items: center; gap: 0; }
  .step-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--primary); flex-shrink: 0; }
  .step-dot.pending { background: var(--border); }
  .step-connector { width: 40px; height: 2px; background: var(--primary); flex-shrink: 0; }
  .step-connector.pending { background: var(--border); }
  .step-label { font-size: var(--font-size-caption); color: var(--color-on-surface); margin-left: var(--space-2); white-space: nowrap; }
  .step-label.pending { color: var(--color-muted-foreground); }

/* ── Radar Chart ───────────────────────────────────────────── */
/* @anatomy
   <div class="label">单系列雷达图
*/
.radar-chart { width: 100%; }
.radar-chart .grid-line { fill: none; stroke: var(--color-border); stroke-width: 1; }
.radar-chart .axis-line { stroke: var(--color-border); stroke-width: 1; }
.radar-chart .axis-label { font-family: var(--font-body); font-size: 11px; fill: var(--color-muted-foreground); text-anchor: middle; dominant-baseline: middle; }
.radar-chart .series-fill { stroke-width: 2; fill-opacity: 0.12; }
.radar-chart .series-fill-blue { fill: var(--color-primary); stroke: var(--color-primary); }
.radar-chart .series-fill-cyan { fill: var(--neon); stroke: var(--neon); }
.radar-chart .data-point { fill: var(--color-primary); stroke: var(--card); stroke-width: 2; }

/* ── Radio ─────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">未选中</span> <div class="cell"><div class="radio">
*/
.radio { width: 18px; height: 18px; border: 2px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-background); flex-shrink: 0; position: relative; transition: border-color .15s; cursor: pointer; }
.radio:hover { border-color: var(--color-primary); }
.radio.selected { border-color: var(--color-primary); }
.radio.selected:hover { filter: brightness(1.08); }
.radio.selected::after { content: ''; position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--color-primary); }

/* ── Relation Graph ────────────────────────────────────────── */
/* @anatomy
   <div class="label">默认网络图
*/
.graph-svg { width: 100%; }
.graph-svg .edge { stroke: var(--color-border); stroke-width: 1; }
.graph-svg .node-circle { fill: var(--color-primary); stroke: var(--card); stroke-width: 2; }
.graph-svg .node-label { font-family: var(--font-body); font-size: 10px; fill: var(--color-foreground); text-anchor: middle; dominant-baseline: middle; }
.graph-svg .cluster-bg { stroke: var(--color-border); stroke-width: 1; stroke-dasharray: 6 4; rx: var(--one-radius-md); ry: var(--one-radius-md); }
.graph-svg .node-cyan { fill: var(--neon); }
.graph-svg .node-purple { fill: var(--secondary); }

/* ── Scatter Chart ─────────────────────────────────────────── */
/* @anatomy
   <div class="label">散点图
*/
.scatter-chart { width: 100%; }
.scatter-chart .axis-line { stroke: var(--color-border); stroke-width: 1; }
.scatter-chart .grid-line { stroke: var(--color-border); stroke-width: 1; stroke-dasharray: 4 4; }
.scatter-chart .axis-label { font-family: var(--font-body); font-size: 10px; fill: var(--color-muted-foreground); text-anchor: end; dominant-baseline: middle; }
.scatter-chart .x-label { text-anchor: middle; dominant-baseline: hanging; }
.scatter-chart .axis-title { font-family: var(--font-body); font-size: 11px; fill: var(--color-muted-foreground); text-anchor: middle; }
.scatter-chart .dot-blue { fill: var(--color-primary); stroke: var(--card); stroke-width: 2; }
.scatter-chart .dot-cyan { fill: var(--neon); stroke: var(--card); stroke-width: 2; }
.scatter-chart .dot-purple { fill: var(--secondary); stroke: var(--card); stroke-width: 2; }

/* ── Search Bar ────────────────────────────────────────────── */
/* @anatomy
   <span class="story-label">默认</span> <div class="search-bar"> <span class="search-bar-icon"><svg width="16" height="16"><use href="#icon-search"/></svg></span> <input class="search-bar-input" type="text" placeholder="搜索模块、功能、设置...">
*/
/* Component definitions — extracted to components.css by deterministic script */
.search-bar { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: var(--size-input-height); border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.search-bar:focus-within { border-color: var(--color-primary); box-shadow: var(--glow-primary); }
.search-bar:disabled { opacity: 0.45; pointer-events: none; }
.search-bar-icon { display: flex; align-items: center; justify-content: center; padding-left: var(--space-4); flex-shrink: 0; color: var(--color-muted-foreground); width: var(--size-icon-lg); }
.search-bar-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 0 var(--space-3) 0 var(--space-2); font-family: var(--font-family-base); font-size: var(--font-size-body); color: var(--color-on-surface); height: 100%; }
.search-bar-input::placeholder { color: var(--color-muted-foreground); }
.search-bar-clear { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-full); border: none; background: transparent; color: var(--color-muted-foreground); cursor: pointer; flex-shrink: 0; margin-right: var(--space-2); transition: background .15s; }
.search-bar-clear:hover { background: var(--muted); }
.search-expandable { width: 40px; height: var(--size-input-height); border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: width .25s ease, border-color .15s, box-shadow .15s; overflow: hidden; }
.search-expandable.open { width: 300px; border-color: var(--color-primary); box-shadow: var(--glow-primary); }
.search-expandable-icon { width: var(--size-icon-md); height: var(--size-icon-md); color: var(--color-muted-foreground); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.search-expandable-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 0 var(--space-3); font-family: var(--font-family-base); font-size: var(--font-size-body); color: var(--color-on-surface); }
.search-expandable-input::placeholder { color: var(--color-muted-foreground); }
.search-expandable-hint { flex-shrink: 0; padding-right: var(--space-3); font-size: var(--font-size-caption); color: var(--color-muted-foreground); white-space: nowrap; }
.search-expandable:focus-within { border-color: var(--color-primary); box-shadow: var(--glow-primary); }

/* ── Sidebar ───────────────────────────────────────────────── */
/* @anatomy
   <span class="label">展开</span> <div class="sidebar expanded"> <div class="sidebar-brand"> <span class="sidebar-brand-icon">O</span> <span class="sidebar-brand-name">OneUI</span>
*/
.sidebar { display: flex; flex-direction: column; height: 380px; flex-shrink: 0; overflow: hidden; }
  .sidebar.expanded { width: 240px; padding: var(--space-4); background: var(--card); border-right: 1px solid var(--color-border); }
  .sidebar.collapsed { width: 64px; padding: var(--space-2); background: var(--card); border-right: 1px solid var(--color-border); align-items: center; }
  .sidebar-brand { display: flex; align-items: center; gap: var(--space-2); padding-bottom: var(--space-2); margin-bottom: var(--space-3); }
  .sidebar-brand-icon { font-family: var(--font-heading); font-size: var(--font-size-h4); font-weight: var(--font-weight-h4); color: var(--color-primary); width: var(--size-icon-lg); height: var(--size-icon-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .sidebar-brand-name { font-family: var(--font-heading); font-size: var(--font-size-h4); font-weight: var(--font-weight-h4); color: var(--color-foreground); white-space: nowrap; }
  .sidebar-section { margin-bottom: var(--space-3); }
  .sidebar-section-label { font-size: var(--font-size-eyebrow); font-weight: var(--font-weight-eyebrow); color: var(--color-muted-foreground); padding: var(--space-2) var(--space-3) var(--space-1); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sidebar-nav { display: flex; flex-direction: column; gap: var(--space-1); }
  .sidebar-item { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); color: var(--color-on-surface-variant); cursor: pointer; transition: background .15s; white-space: nowrap; text-decoration: none; font-size: var(--font-size-body); font-weight: var(--font-weight-body); min-width: 0; }
  .sidebar-item:hover { background: var(--color-surface-container-low); }
  .sidebar-item.active { background: var(--color-surface-container); color: var(--color-primary); border-left: 3px solid var(--color-primary); }
  .sidebar-item svg { flex-shrink: 0; }
  .sidebar-footer { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
  .sidebar-user { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); }
  .sidebar-user-info { display: flex; flex-direction: column; min-width: 0; }
  .sidebar-user-name { font-size: var(--font-size-body); font-weight: var(--font-weight-body); color: var(--color-on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sidebar-user-role { font-size: var(--font-size-caption); color: var(--color-muted-foreground); white-space: nowrap; }
  .sidebar.collapsed .sidebar-section-label { display: none; }
  .sidebar.collapsed .sidebar-item { justify-content: center; padding: var(--space-2); }
  .sidebar.collapsed .sidebar-item.active { border-left: none; }
  .sidebar.collapsed .sidebar-item span { display: none; }
  .sidebar.collapsed .sidebar-user-info { display: none; }
  .sidebar.collapsed .sidebar-user { justify-content: center; padding: var(--space-2); }

/* ── Skeleton ──────────────────────────────────────────────── */
/* @anatomy
   <span class="label">文本占位</span> <div class="skel-text-group"> <div class="skel skel-text w100">
*/
/* Component definitions — extracted to components.css */
  .skel { background: var(--muted); border-radius: var(--radius-sm); animation: skel-pulse 1.5s ease-in-out infinite; flex-shrink: 0; }
  @keyframes skel-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
  .skel-text { height: 14px; }
  .skel-text.w100 { width: 100%; }
  .skel-text.w75 { width: 75%; }
  .skel-text.w50 { width: 50%; }
  .skel-text-group { display: flex; flex-direction: column; gap: 8px; width: 240px; flex-shrink: 0; }
  .skel-card { width: 200px; border-radius: var(--radius-md); background: var(--color-surface-container-low); box-shadow: var(--shadow-1); padding: var(--space-3); flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space-2); }
  .skel-card-header { height: 24px; width: 60%; }
  .skel-card-body { height: 14px; width: 100%; }
  .skel-card-body.short { width: 70%; }
  .skel-table { width: 100%; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; }
  .skel-table-head { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface-container-low); border-bottom: 1px solid var(--color-border); }
  .skel-table-row { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
  .skel-table-row:last-child { border-bottom: none; }
  .skel-table-cell { height: 12px; border-radius: 3px; }
  .skel-table-cell.w120 { width: 120px; }
  .skel-table-cell.w80 { width: 80px; }
  .skel-table-cell.w60 { width: 60px; }

/* ── Slider ────────────────────────────────────────────────── */
/* @anatomy
   <span class="story-label">默认</span> <div class="slider-wrap"> <div class="slider-label-row"> <span class="slider-label">音量</span> <span class="slider-value">75%</span>
*/
/* Component definitions — extracted to components.css by deterministic script */
.slider-wrap { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; min-width: 0; }
.slider-label-row { display: flex; justify-content: space-between; align-items: center; }
.slider-label { font-size: var(--font-size-body); font-weight: 500; color: var(--color-on-surface); }
.slider-value { font-family: var(--font-mono); font-size: var(--font-size-caption); color: var(--color-primary); }
.slider-track { position: relative; width: 100%; height: 4px; background: var(--muted); border-radius: var(--radius-full); cursor: pointer; }
.slider-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--primary); border-radius: var(--radius-full); pointer-events: none; }
.slider-thumb { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--primary); border: 2px solid var(--color-surface); box-shadow: var(--shadow-1); transform: translate(-50%, -50%); cursor: pointer; transition: box-shadow .15s; }
.slider-thumb:hover { box-shadow: var(--shadow-2); }
.slider-range-labels { display: flex; justify-content: space-between; margin-top: 2px; }
.slider-range-label { font-size: var(--font-size-caption); color: var(--color-muted-foreground); font-family: var(--font-mono); }
.slider-track:hover .slider-fill { opacity: 0.9; }

/* ── Stepper ───────────────────────────────────────────────── */
/* @anatomy
   <span class="story-label">默认</span> <div style="display: inline-flex; align-items: center; gap: var(--space-3);"> <span class="stepper-h-label">数量</span> <div class="stepper-h"> <button class="stepper-h-btn"><svg width="16" height="16"><use href="#icon-minus"/></svg></button> <span class="stepper-h-value">3</span> <button class="stepper-h-btn"><svg width="16" height="16"><use href="#icon-plus"/...
*/
/* Component definitions — extracted to components.css by deterministic script */
.stepper-h { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; }
.stepper-h-label { font-size: var(--font-size-body); font-weight: 500; color: var(--color-on-surface); margin-right: var(--space-3); white-space: nowrap; }
.stepper-h-btn { display: flex; align-items: center; justify-content: center; width: var(--size-input-height); height: var(--size-input-height); border: none; background: transparent; color: var(--color-on-surface); cursor: pointer; transition: background .15s; flex-shrink: 0; }
.stepper-h-btn:hover { background: var(--muted); }
.stepper-h-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.stepper-h-btn:disabled:hover { background: transparent; }
.stepper-h-value { display: flex; align-items: center; justify-content: center; min-width: 48px; height: var(--size-input-height); font-family: var(--font-mono); font-size: var(--font-size-body); font-weight: 500; color: var(--color-on-surface); border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); padding: 0 var(--space-3); }
.stepper-h:disabled { opacity: 0.45; pointer-events: none; }
.stepper-v { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.stepper-v-item { display: flex; align-items: flex-start; gap: var(--space-3); position: relative; width: 100%; }
.stepper-v-item + .stepper-v-item { padding-top: var(--space-4); }
.stepper-v-item + .stepper-v-item::before { content: ''; position: absolute; left: 11px; top: -4px; width: 2px; height: calc(100% + 4px); background: var(--color-border); }
.stepper-v-dot { width: 24px; height: 24px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid var(--color-border); background: var(--color-surface); color: var(--color-muted-foreground); font-size: var(--font-size-caption); font-weight: 600; z-index: 1; }
.stepper-v-dot.done { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.stepper-v-dot.active { border-color: var(--color-primary); color: var(--color-primary); box-shadow: var(--glow-primary); }
.stepper-v-dot.pending { border-color: var(--color-border); color: var(--color-muted-foreground); }
.stepper-v-content { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.stepper-v-title { font-size: var(--font-size-body); font-weight: 500; color: var(--color-on-surface); }
.stepper-v-title.active { color: var(--color-primary); }
.stepper-v-title.pending { color: var(--color-muted-foreground); }
.stepper-v-desc { font-size: var(--font-size-caption); color: var(--color-muted-foreground); }

/* ── Switch ────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">关闭</span> <div class="cell"><div class="switch">
*/
.switch { width: 44px; height: 24px; border-radius: var(--radius-full); background: var(--muted); position: relative; flex-shrink: 0; cursor: pointer; transition: background .15s; }
.switch:hover { background: var(--color-surface-container-high); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: var(--radius-full); background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch.on { background: var(--color-primary); }
.switch.on:hover { filter: brightness(1.08); }
.switch.on::after { transform: translateX(20px); }

/* ── Table ─────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">默认表格</span>
*/
.table-wrap { width: 100%; min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-card); }
.table { width: 100%; border-collapse: collapse; font-family: var(--font-family-base); font-size: var(--font-size-body); }
.table th { padding: var(--space-3) var(--space-4); text-align: left; font-weight: 600; font-size: var(--font-size-caption); color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: 0.04em; background: var(--color-surface-container-low); border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); color: var(--color-on-surface); white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--muted); }
.table.striped tbody tr:nth-child(even) { background: var(--color-surface-container-low); }
.table.striped tbody tr:nth-child(even):hover { background: var(--muted); }
.table.compact th, .table.compact td { padding: var(--space-2) var(--space-3); font-size: var(--font-size-caption); }
.tag { display: inline-flex; align-items: center; padding: 2px var(--space-2); border-radius: var(--radius-full); font-size: var(--font-size-caption); font-weight: 500; white-space: nowrap; }
.tag-success { background: var(--one-success-50); color: var(--color-success); }
.tag-neutral { background: var(--muted); color: var(--color-muted-foreground); }
.tag-error { background: var(--one-error-50); color: var(--color-error); }
.action-link { color: var(--color-primary); text-decoration: none; cursor: pointer; transition: color .15s; }
.action-link:hover { color: var(--color-primary-hover); }

/* ── Tabs ──────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">下划线样式</span> <div class="tab-list" data-tabs="underline" data-evidence-sample="Underline Tabs"> <button class="tab-item active" data-tab>概览</button> <button class="tab-item" data-tab>分析</button> <button class="tab-item" data-tab>报告</button> <button class="tab-item" data-tab>设置</button>
*/
/* Component definitions — extracted to components.css by deterministic script */
.tab-list { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--color-border); }
.tab-list.pill { border-bottom: none; background: var(--color-surface-container-low); border-radius: var(--radius-full); padding: var(--space-1); }
.tab-item { padding: var(--space-3) var(--space-4); font-family: var(--font-family-base); font-size: var(--font-size-body); font-weight: var(--font-weight-body); color: var(--color-muted-foreground); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: color .15s, border-color .15s, background .15s; white-space: nowrap; }
.tab-item:hover { color: var(--color-on-surface); }
.tab-item.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab-list.pill .tab-item { padding: var(--space-2) var(--space-4); border-bottom: none; border-radius: var(--radius-full); }
.tab-list.pill .tab-item:hover { background: var(--muted); color: var(--color-on-surface); }
.tab-list.pill .tab-item.active { background: var(--color-primary); color: var(--color-on-primary); }

/* ── Tag ───────────────────────────────────────────────────── */
/* @anatomy
   <span class="story-label">默认</span> <span class="tag md default" data-evidence-sample="Default Tag">待处理</span> <span class="tag sm default">草稿</span>
*/
/* Tag component definitions */
  .tag { display: inline-flex; align-items: center; gap: var(--space-1); border-radius: var(--radius-full); font-family: var(--font-body); white-space: nowrap; line-height: 1; flex-shrink: 0; transition: filter .15s; cursor: default; }
  .tag:hover { filter: brightness(1.06); }
  .tag.sm { padding: 2px 8px; font-size: 11px; font-weight: 500; min-width: 24px; height: 22px; }
  .tag.md { padding: var(--space-1) var(--space-3); font-size: var(--font-size-caption); font-weight: 500; min-width: 28px; height: 28px; }
  .tag.default { background: var(--muted); color: var(--muted-foreground); }
  .tag.success { background: rgba(16,185,129,.12); color: var(--one-success-700); }
  .tag.warning { background: rgba(245,158,11,.12); color: var(--one-warning-700); }
  .tag.danger { background: rgba(239,68,68,.12); color: var(--one-error-700); }
  .tag .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .tag.default .dot { background: var(--one-neutral-400); }
  .tag.success .dot { background: var(--success); }
  .tag.warning .dot { background: var(--warning); }
  .tag.danger .dot { background: var(--error); }

/* ── Testimonial ───────────────────────────────────────────── */
/* @anatomy
   <div class="testimonial-grid" data-evidence-sample="Default"> <div class="testimonial-card"> <div class="stars"> <svg viewBox="0 0 24 24"><use href="#icon-star"/></svg> <svg viewBox="0 0 24 24"><use href="#icon-star"/></svg> <svg viewBox="0 0 24 24"><use href="#icon-star"/></svg> <svg viewBox="0 0 24 24"><use href="#icon-star"/></svg> <svg viewBox="0 0 24 24"><use href="#icon-star"/></svg>
*/
.testimonial-grid { display:flex; gap:var(--space-5); flex-wrap:wrap; width:100%; }
.testimonial-card { flex:1; min-width:280px; max-width:480px; background:var(--color-card); border:1px solid var(--color-border); border-radius:var(--radius-xl); padding:var(--space-5); display:flex; flex-direction:column; gap:var(--space-4); transition:box-shadow .2s; }
.testimonial-card:hover { box-shadow:var(--shadow-2); }
.testimonial-card .stars { display:flex; gap:2px; }
.testimonial-card .stars svg { width:16px; height:16px; color:var(--color-warning); flex-shrink:0; }
.testimonial-card .stars svg.empty { color:var(--color-surface-container); }
.testimonial-card .quote { font-size:var(--font-size-body); line-height:var(--line-height-body); font-style:italic; color:var(--color-on-surface); margin:0; word-break:keep-all; overflow-wrap:break-word; }
.testimonial-card .author { display:flex; align-items:center; gap:var(--space-3); }
.testimonial-card .avatar { width:48px; height:48px; border-radius:var(--radius-full); background:var(--gradient-primary); flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#fff; font-family:var(--font-heading); font-size:var(--font-size-h4); font-weight:var(--font-weight-h4); }
.testimonial-card .author-info { display:flex; flex-direction:column; gap:2px; }
.testimonial-card .author-name { font-family:var(--font-heading); font-size:var(--font-size-body); font-weight:var(--font-weight-h4); white-space:nowrap; }
.testimonial-card .author-role { font-size:var(--font-size-caption); color:var(--color-muted-foreground); white-space:nowrap; }

/* ── Textarea ──────────────────────────────────────────────── */
/* @anatomy
   <span class="story-label">默认</span> <div class="textarea-wrap"> <textarea class="textarea-field" placeholder="请输入您的反馈意见..."></textarea>
*/
/* Component definitions — extracted to components.css by deterministic script */
.textarea-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.textarea-field { width: 100%; min-height: 80px; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-on-surface); font-family: var(--font-family-base); font-size: var(--font-size-body); line-height: var(--line-height-body); resize: vertical; outline: none; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.textarea-field::placeholder { color: var(--color-muted-foreground); }
.textarea-field:focus { border-color: var(--color-primary); box-shadow: var(--glow-primary); }
.textarea-field:disabled { opacity: 0.45; cursor: not-allowed; }
.textarea-counter { display: flex; justify-content: flex-end; margin-top: var(--space-1); font-size: var(--font-size-caption); color: var(--color-muted-foreground); font-family: var(--font-mono); }

/* ── Time Picker ───────────────────────────────────────────── */
/* @anatomy
   <div class="specimen"> <svg style="display:none" xmlns="http://www.w3.org/2000/svg"><symbol id="i-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12 6v6l4 2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></symbol></svg> <div class="stage"> <!-- 24h Digital TimePicker --> <div class="story" data-...
*/
/* TimePicker component definitions — extracted to components.css */
.tp-trigger { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--size-input-height); padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); font-family: var(--font-mono); font-size: var(--font-size-body); color: var(--color-on-surface); cursor: pointer; transition: border-color .15s; }
.tp-trigger:hover { border-color: var(--color-primary); }
.tp-panel { padding: var(--space-4); background: var(--color-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-4); width: 200px; }
.tp-digits { display: flex; align-items: center; justify-content: center; gap: var(--space-1); margin-bottom: var(--space-3); }
.tp-input { width: 56px; height: 48px; text-align: center; font-family: var(--font-mono); font-size: var(--font-size-h4); font-weight: 600; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-on-surface); outline: none; cursor: text; }
.tp-input:focus { border-color: var(--color-primary); box-shadow: var(--glow-primary); }
.tp-sep { font-size: var(--font-size-h3); font-weight: 700; color: var(--color-foreground); animation: blink 1s step-end infinite; user-select: none; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.2} }
.tp-presets { display: flex; gap: var(--space-2); justify-content: center; }
.tp-preset { padding: var(--space-1) var(--space-2); font-family: var(--font-mono); font-size: var(--font-size-caption); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-dim); color: var(--color-on-surface); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.tp-preset:hover { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
.tp-ampm { display: flex; gap: var(--space-2); justify-content: center; margin-top: var(--space-3); }
.tp-ampm-btn { min-width: 48px; height: 32px; font-family: var(--font-body); font-size: var(--font-size-caption); font-weight: 600; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-dim); color: var(--color-muted-foreground); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.tp-ampm-btn.active { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); box-shadow: var(--glow-primary); }
.tp-ampm-btn:hover:not(.active) { background: var(--color-surface-container); }
.tp-clock { width: 240px; height: 240px; border-radius: 50%; background: var(--color-surface); border: 1px solid var(--color-border); }
.tp-clock svg { display: block; }
.tp-num { font-family: var(--font-body); font-size: 14px; font-weight: 500; fill: var(--color-on-surface); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.tp-num.sel { fill: #fff; font-weight: 700; }
.tp-hand { stroke-linecap: round; filter: drop-shadow(0 0 6px var(--neon)); }
.tp-center { fill: var(--color-primary); filter: drop-shadow(0 0 8px var(--neon)); }

/* ── Timeline ──────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Default</span> <div class="timeline"> <div class="timeline-item"> <div class="timeline-line"><span class="timeline-dot"></span>
*/
.timeline { display: flex; flex-direction: column; width: 300px; }
.timeline-item { display: flex; gap: var(--space-3); position: relative; padding: var(--space-3) 0; }
.timeline-line { position: relative; display: flex; flex-direction: column; align-items: center; width: 20px; flex-shrink: 0; }
.timeline-line::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--color-border); }
.timeline-item:first-child .timeline-line::before { top: 50%; }
.timeline-item:last-child .timeline-line::before { bottom: 50%; }
.timeline-dot { width: 10px; height: 10px; border-radius: var(--radius-full); border: 2px solid var(--color-primary); background: var(--color-surface); position: relative; z-index: 1; flex-shrink: 0; }
.timeline-content { flex: 1; min-width: 0; }
.timeline-title { font-size: var(--font-size-body); font-weight: 500; color: var(--color-on-surface); margin-bottom: 2px; }
.timeline-time { font-size: var(--font-size-caption); color: var(--color-on-surface-variant); }
.timeline-compact .timeline-item { padding: var(--space-2) 0; }
.timeline-compact .timeline-dot { width: 8px; height: 8px; }

/* ── Toast ─────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Info</span> <div class="toast info" data-evidence-sample="Info Toast"> <i data-lucide="info" class="toast-icon info"></i> <div class="toast-body"> <div class="toast-title">系统通知
*/
.toast { display: flex; align-items: flex-start; gap: var(--space-3); background: var(--color-surface); border-left: 3px solid var(--color-primary); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-3); max-width: 400px; width: 100%; }
.toast.info { border-left-color: var(--color-primary); }
.toast.success { border-left-color: var(--color-success); }
.toast.warning { border-left-color: var(--color-warning); }
.toast.error { border-left-color: var(--color-error); }
.toast-icon { flex-shrink: 0; display: inline-block; width: var(--size-icon-md); height: var(--size-icon-md); }
.toast-icon.info { color: var(--color-primary); }
.toast-icon.success { color: var(--color-success); }
.toast-icon.warning { color: var(--color-warning); }
.toast-icon.error { color: var(--color-error); }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: var(--font-size-body); font-weight: 500; line-height: 1.4; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-msg { font-size: var(--font-size-caption); color: var(--color-muted-foreground); line-height: var(--line-height-caption); }
.toast-close { flex-shrink: 0; cursor: pointer; color: var(--color-muted-foreground); background: none; border: none; padding: 0; opacity: 0.5; display: flex; align-items: center; transition: opacity .15s; }
.toast-close:hover { opacity: 1; }

/* ── Tooltip ───────────────────────────────────────────────── */
/* @anatomy
   <span class="label">方向</span> <div style="display:flex;gap:var(--space-5);align-items:center;flex-wrap:wrap;"> <div class="tooltip"> <span class="tooltip-trigger">查看详情</span> <span class="tooltip-bubble" data-placement="top">点击查看详细信息</span>
*/
.tooltip { position: relative; }
  .tooltip-bubble { position: absolute; background: var(--foreground); color: var(--background); font-size: var(--font-size-caption); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-2); white-space: nowrap; pointer-events: none; z-index: 10; }
  .tooltip-bubble[data-placement="top"] { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
  .tooltip-bubble[data-placement="bottom"] { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
  .tooltip-bubble[data-placement="left"] { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
  .tooltip-bubble[data-placement="right"] { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
  .tooltip-bubble::after { content: ''; position: absolute; width: 8px; height: 8px; background: var(--foreground); transform: rotate(45deg); }
  .tooltip-bubble[data-placement="top"]::after { bottom: -4px; left: 50%; margin-left: -4px; }
  .tooltip-bubble[data-placement="bottom"]::after { top: -4px; left: 50%; margin-left: -4px; }
  .tooltip-bubble[data-placement="left"]::after { right: -4px; top: 50%; margin-top: -4px; }
  .tooltip-bubble[data-placement="right"]::after { left: -4px; top: 50%; margin-top: -4px; }

/* ── User Picker ───────────────────────────────────────────── */
/* @anatomy
   <span class="label">Default</span> <div class="user-picker"> <button class="user-picker-trigger" onclick="let p=this.nextElementSibling;p.style.display=p.style.display==='none'?'block':'none'">选择团队成员<svg class="trigger-icon" width="16" height="16"><use href="#icon-chevron-down"/></svg></button> <div class="user-picker-panel" style="display:block"> <input class="user-picker-search" placeholder="...
*/
/* Component definitions — extracted to components.css by deterministic script */
.user-picker { position: relative; width: 100%; max-width: 320px; }
.user-picker-trigger { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); cursor: pointer; font-size: var(--font-size-body); color: var(--color-on-surface); transition: border-color .15s; min-height: var(--size-input-height); }
.user-picker-trigger:hover { border-color: var(--color-primary); }
.user-picker-panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); z-index: 10; overflow: hidden; }
.user-picker-search { width: calc(100% - var(--space-4) * 2); margin: var(--space-3) var(--space-4); padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: var(--font-size-body); background: var(--color-surface-dim); color: var(--color-on-surface); outline: none; font-family: var(--font-family-base); }
.user-picker-search:focus { border-color: var(--color-primary); }
.user-picker-option { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4); cursor: pointer; transition: background .15s; }
.user-picker-option:hover { background: var(--color-surface-dim); }
.user-picker-avatar { width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: var(--font-size-caption); font-weight: 600; flex-shrink: 0; }
.user-picker-name { font-weight: 500; font-size: var(--font-size-body); color: var(--color-on-surface); white-space: nowrap; }
.user-picker-role { font-size: var(--font-size-caption); color: var(--color-muted-foreground); white-space: nowrap; }
.user-picker--multi .user-picker-trigger { flex-wrap: wrap; gap: var(--space-1); }
.chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2); background: var(--color-primary-container); color: var(--color-primary); border-radius: var(--radius-full); font-size: var(--font-size-caption); font-weight: 500; white-space: nowrap; }
.chip-remove { background: none; border: none; cursor: pointer; color: var(--color-muted-foreground); padding: 0; line-height: 1; font-size: 14px; }
.chip-remove:hover { color: var(--color-error); }
.trigger-icon { margin-left: auto; color: var(--color-muted-foreground); flex-shrink: 0; }
