/* ═══════════════════════════════════════════════════════════════════
   石墨 色温（2026-10-14）
   参考：maneater meme（木染漆）那种平面设计，
   最有特点的是网点渐变。
   配色表在 js/02-state.js 的 THEME_TEMPERATURES.graphite，这里只放配色表管不到的：

     · 一条上浓下淡的网点：点从顶上的大圆点一路缩到没有，隔行错开半格，跟印刷网点一样。
       挂在 #bg-mask::before（::after 归色块形状），压得很淡，不抢字。
     · 主界面写死成蓝黑的那一批件，换成石墨灰，边框带一点橄榄。
     · 柠绿只点在强调位；次级用橄榄 #4e580f，不再加第二种亮色。

   除了外观面板里的小样，每条规则都挂在 html.theme-graphite 底下（tests/graphite.test.js 反过来验），
   没选这套配色时这里一条都不生效。
   ═══════════════════════════════════════════════════════════════════ */

/* 外观面板里的小样：石墨灰上一层网点，右下角一块柠绿 */
.swatch-graphite { background:
  radial-gradient(circle,rgba(195,205,176,.55) 1.4px,transparent 1.9px) 0 0/6px 6px,
  linear-gradient(135deg,#3b3d3a 58%,#c9e141 60%); }

html.theme-graphite { --gr-olive-rgb:78,88,15;--gr-lime-rgb:201,225,65;--gr-ink:#222907;--on-accent:var(--gr-ink); }
html.theme-graphite body { background:var(--bg-base); }

/* 网点渐变：顶上 600px 一条，横向平铺；再垫一片很淡的柠绿顶光，跟原片网点里透的那点绿一样 */
html.theme-graphite #bg-mask::before {
  content:'';position:absolute;inset:0;pointer-events:none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='600'%3E%3Cg fill='%23c3cdb0' fill-opacity='.15'%3E%3Ccircle cx='0' cy='7' r='5.2'/%3E%3Ccircle cx='18' cy='7' r='5.2'/%3E%3Ccircle cx='9' cy='22' r='5'/%3E%3Ccircle cx='0' cy='37' r='4.81'/%3E%3Ccircle cx='18' cy='37' r='4.81'/%3E%3Ccircle cx='9' cy='52' r='4.61'/%3E%3Ccircle cx='0' cy='67' r='4.42'/%3E%3Ccircle cx='18' cy='67' r='4.42'/%3E%3Ccircle cx='9' cy='82' r='4.23'/%3E%3Ccircle cx='0' cy='97' r='4.05'/%3E%3Ccircle cx='18' cy='97' r='4.05'/%3E%3Ccircle cx='9' cy='112' r='3.86'/%3E%3Ccircle cx='0' cy='127' r='3.69'/%3E%3Ccircle cx='18' cy='127' r='3.69'/%3E%3Ccircle cx='9' cy='142' r='3.51'/%3E%3Ccircle cx='0' cy='157' r='3.33'/%3E%3Ccircle cx='18' cy='157' r='3.33'/%3E%3Ccircle cx='9' cy='172' r='3.16'/%3E%3Ccircle cx='0' cy='187' r='3'/%3E%3Ccircle cx='18' cy='187' r='3'/%3E%3Ccircle cx='9' cy='202' r='2.83'/%3E%3Ccircle cx='0' cy='217' r='2.67'/%3E%3Ccircle cx='18' cy='217' r='2.67'/%3E%3Ccircle cx='9' cy='232' r='2.51'/%3E%3Ccircle cx='0' cy='247' r='2.36'/%3E%3Ccircle cx='18' cy='247' r='2.36'/%3E%3Ccircle cx='9' cy='262' r='2.2'/%3E%3Ccircle cx='0' cy='277' r='2.05'/%3E%3Ccircle cx='18' cy='277' r='2.05'/%3E%3Ccircle cx='9' cy='292' r='1.91'/%3E%3Ccircle cx='0' cy='307' r='1.77'/%3E%3Ccircle cx='18' cy='307' r='1.77'/%3E%3Ccircle cx='9' cy='322' r='1.63'/%3E%3Ccircle cx='0' cy='337' r='1.5'/%3E%3Ccircle cx='18' cy='337' r='1.5'/%3E%3Ccircle cx='9' cy='352' r='1.37'/%3E%3Ccircle cx='0' cy='367' r='1.24'/%3E%3Ccircle cx='18' cy='367' r='1.24'/%3E%3Ccircle cx='9' cy='382' r='1.12'/%3E%3Ccircle cx='0' cy='397' r='1'/%3E%3Ccircle cx='18' cy='397' r='1'/%3E%3Ccircle cx='9' cy='412' r='0.89'/%3E%3Ccircle cx='0' cy='427' r='0.78'/%3E%3Ccircle cx='18' cy='427' r='0.78'/%3E%3Ccircle cx='9' cy='442' r='0.68'/%3E%3Ccircle cx='0' cy='457' r='0.58'/%3E%3Ccircle cx='18' cy='457' r='0.58'/%3E%3Ccircle cx='9' cy='472' r='0.48'/%3E%3Ccircle cx='0' cy='487' r='0.4'/%3E%3Ccircle cx='18' cy='487' r='0.4'/%3E%3C/g%3E%3C/svg%3E") 0 0/18px 600px repeat-x,
    radial-gradient(90% 55% at 30% -10%,rgba(var(--gr-lime-rgb),.07),transparent 65%);
}

/* 写死成蓝黑的主界面件，换成石墨 */
html.theme-graphite #sidebar { background:rgba(var(--bg-rgb),.9);border-right-color:rgba(255,255,255,.07); }
html.theme-graphite .sidebar-top { background:linear-gradient(to bottom,rgba(var(--gr-lime-rgb),.04) 0%,transparent 100%); }
html.theme-graphite .sidebar-footer { background:linear-gradient(to bottom,transparent,rgba(var(--bg-rgb),.5)); }
html.theme-graphite #footerMenu { background:rgba(var(--bg-rgb),.97); }
html.theme-graphite header { background:rgba(var(--bg-rgb),.88);border-bottom-color:rgba(255,255,255,.07); }
html.theme-graphite .bubble.ai { background:rgba(59,61,58,.78);border-color:rgba(255,255,255,.08); }
html.theme-graphite .bubble.ai .bubble-quote { background:rgba(var(--gr-olive-rgb),.22); }
html.theme-graphite .input-bar-wrap { --ib-rgb:var(--bg-rgb);background:linear-gradient(to bottom,transparent calc(var(--ib-pt) - 2px),rgba(var(--bg-rgb),.97) calc(var(--ib-pt) - 2px)); }
html.theme-graphite .input-bar { background:rgba(59,61,58,.6);border-color:rgba(var(--gr-olive-rgb),.75); }
html.theme-graphite .composer-tray:has(> :not([style*="none"])) { background:rgba(59,61,58,.6);border-color:rgba(var(--gr-olive-rgb),.75); }
html.theme-graphite .settings-panel { background:rgba(var(--bg-rgb),.95);border-color:rgba(255,255,255,.08); }
html.theme-graphite .trash-card:hover { background:rgba(var(--gr-olive-rgb),.3) !important; }

html.theme-graphite ::selection { background:rgba(var(--gr-lime-rgb),.9);color:var(--gr-ink); }
