/* ===========================================================
   设计令牌 · 深色工具风 v2（加质感层）
   =========================================================== */

:root {
  /* 底色层 */
  --bg-0: #07070A;
  --bg-1: #0F0F13;
  --bg-2: #17171D;
  --bg-3: #22222B;

  /* 文字层 */
  --fg-0: #F4F4F6;
  --fg-1: #A9A9B6;
  --fg-2: #6B6B7B;

  /* 线与面 */
  --line: #1F1F27;
  --line-hi: #33333F;
  --hi-inset: inset 0 1px 0 rgba(255, 255, 255, .07);

  /* 品牌 / 强调 */
  --brand: #10B981;
  --brand-hi: #36E0A4;
  --brand-deep: #059669;
  --brand-dim: rgba(16, 185, 129, .13);
  --accent: #F59E0B;

  /* 氛围光（三色，极低透明度） */
  --glow-brand: rgba(16, 185, 129, .18);
  --glow-violet: rgba(139, 92, 246, .13);
  --glow-blue: rgba(56, 130, 246, .10);

  /* 形状 */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  /* 阴影 */
  --sh-card: 0 2px 8px rgba(0, 0, 0, .4), 0 12px 32px -8px rgba(0, 0, 0, .5);
  --sh-hover: 0 4px 16px rgba(0, 0, 0, .5), 0 20px 48px -12px rgba(0, 0, 0, .6);
  --sh-brand: 0 4px 20px rgba(16, 185, 129, .3), 0 0 0 1px rgba(16, 185, 129, .25);

  /* 间距 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px;

  /* 字 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --fs-display: 40px; --fs-h1: 30px; --fs-h2: 22px;
  --fs-body: 15px; --fs-sm: 13px; --fs-xs: 12px;

  /* 布局 */
  --rail-w: 64px;
  --input-w: 780px;
}

@media (max-width: 900px) {
  :root {
    --fs-display: 26px; --fs-h1: 22px; --fs-h2: 18px;
    --rail-w: 0px; --s5: 32px; --s6: 48px;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--fg-0);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
  overflow-x: hidden;
}

/* 氛围光：三团低透明度色块，营造深度（纯 CSS，无图） */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52% 38% at 50% -8%,  var(--glow-brand),  transparent 72%),
    radial-gradient(38% 30% at 88% 12%,  var(--glow-violet), transparent 72%),
    radial-gradient(42% 34% at 6% 78%,   var(--glow-blue),   transparent 72%);
}

/* 细噪点：给纯色面一点颗粒，避免"塑料感" */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--brand-dim); color: var(--fg-0); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-hi); }

/* ===========================================================
   公共组件（各页共用，写在令牌里避免重复）
   =========================================================== */

/* 玻璃面板 */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: var(--hi-inset);
}

/* 渐变描边（用 border-box 技巧，不占额外元素） */
.edge-grad {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
    linear-gradient(140deg,
      rgba(16,185,129,.55) 0%,
      rgba(255,255,255,.08) 38%,
      rgba(255,255,255,.04) 62%,
      rgba(245,158,11,.35) 100%) border-box;
}

/* 主按钮 */
.btn-brand {
  background: linear-gradient(135deg, var(--brand-hi), var(--brand) 55%, var(--brand-deep));
  color: #04150F;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 18px rgba(16,185,129,.28);
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.btn-brand:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 28px rgba(16,185,129,.42);
}
.btn-brand:active { transform: translateY(0) scale(.99); }

/* ===========================================================
   外壳样式（左侧栏 + 顶栏，由 shell.js 注入，所有页面共用）
   =========================================================== */
.rail{position:fixed;left:0;top:0;bottom:0;width:var(--rail-w);z-index:60;
  background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,.008));
  backdrop-filter:blur(20px);border-right:1px solid rgba(255,255,255,.055);
  display:flex;flex-direction:column;align-items:center;padding:18px 0 14px;gap:6px}
.rail-logo{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;flex:0 0 auto;
  background:linear-gradient(140deg,var(--brand-hi),var(--brand-deep));color:#04150F;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 0 6px 20px rgba(16,185,129,.32);
  margin-bottom:14px;transition:transform .2s;font-weight:900;font-size:19px}
.rail-logo:hover{transform:scale(1.06) rotate(-4deg)}
.rail-items{display:flex;flex-direction:column;gap:2px;flex:1;width:100%;align-items:center}
.rail-btn{position:relative;width:48px;height:50px;border-radius:14px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  color:var(--fg-2);transition:color .18s,background .18s}
.rail-btn svg{width:20px;height:20px;transition:transform .18s}
.rail-btn span{font-size:10px;letter-spacing:.03em;opacity:.85}
.rail-btn:hover{color:var(--fg-0);background:rgba(255,255,255,.045)}
.rail-btn:hover svg{transform:translateY(-1px)}
.rail-btn.on{color:var(--brand-hi);background:var(--brand-dim)}
.rail-btn.on::before{content:"";position:absolute;left:-8px;top:12px;bottom:12px;width:2px;
  border-radius:2px;background:var(--brand);box-shadow:0 0 10px var(--brand)}
.rail-btn.on svg{filter:drop-shadow(0 0 6px rgba(16,185,129,.55))}
.rail-avatar{width:28px;height:28px;border-radius:50%;font-size:11px;color:#04150F;
  background:linear-gradient(140deg,var(--brand-hi),var(--brand-deep));
  display:grid;place-items:center;font-weight:700;
  box-shadow:0 0 0 1px rgba(255,255,255,.14), 0 2px 10px rgba(16,185,129,.3)}
.rail-me{height:46px}

.topbar{position:fixed;left:var(--rail-w);right:0;top:0;height:58px;z-index:50;
  display:flex;align-items:center;justify-content:space-between;padding:0 26px;
  background:linear-gradient(180deg,rgba(7,7,10,.9),rgba(7,7,10,0));pointer-events:none}
.topbar>*{pointer-events:auto}
.topbar-brand{font-size:var(--fs-sm);font-weight:800;letter-spacing:.12em;color:var(--fg-1)}
.topbar-right{display:flex;align-items:center;gap:14px}
.topbar-link{font-size:var(--fs-sm);font-weight:600;color:var(--brand-hi);padding:6px 14px;
  border-radius:var(--r-pill);border:1px solid rgba(16,185,129,.35);transition:all .18s}
.topbar-link:hover{background:var(--brand-dim);border-color:var(--brand);box-shadow:0 0 16px rgba(16,185,129,.25)}
.credit{font-size:var(--fs-sm);color:var(--fg-1);font-variant-numeric:tabular-nums;
  padding:5px 12px;border-radius:var(--r-pill);background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06)}

.page{margin-left:var(--rail-w);padding-top:58px;position:relative}

@media (max-width: 900px) {
  .rail{left:0;right:0;top:auto;bottom:0;width:100%;height:60px;flex-direction:row;
    justify-content:space-around;padding:0 4px;border-right:0;border-top:1px solid rgba(255,255,255,.07);
    background:rgba(10,10,14,.92)}
  .rail-logo,.rail-me{display:none}
  .rail-items{flex-direction:row;justify-content:space-around;flex:1}
  .rail-btn{width:auto;height:54px;flex:1}
  .rail-btn.on::before{top:auto;bottom:0;left:50%;transform:translateX(-50%);width:22px;height:2px}
  .topbar{left:0;padding:0 16px}
  .page{margin-left:0;padding-bottom:60px}
}

/* ===========================================================
   主题：浅蓝（--theme=light）
   深色那套用 rgba(255,255,255,x) 做叠加，浅底上会失效，
   所以这里除了换变量，还要重置下面这批组件。
   =========================================================== */
:root {
  --surf-1: rgba(255, 255, 255, .045);
  --surf-2: rgba(255, 255, 255, .085);
  --hair:   rgba(255, 255, 255, .07);
}

/* ---- 浅蓝 ---- */
html[data-theme="light-blue"] {
  --bg-0: #EAF2FB;  --bg-1: #FFFFFF;  --bg-2: #F5F9FE;  --bg-3: #E2EDF8;
  --fg-0: #0F2233;  --fg-1: #3D5568;  --fg-2: #7089A0;
  --line: #DCE7F2;  --line-hi: #C4D6E6;
  --hi-inset: inset 0 1px 0 rgba(255,255,255,.9);
  --brand: #0B84D8;  --brand-hi: #0EA5E9;  --brand-deep: #0369A1;
  --brand-dim: rgba(14,165,233,.14);  --accent: #E08A00;
  --glow-brand: rgba(14,165,233,.22);
  --glow-violet: rgba(139,92,246,.10);
  --glow-blue: rgba(56,130,246,.14);
  --sh-card: 0 1px 3px rgba(15,34,51,.06), 0 10px 28px -10px rgba(15,34,51,.14);
  --sh-hover: 0 4px 14px rgba(15,34,51,.1), 0 20px 44px -14px rgba(15,34,51,.2);
  --sh-brand: 0 4px 18px rgba(14,165,233,.28), 0 0 0 1px rgba(14,165,233,.22);
  --surf-1: rgba(15,34,51,.035);  --surf-2: rgba(15,34,51,.075);
  --hair: rgba(15,34,51,.095);
  --go-1: #38BDF8;  --go-2: #0EA5E9;  --go-3: #0284C7;
}

/* ---- 暖米（纸张感） ---- */
html[data-theme="light-warm"] {
  --bg-0: #F7F1E6;  --bg-1: #FFFDF8;  --bg-2: #FBF6EC;  --bg-3: #EFE6D6;
  --fg-0: #2B2116;  --fg-1: #5A4A38;  --fg-2: #8A7660;
  --line: #E8DECB;  --line-hi: #D8C9AE;
  --hi-inset: inset 0 1px 0 rgba(255,255,255,.9);
  --brand: #B45309;  --brand-hi: #D97706;  --brand-deep: #92400E;
  --brand-dim: rgba(217,119,6,.14);  --accent: #0F766E;
  --glow-brand: rgba(217,119,6,.20);
  --glow-violet: rgba(139,92,246,.07);
  --glow-blue: rgba(56,130,246,.07);
  --sh-card: 0 1px 3px rgba(43,33,22,.06), 0 10px 28px -10px rgba(43,33,22,.16);
  --sh-hover: 0 4px 14px rgba(43,33,22,.1), 0 20px 44px -14px rgba(43,33,22,.22);
  --sh-brand: 0 4px 18px rgba(217,119,6,.28), 0 0 0 1px rgba(217,119,6,.22);
  --surf-1: rgba(43,33,22,.04);  --surf-2: rgba(43,33,22,.085);
  --hair: rgba(43,33,22,.1);
  --go-1: #F59E0B;  --go-2: #D97706;  --go-3: #B45309;
}

/* ---- 薄荷（护眼绿） ---- */
html[data-theme="light-mint"] {
  --bg-0: #EAF4EF;  --bg-1: #FFFFFF;  --bg-2: #F3FAF6;  --bg-3: #DCEDE4;
  --fg-0: #10281F;  --fg-1: #3A5548;  --fg-2: #6C8A7C;
  --line: #D6E7DE;  --line-hi: #BED9CB;
  --hi-inset: inset 0 1px 0 rgba(255,255,255,.9);
  --brand: #0E8A5F;  --brand-hi: #10B981;  --brand-deep: #076C49;
  --brand-dim: rgba(16,185,129,.14);  --accent: #C2410C;
  --glow-brand: rgba(16,185,129,.20);
  --glow-violet: rgba(139,92,246,.07);
  --glow-blue: rgba(56,130,246,.08);
  --sh-card: 0 1px 3px rgba(16,40,31,.06), 0 10px 28px -10px rgba(16,40,31,.14);
  --sh-hover: 0 4px 14px rgba(16,40,31,.1), 0 20px 44px -14px rgba(16,40,31,.2);
  --sh-brand: 0 4px 18px rgba(16,185,129,.28), 0 0 0 1px rgba(16,185,129,.22);
  --surf-1: rgba(16,40,31,.035);  --surf-2: rgba(16,40,31,.075);
  --hair: rgba(16,40,31,.1);
  --go-1: #34D399;  --go-2: #10B981;  --go-3: #059669;
}

/* ---- 外壳 ---- */
html[data-theme^="light"] body {
  background:
    radial-gradient(900px 520px at 14% -12%, rgba(14, 165, 233, .16), transparent 62%),
    radial-gradient(760px 460px at 88% -6%, rgba(139, 92, 246, .09), transparent 60%),
    var(--bg-0);
}
html[data-theme^="light"] .rail {
  background: rgba(255, 255, 255, .72);
  border-right: 1px solid var(--hair);
  backdrop-filter: blur(18px);
}
html[data-theme^="light"] .rail-btn { color: var(--fg-1); }
html[data-theme^="light"] .rail-btn:hover { background: var(--surf-1); color: var(--fg-0); }
html[data-theme^="light"] .rail-btn.on { color: var(--brand-deep); background: var(--brand-dim); }
html[data-theme^="light"] .rail-logo {
  background: linear-gradient(140deg, #38BDF8, #0284C7);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 18px rgba(2,132,199,.28);
}
html[data-theme^="light"] .rail-avatar {
  background: linear-gradient(140deg, #38BDF8, #0284C7); color: #fff;
}
html[data-theme^="light"] .topbar {
  background: linear-gradient(180deg, rgba(234,242,251,.94), rgba(234,242,251,0));
}
html[data-theme^="light"] .topbar-brand { color: var(--fg-0); }
html[data-theme^="light"] .credit,
html[data-theme^="light"] .topbar-link { background: rgba(255,255,255,.8); border-color: var(--hair); color: var(--fg-0); }
html[data-theme^="light"] .topbar-link { color: var(--brand-deep); border-color: rgba(14,165,233,.4); }

/* ---- 首页 ---- */
html[data-theme^="light"] .flow-s,
html[data-theme^="light"] .qbtn,
html[data-theme^="light"] .hint { background: #fff; border-color: var(--hair); color: var(--fg-1); }
html[data-theme^="light"] .qbtn { box-shadow: 0 1px 2px rgba(15,34,51,.05); }
html[data-theme^="light"] .qbtn:hover { background: #F0F9FF; border-color: rgba(14,165,233,.45); color: var(--fg-0); }
html[data-theme^="light"] .composer {
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(140deg, rgba(14,165,233,.55), rgba(255,255,255,.9) 40%, rgba(14,165,233,.2)) border-box;
  box-shadow: 0 1px 3px rgba(15,34,51,.05), 0 16px 44px -20px rgba(15,34,51,.22);
}
html[data-theme^="light"] .composer:focus-within {
  box-shadow: 0 0 0 1px rgba(14,165,233,.3), 0 0 32px -8px rgba(14,165,233,.4);
}
html[data-theme^="light"] .go {
  background: linear-gradient(135deg, var(--go-1), var(--go-2) 55%, var(--go-3));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), var(--sh-brand);
}
html[data-theme^="light"] .rail-logo {
  background: linear-gradient(140deg, var(--go-1), var(--go-3));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 18px var(--glow-brand);
}
html[data-theme^="light"] .rail-avatar {
  background: linear-gradient(140deg, var(--go-1), var(--go-3)); color: #fff;
}
html[data-theme^="light"] .dir.on {
  background: linear-gradient(135deg, var(--go-1), var(--go-3)); color: #fff;
}
html[data-theme^="light"] .card {
  border-color: var(--hair);
  box-shadow: 0 1px 3px rgba(15,34,51,.07), 0 8px 22px -12px rgba(15,34,51,.16);
}
html[data-theme^="light"] .card::after { background: linear-gradient(180deg, rgba(255,255,255,.5), transparent 24%); }
html[data-theme^="light"] .more details { background: #fff; border-color: var(--hair); }
html[data-theme^="light"] .more summary { color: var(--fg-0); }
html[data-theme^="light"] .f-item { background: var(--surf-1); border-color: var(--hair); }
html[data-theme^="light"] .f-item:hover { background: rgba(14,165,233,.07); border-color: rgba(14,165,233,.3); }

/* ---- 生成页 ---- */
html[data-theme^="light"] .card { background: #fff; }
html[data-theme^="light"] .title-in { border-top-color: var(--hair); }
html[data-theme^="light"] .st { background: #fff; border-color: var(--hair); }
html[data-theme^="light"] .st:hover { background: #F7FBFF; border-color: rgba(14,165,233,.3); }
html[data-theme^="light"] .st.on { background: rgba(14,165,233,.09); border-color: rgba(14,165,233,.5); }
html[data-theme^="light"] .panel { background: var(--surf-1); border-color: var(--hair); }
html[data-theme^="light"] .seg button { background: var(--surf-1); color: var(--fg-1); }
html[data-theme^="light"] .seg button:hover { background: var(--surf-2); }
html[data-theme^="light"] .seg button.on { background: var(--brand-dim); color: var(--brand-deep); border-color: rgba(14,165,233,.45); }
html[data-theme^="light"] .psel { background: #fff; border-color: var(--hair); color: var(--fg-0); }
html[data-theme^="light"] .pv { background: #fff; border-color: var(--hair); box-shadow: var(--sh-card); }
html[data-theme^="light"] .pv-top, html[data-theme^="light"] .pv-bar,
html[data-theme^="light"] .pv-actions { border-color: var(--hair); }
html[data-theme^="light"] .pv-bar { background: var(--surf-1); }
html[data-theme^="light"] .pv-actions .a2 { background: var(--surf-1); border-color: var(--hair); color: var(--fg-0); }
html[data-theme^="light"] .h-item { background: #fff; border-color: var(--hair); }

/* ---- 弹层 ---- */
html[data-theme^="light"] .sheet { background: rgba(15, 34, 51, .3); }
html[data-theme^="light"] .sheet-box {
  background: #fff; border-color: var(--hair);
  box-shadow: 0 30px 80px -30px rgba(15,34,51,.4);
}
html[data-theme^="light"] .sheet-tabs { background: var(--surf-1); }
html[data-theme^="light"] .sheet-tabs button.on { background: #fff; color: var(--fg-0); box-shadow: 0 1px 3px rgba(15,34,51,.1); }
html[data-theme^="light"] .sheet-x { background: var(--surf-1); }
html[data-theme^="light"] .dir { background: #fff; border-color: var(--hair); }
html[data-theme^="light"] .dir.on { background: linear-gradient(135deg, #38BDF8, #0284C7); color: #fff; }
html[data-theme^="light"] .t-item,
html[data-theme^="light"] .c-item { background: #fff; border-color: var(--hair); }
html[data-theme^="light"] .t-item:hover { background: #F7FBFF; }
html[data-theme^="light"] .t-item.on { background: rgba(14,165,233,.09); border-color: rgba(14,165,233,.5); }
html[data-theme^="light"] .sheet-input { background: #fff; border-color: var(--hair); color: var(--fg-0); }
html[data-theme^="light"] .refbox { background: rgba(14,165,233,.06); border-color: rgba(14,165,233,.25); }

/* ===========================================================
   风格抽屉
   =========================================================== */
.sd{position:fixed;inset:0;z-index:300;display:none}
.sd.on{display:block}
.sd-mask{position:absolute;inset:0;background:rgba(5,5,8,.62);backdrop-filter:blur(6px)}
.sd-panel{position:absolute;left:var(--rail-w);top:0;bottom:0;width:400px;max-width:calc(100vw - var(--rail-w));
  display:flex;flex-direction:column;background:var(--bg-1);
  border-left:0;border-right:1px solid var(--hair);
  box-shadow:20px 0 60px -20px rgba(0,0,0,.8);
  animation:sdIn .24s cubic-bezier(.2,.8,.3,1)}
@keyframes sdIn{from{transform:translateX(-28px);opacity:.6}to{transform:none;opacity:1}}
.sd-head{display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px;border-bottom:1px solid var(--hair)}
.sd-head b{font-size:var(--fs-sm);color:var(--fg-0);font-weight:700;letter-spacing:.04em}
.sd-x{width:28px;height:28px;border-radius:50%;color:var(--fg-2);font-size:13px;
  background:var(--surf-1);transition:all .16s}
.sd-x:hover{background:var(--surf-2);color:var(--fg-0)}
.sd-body{flex:1;overflow:auto;padding:18px}
.sd-sec{margin-bottom:22px}
.sd-label{font-size:10.5px;color:var(--fg-2);letter-spacing:.14em;text-transform:uppercase;
  font-weight:700;margin-bottom:10px;display:flex;align-items:center;gap:8px}
.sd-label em{font-style:normal;text-transform:none;letter-spacing:0;font-weight:400;
  font-size:10px;opacity:.75}
.sd-themes{display:flex;gap:8px}
.sd-theme{flex:1;display:flex;align-items:center;gap:9px;padding:10px 12px;
  border-radius:var(--r-sm);border:1px solid var(--hair);background:var(--surf-1);
  transition:all .16s;font-size:12px;color:var(--fg-1)}
.sd-theme i{width:22px;height:22px;border-radius:7px;flex:0 0 auto;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.sd-theme:hover{border-color:var(--line-hi);color:var(--fg-0)}
.sd-theme.on{border-color:rgba(14,165,233,.55);background:var(--brand-dim);color:var(--brand-deep)}
html:not([data-theme^="light"]) .sd-theme.on{color:var(--brand-hi)}
.sd-styles{display:grid;gap:7px}
.sd-style{position:relative;text-align:left;padding:11px 13px;border-radius:var(--r-sm);
  border:1px solid var(--hair);background:var(--surf-1);transition:all .16s}
.sd-style b{display:block;font-size:12.5px;color:var(--fg-0);font-weight:600;margin-bottom:2px}
.sd-style span{font-size:10.5px;color:var(--fg-2)}
.sd-style i{position:absolute;right:12px;top:11px;font-style:normal;font-size:10px;
  color:var(--fg-2);font-variant-numeric:tabular-nums}
.sd-style:hover{border-color:var(--line-hi)}
.sd-style.on{border-color:rgba(14,165,233,.55);background:var(--brand-dim)}
.sd-style.on i{color:var(--brand-hi)}
.sd-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 18px;border-top:1px solid var(--hair)}
.sd-tip{font-size:10.5px;color:var(--fg-2)}
@media (max-width:600px){
  .sd-panel{width:100%;max-width:100%}
}
/* 抽屉里的配色预览块 */
.sd-preview{margin-top:16px;padding:14px;border-radius:var(--r-md);
  background:var(--bg-2);border:1px solid var(--hair)}
.sd-preview .pv-bar{height:22px;border-radius:6px;background:var(--surf-2);margin-bottom:10px}
.sd-preview .pv-line{height:9px;border-radius:4px;background:var(--surf-2);margin-bottom:7px}
.sd-preview .pv-line.short{width:58%}
.sd-preview .pv-btn{width:78px;height:26px;border-radius:999px;margin-top:12px;
  background:linear-gradient(135deg,var(--go-1,var(--brand-hi)),var(--go-3,var(--brand-deep)))}
html:not([data-theme^="light"]) .sd-preview .pv-btn{
  background:linear-gradient(135deg,var(--brand-hi),var(--brand-deep))}

.sd-cs{display:inline-flex;gap:2px;margin-right:7px}
.sd-cs i{width:9px;height:9px;border-radius:2px;display:inline-block;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
