/* ═══════════════════════════════════════════════════════════════
   帧序 FRAMECRAFT · base tokens & primitives
   ═══════════════════════════════════════════════════════════════ */

@property --flow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --font-ui: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-display: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --flow-dur: 4.6s;
  --flow-thickness: 1.5px;

  --ease: cubic-bezier(.22, .78, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms;
  --t-med: 260ms;

  --topbar-h: 74px;
  --rail-w: 292px;
  --content-max: 1380px;

  color-scheme: dark;
}

/* ── 夜晚模式 · 暗夜导演棚 ───────────────────────────────────── */
[data-theme="night"] {
  --bg: #080a0f;
  --bg-2: #0c0f16;
  --bg-3: #10141d;
  --panel: #10131b;
  --panel-2: #151924;
  --panel-3: #1a1f2c;
  --panel-glass: rgba(17, 20, 28, .72);
  --ink: #eae7f2;
  --ink-2: #a6a4b5;
  --ink-3: #737382;
  --ink-4: #4d4d5b;
  --line: rgba(220, 216, 255, .105);
  --line-2: rgba(220, 216, 255, .2);
  --line-3: rgba(220, 216, 255, .32);
  --flow: #c3adff;
  --flow-strong: #e0d5ff;
  --flow-soft: rgba(177, 145, 255, .46);
  --flow-faint: rgba(177, 145, 255, .1);
  --accent: #b9a6ff;
  --accent-2: #7fd8d1;
  --accent-soft: rgba(185, 166, 255, .12);
  --accent-ink: #dcd1ff;
  --primary-bg: #e2d8ff;
  --primary-ink: #17111f;
  --primary-hover: #f0eaff;
  --danger: #ea8175;
  --danger-soft: rgba(234, 129, 117, .12);
  --success: #7fd6ac;
  --success-soft: rgba(127, 214, 172, .1);
  --warn: #e8c078;
  --warn-soft: rgba(232, 192, 120, .1);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 8px 24px -18px #000;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 28px 60px -42px #000;
  --shadow-lg: 0 50px 120px -50px #000;
  --glass: rgba(12, 15, 22, .78);
  --grain-opacity: .05;
  --hero-glow: rgba(129, 101, 220, .22);
  --art-opacity: .9;
}

/* ── 白天模式 · 自然光工作台 ───────────────────────────────── */
[data-theme="day"] {
  --bg: #f2efe7;
  --bg-2: #eae6dc;
  --bg-3: #e2ddd1;
  --panel: #fffdf8;
  --panel-2: #f9f5ec;
  --panel-3: #f2ecdf;
  --panel-glass: rgba(255, 253, 248, .78);
  --ink: #252622;
  --ink-2: #5c5e57;
  --ink-3: #8b8c84;
  --ink-4: #b1b1a8;
  --line: rgba(42, 41, 34, .12);
  --line-2: rgba(42, 41, 34, .21);
  --line-3: rgba(42, 41, 34, .34);
  --flow: #4ecdc4;
  --flow-strong: #1fb3aa;
  --flow-soft: rgba(49, 190, 182, .36);
  --flow-faint: rgba(49, 190, 182, .09);
  --accent: #0f736d;
  --accent-2: #8f6b45;
  --accent-soft: rgba(15, 115, 109, .09);
  --accent-ink: #0a5a55;
  --primary-bg: #192724;
  --primary-ink: #f8f5ea;
  --primary-hover: #22332f;
  --danger: #b1483d;
  --danger-soft: rgba(177, 72, 61, .09);
  --success: #3c7c5b;
  --success-soft: rgba(60, 124, 91, .09);
  --warn: #a47a2f;
  --warn-soft: rgba(164, 122, 47, .1);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 8px 20px -18px rgba(54, 46, 30, .35);
  --shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 26px 60px -44px rgba(54, 46, 30, .5);
  --shadow-lg: 0 50px 110px -55px rgba(54, 46, 30, .55);
  --glass: rgba(250, 247, 239, .82);
  --grain-opacity: .035;
  --hero-glow: rgba(51, 176, 166, .14);
  --art-opacity: 1;
  color-scheme: light;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .35s var(--ease);
}
body.is-booting { overflow: hidden; }
.app {
  transition: opacity .85s var(--ease), filter 1s var(--ease), transform 1.1s var(--ease-out);
}
body.is-booting .app {
  opacity: 0;
  filter: blur(14px) saturate(.72);
  transform: scale(.992);
}
body.is-booting .toast-root,
body.is-booting .modal-root { opacity: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--flow-strong); outline-offset: 3px; border-radius: 4px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; pointer-events: none; }
.icon-sm { width: 15px; height: 15px; }
.noscript { padding: 48px; text-align: center; font-size: 16px; }

/* ── 环境背景 ──────────────────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 18% -8%, var(--hero-glow), transparent 62%),
    radial-gradient(900px 600px at 92% 4%, rgba(100, 220, 210, .07), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 56%, var(--bg));
  transition: background .5s var(--ease);
}
[data-theme="day"] .ambient {
  background:
    radial-gradient(1200px 700px at 14% -10%, rgba(255, 252, 242, .95), transparent 60%),
    radial-gradient(1000px 700px at 94% 2%, var(--hero-glow), transparent 62%),
    linear-gradient(180deg, #f6f2e9, var(--bg) 50%, #ece7db);
}
.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: .28;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 10%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 10%, transparent 76%);
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .6;
  animation: orb-drift 22s ease-in-out infinite alternate;
}
.ambient-orb-a {
  width: 520px; height: 520px;
  right: -180px; top: 12%;
  background: radial-gradient(circle, var(--flow-faint), transparent 68%);
}
.ambient-orb-b {
  width: 420px; height: 420px;
  left: -160px; bottom: -80px;
  background: radial-gradient(circle, rgba(120, 200, 190, .09), transparent 68%);
  animation-delay: -8s;
}
.ambient-grain {
  position: absolute;
  inset: -50%;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grain-shift 7s steps(6) infinite;
  mix-blend-mode: overlay;
}
@keyframes orb-drift { to { transform: translate3d(-40px, 50px, 0) scale(1.08); } }
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ── 流光描边 ─────────────────────────────────────────────── */
.flow {
  position: relative;
  isolation: isolate;
}
.flow::before {
  content: "";
  position: absolute;
  inset: calc(var(--flow-thickness) * -1);
  z-index: 4;
  padding: var(--flow-thickness);
  border-radius: inherit;
  background: conic-gradient(
    from var(--flow-angle),
    transparent 0deg 296deg,
    var(--flow) 334deg,
    var(--flow-strong) 348deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: flow-spin var(--flow-dur) linear infinite;
  filter: drop-shadow(0 0 5px var(--flow-soft));
  opacity: .62;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease), filter var(--t-med) var(--ease);
}
.flow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.flow:hover::before {
  animation-duration: 2.3s;
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--flow-soft)) drop-shadow(0 0 18px var(--flow-faint));
}
@keyframes flow-spin { to { --flow-angle: 360deg; } }

/* 裁剪型容器（overflow:hidden）内，光丝改用内描边，避免被裁掉 */
.flow.flow-in::before { inset: 0; }

body.no-glow .flow::before { display: none; }
body.no-glow .ambient-orb { animation: none; opacity: .35; }
body.no-glow .ambient-grain { display: none; }

/* 呼吸发光 */
.glow-pulse { animation: glow-breathe 4.6s ease-in-out infinite; }
@keyframes glow-breathe {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 30px -8px var(--flow-soft); }
}

/* ── 文字与布局工具 ───────────────────────────────────────── */
.serif { font-family: var(--font-display); font-weight: 500; letter-spacing: .01em; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow i { width: 18px; height: 1px; background: currentColor; opacity: .5; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── 按钮 ──────────────────────────────────────────────────── */
.btn {
  --btn-h: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--btn-h);
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  user-select: none;
}
.btn:hover { background: var(--panel-3); border-color: var(--line-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary {
  background: var(--primary-bg);
  border-color: transparent;
  color: var(--primary-ink);
  box-shadow: 0 12px 28px -16px var(--flow-soft);
}
.btn-primary:hover { background: var(--primary-hover); border-color: transparent; box-shadow: 0 16px 36px -18px var(--flow-soft); }
.btn-primary .icon { color: currentColor; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--accent-soft); color: var(--ink); border-color: transparent; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, transparent); background: var(--danger-soft); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 18%, transparent); border-color: color-mix(in srgb, var(--danger) 46%, transparent); }
.btn-sm { --btn-h: 34px; padding: 0 13px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 14.5px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-icon { width: var(--btn-h); padding: 0; }
.btn[disabled], .btn.is-disabled { opacity: .42; pointer-events: none; filter: grayscale(.35); }
.btn .kbd, .btn kbd {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 5px;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: .55;
  margin-left: 2px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--ink-2);
  background: transparent;
  transition: all var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--line); }
.icon-btn.is-active { color: var(--accent); background: var(--accent-soft); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn[disabled] { opacity: .3; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-size: 12.5px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.link-btn:hover { color: var(--accent); border-color: var(--flow-soft); }
.link-btn .icon { width: 14px; height: 14px; }

/* ── 标签 / 徽章 ───────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.chip .icon { width: 12px; height: 12px; }
.chip-accent { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 26%, transparent); background: var(--accent-soft); }
.chip-success { color: var(--success); border-color: color-mix(in srgb, var(--success) 26%, transparent); background: var(--success-soft); }
.chip-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 28%, transparent); background: var(--warn-soft); }
.chip-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, transparent); background: var(--danger-soft); }
.chip-mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--flow);
  box-shadow: 0 0 8px var(--flow-soft);
  flex: 0 0 auto;
}
.dot-live { animation: dot-pulse 2.4s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
.badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
}

/* ── 表单 ──────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.field-label .hint { font-size: 10.5px; font-weight: 400; color: var(--ink-3); }
.field-label .req { color: var(--danger); margin-left: 2px; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--ink);
  padding: 11px 13px;
  font-size: 13.5px;
  line-height: 1.65;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:disabled, .textarea:disabled, .select:disabled { opacity: .45; cursor: not-allowed; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-3); }
.input:focus, .textarea:focus, .select:focus {
  border-color: color-mix(in srgb, var(--flow) 62%, transparent);
  box-shadow: 0 0 0 3px var(--flow-faint);
  background: var(--panel);
}
.textarea { resize: vertical; min-height: 120px; }
.textarea-lg { min-height: 280px; font-family: var(--font-ui); }
.textarea-code { font-family: var(--font-mono); font-size: 12px; line-height: 1.8; }
.select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a92' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}
.char-count { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: .04em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border: 1.5px solid var(--line-3);
  border-radius: 6px;
  background: var(--panel-2);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.check .icon { width: 12px; height: 12px; opacity: 0; transform: scale(.5); transition: all var(--t-fast) var(--ease); color: var(--primary-ink); }
input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
input[type="checkbox"]:checked + .check { background: var(--primary-bg); border-color: var(--primary-bg); }
input[type="checkbox"]:checked + .check .icon { opacity: 1; transform: scale(1); }
input[type="checkbox"]:focus-visible + .check { outline: 2px solid var(--flow-strong); outline-offset: 2px; }
input[type="checkbox"]:disabled + .check { opacity: .35; cursor: not-allowed; }

/* 行内复选 */
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel-2);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.check-line:hover { border-color: var(--line-3); background: var(--panel-3); }
.check-line .check { width: 17px; height: 17px; border-radius: 5px; margin-top: 1px; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch-track {
  position: relative;
  width: 38px; height: 21px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel-3);
  transition: all var(--t-med) var(--ease);
  flex: 0 0 auto;
}
.switch-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: all var(--t-med) var(--ease-out);
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
}
input:checked ~ .switch-track { background: var(--accent-soft); border-color: color-mix(in srgb, var(--flow) 55%, transparent); }
input:checked ~ .switch-track .switch-thumb { left: 19px; background: var(--flow-strong); box-shadow: 0 0 9px var(--flow-soft); }
.switch-label { font-size: 12px; color: var(--ink-2); }

/* segmented */
.segmented {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
}
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--ink-3);
  font-size: 11.5px;
  transition: all var(--t-fast) var(--ease);
}
.segmented button .icon { width: 14px; height: 14px; }
.segmented button:hover { color: var(--ink); }
.segmented button.is-active { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
[data-theme="day"] .segmented button.is-active { background: var(--panel); }

/* ── 面板 / 卡片基础 ──────────────────────────────────────── */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; }
.panel-title .icon { width: 16px; height: 16px; color: var(--accent); }
.panel-body { padding: 22px; }
.section-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.section-kicker .num { color: var(--accent); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}
.note .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--accent); }
.note-warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-soft); }
.note-warn .icon { color: var(--warn); }
.note-danger { border-color: color-mix(in srgb, var(--danger) 30%, transparent); background: var(--danger-soft); }
.note-danger .icon { color: var(--danger); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 54px 26px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, transparent, var(--flow-faint));
}
.empty-state .empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 4px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--panel-2);
  color: var(--accent);
}
.empty-state .empty-icon .icon { width: 22px; height: 22px; }
.empty-state h3 { font-size: 15px; font-weight: 600; }
.empty-state p { font-size: 12.5px; color: var(--ink-3); max-width: 380px; line-height: 1.8; }
.empty-state .btn { margin-top: 8px; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); border: 2px solid transparent; background-clip: content-box; }

/* 通用出现动画 */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scale-in {
  from { opacity: 0; transform: scale(.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.anim-in { animation: fade-up .55s var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
