:root {
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --fs-xs: 12px;   /* 最小字号，任何地方不得小于此值 */
  --fs-sm: 13px;
  --fs-md: 15px;   /* 正文 */
  --fs-lg: 17px;
  --fs-xl: 24px;   /* 页面标题 */
  --fs-num: 28px;  /* 指标数字 */

  --bg: #f8f8f7;
  --sidebar: #f1f0ed;
  --surface: #ffffff;
  --surface-2: #f4f3f1;      /* hover、卡片内次级区域 */
  --line: #ebeae6;
  --line-strong: #dddbd5;
  --text: #34322d;
  --text-2: #5e5d59;
  --text-3: #8f8e89;
  /* 主色是近黑色：主按钮、选中、进度；彩色只留给状态与项目 */
  --accent: #1a1a19;
  --accent-hover: #3b3a37;
  --accent-text: #1a1a19;
  --accent-soft: #ebeae6;
  --accent-line: #d6d4ce;
  --danger: #c4413a;
  --danger-soft: #fbefed;
  --danger-line: #f1d3cf;
  --warn: #a8701a;
  --warn-soft: #f9f1e3;
  --ok: #3b8a5a;
  --ok-soft: #ebf4ee;
  --info: #2f6fb8;
  --info-soft: #ecf2f9;
  --neutral-soft: #efeeeb;
  /* 重点色：导航当前页、进度类元素和发光点缀 */
  --heat-0: #ecebe8; --heat-1: #f6e6dd; --heat-2: #f0d6c7; --heat-3: #e8c1aa; --heat-4: #dda88b;
  --memo-card: #ffffff; --memo-text: #3a3936; --memo-time: #a6a49f;
  --memo-tag-bg: #f6ece6; --memo-tag-text: #b0694b; --memo-link: #bf7556;
  --memo-mark: #fbefc0; --memo-search: #efeeeb; --memo-line: #e6e5e1;
  --memo-tool: #86847f; --memo-control: #6f6d68; --memo-control-hover: #efeeeb; --memo-send-off: #ecebe8; --memo-send-icon: #ffffff;
  --highlight: #c2552d;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' \
stroke='%238f8e89' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --highlight-soft: #f7e8e1;

  --p1: #c4413a; --p2: #c58620; --p3: #2f6fb8; --p4: #aaa8a2;

  --font-display: ui-serif, "Songti SC", "STSong", Georgia, "Noto Serif SC", serif;   /* 页面标题 */
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --glow: rgba(194,85,45,.55);
  --grad-start: #c2552d; --grad-end: #e6a23c;
  --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
  --accent-grad: linear-gradient(180deg, #2c2b29, #141413);
  --accent-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 16px -6px rgba(26,26,25,.45);
  --accent-hover-filter: brightness(1.08);
  --shadow-card-hover: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 4px rgba(52,50,45,.06), 0 18px 40px -20px rgba(52,50,45,.3);
  --glass: rgba(255,255,255,.72);
  --glass-bar: rgba(241,240,237,.78);
  --glass-border: rgba(255,255,255,.9);
  --skeleton-shine: #ffffff;
  --shadow-card: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(52,50,45,.05), 0 12px 32px -18px rgba(52,50,45,.22);
  --shadow-pop: 0 1px 2px rgba(26,26,25,.04), 0 12px 32px rgba(26,26,25,.10);   /* 只用于浮层：抽屉、对话框、菜单、toast */
  --ring: 0 0 0 3px rgba(194,85,45,.16);
  /* Project colours: foreground for dots/bars/text, soft for pill backgrounds. */
  --c-indigo: #5a5bb5; --c-indigo-soft: #efeff8;
  --c-blue: #2f6fb8; --c-blue-soft: #ecf2f9;
  --c-teal: #1f7f78; --c-teal-soft: #e8f3f2;
  --c-green: #3b8a5a; --c-green-soft: #ebf4ee;
  --c-amber: #9c6b12; --c-amber-soft: #f7f0e1;
  --c-orange: #b85a26; --c-orange-soft: #f9eee6;
  --c-rose: #b8435f; --c-rose-soft: #f8edf0;
  --c-violet: #7d4fae; --c-violet-soft: #f3eef8;
  --sidebar-w: 240px;
  --gap: 16px;

  --on-accent: #ffffff; --toast-bg: #1a1a19; --toast-text: #ffffff;
  --logo-bg: #141413; --logo-fg: #f8f5ef; --logo-dot: #e0763f;
  --backdrop: rgba(26,26,25,.28); --clear: transparent; --current: currentColor;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1b1a; --sidebar: #212120; --surface: #272726; --surface-2: #30302e;
    --line: #353533; --line-strong: #454542;
    --text: #ecebe8; --text-2: #b9b8b3; --text-3: #8d8c87;
    --accent: #ecebe8; --accent-hover: #ffffff; --accent-text: #ecebe8; --accent-soft: #353533; --accent-line: #4a4a46;
    --on-accent: #1a1a19;
    --danger: #ec7f74; --danger-soft: #3a2422; --danger-line: #5a302c;
    --warn: #ddb064; --warn-soft: #362d1c;
    --ok: #74c493; --ok-soft: #1f3226;
    --info: #7eaee6; --info-soft: #1f2a38;
    --neutral-soft: #30302e;
    --heat-0: #262625; --heat-1: #2f2723; --heat-2: #3d2e26; --heat-3: #523b2e; --heat-4: #6e4b39;
    --memo-card: #252524; --memo-text: #d8d6d1; --memo-time: #75736e;
    --memo-tag-bg: #2f2621; --memo-tag-text: #d9a084; --memo-link: #d9906e;
    --memo-mark: rgba(214,170,60,.28); --memo-search: #262625; --memo-line: #31302e;
    --memo-tool: #8a8883; --memo-control: #a8a6a1; --memo-control-hover: #2e2d2b; --memo-send-off: #2e2d2b; --memo-send-icon: #4f4e4b;
    --highlight: #e8875f; --highlight-soft: #3b2a22;
    --ease: cubic-bezier(.2,.8,.2,1);
    --glow: rgba(232,135,95,.6);
    --grad-start: #e8875f; --grad-end: #ddb064;
    --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
    --accent-grad: linear-gradient(180deg, #ffffff, #dcdad5);
    --accent-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 18px -8px rgba(0,0,0,.6);
    --accent-hover-filter: brightness(.96);
    --shadow-card-hover: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 5px rgba(0,0,0,.35), 0 20px 44px -20px rgba(0,0,0,.7);
    --glass: rgba(39,39,38,.72);
    --glass-bar: rgba(33,33,32,.78);
    --glass-border: rgba(255,255,255,.08);
    --skeleton-shine: #3a3a38;
    --p1: #ec7f74; --p2: #ddb064; --p3: #7eaee6; --p4: #6f6e6a;
    --shadow-card: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -18px rgba(0,0,0,.6);
    --shadow-pop: 0 12px 36px rgba(0,0,0,.5);
    --ring: 0 0 0 3px rgba(232,135,95,.22);
    --toast-bg: #ecebe8; --toast-text: #1a1a19; --backdrop: rgba(0,0,0,.55);
    --c-indigo: #a3a4f0; --c-indigo-soft: #2c2c42;
    --c-blue: #7eaee6; --c-blue-soft: #1f2a38;
    --c-teal: #6cc6bd; --c-teal-soft: #1b3230;
    --c-green: #74c493; --c-green-soft: #1f3226;
    --c-amber: #ddb064; --c-amber-soft: #362d1c;
    --c-orange: #eb9a6b; --c-orange-soft: #3a281d;
    --c-rose: #ec8ca3; --c-rose-soft: #3a2329;
    --c-violet: #c29be8; --c-violet-soft: #30253d;
  }
}
:root[data-theme="dark"] {
    --bg: #1b1b1a; --sidebar: #212120; --surface: #272726; --surface-2: #30302e;
    --line: #353533; --line-strong: #454542;
    --text: #ecebe8; --text-2: #b9b8b3; --text-3: #8d8c87;
    --accent: #ecebe8; --accent-hover: #ffffff; --accent-text: #ecebe8; --accent-soft: #353533; --accent-line: #4a4a46;
    --on-accent: #1a1a19;
    --danger: #ec7f74; --danger-soft: #3a2422; --danger-line: #5a302c;
    --warn: #ddb064; --warn-soft: #362d1c;
    --ok: #74c493; --ok-soft: #1f3226;
    --info: #7eaee6; --info-soft: #1f2a38;
    --neutral-soft: #30302e;
    --heat-0: #262625; --heat-1: #2f2723; --heat-2: #3d2e26; --heat-3: #523b2e; --heat-4: #6e4b39;
    --memo-card: #252524; --memo-text: #d8d6d1; --memo-time: #75736e;
    --memo-tag-bg: #2f2621; --memo-tag-text: #d9a084; --memo-link: #d9906e;
    --memo-mark: rgba(214,170,60,.28); --memo-search: #262625; --memo-line: #31302e;
    --memo-tool: #8a8883; --memo-control: #a8a6a1; --memo-control-hover: #2e2d2b; --memo-send-off: #2e2d2b; --memo-send-icon: #4f4e4b;
    --highlight: #e8875f; --highlight-soft: #3b2a22;
    --ease: cubic-bezier(.2,.8,.2,1);
    --glow: rgba(232,135,95,.6);
    --grad-start: #e8875f; --grad-end: #ddb064;
    --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
    --accent-grad: linear-gradient(180deg, #ffffff, #dcdad5);
    --accent-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 18px -8px rgba(0,0,0,.6);
    --accent-hover-filter: brightness(.96);
    --shadow-card-hover: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 5px rgba(0,0,0,.35), 0 20px 44px -20px rgba(0,0,0,.7);
    --glass: rgba(39,39,38,.72);
    --glass-bar: rgba(33,33,32,.78);
    --glass-border: rgba(255,255,255,.08);
    --skeleton-shine: #3a3a38;
    --p1: #ec7f74; --p2: #ddb064; --p3: #7eaee6; --p4: #6f6e6a;
    --shadow-card: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -18px rgba(0,0,0,.6);
    --shadow-pop: 0 12px 36px rgba(0,0,0,.5);
    --ring: 0 0 0 3px rgba(232,135,95,.22);
    --toast-bg: #ecebe8; --toast-text: #1a1a19; --backdrop: rgba(0,0,0,.55);
    --c-indigo: #a3a4f0; --c-indigo-soft: #2c2c42;
    --c-blue: #7eaee6; --c-blue-soft: #1f2a38;
    --c-teal: #6cc6bd; --c-teal-soft: #1b3230;
    --c-green: #74c493; --c-green-soft: #1f3226;
    --c-amber: #ddb064; --c-amber-soft: #362d1c;
    --c-orange: #eb9a6b; --c-orange-soft: #3a281d;
    --c-rose: #ec8ca3; --c-rose-soft: #3a2329;
    --c-violet: #c29be8; --c-violet-soft: #30253d;
}

/* Style palettes. classic is the palette above; each new style keeps its own light and dark
   tokens so both themes work, and only overrides the tokens listed in the round-33 brief. */
:root[data-style="slate"], [data-style-scope="slate"] {
  --bg: #f2f4f7; --sidebar: #e9edf1;
  --surface: #ffffff; --surface-2: #eef1f5;
  --line: #e0e5eb; --line-strong: #cbd3dc;
  --text: #121a24; --text-2: #475262; --text-3: #8a94a3;
  --neutral-soft: #eceff3;
  --accent: #121a24; --accent-hover: #28323f; --accent-grad: #2450c4;
  --on-accent: #ffffff;
  --accent-text: #2450c4; --accent-soft: #e6ecf9; --accent-line: #c3d1f1;
  --highlight: #2450c4; --highlight-soft: #e6ecf9;
  --grad-start: #2450c4; --grad-end: #2450c4;
  --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
  --heat-0: #e4e8ee; --heat-1: #cad8f5; --heat-2: #93afea; --heat-3: #5d85db; --heat-4: #2450c4;
  --memo-card: #ffffff; --memo-time: #8a94a3; --memo-tag-bg: transparent;
  --memo-tag-text: #2450c4; --memo-link: #2450c4; --memo-mark: #fff0a3;
  --ring: 0 0 0 3px rgba(36,80,196,.18);
  --glass: rgba(255,255,255,0.92); --glass-bar: rgba(233,237,241,0.92);
  --radius: 6px; --radius-lg: 10px;
  --glow: transparent; --accent-shadow: none; --shadow-card: none; --shadow-card-hover: none;
  --logo-bg: #121a24; --logo-fg: #ffffff; --logo-dot: #2450c4;
  --signal-ink: #111111;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="slate"]:not([data-theme="light"]) {
  --bg: #0e131a; --sidebar: #121821;
  --surface: #161d27; --surface-2: #1d2531;
  --line: #252f3c; --line-strong: #33404f;
  --text: #e5eaf0; --text-2: #a7b2c0; --text-3: #75808f;
  --neutral-soft: #1f2732;
  --accent: #e5eaf0; --accent-hover: #ffffff; --accent-grad: #456fdc;
  --on-accent: #ffffff;
  --accent-text: #8fb0ff; --accent-soft: #1c2a44; --accent-line: #2c4270;
  --highlight: #7fa2ff; --highlight-soft: #1c2a44;
  --grad-start: #7fa2ff; --grad-end: #7fa2ff;
  --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
  --heat-0: #1b222c; --heat-1: #1f3157; --heat-2: #2b4a8f; --heat-3: #3f68c8; --heat-4: #7fa2ff;
  --memo-card: #161d27; --memo-time: #75808f; --memo-tag-bg: transparent;
  --memo-tag-text: #8fb0ff; --memo-link: #8fb0ff; --memo-mark: rgba(214,170,60,.30);
  --ring: 0 0 0 3px rgba(127,162,255,.28);
  --glass: rgba(22,29,39,0.92); --glass-bar: rgba(18,24,33,0.92);
  --radius: 6px; --radius-lg: 10px;
  --glow: transparent; --accent-shadow: none; --shadow-card: none; --shadow-card-hover: none;
  --logo-bg: #e5eaf0; --logo-fg: #0e131a; --logo-dot: #7fa2ff;
  --signal-ink: #111111;
  }
}
:root[data-style="slate"][data-theme="dark"] {
  --bg: #0e131a; --sidebar: #121821;
  --surface: #161d27; --surface-2: #1d2531;
  --line: #252f3c; --line-strong: #33404f;
  --text: #e5eaf0; --text-2: #a7b2c0; --text-3: #75808f;
  --neutral-soft: #1f2732;
  --accent: #e5eaf0; --accent-hover: #ffffff; --accent-grad: #456fdc;
  --on-accent: #ffffff;
  --accent-text: #8fb0ff; --accent-soft: #1c2a44; --accent-line: #2c4270;
  --highlight: #7fa2ff; --highlight-soft: #1c2a44;
  --grad-start: #7fa2ff; --grad-end: #7fa2ff;
  --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
  --heat-0: #1b222c; --heat-1: #1f3157; --heat-2: #2b4a8f; --heat-3: #3f68c8; --heat-4: #7fa2ff;
  --memo-card: #161d27; --memo-time: #75808f; --memo-tag-bg: transparent;
  --memo-tag-text: #8fb0ff; --memo-link: #8fb0ff; --memo-mark: rgba(214,170,60,.30);
  --ring: 0 0 0 3px rgba(127,162,255,.28);
  --glass: rgba(22,29,39,0.92); --glass-bar: rgba(18,24,33,0.92);
  --radius: 6px; --radius-lg: 10px;
  --glow: transparent; --accent-shadow: none; --shadow-card: none; --shadow-card-hover: none;
  --logo-bg: #e5eaf0; --logo-fg: #0e131a; --logo-dot: #7fa2ff;
  --signal-ink: #111111;
}
:root[data-style="ink"], [data-style-scope="ink"] {
  --bg: #f3f3ef; --sidebar: #e9e8e2;
  --surface: #fcfcfa; --surface-2: #efeee9;
  --line: #dedcd3; --line-strong: #c4c1b5;
  --text: #1b2633; --text-2: #4a5562; --text-3: #878d94;
  --font-display: "Songti SC","STSong","Noto Serif SC",serif;
  --neutral-soft: #ebe9e3;
  --accent: #1d3a5f; --accent-hover: #2a4e7c; --accent-grad: #1d3a5f;
  --on-accent: #ffffff;
  --accent-text: #1d3a5f; --accent-soft: #e2e8ef; --accent-line: #bfcbda;
  --highlight: #b3302a; --highlight-soft: #f3e3e0;
  --grad-start: #1d3a5f; --grad-end: #1d3a5f;
  --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
  --heat-0: #e5e3dc; --heat-1: #d0d9e4; --heat-2: #9fb2c9; --heat-3: #5f7b9d; --heat-4: #1d3a5f;
  --memo-card: #fcfcfa; --memo-time: #878d94; --memo-tag-bg: transparent;
  --memo-tag-text: #1d3a5f; --memo-link: #b3302a; --memo-mark: #f1dfa2;
  --ring: 0 0 0 3px rgba(29,58,95,.16);
  --glass: rgba(252,252,250,0.92); --glass-bar: rgba(233,232,226,0.92);
  --radius: 3px; --radius-lg: 4px;
  --glow: transparent; --accent-shadow: none; --shadow-card: none; --shadow-card-hover: none;
  --logo-bg: #1d3a5f; --logo-fg: #fcfcfa; --logo-dot: #b3302a;
  --signal-ink: #111111;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="ink"]:not([data-theme="light"]) {
  --bg: #13171c; --sidebar: #171c22;
  --surface: #1b2128; --surface-2: #222931;
  --line: #2b333c; --line-strong: #3a444e;
  --text: #e8e6df; --text-2: #b2b4b3; --text-3: #7e858c;
  --font-display: "Songti SC","STSong","Noto Serif SC",serif;
  --neutral-soft: #232a32;
  --accent: #e8e6df; --accent-hover: #ffffff; --accent-grad: #2f5585;
  --on-accent: #ffffff;
  --accent-text: #9fb8d8; --accent-soft: #1f2c3d; --accent-line: #33496a;
  --highlight: #e0574d; --highlight-soft: #3a2321;
  --grad-start: #9fb8d8; --grad-end: #9fb8d8;
  --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
  --heat-0: #1e242b; --heat-1: #22324a; --heat-2: #2f4f78; --heat-3: #4d74a6; --heat-4: #9fb8d8;
  --memo-card: #1b2128; --memo-time: #7e858c; --memo-tag-bg: transparent;
  --memo-tag-text: #9fb8d8; --memo-link: #e0574d; --memo-mark: rgba(214,170,60,.30);
  --ring: 0 0 0 3px rgba(159,184,216,.25);
  --glass: rgba(27,33,40,0.92); --glass-bar: rgba(23,28,34,0.92);
  --radius: 3px; --radius-lg: 4px;
  --glow: transparent; --accent-shadow: none; --shadow-card: none; --shadow-card-hover: none;
  --logo-bg: #9fb8d8; --logo-fg: #13171c; --logo-dot: #e0574d;
  --signal-ink: #111111;
  }
}
:root[data-style="ink"][data-theme="dark"] {
  --bg: #13171c; --sidebar: #171c22;
  --surface: #1b2128; --surface-2: #222931;
  --line: #2b333c; --line-strong: #3a444e;
  --text: #e8e6df; --text-2: #b2b4b3; --text-3: #7e858c;
  --font-display: "Songti SC","STSong","Noto Serif SC",serif;
  --neutral-soft: #232a32;
  --accent: #e8e6df; --accent-hover: #ffffff; --accent-grad: #2f5585;
  --on-accent: #ffffff;
  --accent-text: #9fb8d8; --accent-soft: #1f2c3d; --accent-line: #33496a;
  --highlight: #e0574d; --highlight-soft: #3a2321;
  --grad-start: #9fb8d8; --grad-end: #9fb8d8;
  --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
  --heat-0: #1e242b; --heat-1: #22324a; --heat-2: #2f4f78; --heat-3: #4d74a6; --heat-4: #9fb8d8;
  --memo-card: #1b2128; --memo-time: #7e858c; --memo-tag-bg: transparent;
  --memo-tag-text: #9fb8d8; --memo-link: #e0574d; --memo-mark: rgba(214,170,60,.30);
  --ring: 0 0 0 3px rgba(159,184,216,.25);
  --glass: rgba(27,33,40,0.92); --glass-bar: rgba(23,28,34,0.92);
  --radius: 3px; --radius-lg: 4px;
  --glow: transparent; --accent-shadow: none; --shadow-card: none; --shadow-card-hover: none;
  --logo-bg: #9fb8d8; --logo-fg: #13171c; --logo-dot: #e0574d;
  --signal-ink: #111111;
}
:root[data-style="graphite"], [data-style-scope="graphite"] {
  --bg: #ededeb; --sidebar: #e3e3e0;
  --surface: #f9f9f8; --surface-2: #e6e6e3;
  --line: #d3d3cf; --line-strong: #a9a9a4;
  --text: #111111; --text-2: #404044; --text-3: #7d7d82;
  --neutral-soft: #e2e2df;
  --accent: #111111; --accent-hover: #2a2a2a; --accent-grad: #111111;
  --on-accent: #efff5c;
  --accent-text: #111111; --accent-soft: #e2e2df; --accent-line: #a9a9a4;
  --highlight: #111111; --highlight-soft: #efff5c;
  --grad-start: #111111; --grad-end: #111111;
  --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
  --heat-0: #dcdcd8; --heat-1: #d9eb7f; --heat-2: #c3df3a; --heat-3: #8db10f; --heat-4: #111111;
  --memo-card: #f9f9f8; --memo-time: #7d7d82; --memo-tag-bg: transparent;
  --memo-tag-text: #111111; --memo-link: #111111; --memo-mark: #efff5c;
  --ring: 0 0 0 2px #111111;
  --glass: rgba(249,249,248,0.92); --glass-bar: rgba(227,227,224,0.92);
  --radius: 0; --radius-lg: 2px;
  --glow: transparent; --accent-shadow: none; --shadow-card: none; --shadow-card-hover: none;
  --logo-bg: #111111; --logo-fg: #efff5c; --logo-dot: #efff5c;
  --signal-ink: #111111;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="graphite"]:not([data-theme="light"]) {
  --bg: #111111; --sidebar: #161616;
  --surface: #1a1a1a; --surface-2: #232323;
  --line: #2d2d2d; --line-strong: #4a4a4a;
  --text: #f0f0ee; --text-2: #b4b4b1; --text-3: #7f7f7c;
  --neutral-soft: #232323;
  --accent: #f0f0ee; --accent-hover: #ffffff; --accent-grad: #efff5c;
  --on-accent: #111111;
  --accent-text: #f0f0ee; --accent-soft: #232323; --accent-line: #4a4a4a;
  --highlight: #efff5c; --highlight-soft: #efff5c;
  --grad-start: #efff5c; --grad-end: #efff5c;
  --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
  --heat-0: #222222; --heat-1: #3c4416; --heat-2: #6a7a10; --heat-3: #a8c214; --heat-4: #efff5c;
  --memo-card: #1a1a1a; --memo-time: #7f7f7c; --memo-tag-bg: transparent;
  --memo-tag-text: #f0f0ee; --memo-link: #efff5c; --memo-mark: rgba(239,255,92,.28);
  --ring: 0 0 0 2px #efff5c;
  --glass: rgba(26,26,26,0.92); --glass-bar: rgba(22,22,22,0.92);
  --radius: 0; --radius-lg: 2px;
  --glow: transparent; --accent-shadow: none; --shadow-card: none; --shadow-card-hover: none;
  --logo-bg: #efff5c; --logo-fg: #111111; --logo-dot: #111111;
  --signal-ink: #111111;
  }
}
:root[data-style="graphite"][data-theme="dark"] {
  --bg: #111111; --sidebar: #161616;
  --surface: #1a1a1a; --surface-2: #232323;
  --line: #2d2d2d; --line-strong: #4a4a4a;
  --text: #f0f0ee; --text-2: #b4b4b1; --text-3: #7f7f7c;
  --neutral-soft: #232323;
  --accent: #f0f0ee; --accent-hover: #ffffff; --accent-grad: #efff5c;
  --on-accent: #111111;
  --accent-text: #f0f0ee; --accent-soft: #232323; --accent-line: #4a4a4a;
  --highlight: #efff5c; --highlight-soft: #efff5c;
  --grad-start: #efff5c; --grad-end: #efff5c;
  --grad-progress: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  --grad-progress-v: linear-gradient(0deg, var(--grad-start), var(--grad-end));
  --heat-0: #222222; --heat-1: #3c4416; --heat-2: #6a7a10; --heat-3: #a8c214; --heat-4: #efff5c;
  --memo-card: #1a1a1a; --memo-time: #7f7f7c; --memo-tag-bg: transparent;
  --memo-tag-text: #f0f0ee; --memo-link: #efff5c; --memo-mark: rgba(239,255,92,.28);
  --ring: 0 0 0 2px #efff5c;
  --glass: rgba(26,26,26,0.92); --glass-bar: rgba(22,22,22,0.92);
  --radius: 0; --radius-lg: 2px;
  --glow: transparent; --accent-shadow: none; --shadow-card: none; --shadow-card-hover: none;
  --logo-bg: #efff5c; --logo-fg: #111111; --logo-dot: #111111;
  --signal-ink: #111111;
}
/* The classic preview card reads the same tokens; the palette above is the source. */
[data-style-scope="graphite"] { --preview-accent: var(--highlight-soft); }
[data-style-scope="classic"] {
  --bg: #f8f8f7; --text: #34322d; --text-2: #5e5d59; --text-3: #8f8e89;
  --surface: #ffffff; --highlight: #c2552d;
}

/* Graphite uses signal yellow as text on the black active count in both themes. */
:root[data-style="graphite"] { --signal-text: #efff5c; }
