dsh-todo-float-ball 0.11.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,57 @@
3
3
  All notable changes to this project are documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
+ ## v0.12.1(2026-09-14)— 皮肤目录对比度修正
7
+ - hintC 次要文本色对比度修正:08 极地冰川 / 09 霓虹脉搏 / 11 暗物质 / 17 方块像素 四主题与面板底色 WCAG 对比度不足 3:1,已调整到 ≥3.4(与 font/skill 球同步修改,三球共享目录保持一致)
8
+ ## v0.12.0(2026-09-14)— 三球统一 128 皮肤系统
9
+
10
+ - 新增共享皮肤目录 `window.__DSH_BALL_SKINS`(与 dsh-skill-browser / dsh-font-enhancer 同一份目录):128 款皮肤 = 审定方案 01-128(20 招牌特效 + 8 克制精选 + 100 中国传统色单色相)。
11
+ - 🎨 皮肤菜单重构:按 分组(招牌特效/克制精选/浓郁深底/尘埃灰调/柔光深底/中性点缀/浅色纸面/经典)分组展示,带色点预览,可滚动。
12
+ - 三球同步:共享 localStorage 键 `dsh-ball-skin`,任一处切换(Todo 面板 🎨 / 技能球面板设置 / 字体球面板 / DSH 设置页「悬浮球导航」下拉)三球+面板 UI 颜色一起换。
13
+ - 面板全面皮肤化:背景/边框/文字/状态色/进度点/皮肤菜单全部跟随当前皮肤(旧 6 皮肤保留在「经典」分组,选经典时本球回到旧版外观)。
14
+ - 兼容:旧 `dsh-tfb-theme` 键保留;`data-tfb-theme` 委托同时接受经典与 128 皮肤 id;轮询安全网同时盯共享键。
15
+ - 原版保留:Todo 球 6 款旧皮肤在 🎨 菜单「经典」分组;技能球(原版星云紫)与字体球(原版暖极光)各加「原版(仅本球)」选项——选中回到原始外观,切任意 128 皮肤即恢复三球统一;在 DSH 设置页全局换肤会自动清除原版标记。
16
+
17
+ ## [0.11.1] - 2026-09-13
18
+
19
+ > Maintenance release: typography cleanup only. No behaviour, API or UI change
20
+ > of any kind — the shipped `lib/client.js` is the same program with the
21
+ > whitespace residue of the 0.11.0 scripted edits taken out.
22
+
23
+ ### Fixed
24
+
25
+ - **Header comment reported the wrong version** (`lib/client.js`, top-of-file
26
+ banner). The banner still said `v0.9.1` after the package had moved through
27
+ 0.10.0 and 0.11.0; it now reads `v0.11.1`. Comment text only — nothing here
28
+ is read at runtime.
29
+
30
+ ### Changed
31
+
32
+ - **Blank-line residue compressed** (`lib/client.js`). The scripted edits that
33
+ produced 0.11.0 (Plan-A9 / A10 / A11) left 47 stray blank lines behind: 43
34
+ inside `renderList()` — one between every statement, and even between the
35
+ continuation lines of a shared comment — 2 whitespace-only lines inside the
36
+ `buildUI()` panel-markup concatenation, and 2 extras in a triple blank run
37
+ between `renderList()` and `renderPinned()`. Blank lines 104 → 57,
38
+ trailing whitespace 2 → 0, and no blank run longer than a single line is left.
39
+ The surviving blank lines are the 57 that separate top-level declarations and
40
+ the comment-led groups inside `buildUI()` — the file's original style.
41
+ - **Two-statement lines split** (`lib/client.js`). Three lines each carried two
42
+ statements: `ui.ctitle.textContent = …` followed by the `ui.capCur` caption
43
+ update (Plan-A11), `ui.pinSec = …` followed by `ui.capCur = …`, and
44
+ `e.stopPropagation();` followed by `var li = …`. Every statement now owns
45
+ its line.
46
+ - **Leftover empty CSS element removed** (`lib/client.js`, `cssText()`). The
47
+ column-caption edit left an `""` element in the shared CSS rule array, which
48
+ joined into a stray empty line in the generated stylesheet. The element line
49
+ is gone; the surrounding rules are byte-identical.
50
+ - **Zero semantic change, verified mechanically.** A whitespace-insensitive
51
+ token comparison of `lib/client.js` before and after (code tokens, string
52
+ literals and comments kept separately) shows exactly two differences: the
53
+ header version text and the deleted `""` CSS element. `node --check` passes,
54
+ and both regression harnesses are unchanged — `dev-verify-refresh.cjs`
55
+ 14/14 and `dev-verify-merge.cjs` 59/59.
56
+
6
57
  ## [0.11.0] - 2026-09-13
7
58
 
8
59
  > Client-half release. Pinned (📌) sessions now render exactly like the current
@@ -29,11 +80,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
29
80
  conversation no longer expands it in every other one; the pinned panels and
30
81
  the current panel now share the same per-sid buckets (the Plan-A8
31
82
  `pinnedHistOpen` / `pinnedOpenHistOpen` maps are gone).
32
- - **Fold / 🧹 / ♻️ controls act on their own session**
33
- (`lib/client.js`, `actionSid()` + `data-ownsid`). Those rows used to resolve
34
- the *current* session, so a 🧹 clicked inside a pinned panel cleared the
35
- wrong list. Every action row is tagged with the sid it was rendered for;
36
- `ACT_ALIAS` keeps the legacy Plan-A8 action names working.
83
+ - **Fold / 🧹 / ♻️ controls carry the session they belong to**
84
+ (`lib/client.js`, `actionSid()` + `data-ownsid`). Now that one renderer serves
85
+ both list kinds, every action row is tagged with the sid it was rendered for
86
+ and the dispatcher resolves it (`data-ownsid` → legacy `data-sid` → the
87
+ current session as the last fallback), so a control inside a pinned panel can
88
+ never act on the current list. `ACT_ALIAS` maps the legacy Plan-A8 action
89
+ names onto the unified ones, so nothing that used to work stops working.
37
90
  - **Pinned header counts report the current plan only**
38
91
  (`lib/client.js`, `countsOf(snapshotRowsOf(sid))`). The pinned row's
39
92
  done/total previously folded archived history into the numbers, breaking the
package/README.md CHANGED
@@ -90,6 +90,9 @@ DSH skills are **loaded on demand**: a session that never loads the `todo-show-d
90
90
  - Only an explicit boolean `false` disables it; `"false"` / `0` / typos / a missing `config` all keep it ON (guards against accidental shutdown).
91
91
  - The injected text is deliberately short (a system-prompt section costs tokens in every session); the full rules stay in the `todo-show-discipline` skill, which is disabled for model invocation by default once this plugin is installed, and can be re-enabled if you uninstall the plugin.
92
92
 
93
+ ## 🎨 Shared 128 ball skins (v0.12+)
94
+ This ball shares one skin catalog (window.__DSH_BALL_SKINS, localStorage key dsh-ball-skin) with **dsh-skill-browser** and **dsh-font-enhancer**: switch a skin anywhere (panel 🎨 or DSH settings) and all three balls + their panels recolor in sync. The legacy 6 skins stay under the 经典 group; each sibling ball also has a per-ball classic escape hatch.
95
+
93
96
  ## Install
94
97
 
95
98
  The plugin is a standard DSH npm package (`dsh.bundle` self-declared). Two ways:
package/lib/client.js CHANGED
@@ -3,9 +3,126 @@ window.__ModuleLoader__.load({
3
3
  factory: function (require) {
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
6
+ // skin-catalog.js — shared 128-skin catalog for dsh-todo-float-ball /
7
+ // dsh-skill-browser / dsh-font-enhancer. Generated by make_skin_catalog.py.
8
+ // Proposal numbering matches the approved design sheets (01-128).
9
+ (function () {
10
+ if (window.__DSH_BALL_SKINS) return;
11
+ function hs(h,s,l,a){return a==null?("hsl("+h+","+s+"%,"+l+"%)"):("hsla("+h+","+s+"%,"+l+"%,"+a+")");}
12
+ var FORMULA = {
13
+ deep:[["朱砂","VERMILION",4],["酡颜","FLUSHED",13],["琥珀","AMBER",32],["缃色","PALE GOLD",44],["藤黄","GAMBOGE",52],["松花","PINE POLLEN",62],["葱倩","SCALLION",78],["艾绿","MUGWORT",96],["嫩柳","WILLOW",112],["竹青","BAMBOO",126],["石绿","MINERAL GREEN",138],["翡翠","JADEITE",152],["天水碧","SKY WATER",164],["铜绿","VERDIGRIS",172],["松石","TURQUOISE",180],["孔雀","PEACOCK",188],["晴山","CLEAR HILL",194],["天青","AZURE",200],["湖水","LAKE BLUE",207],["霁蓝","AFTER RAIN",214],["群青","ULTRAMARINE",221],["靛蓝","INDIGO",229],["绀青","NAVY",236],["藏蓝","TIBETAN",243],["窃蓝","FLEDGLING BLUE",250],["青莲","LOTUS VIOLET",258],["紫藤","WISTERIA",265],["紫棠","VIOLET WOOD",272],["雪青","SNOW LILAC",283],["丁香","LILAC",290],["堇色","VIOLET",297],["藕荷","LOTUS PINK",305],["烟霞","MISTY GLOW",315],["十样锦","BROCADE",326],["海棠","BEGONIA",334],["银红","SILVER RED",341],["桃夭","PEACH BLOSSOM",349],["绛纱","CRIMSON GAUZE",356]],
14
+ muted:[["栗","CHESTNUT",16],["驼","CAMEL",26],["灰陶","POTTERY",34],["枯茶","DRIED TEA",42],["秋香","AUTUMN",58],["苔径","MOSS PATH",88],["豆绿","BEAN GREEN",98],["青梅","GREEN PLUM",116],["苍山","PALE MOUNTAIN",150],["青矾","VITRIOL",194],["沧浪","PALE WAVE",205],["雾蓝","FOG BLUE",212],["青灰","BLUISH GRAY",224],["黛蓝","HAZY BLUE",232],["黛灰","INK GRAY",252],["紫灰","VIOLET GRAY",276],["烟紫","SMOKY VIOLET",288],["藕灰","LOTUS GRAY",308],["绛紫","CRIMSON PLUM",326],["檀","SANDLEWOOD",359]],
15
+ soft:[["曙光","FIRST LIGHT",8],["橄榄","OLIVE",66],["松间","PINEWOOD",140],["青栀","GARDENIA",168],["湖烟","LAKE MIST",190],["碧涛","BLUE WAVE",202],["竹月","BAMBOO MOON",216],["星蓝","STAR BLUE",226],["青冥","AZURE DEPTH",244],["紫冥","DUSK VIOLET",262],["夜堇","NIGHT VIOLET",284],["芋紫","TARO",300],["霞粉","GLOW PINK",338],["树莓","RASPBERRY",344],["樱贝","CHERRY SHELL",352]],
16
+ neutral:[["银鼠","SILVER RAT",205],["玄青","INK CYAN",160],["玄墨","JET BLACK",275],["乌羽","RAVEN",8],["烟灰","SMOKE",32],["灰鹄","SWAN",140],["玄天","DARK SKY",222],["黛烟","INK SMOKE",288],["铁灰","IRON",210],["磨石","WHETSTONE",95]],
17
+ light:[["月白","MOON WHITE",210],["卵白","EGG WHITE",88],["牙色","IVORY",46],["茶白","TEA WHITE",28],["米浆","RICE MILK",52],["亚麻","LINEN",32],["藕丝","LOTUS THREAD",330],["绫粉","SILK PINK",350],["青白","PALE CELADON",160],["天际","SKYLINE",205],["紫丁","PALE LILAC",285],["雾粉","MIST PINK",345],["薄荷","MINT",150],["绢黄","PALE SILK",48],["灰绿","SAGE",110],["雪浪","SNOW WAVE",195],["燕羽","SWALLOW",225]],
18
+ };
19
+ function varsFor(kind,hh){
20
+ var v={};
21
+ if(kind==="deep"){v={bgA:hs(hh,42,17),bgB:hs(hh,48,7),edge:hs(hh,60,85,".2"),spec:"rgba(255,255,255,.16)",stI:hs(hh,14,54),stP:hs(hh,40,62),stA:hs(hh,88,68),stD:hs(hh,50,42),lbc:hs(hh,35,94),trk:hs(hh,50,80,".13"),pbgA:hs(hh,24,12),pbgB:hs(hh,28,7),pbd:hs(hh,45,80,".14"),ptx:hs(hh,28,92),itm:hs(hh,16,66),itD:hs(hh,18,52),cctx:hs(hh,16,66),chipBg:hs(hh,30,60,".07"),hintC:hs(hh,12,45),hair1:hs(hh,88,68),hair2:hs(hh,50,42)};}
22
+ else if(kind==="muted"){v={bgA:hs(hh,19,15),bgB:hs(hh,20,6),edge:hs(hh,30,78,".17"),spec:"rgba(255,255,255,.1)",stI:hs(hh,10,50),stP:hs(hh,22,56),stA:hs(hh,42,62),stD:hs(hh,28,40),lbc:hs(hh,18,90),trk:hs(hh,30,75,".12"),pbgA:hs(hh,14,11),pbgB:hs(hh,16,6),pbd:hs(hh,25,75,".12"),ptx:hs(hh,14,88),itm:hs(hh,10,62),itD:hs(hh,12,48),cctx:hs(hh,10,62),chipBg:hs(hh,18,55,".06"),hintC:hs(hh,8,42),hair1:hs(hh,42,62),hair2:hs(hh,28,40)};}
23
+ else if(kind==="soft"){v={bgA:hs(hh,28,21),bgB:hs(hh,30,10),edge:hs(hh,45,85,".22"),spec:"rgba(255,255,255,.2)",stI:hs(hh,16,58),stP:hs(hh,36,66),stA:hs(hh,80,70),stD:hs(hh,44,46),lbc:hs(hh,30,95),trk:hs(hh,45,85,".14"),pbgA:hs(hh,20,15),pbgB:hs(hh,24,9),pbd:hs(hh,40,85,".15"),ptx:hs(hh,24,93),itm:hs(hh,14,70),itD:hs(hh,16,56),cctx:hs(hh,14,70),chipBg:hs(hh,26,65,".08"),hintC:hs(hh,10,50),hair1:hs(hh,80,70),hair2:hs(hh,44,46)};}
24
+ else if(kind==="neutral"){v={bgA:hs(hh,7,18),bgB:hs(hh,8,7),edge:"rgba(255,255,255,.14)",spec:"rgba(255,255,255,.12)",stI:hs(hh,10,52),stP:hs(hh,28,60),stA:hs(hh,62,64),stD:hs(hh,38,42),lbc:hs(hh,10,93),trk:hs(hh,20,80,".12"),pbgA:hs(hh,6,12),pbgB:hs(hh,7,7),pbd:"rgba(255,255,255,.09)",ptx:hs(hh,8,90),itm:hs(hh,8,64),itD:hs(hh,10,50),cctx:hs(hh,8,64),chipBg:"rgba(255,255,255,.05)",hintC:hs(hh,6,42),hair1:hs(hh,62,64),hair2:hs(hh,38,42)};}
25
+ else{v={bgA:hs(hh,36,96),bgB:hs(hh,26,84),edge:hs(hh,30,22,".26"),spec:"rgba(255,255,255,.85)",hi:"rgba(255,255,255,.7)",stI:hs(hh,10,60),stP:hs(hh,26,44),stA:hs(hh,40,30),stD:hs(hh,28,40),lbc:hs(hh,25,20),trk:hs(hh,25,20,".14"),pbgA:hs(hh,45,97),pbgB:hs(hh,32,90),pbd:hs(hh,30,25,".15"),ptx:hs(hh,25,20),itm:hs(hh,12,40),itD:hs(hh,14,52),cctx:hs(hh,12,42),chipBg:hs(hh,25,25,".06"),hintC:hs(hh,10,55),hair1:hs(hh,40,30),hair2:hs(hh,28,40)};}
26
+ return v;
27
+ }
28
+ var EX={};
29
+ var EX_ORDER=[];
30
+ EX["01"]={no:"01",name:"曜石极光",en:"OBSIDIAN AURORA",group:"招牌特效",anim:"flashy",vars:{bgA:"#273049",bgB:"#090c15",edge:"rgba(255,255,255,.16)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f2f7ff",trk:"rgba(255,255,255,.1)",stI:"#8fa0b8",stP:"#6fb6ff",stA:"#ffb454",stD:"#34e39a",pbgA:"#171c2b",pbgB:"#0c0f18",pbd:"rgba(255,255,255,.09)",ptx:"#dfe7f3",itm:"#b6c6dd",itD:"#7d9c8d",cctx:"#b6c6dd",chipBg:"rgba(255,255,255,.06)",hintC:"#5f6b80",hair1:"#34e39a",hair2:"#7c6bff"},rim:"%RIM%{position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;background:conic-gradient(from 0deg,transparent 0 68%,var(--stA) 86%,#fff 93%,transparent 100%);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));filter:drop-shadow(0 0 6px var(--stA));opacity:.95;animation:dshSkinSpin 2.6s linear infinite}",band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
31
+ EX_ORDER.push("01");
32
+ EX["02"]={no:"02",name:"赛博机能",en:"CYBER CIRCUIT",group:"招牌特效",anim:"flashy",vars:{bgA:"#0d1b2e",bgB:"#04080f",edge:"rgba(0,229,255,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#c9e7f5",trk:"rgba(255,255,255,.1)",stI:"#4f7b95",stP:"#00e5ff",stA:"#ff2d95",stD:"#00ff9d",pbgA:"#0a1622",pbgB:"#050b12",pbd:"rgba(0,229,255,.24)",ptx:"#c9e7f5",itm:"#9fc3d8",itD:"#5f9a85",cctx:"#9fc3d8",chipBg:"rgba(0,229,255,.06)",hintC:"#4f7b95",hair1:"#00e5ff",hair2:"#ff2d95"},rim:"%RIM%{position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;border:1px dashed var(--stP);animation:dshSkinSpin 6s linear infinite}",band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(0,229,255,.07) 0 1px,transparent 1px 3px)}"};
33
+ EX_ORDER.push("02");
34
+ EX["03"]={no:"03",name:"等离子核心",en:"PLASMA CORE",group:"招牌特效",anim:"flashy",vars:{bgA:"#2a1210",bgB:"#0d0403",edge:"rgba(255,140,60,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f5e3d5",trk:"rgba(255,255,255,.1)",stI:"#8a5a4a",stP:"#ffa23d",stA:"#ff5c2b",stD:"#ffd23d",pbgA:"#1c0e0a",pbgB:"#0c0504",pbd:"rgba(255,140,60,.22)",ptx:"#f5e3d5",itm:"#c8a795",itD:"#96826e",cctx:"#c8a795",chipBg:"rgba(255,140,60,.07)",hintC:"#8a5a4a",hair1:"#ff9a3d",hair2:"#ff3d81"},rim:"%RIM%{position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;background:conic-gradient(from 40deg,rgba(255,154,61,0),#ff9a3d,#ff3d81,#3d9aff,rgba(61,154,255,0) 82%);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 1px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 1px));filter:blur(2.5px);animation:dshSkinSpin 3s linear infinite}"};
35
+ EX_ORDER.push("03");
36
+ EX["04"]={no:"04",name:"全息幻彩",en:"HOLOGRAPHIC",group:"招牌特效",anim:"flashy",vars:{bgA:"#b8a6f5",bgB:"#6ec6ee",edge:"rgba(255,255,255,.65)",spec:"rgba(255,255,255,.5)",hi:"rgba(255,255,255,.6)",lbc:"#241d4f",trk:"rgba(36,29,79,.2)",stI:"#7c86a8",stP:"#6a5df0",stA:"#e0559f",stD:"#0fae84",pbgA:"#f2f0ff",pbgB:"#e2e8ff",pbd:"rgba(106,93,240,.28)",ptx:"#2a2547",itm:"#4a5470",itD:"#57806c",cctx:"#4a5470",chipBg:"rgba(106,93,240,.08)",hintC:"#7a7fa0",hair1:"#e0559f",hair2:"#6a5df0"},rim:"%RIM%{position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;background:conic-gradient(from 0deg,#ff9ad5,#ffd1a1,#a1ffd1,#9ad5ff,#b89aff,#ff9ad5);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px));mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px));filter:blur(3px);opacity:.8;animation:dshSkinSpin 9s linear infinite}",band:"%BAND%{position:absolute;inset:3px 4px 55% 4px;border-radius:inherit;pointer-events:none;background:linear-gradient(rgba(255,255,255,.7),rgba(255,255,255,.05));filter:blur(.5px)}"};
37
+ EX_ORDER.push("04");
38
+ EX["05"]={no:"05",name:"量子矩阵",en:"QUANTUM MATRIX",group:"招牌特效",anim:"flashy",vars:{bgA:"#0c1f12",bgB:"#020804",edge:"rgba(0,255,136,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#c9f5d9",trk:"rgba(255,255,255,.1)",stI:"#4f8a63",stP:"#27e584",stA:"#a3ff12",stD:"#00ff9d",pbgA:"#05130a",pbgB:"#020a05",pbd:"rgba(0,255,136,.25)",ptx:"#c9f5d9",itm:"#8fc7a5",itD:"#5f9a78",cctx:"#8fc7a5",chipBg:"rgba(0,255,136,.06)",hintC:"#4f8a63",hair1:"#27e584",hair2:"#a3ff12"},rim:"%RIM%{position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;border:1px dashed rgba(0,255,136,.5);animation:dshSkinSpinR 5s linear infinite}",band:"%BAND%{position:absolute;inset:4px;border-radius:inherit;pointer-events:none;background-image:radial-gradient(rgba(0,255,136,.55) 1px,transparent 1.4px);background-size:7px 7px;-webkit-mask:radial-gradient(circle,#000 0 62%,transparent 74%);mask:radial-gradient(circle,#000 0 62%,transparent 74%);opacity:.5}"};
39
+ EX_ORDER.push("05");
40
+ EX["06"]={no:"06",name:"星环",en:"STAR HALO",group:"招牌特效",anim:"flashy",vars:{bgA:"#131a33",bgB:"#05070f",edge:"rgba(186,160,255,.35)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#e2dcff",trk:"rgba(255,255,255,.1)",stI:"#7d86a8",stP:"#8f9fff",stA:"#ffc46e",stD:"#b28bff",pbgA:"#101527",pbgB:"#070a14",pbd:"rgba(150,130,255,.22)",ptx:"#e2dcff",itm:"#a99cd0",itD:"#8678b0",cctx:"#a99cd0",chipBg:"rgba(150,130,255,.07)",hintC:"#7d86a8",hair1:"#8f9fff",hair2:"#b28bff"},rim:"%RIM%{position:absolute;inset:-7px -15px;border-radius:50%;pointer-events:none;border:1.5px solid rgba(186,160,255,.65);transform:rotate(-16deg) scaleY(.42);box-shadow:0 0 10px rgba(150,120,255,.45),inset 0 0 6px rgba(150,120,255,.3)}",band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background-image:radial-gradient(rgba(255,255,255,.8) 1px,transparent 1.3px),radial-gradient(rgba(186,160,255,.7) .8px,transparent 1.1px);background-size:21px 19px,13px 17px;background-position:4px 6px,9px 12px;opacity:.5;-webkit-mask:radial-gradient(circle,#000 0 55%,transparent 72%);mask:radial-gradient(circle,#000 0 55%,transparent 72%)}"};
41
+ EX_ORDER.push("06");
42
+ EX["07"]={no:"07",name:"熔岩核心",en:"MAGMA CORE",group:"招牌特效",anim:"flashy",vars:{bgA:"#1d0f0a",bgB:"#0a0403",edge:"rgba(255,110,40,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f5ded0",trk:"rgba(255,255,255,.1)",stI:"#7d5648",stP:"#ff8a3d",stA:"#ff4d1f",stD:"#ffbe3d",pbgA:"#170d09",pbgB:"#0b0504",pbd:"rgba(255,110,40,.22)",ptx:"#f5ded0",itm:"#c8a48e",itD:"#96826e",cctx:"#c8a48e",chipBg:"rgba(255,110,40,.07)",hintC:"#7d5648",hair1:"#ff6b2b",hair2:"#ffbe3d"},band:"%BAND%{position:absolute;inset:2px;border-radius:inherit;pointer-events:none;background:repeating-conic-gradient(from 12deg,transparent 0 26deg,rgba(255,110,40,.6) 26deg 29deg);-webkit-mask:radial-gradient(circle,transparent 0 46%,#000 60% 78%,transparent 88%);mask:radial-gradient(circle,transparent 0 46%,#000 60% 78%,transparent 88%);opacity:.75}"};
43
+ EX_ORDER.push("07");
44
+ EX["08"]={no:"08",name:"极地冰川",en:"GLACIER",group:"招牌特效",anim:"flashy",vars:{bgA:"#dff0fa",bgB:"#9fc8e8",edge:"rgba(255,255,255,.78)",spec:"rgba(255,255,255,.75)",hi:"rgba(255,255,255,.7)",lbc:"#123247",trk:"rgba(20,60,90,.18)",stI:"#6f8ba5",stP:"#2f9dd8",stA:"#f06a5d",stD:"#0fa878",pbgA:"#eef7fd",pbgB:"#d8ecf8",pbd:"rgba(60,120,170,.3)",ptx:"#14344a",itm:"#3f5f7a",itD:"#4a7a63",cctx:"#3f5f7a",chipBg:"rgba(30,80,120,.07)",hintC:"#5b7d96",hair1:"#2f9dd8",hair2:"#0fa878"},band:"%BAND%{position:absolute;inset:2px;border-radius:inherit;pointer-events:none;background-image:radial-gradient(rgba(255,255,255,.95) 1px,transparent 1.5px);background-size:15px 13px;background-position:3px 4px;opacity:.8;-webkit-mask:radial-gradient(circle,#000 0 58%,transparent 75%);mask:radial-gradient(circle,#000 0 58%,transparent 75%)}"};
45
+ EX_ORDER.push("08");
46
+ EX["09"]={no:"09",name:"霓虹脉搏",en:"NEON PULSE",group:"招牌特效",anim:"flashy",vars:{bgA:"#10101f",bgB:"#05050c",edge:"rgba(255,45,149,.5)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f0d9ec",trk:"rgba(255,255,255,.1)",stI:"#5a5a7d",stP:"#00c8ff",stA:"#ff2d95",stD:"#00ff9d",pbgA:"#0d0d1a",pbgB:"#060609",pbd:"rgba(255,45,149,.3)",ptx:"#f0d9ec",itm:"#b893c9",itD:"#7d9c8d",cctx:"#b893c9",chipBg:"rgba(255,45,149,.07)",hintC:"#8b8bb0",hair1:"#ff2d95",hair2:"#00c8ff"},rim:"%RIM%{position:absolute;inset:-7px;border-radius:inherit;pointer-events:none;border:1px solid rgba(0,200,255,.3)}",extra:"%B%{box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 5px 14px rgba(0,0,0,.5),0 0 12px var(--st),0 0 0 1px var(--st) inset!important}"};
47
+ EX_ORDER.push("09");
48
+ EX["10"]={no:"10",name:"机械核心",en:"MECH CORE",group:"招牌特效",anim:"flashy",vars:{bgA:"#262b33",bgB:"#0e1116",edge:"rgba(255,176,32,.45)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#dde3ec",trk:"rgba(255,255,255,.1)",stI:"#6f7a88",stP:"#58a6ff",stA:"#ffb020",stD:"#3fd68a",pbgA:"#171b22",pbgB:"#0c0f14",pbd:"rgba(255,176,32,.22)",ptx:"#dde3ec",itm:"#9aa5b3",itD:"#7d9c8d",cctx:"#9aa5b3",chipBg:"rgba(255,176,32,.06)",hintC:"#6f7a88",hair1:"#ffb020",hair2:"#58a6ff"},rim:"%RIM%{position:absolute;inset:-4px;border-radius:inherit;pointer-events:none;background:repeating-conic-gradient(from 0deg,rgba(255,176,32,.55) 0 7deg,transparent 7deg 24deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3.5px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3.5px),#000 calc(100% - 2px));animation:dshSkinSpinR 11s linear infinite}",band:"%BAND%{position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 4%,rgba(255,255,255,.7) 1.2px,transparent 1.8px),radial-gradient(circle at 50% 96%,rgba(255,255,255,.7) 1.2px,transparent 1.8px),radial-gradient(circle at 4% 50%,rgba(255,255,255,.7) 1.2px,transparent 1.8px),radial-gradient(circle at 96% 50%,rgba(255,255,255,.7) 1.2px,transparent 1.8px);opacity:.6}"};
49
+ EX_ORDER.push("10");
50
+ EX["11"]={no:"11",name:"暗物质",en:"DARK MATTER",group:"招牌特效",anim:"flashy",vars:{bgA:"#100a1f",bgB:"#030109",edge:"rgba(160,110,255,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#e4d9ff",trk:"rgba(255,255,255,.1)",stI:"#5f5480",stP:"#9d6bff",stA:"#d05cff",stD:"#7af0ff",pbgA:"#120c20",pbgB:"#070310",pbd:"rgba(160,110,255,.25)",ptx:"#e4d9ff",itm:"#a99cc9",itD:"#7d9c8d",cctx:"#a99cc9",chipBg:"rgba(160,110,255,.07)",hintC:"#9082b3",hair1:"#d05cff",hair2:"#7af0ff"},rim:"%RIM%{position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;background:conic-gradient(from 90deg,transparent 0 30%,rgba(208,92,255,.9) 52%,rgba(122,240,255,.7) 68%,transparent 88%);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 1px));mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 1px));filter:blur(1.5px);animation:dshSkinSpin 2.2s linear infinite}",band:"%BAND%{position:absolute;inset:9px;border-radius:inherit;pointer-events:none;background:radial-gradient(circle,#000 0 55%,rgba(122,240,255,.25) 78%,transparent)}"};
51
+ EX_ORDER.push("11");
52
+ EX["12"]={no:"12",name:"粒子星云",en:"PARTICLE NEBULA",group:"招牌特效",anim:"flashy",vars:{bgA:"#1b1440",bgB:"#070516",edge:"rgba(200,140,255,.35)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#e8def5",trk:"rgba(255,255,255,.1)",stI:"#7d72a8",stP:"#7fb0ff",stA:"#ff8ad0",stD:"#8affd0",pbgA:"#150f30",pbgB:"#090617",pbd:"rgba(170,130,255,.22)",ptx:"#e8def5",itm:"#b0a3cc",itD:"#7d9c8d",cctx:"#b0a3cc",chipBg:"rgba(170,130,255,.07)",hintC:"#7d72a8",hair1:"#ff8ad0",hair2:"#7fb0ff"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background-image:radial-gradient(rgba(255,138,208,.9) 1.1px,transparent 1.6px),radial-gradient(rgba(127,176,255,.85) .9px,transparent 1.4px),radial-gradient(rgba(255,255,255,.9) .8px,transparent 1.2px);background-size:19px 17px,14px 21px,23px 13px;background-position:5px 7px,11px 14px,2px 16px;opacity:.75;-webkit-mask:radial-gradient(circle,#000 0 56%,transparent 74%);mask:radial-gradient(circle,#000 0 56%,transparent 74%)}"};
53
+ EX_ORDER.push("12");
54
+ EX["13"]={no:"13",name:"流体渐变",en:"FLUID GRADIENT",group:"招牌特效",anim:"flashy",vars:{bgA:"#7c5cf0",bgB:"#2a1a5e",edge:"rgba(255,255,255,.32)",spec:"rgba(255,255,255,.4)",hi:"rgba(255,255,255,.12)",lbc:"#f2edff",trk:"rgba(255,255,255,.1)",stI:"#8f86b8",stP:"#4dd8ff",stA:"#ff7ab0",stD:"#4dffc0",pbgA:"#151033",pbgB:"#0a0720",pbd:"rgba(180,150,255,.25)",ptx:"#ece4ff",itm:"#b3a6d9",itD:"#7d9c8d",cctx:"#b3a6d9",chipBg:"rgba(180,150,255,.08)",hintC:"#8f86b8",hair1:"#4dd8ff",hair2:"#ff7ab0"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 28% 68%,rgba(255,122,176,.55),transparent 55%),radial-gradient(circle at 74% 26%,rgba(77,216,255,.5),transparent 52%)}"};
55
+ EX_ORDER.push("13");
56
+ EX["14"]={no:"14",name:"黄金时代",en:"GOLDEN AGE",group:"招牌特效",anim:"flashy",vars:{bgA:"#241d0d",bgB:"#0c0904",edge:"rgba(255,215,0,.45)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#ffefc4",trk:"rgba(255,255,255,.1)",stI:"#8a7a4f",stP:"#e6c34d",stA:"#ffb020",stD:"#58d68d",pbgA:"#16120a",pbgB:"#0a0805",pbd:"rgba(255,215,0,.28)",ptx:"#f2e6c8",itm:"#c2b48c",itD:"#7d9c8d",cctx:"#c2b48c",chipBg:"rgba(255,215,0,.06)",hintC:"#8a7a4f",hair1:"#ffd700",hair2:"#e6c34d"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(115deg,transparent 30%,rgba(255,236,170,.75) 47%,rgba(255,255,255,.9) 50%,rgba(255,236,170,.75) 53%,transparent 70%);background-size:260% 100%;background-position:118% 0;-webkit-mask:radial-gradient(circle,#000 0 62%,transparent 78%);mask:radial-gradient(circle,#000 0 62%,transparent 78%)}"};
57
+ EX_ORDER.push("14");
58
+ EX["15"]={no:"15",name:"蒸汽波",en:"VAPORWAVE",group:"招牌特效",anim:"flashy",vars:{bgA:"#2b1140",bgB:"#0d0518",edge:"rgba(255,94,200,.5)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f5dcf0",trk:"rgba(255,255,255,.1)",stI:"#7d5a95",stP:"#22d3ee",stA:"#ff5ec8",stD:"#3dffc8",pbgA:"#170b26",pbgB:"#0b0513",pbd:"rgba(255,94,200,.3)",ptx:"#f5dcf0",itm:"#c39cc9",itD:"#7d9c8d",cctx:"#c39cc9",chipBg:"rgba(255,94,200,.07)",hintC:"#7d5a95",hair1:"#ff5ec8",hair2:"#22d3ee"},band:"%BAND%{position:absolute;inset:2px 3px 52% 3px;border-radius:inherit;pointer-events:none;background:linear-gradient(rgba(255,150,220,.4),rgba(120,240,255,.08));filter:blur(.5px)}",extra:"%B%{box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 5px 14px rgba(0,0,0,.5),-4px -4px 16px rgba(255,94,200,.45),4px 4px 16px rgba(34,211,238,.45)!important}"};
59
+ EX_ORDER.push("15");
60
+ EX["16"]={no:"16",name:"战术HUD",en:"TACTICAL HUD",group:"招牌特效",anim:"flashy",vars:{bgA:"#0f1a12",bgB:"#050b07",edge:"rgba(74,222,128,.45)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#d2f5dc",trk:"rgba(255,255,255,.1)",stI:"#5a7d66",stP:"#4ade80",stA:"#a3e635",stD:"#34e39a",pbgA:"#0c1710",pbgB:"#060d08",pbd:"rgba(74,222,128,.28)",ptx:"#d2f5dc",itm:"#8fb89c",itD:"#5f9a78",cctx:"#8fb89c",chipBg:"rgba(74,222,128,.06)",hintC:"#5a7d66",hair1:"#4ade80",hair2:"#a3e635"},rim:"%RIM%{position:absolute;inset:-5px;border-radius:inherit;pointer-events:none;background:repeating-conic-gradient(from 0deg,rgba(74,222,128,.5) 0 2deg,transparent 2deg 15deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 1px));mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 1px));animation:dshSkinSpin 14s linear infinite}",band:"%BAND%{position:absolute;inset:7px;border-radius:inherit;pointer-events:none;background:linear-gradient(rgba(74,222,128,.55),rgba(74,222,128,.55)) 50% 0/1px 7px no-repeat,linear-gradient(rgba(74,222,128,.55),rgba(74,222,128,.55)) 50% 100%/1px 7px no-repeat,linear-gradient(rgba(74,222,128,.55),rgba(74,222,128,.55)) 0 50%/7px 1px no-repeat,linear-gradient(rgba(74,222,128,.55),rgba(74,222,128,.55)) 100% 50%/7px 1px no-repeat;opacity:.7}"};
61
+ EX_ORDER.push("16");
62
+ EX["17"]={no:"17",name:"方块像素",en:"PIXEL QUEST",group:"招牌特效",anim:"flashy",vars:{bgA:"#3b4268",bgB:"#24283d",edge:"#0f1120",spec:"rgba(255,255,255,.22)",hi:"rgba(255,255,255,.1)",lbc:"#dfe4ff",trk:"rgba(16,18,31,.8)",stI:"#8a90b8",stP:"#41a6f6",stA:"#ffcd75",stD:"#38b764",pbgA:"#2a2f4a",pbgB:"#1a1d33",pbd:"rgba(15,17,32,.9)",ptx:"#dfe4ff",itm:"#9aa3cc",itD:"#7d9c8d",cctx:"#9aa3cc",chipBg:"rgba(255,255,255,.06)",hintC:"#9aa3c2",hair1:"#ffcd75",hair2:"#41a6f6"},extra:"%B%{border-radius:10px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),5px 5px 0 rgba(0,0,0,.55),0 0 0 1px var(--edge)!important;font-family:Consolas,monospace!important}"};
63
+ EX_ORDER.push("17");
64
+ EX["18"]={no:"18",name:"磁悬浮轨道",en:"MAGLEV ORBIT",group:"招牌特效",anim:"flashy",vars:{bgA:"#141a24",bgB:"#070a10",edge:"rgba(90,209,230,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#d8ecf2",trk:"rgba(255,255,255,.1)",stI:"#5f7a88",stP:"#5ad1e6",stA:"#ffb454",stD:"#34e39a",pbgA:"#121822",pbgB:"#080c12",pbd:"rgba(90,209,230,.25)",ptx:"#d8ecf2",itm:"#96b5c2",itD:"#7d9c8d",cctx:"#96b5c2",chipBg:"rgba(90,209,230,.06)",hintC:"#5f7a88",hair1:"#5ad1e6",hair2:"#34e39a"},rim:"%RIM%{position:absolute;inset:-7px -15px;border-radius:50%;pointer-events:none;border:1.3px solid rgba(90,209,230,.7);transform:rotateX(66deg) rotate(-18deg);box-shadow:0 0 9px rgba(90,209,230,.4)}",band:"%BAND%{position:absolute;inset:-7px -15px;border-radius:50%;pointer-events:none;border:1.3px solid rgba(52,227,154,.55);transform:rotateX(66deg) rotate(52deg);box-shadow:0 0 9px rgba(52,227,154,.35)}"};
65
+ EX_ORDER.push("18");
66
+ EX["19"]={no:"19",name:"太阳风暴",en:"SOLAR FLARE",group:"招牌特效",anim:"flashy",vars:{bgA:"#2a1a08",bgB:"#0f0803",edge:"rgba(255,220,120,.5)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f8ecd2",trk:"rgba(255,255,255,.1)",stI:"#9a835a",stP:"#ffd23d",stA:"#ff9a1f",stD:"#ffe98a",pbgA:"#1c1206",pbgB:"#0d0803",pbd:"rgba(255,210,110,.28)",ptx:"#f8ecd2",itm:"#c9b491",itD:"#9a8a68",cctx:"#c9b491",chipBg:"rgba(255,210,110,.07)",hintC:"#9a835a",hair1:"#ffd23d",hair2:"#ff9a1f"},rim:"%RIM%{position:absolute;inset:-8px;border-radius:inherit;pointer-events:none;background:repeating-conic-gradient(from 0deg,rgba(255,220,120,.4) 0 4deg,transparent 4deg 16deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 3px),#000 calc(100% - 1px),transparent 100%);mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 3px),#000 calc(100% - 1px),transparent 100%);filter:blur(.6px);animation:dshSkinSpin 16s linear infinite}",band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 62%,rgba(255,240,180,.5) 0%,transparent 52%)}"};
67
+ EX_ORDER.push("19");
68
+ EX["20"]={no:"20",name:"深海荧光",en:"ABYSS BIOLUM",group:"招牌特效",anim:"flashy",vars:{bgA:"#06222a",bgB:"#02090c",edge:"rgba(45,212,191,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#d2f2ee",trk:"rgba(255,255,255,.1)",stI:"#4f7d7a",stP:"#2dd4bf",stA:"#b26bff",stD:"#5dffb0",pbgA:"#062026",pbgB:"#030c10",pbd:"rgba(45,212,191,.25)",ptx:"#d2f2ee",itm:"#8fc0ba",itD:"#5f9a85",cctx:"#8fc0ba",chipBg:"rgba(45,212,191,.06)",hintC:"#4f7d7a",hair1:"#2dd4bf",hair2:"#5dffb0"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background-image:radial-gradient(rgba(93,255,214,.95) 1.2px,transparent 1.7px),radial-gradient(rgba(178,107,255,.85) 1px,transparent 1.5px),radial-gradient(rgba(93,220,255,.8) .9px,transparent 1.4px);background-size:17px 19px,13px 15px,21px 12px;background-position:4px 8px,10px 3px,15px 14px;opacity:.8;-webkit-mask:radial-gradient(circle,#000 0 54%,transparent 74%);mask:radial-gradient(circle,#000 0 54%,transparent 74%)}"};
69
+ EX_ORDER.push("20");
70
+ EX["21"]={no:"21",name:"墨玉",en:"INK JADE",group:"克制精选",anim:"calm",vars:{bgA:"#22302e",bgB:"#0b1211",edge:"rgba(190,225,215,.2)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#dcf2ec",trk:"rgba(190,225,215,.14)",stI:"#5f7a74",stP:"#79a49a",stA:"#4fe0c0",stD:"#2a9d84",pbgA:"#141f1d",pbgB:"#0a100f",pbd:"rgba(190,225,215,.14)",ptx:"#d9ece7",itm:"#9db3ad",itD:"#6f938a",cctx:"#9db3ad",chipBg:"rgba(190,225,215,.07)",hintC:"#5f7a74",hair1:"#4fe0c0",hair2:"#2a9d84"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
71
+ EX_ORDER.push("21");
72
+ EX["22"]={no:"22",name:"石墨极简",en:"GRAPHITE MONO",group:"克制精选",anim:"calm",vars:{bgA:"#262b33",bgB:"#101319",edge:"rgba(255,255,255,.14)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#eef1f6",trk:"rgba(255,255,255,.1)",stI:"#6b7480",stP:"#9aa2ad",stA:"#e8edf2",stD:"#ffffff",pbgA:"#181c23",pbgB:"#0d1015",pbd:"rgba(255,255,255,.09)",ptx:"#e2e7ee",itm:"#9aa4b0",itD:"#7d8792",cctx:"#9aa4b0",chipBg:"rgba(255,255,255,.05)",hintC:"#67707f",hair1:"#e8edf2",hair2:"#6b7480"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
73
+ EX_ORDER.push("22");
74
+ EX["23"]={no:"23",name:"暮蓝",en:"DUSK BLUE",group:"克制精选",anim:"calm",vars:{bgA:"#1e2836",bgB:"#0b0f18",edge:"rgba(170,195,230,.2)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#dce6f4",trk:"rgba(170,195,230,.13)",stI:"#5d6b80",stP:"#8299b8",stA:"#9fc6f2",stD:"#5f86be",pbgA:"#141b26",pbgB:"#0a0e16",pbd:"rgba(170,195,230,.13)",ptx:"#d8e2f0",itm:"#9cafcc",itD:"#7288a6",cctx:"#9cafcc",chipBg:"rgba(170,195,230,.06)",hintC:"#5d6b80",hair1:"#9fc6f2",hair2:"#5f86be"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
75
+ EX_ORDER.push("23");
76
+ EX["24"]={no:"24",name:"可可",en:"COCOA",group:"克制精选",anim:"calm",vars:{bgA:"#2b2019",bgB:"#120c08",edge:"rgba(224,190,150,.2)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f2e6d8",trk:"rgba(224,190,150,.13)",stI:"#7d6a5c",stP:"#ab8d70",stA:"#e0aa6e",stD:"#a87848",pbgA:"#1c1410",pbgB:"#0f0a07",pbd:"rgba(224,190,150,.13)",ptx:"#efe2d2",itm:"#bda892",itD:"#96826e",cctx:"#bda892",chipBg:"rgba(224,190,150,.06)",hintC:"#7d6a5c",hair1:"#e0aa6e",hair2:"#a87848"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
77
+ EX_ORDER.push("24");
78
+ EX["25"]={no:"25",name:"雾灰哑光",en:"MATTE MIST",group:"克制精选",anim:"calm",vars:{bgA:"#2a2f36",bgB:"#161a20",edge:"rgba(200,210,222,.18)",spec:"rgba(255,255,255,.07)",hi:"rgba(255,255,255,.06)",lbc:"#e5eaf0",trk:"rgba(200,210,222,.12)",stI:"#67707c",stP:"#8b98a8",stA:"#bcc8d6",stD:"#8b9db2",pbgA:"#181c22",pbgB:"#0e1116",pbd:"rgba(200,210,222,.12)",ptx:"#dfe4ea",itm:"#9aa5b1",itD:"#7c8894",cctx:"#9aa5b1",chipBg:"rgba(200,210,222,.06)",hintC:"#67707c",hair1:"#bcc8d6",hair2:"#67707c"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.09}"};
79
+ EX_ORDER.push("25");
80
+ EX["26"]={no:"26",name:"苔原",en:"MOSS TUNDRA",group:"克制精选",anim:"calm",vars:{bgA:"#1c2a20",bgB:"#0a120c",edge:"rgba(180,215,185,.2)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#ddeddd",trk:"rgba(180,215,185,.13)",stI:"#5d7a64",stP:"#86ad8c",stA:"#a4dca0",stD:"#4f9d68",pbgA:"#131f16",pbgB:"#0a110c",pbd:"rgba(180,215,185,.13)",ptx:"#dae9da",itm:"#9db8a0",itD:"#75967c",cctx:"#9db8a0",chipBg:"rgba(180,215,185,.06)",hintC:"#5d7a64",hair1:"#a4dca0",hair2:"#4f9d68"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
81
+ EX_ORDER.push("26");
82
+ EX["27"]={no:"27",name:"烟紫",en:"DUSTY PLUM",group:"克制精选",anim:"calm",vars:{bgA:"#26202b",bgB:"#100b14",edge:"rgba(210,190,230,.2)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#ebe2f4",trk:"rgba(210,190,230,.13)",stI:"#776b82",stP:"#9d8bb0",stA:"#c9aee6",stD:"#8a6cae",pbgA:"#171221",pbgB:"#0c0812",pbd:"rgba(210,190,230,.13)",ptx:"#e6ddf0",itm:"#a99bb8",itD:"#877799",cctx:"#a99bb8",chipBg:"rgba(210,190,230,.06)",hintC:"#776b82",hair1:"#c9aee6",hair2:"#8a6cae"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
83
+ EX_ORDER.push("27");
84
+ EX["28"]={no:"28",name:"月白纸墨",en:"PAPER & INK",group:"克制精选",anim:"calm",vars:{bgA:"#f7f5ef",bgB:"#dcd8cd",edge:"rgba(60,55,45,.28)",spec:"rgba(255,255,255,.85)",hi:"rgba(255,255,255,.7)",lbc:"#2c2a24",trk:"rgba(60,55,45,.14)",stI:"#a09c92",stP:"#6e6a60",stA:"#33302a",stD:"#55524a",pbgA:"#faf9f5",pbgB:"#edeae1",pbd:"rgba(60,55,45,.16)",ptx:"#33302a",itm:"#6e6a60",itD:"#8b877d",cctx:"#6e6a60",chipBg:"rgba(60,55,45,.05)",hintC:"#8b877d",hair1:"#33302a",hair2:"#a09c92"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
85
+ EX_ORDER.push("28");
86
+ var KIND_LABEL={deep:"浓郁深底",muted:"尘埃灰调",soft:"柔光深底",neutral:"中性点缀",light:"浅色纸面"};
87
+ var TINT="%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}";
88
+ var ALL=[],BY_ID={};
89
+ (function build(){
90
+ EX_ORDER.forEach(function(id){var s=EX[id];s.id=id;s.kind="special";ALL.push(s);BY_ID[id]=s;});
91
+ var order=["deep","muted","soft","neutral","light"],no=28;
92
+ order.forEach(function(kind){
93
+ FORMULA[kind].forEach(function(row){
94
+ no++;var id=(no<100?"0":"")+String(no);
95
+ var s={id:id,no:id,name:row[0],en:row[1],kind:kind,group:KIND_LABEL[kind],anim:"calm",vars:varsFor(kind,row[2])};
96
+ if(!s.band)s.band=TINT;
97
+ ALL.push(s);BY_ID[id]=s;
98
+ });
99
+ });
100
+ })();
101
+ var KEY="dsh-ball-skin",DEFAULT_ID="01";
102
+ function getId(){try{var v=localStorage.getItem(KEY);if(v&&BY_ID[v])return v;}catch(e){}return DEFAULT_ID;}
103
+ function setSkin(id){
104
+ if(!BY_ID[id])return false;
105
+ try{localStorage.setItem(KEY,id);}catch(e){}
106
+ var hooks=window.__dshBallSkinHooks||[];
107
+ for(var i=0;i<hooks.length;i++){try{hooks[i](id,BY_ID[id]);}catch(e){}}
108
+ try{window.dispatchEvent(new CustomEvent("dsh-ball-skin-change",{detail:{id:id}}));}catch(e){}
109
+ return true;
110
+ }
111
+ function varsCss(sel,id){var s=BY_ID[id]||BY_ID[DEFAULT_ID];var out=sel+"{";
112
+ for(var k in s.vars){out+="--"+k+":"+s.vars[k]+";";}
113
+ return out+"}";}
114
+ function varsAll(sel){return varsCss(sel,getId());}
115
+ function fx(id,sel){var s=BY_ID[id]||BY_ID[DEFAULT_ID];var out=[];
116
+ if(s.rim)out.push(s.rim.split("%RIM%").join(sel.RIM));
117
+ if(s.band)out.push(s.band.split("%BAND%").join(sel.BAND));
118
+ if(s.extra)out.push(s.extra.split("%B%").join(sel.B));
119
+ return out.join("\n");}
120
+ function groups(){var g=[],seen={};ALL.forEach(function(s){if(!seen[s.group]){seen[s.group]=true;g.push(s.group);}});return g;}
121
+ window.__DSH_BALL_SKINS={ALL:ALL,BY_ID:BY_ID,getId:getId,setSkin:setSkin,varsCss:varsCss,varsAll:varsAll,fx:fx,groups:groups,KIND_LABEL:KIND_LABEL,KEY:KEY,DEFAULT_ID:DEFAULT_ID};
122
+ })();
6
123
 
7
124
  // ============================================================
8
- // dsh-todo-float-ball — client half (browser). v0.9.1
125
+ // dsh-todo-float-ball — client half (browser). v0.11.1
9
126
  //
10
127
  // A persistent, draggable floating ball that mirrors todo_write lists.
11
128
  //
@@ -646,6 +763,8 @@ window.__ModuleLoader__.load({
646
763
  // settings section (dsh-skill-browser provides the button).
647
764
  var THEME_KEY = "dsh-tfb-theme";
648
765
  var currentTheme = DEFAULTS.theme;
766
+ var currentSkinId = null; // active unified skin (see skin system below)
767
+ var legacyPicked = false; // user explicitly chose a classic skin
649
768
  // single source of truth for "is this a known skin?"
650
769
  function isTheme(t) {
651
770
  return t === "nebula" || t === "graphite" || t === "blue" || t === "glass" || t === "nebB" || t === "nebC";
@@ -654,6 +773,12 @@ window.__ModuleLoader__.load({
654
773
  // stored value wins; absent => seeded default; unknown => default
655
774
  var v = getCfg(THEME_KEY, DEFAULTS.theme);
656
775
  currentTheme = isTheme(v) ? v : DEFAULTS.theme;
776
+ try {
777
+ var raw = readSharedKey();
778
+ if (raw && SK && SK.BY_ID[raw]) currentSkinId = raw;
779
+ else if (!raw && SK) currentSkinId = SK.DEFAULT_ID;
780
+ else if (raw === "legacy") currentSkinId = null;
781
+ } catch (e) {}
657
782
  }
658
783
  function setTheme(t) {
659
784
  if (t !== "nebula" && t !== "graphite" && t !== "blue" && t !== "glass" && t !== "nebB" && t !== "nebC") return;
@@ -662,7 +787,133 @@ window.__ModuleLoader__.load({
662
787
  render();
663
788
  }
664
789
 
790
+ // ---------- unified 128-skin system (shared with skill/font balls) ----------
791
+ // Catalog: window.__DSH_BALL_SKINS (proposal ids 01-128, matches the
792
+ // approved design sheets). Legacy 6 skins stay selectable as 经典.
793
+ var SK = window.__DSH_BALL_SKINS || null;
794
+ var SHARED_KEY = SK ? SK.KEY : "dsh-ball-skin";
795
+ function readSharedKey() { try { return localStorage.getItem(SHARED_KEY); } catch (e) { return null; } }
796
+ function skinCssText() {
797
+ var s = (SK && currentSkinId && SK.BY_ID[currentSkinId]) ? SK.BY_ID[currentSkinId] : null;
798
+ if (!s) return legacyCssText();
799
+ var V = [];
800
+ for (var k in s.vars) V.push("--" + k + ":" + s.vars[k]);
801
+ V.push("--pline:var(--hair2,rgba(255,255,255,.2))");
802
+ var ball = [
803
+ ":host{all:initial}",
804
+ ".tfb-root{position:static;pointer-events:none;font-family:'Segoe UI','Microsoft YaHei',system-ui,sans-serif;" + V.join(";") + "}",
805
+ ".tfb-ball:hover{transform:scale(1.08)}",
806
+ ".tfb-ball:active{cursor:grabbing;transform:scale(.95)}",
807
+ ".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid var(--edge,rgba(255,255,255,.14));cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:var(--lbc,#eef1f6);font-size:13px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums;width:46px;height:46px;background:radial-gradient(circle at 32% 24%,var(--spec,rgba(255,255,255,.16)) 0%,rgba(255,255,255,.03) 28%,rgba(255,255,255,0) 46%),linear-gradient(158deg,var(--bgA,#262b33),var(--bgB,#101319));box-shadow:inset 0 1px 0 var(--hi,rgba(255,255,255,.12)),0 5px 14px rgba(0,0,0,.42);transition:transform .15s ease}",
808
+ ".tfb-ball.tfb-idle{--st:var(--stI,#8fa0b8)}",
809
+ ".tfb-ball.tfb-pending{--st:var(--stP,#6fb6ff)}",
810
+ ".tfb-ball.tfb-active{--st:var(--stA,#ffb454)}",
811
+ ".tfb-ball.tfb-done{--st:var(--stD,#34e39a)}",
812
+ ".tfb-ball .tfb-label{position:relative;z-index:2;text-shadow:0 0 6px var(--st,transparent)}",
813
+ ".tfb-ball .tfb-ring{position:absolute;inset:-1px;border-radius:50%;pointer-events:none;background:conic-gradient(var(--st,transparent) calc(var(--pct,0)*1%),var(--trk,rgba(255,255,255,.1)) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px));mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px));transition:background .4s ease}",
814
+ ".tfb-ball.tfb-idle .tfb-ring{opacity:.55}",
815
+ ".tfb-ball .tfb-orb-band{position:absolute;inset:0;border-radius:inherit;pointer-events:none}",
816
+ ".tfb-ball.tfb-active .tfb-orb-rim{animation-duration:2.6s}"
817
+ ];
818
+ if (s.anim === "flashy") {
819
+ ball.push(".tfb-ball.tfb-active{animation:tfb-pulse 1.8s ease-in-out infinite}");
820
+ }
821
+ var fxc = SK.fx(currentSkinId, { B: ".tfb-ball", BAND: ".tfb-ball .tfb-orb-band", RIM: ".tfb-ball .tfb-orb-rim" });
822
+ if (fxc) ball.push(fxc);
823
+ if (!s.rim) ball.push(".tfb-ball .tfb-orb-rim{display:none}");
824
+ if (!s.band) ball.push(".tfb-ball .tfb-orb-band{display:none}");
825
+ ball.push(".tfb-ball.tfb-capsule .tfb-orb-band{border-radius:22px}");
826
+ ball.push(
827
+ // ---- panel (var-driven, fallbacks = classic look) ----
828
+ '@keyframes dshSkinSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',
829
+ '@keyframes dshSkinSpinR{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}',
830
+ '@keyframes tfb-pulse{0%,100%{box-shadow:inset 0 1px 0 var(--hi,rgba(255,255,255,.12)),0 5px 14px rgba(0,0,0,.42),0 0 14px var(--st,rgba(255,170,51,.45)),0 0 0 0 var(--st,rgba(255,170,51,.5))}50%{box-shadow:inset 0 1px 0 var(--hi,rgba(255,255,255,.12)),0 5px 14px rgba(0,0,0,.42),0 0 22px var(--st,rgba(255,170,51,.55)),0 0 0 9px rgba(255,170,51,0)}}',
831
+ ".tfb-panel{position:fixed;z-index:2147483600;width:300px;max-width:calc(100vw - 24px);max-height:74vh;overflow-y:auto;overflow-x:hidden;pointer-events:auto;display:none;color:var(--ptx,#e6e6e6);font-size:13px;line-height:1.5;border-radius:14px;padding:12px 14px 10px;background:linear-gradient(180deg,var(--pbgA,rgba(16,18,22,.94)),var(--pbgB,rgba(12,15,24,.96)));border:1px solid var(--pbd,rgba(255,255,255,.08));box-shadow:0 20px 60px rgba(0,0,0,.7),inset 0 1px 0 var(--hi,rgba(255,255,255,.06));backdrop-filter:blur(24px)}",
832
+ ".tfb-panel::before{content:'';position:absolute;top:0;left:16px;right:16px;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,var(--hair1,#3ec6ff),var(--hair2,#7c6bff),transparent);opacity:.75}",
833
+ ".tfb-panel.tfb-open{display:block}",
834
+ ".tfb-panel.tfb-open.tfb-hz{display:flex;flex-wrap:wrap;align-items:flex-start;width:auto;min-width:540px;max-width:min(92vw,800px)}",
835
+ ".tfb-panel.tfb-hz .tfb-head{flex:0 0 100%;width:100%}",
836
+ ".tfb-colcap{display:none;font-size:11px;font-weight:600;color:var(--stA,#8fd3c0);padding:2px 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",
837
+ ".tfb-panel.tfb-hz .tfb-colcap{display:block}",
838
+ ".tfb-panel.tfb-hz .tfb-col-cur{flex:1 1 45%;min-width:250px;max-width:none;box-sizing:border-box;padding-right:10px;border-right:1px solid var(--pbd,rgba(255,255,255,.1))}",
839
+ ".tfb-panel.tfb-hz .tfb-col-pin{flex:1 1 50%;min-width:260px;box-sizing:border-box;padding-left:10px}",
840
+ ".tfb-head{display:flex;align-items:center;gap:6px;margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid var(--pline,rgba(45,212,168,.25))}",
841
+ ".tfb-title{font-weight:700;font-size:13px;white-space:nowrap}",
842
+ ".tfb-ctitle{flex:1;min-width:0;font-size:11px;color:var(--itm,#9aa3b2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:text}",
843
+ ".tfb-summary{font-size:11px;color:var(--itm,#9aa3b2);white-space:nowrap}",
844
+ ".tfb-btn{border:0;background:transparent;color:var(--cctx,#9aa3b2);font-size:13px;cursor:pointer;padding:2px 5px;border-radius:6px;flex-shrink:0}",
845
+ ".tfb-btn:hover{color:var(--ptx,#e6e6e6);background:var(--chipBg,rgba(255,255,255,.06))}",
846
+ ".tfb-btn.tfb-on{color:var(--stA,#ffd27a)}",
847
+ ".tfb-list{list-style:none;margin:0;padding:0}",
848
+ ".tfb-item{display:flex;align-items:flex-start;gap:8px;padding:5px 4px;border-radius:8px;word-break:break-word}",
849
+ ".tfb-item:nth-child(odd){background:var(--chipBg,rgba(255,255,255,.03))}",
850
+ ".tfb-ico{flex-shrink:0;width:16px;height:16px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10px;margin-top:1px}",
851
+ ".tfb-item[data-status='completed'] .tfb-ico{background:var(--chipBg,rgba(74,222,128,.18));color:var(--stD,#5dffa8);border:1px solid var(--stD,#5dffa8)}",
852
+ ".tfb-item[data-status='in_progress'] .tfb-ico{background:var(--chipBg,rgba(255,170,51,.2));color:var(--stA,#ffaa33);border:1px solid var(--stA,#ffaa33)}",
853
+ ".tfb-item[data-status='pending'] .tfb-ico{background:transparent;color:var(--stP,#7fc4ff);border:1px dashed var(--stP,#7fc4ff)}",
854
+ ".tfb-item[data-status='in_progress']{background:var(--chipBg,rgba(255,170,51,.06));box-shadow:inset 2px 0 0 var(--stA,#ffaa33)}",
855
+ ".tfb-item[data-status='in_progress'] .tfb-txt{color:var(--stA,#ffcf8a);font-weight:600}",
856
+ ".tfb-item[data-status='completed'] .tfb-txt{color:var(--itD,#7fae94);text-decoration:line-through}",
857
+ ".tfb-item[data-status='pending'] .tfb-txt{color:var(--itm,#aebfd4)}",
858
+ ".tfb-txt{flex:1}",
859
+ ".tfb-x{flex-shrink:0;border:0;background:transparent;color:var(--hintC,#6b7280);font-size:11px;line-height:1;cursor:pointer;padding:2px 4px;border-radius:5px;opacity:0;transition:opacity .12s ease}",
860
+ ".tfb-item:hover .tfb-x,.tfb-x:focus{opacity:1}",
861
+ ".tfb-x:hover{color:#ff8a8a;background:rgba(255,120,120,.12)}",
862
+ ".tfb-empty{color:var(--itm,#8b93a1);font-size:12px;text-align:center;padding:12px 0}",
863
+ ".tfb-histoggle{list-style:none;display:flex;align-items:center;justify-content:center;gap:4px;margin:6px 0 2px;padding:5px 4px;border-radius:8px;color:var(--itm,#9aa3b2);font-size:11px;cursor:pointer;background:var(--chipBg,rgba(255,255,255,.03))}",
864
+ ".tfb-histoggle:hover{color:var(--ptx,#e6e6e6);background:var(--chipBg,rgba(255,255,255,.06))}",
865
+ ".tfb-sep{margin:10px 0 6px;padding-top:8px;border-top:1px solid var(--pbd,rgba(255,255,255,.07));display:flex;align-items:center;justify-content:space-between}",
866
+ ".tfb-sep-label{font-size:11px;color:var(--itm,#9aa3b2);font-weight:600}",
867
+ ".tfb-pinrow{display:flex;align-items:center;gap:6px;padding:6px 4px;border-radius:8px;cursor:pointer}",
868
+ ".tfb-pinrow:hover{background:var(--chipBg,rgba(255,255,255,.05))}",
869
+ ".tfb-pinname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}",
870
+ ".tfb-pincount{font-size:11px;color:var(--itm,#9aa3b2);white-space:nowrap}",
871
+ ".tfb-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}",
872
+ ".tfb-dot-active{background:var(--stA,#fbbf24);box-shadow:0 0 6px var(--stA,rgba(251,191,36,.8));animation:tfb-dotpulse 1.4s ease-in-out infinite}",
873
+ ".tfb-dot-done{background:var(--stD,#4ade80)}",
874
+ ".tfb-dot-none{background:var(--hintC,#6b7280)}",
875
+ "@keyframes tfb-dotpulse{0%,100%{opacity:1}50%{opacity:.4}}",
876
+ ".tfb-pinlist{list-style:none;margin:2px 0 4px;padding:0 0 0 10px;border-left:2px solid var(--pbd,rgba(255,255,255,.08))}",
877
+ ".tfb-hint{font-size:10px;color:var(--hintC,#6b7280);padding:6px 0 0;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}",
878
+ ".tfb-theme-menu{display:none;margin:-2px 0 8px;padding:6px;border:1px solid var(--pline,rgba(45,212,168,.25));border-radius:10px;background:var(--pbgB,rgba(12,16,20,.96));max-height:46vh;overflow-y:auto}",
879
+ ".tfb-theme-menu.tfb-open{display:block}",
880
+ ".tfb-theme-cap{font-size:10px;color:var(--hintC,#6b7280);padding:6px 8px 2px;font-weight:700;letter-spacing:1px}",
881
+ ".tfb-theme-row{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:8px;cursor:pointer;font-size:12px;color:var(--ptx,#cdd6e2)}",
882
+ ".tfb-theme-row:hover{background:var(--chipBg,rgba(255,255,255,.06))}",
883
+ ".tfb-theme-row.tfb-cur{color:var(--stA,#ffd27a);font-weight:600}",
884
+ ".tfb-theme-row .tfb-theme-check{flex-shrink:0;width:14px;text-align:center}",
885
+ ".tfb-theme-row .tfb-swdot{display:inline-block;width:10px;height:10px;border-radius:50%;flex-shrink:0;border:1px solid var(--pbd,rgba(255,255,255,.2))}",
886
+ ".tfb-theme-row .tfb-theme-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",
887
+ ".tfb-rename{flex:1;min-width:0;padding:3px 8px;border-radius:6px;border:1px solid var(--stA,rgba(255,210,122,.5));background:rgba(0,0,0,.4);color:var(--stA,#ffd27a);font:inherit;font-size:12px;outline:none}",
888
+ ".tfb-rename:focus{border-color:var(--stA,#ffd27a)}",
889
+ ".tfb-ctitle[contenteditable='true']{outline:none;border-bottom:1px dashed var(--stA,#ffd27a);color:var(--stA,#ffd27a);cursor:text}",
890
+ // capsule mode (right-click toggle)
891
+ ".tfb-ball.tfb-capsule{width:auto;min-width:220px;max-width:min(520px,60vw);height:44px;border-radius:22px;flex-direction:row;gap:8px;padding:0 16px;font-size:12px;justify-content:flex-start}",
892
+ ".tfb-ball.tfb-capsule .tfb-orb-band{inset:0}",
893
+ ".tfb-ball.tfb-capsule .tfb-orb-rim{display:none}",
894
+ ".tfb-ball.tfb-capsule .tfb-ring{display:none}",
895
+ ".tfb-ball.tfb-capsule .tfb-label{flex-shrink:0}",
896
+ ".tfb-ball.tfb-capsule .tfb-sub{flex:1;min-width:0;max-width:none;font-size:12px;text-align:left;overflow:hidden;white-space:nowrap}",
897
+ ".tfb-ball.tfb-capsule .tfb-capsule-text{display:inline-block;white-space:nowrap}",
898
+ ".tfb-ball.tfb-capsule .tfb-capsule-text.tfb-marquee{animation:tfbMarquee 9s ease-in-out infinite alternate}",
899
+ "@keyframes tfbMarquee{from{transform:translateX(0)}to{transform:translateX(var(--shift,-40px))}}",
900
+ // ---- unified typography (three-ball spec) ----
901
+ ".tfb-root,.tfb-panel{font-family:'Segoe UI','Microsoft YaHei','PingFang SC',system-ui,sans-serif}",
902
+ ".tfb-panel{font-size:13px;line-height:1.55;font-variant-numeric:tabular-nums}",
903
+ ".tfb-title{font-size:13px}",
904
+ ".tfb-ctitle,.tfb-summary,.tfb-sep-label,.tfb-pincount,.tfb-colcap{font-size:11.5px}",
905
+ ".tfb-btn{font-size:12.5px}",
906
+ ".tfb-txt{font-size:12.5px}",
907
+ ".tfb-theme-row,.tfb-pinname,.tfb-empty,.tfb-histoggle{font-size:12px}",
908
+ ".tfb-theme-cap,.tfb-hint{font-size:10.5px}"
909
+ );
910
+ return ball.join("\n");
911
+ }
665
912
  function cssText() {
913
+ return (SK && currentSkinId && SK.BY_ID[currentSkinId]) ? skinCssText() : legacyCssText();
914
+ }
915
+
916
+ function legacyCssText() {
666
917
  var th = currentTheme;
667
918
  // Skeleton fields that all four skins share; shape differs per skin.
668
919
  var SIZE = "width:46px;height:46px;";
@@ -783,7 +1034,6 @@ window.__ModuleLoader__.load({
783
1034
  ".tfb-panel.tfb-hz .tfb-colcap{display:block}",
784
1035
  ".tfb-panel.tfb-hz .tfb-col-cur{flex:1 1 45%;min-width:250px;max-width:none;box-sizing:border-box;padding-right:10px;border-right:1px solid rgba(255,255,255,.10)}",
785
1036
  ".tfb-panel.tfb-hz .tfb-col-pin{flex:1 1 50%;min-width:260px;box-sizing:border-box;padding-left:10px}",
786
- "",
787
1037
  ".tfb-head{display:flex;align-items:center;gap:6px;margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid rgba(45,212,168,.25)}",
788
1038
  ".tfb-title{font-weight:700;font-size:13px;white-space:nowrap}",
789
1039
  ".tfb-ctitle{flex:1;min-width:0;font-size:11px;color:#9aa3b2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:text}",
@@ -959,98 +1209,54 @@ window.__ModuleLoader__.load({
959
1209
  }
960
1210
 
961
1211
  function renderList() {
962
-
963
1212
  if (!ui.list) return;
964
-
965
1213
  // Plan-A4: header summary reports the CURRENT SNAPSHOT only (history
966
-
967
1214
  // folds are an archive and stay out of every counter).
968
-
969
1215
  var c = snapshotList().length ? countsOf(snapshotList()) : { done: 0, active: 0, total: 0 };
970
-
971
1216
  if (ui.ctitle) {
972
-
973
1217
  // while the rename editor is live, don't rebuild the title cell
974
-
975
1218
  if (editing.sid === normSid(currentSid)) { /* keep editor */ }
976
-
977
1219
  else {
978
-
979
- ui.ctitle.textContent = currentSid ? sessionTitle(currentSid) : ""; if (ui.capCur) ui.capCur.textContent = "▸ " + (ui.ctitle.textContent || "当前对话");
980
-
1220
+ ui.ctitle.textContent = currentSid ? sessionTitle(currentSid) : "";
1221
+ if (ui.capCur) ui.capCur.textContent = "▸ " + (ui.ctitle.textContent || "当前对话");
981
1222
  ui.ctitle.title = currentSid ? "点击重命名此对话" : "";
982
-
983
1223
  }
984
-
985
1224
  }
986
-
987
1225
  if (ui.summary) {
988
-
989
1226
  var parts = [];
990
-
991
1227
  if (c.done > 0) parts.push(c.done + " 完成");
992
-
993
1228
  if (c.active > 0) parts.push(c.active + " 进行中");
994
-
995
1229
  var pend = c.total - c.done - c.active;
996
-
997
1230
  if (pend > 0) parts.push(pend + " 待办");
998
-
999
1231
  ui.summary.textContent = parts.join(" · ");
1000
-
1001
1232
  }
1002
-
1003
1233
  if (ui.pinBtn) {
1004
-
1005
1234
  var on = currentSid && isPinned(currentSid);
1006
-
1007
1235
  ui.pinBtn.classList.toggle("tfb-on", !!on);
1008
-
1009
1236
  ui.pinBtn.title = on ? "取消固定当前会话" : "固定当前会话(切换对话后仍监控)";
1010
-
1011
1237
  ui.pinBtn.textContent = on ? "📍" : "📌";
1012
-
1013
1238
  }
1014
-
1015
1239
  var list = currentList();
1016
-
1017
1240
  if (!list.length) {
1018
-
1019
1241
  ui.list.innerHTML = '<li class="tfb-empty">当前会话暂无任务清单<br><span style="font-size:10px">AI 使用 todo_write 后自动显示;📌 可固定会话</span></li>';
1020
-
1021
1242
  } else {
1022
-
1023
1243
  // Plan-A9: the whole body (snapshot rows + the two history folds +
1024
1244
  // batch-clear + restore) comes from the ONE shared renderer, scoped
1025
1245
  // to the current session; renderPinned() reuses it per pinned sid.
1026
1246
  var html = historySectionHtml(currentSid, sessionTodos(currentSid));
1027
-
1028
1247
  ui.list.innerHTML = html;
1029
-
1030
1248
  // Plan-A4: counts from the CURRENT SNAPSHOT only. (User request
1031
-
1032
1249
  // 2026-09-13: the dsh-client-auto-continue recommendation line is
1033
-
1034
1250
  // removed — no third-party plugin advertising in this UI.)
1035
-
1036
1251
  var cc = countsOf(snapshotRowsOf(currentSid));
1037
-
1038
1252
  if (cc.done < cc.total) {
1039
-
1040
1253
  var left = cc.total - cc.done;
1041
-
1042
1254
  ui.list.innerHTML += '<li class="tfb-empty" style="padding:6px 0 2px;font-size:10px">⚠️ 还有 ' + left + ' 项未完成</li>';
1043
-
1044
1255
  }
1045
-
1046
1256
  }
1047
-
1048
1257
  renderPinned();
1049
-
1050
1258
  }
1051
1259
 
1052
-
1053
-
1054
1260
  function renderPinned() {
1055
1261
  if (!ui.pinSec) return;
1056
1262
  if (pinned.length === 0) { ui.pinSec.innerHTML = ""; return; }
@@ -1092,14 +1298,42 @@ window.__ModuleLoader__.load({
1092
1298
  function renderThemeMenu() {
1093
1299
  if (!ui.themeMenu) return;
1094
1300
  var html = "";
1095
- var order = ["nebula", "nebB", "nebC", "graphite", "blue", "glass"];
1096
- for (var i = 0; i < order.length; i++) {
1097
- var th = order[i];
1098
- var cur = th === currentTheme;
1099
- html += '<div class="tfb-theme-row' + (cur ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="' + th + '">' +
1100
- '<span class="tfb-theme-check">' + (cur ? "✓" : " ") + "</span>" +
1101
- '<span class="tfb-theme-label">' + (THEME_NAMES[th] || th) + "</span>" +
1102
- "</div>";
1301
+ function swdot(s) {
1302
+ var a = s.vars && s.vars.stA ? s.vars.stA : "#888";
1303
+ var b = s.vars && s.vars.bgB ? s.vars.bgB : "#222";
1304
+ return '<span class="tfb-swdot" style="background:linear-gradient(135deg,' + a + ',' + b + ')"></span>';
1305
+ }
1306
+ if (SK) {
1307
+ var groups = SK.groups();
1308
+ for (var g = 0; g < groups.length; g++) {
1309
+ html += '<div class="tfb-theme-cap">' + groups[g] + '</div>';
1310
+ for (var i = 0; i < SK.ALL.length; i++) {
1311
+ var sp = SK.ALL[i];
1312
+ if (sp.group !== groups[g]) continue;
1313
+ var cur = sp.id === currentSkinId;
1314
+ html += '<div class="tfb-theme-row' + (cur ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="' + sp.id + '" title="' + sp.en + ' (方案 ' + sp.no + ')">' +
1315
+ '<span class="tfb-theme-check">' + (cur ? "✓" : " ") + "</span>" + swdot(sp) +
1316
+ '<span class="tfb-theme-label">' + sp.no + " · " + sp.name + "</span></div>";
1317
+ }
1318
+ }
1319
+ html += '<div class="tfb-theme-cap">经典(旧版)</div>';
1320
+ var order = ["nebula", "nebB", "nebC", "graphite", "blue", "glass"];
1321
+ for (var j = 0; j < order.length; j++) {
1322
+ var th = order[j];
1323
+ var cur2 = !currentSkinId && th === currentTheme;
1324
+ html += '<div class="tfb-theme-row' + (cur2 ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="legacy:' + th + '">' +
1325
+ '<span class="tfb-theme-check">' + (cur2 ? "✓" : " ") + "</span>" +
1326
+ '<span class="tfb-theme-label">' + (THEME_NAMES[th] || th) + "</span></div>";
1327
+ }
1328
+ } else {
1329
+ var order2 = ["nebula", "nebB", "nebC", "graphite", "blue", "glass"];
1330
+ for (var k = 0; k < order2.length; k++) {
1331
+ var th2 = order2[k];
1332
+ var cur3 = th2 === currentTheme;
1333
+ html += '<div class="tfb-theme-row' + (cur3 ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="' + th2 + '">' +
1334
+ '<span class="tfb-theme-check">' + (cur3 ? "✓" : " ") + "</span>" +
1335
+ '<span class="tfb-theme-label">' + (THEME_NAMES[th2] || th2) + "</span></div>";
1336
+ }
1103
1337
  }
1104
1338
  ui.themeMenu.innerHTML = html;
1105
1339
  }
@@ -1262,12 +1496,10 @@ window.__ModuleLoader__.load({
1262
1496
  '<div class="tfb-colcap" data-cap="cur"></div>' +
1263
1497
  '<ul class="tfb-list"></ul>' +
1264
1498
  "</div>" +
1265
-
1266
1499
  '<div class="tfb-col tfb-col-pin">' +
1267
1500
  '<div class="tfb-colcap" data-cap="pin">📌 固定会话</div>' +
1268
1501
  '<div class="tfb-pinsec"></div>' +
1269
1502
  "</div>" +
1270
-
1271
1503
  '<div class="tfb-hint"><button class="tfb-btn" data-act="resetPos" type="button" title="一键归位右下角">🎯 归位</button> · 切换对话自动跟随 · 📌 固定 · 🎨 皮肤 · Esc 折叠</div>' +
1272
1504
  "</div>";
1273
1505
  shadow.appendChild(root);
@@ -1284,7 +1516,8 @@ window.__ModuleLoader__.load({
1284
1516
  ui.ctitle = root.querySelector(".tfb-ctitle");
1285
1517
  ui.summary = root.querySelector(".tfb-summary");
1286
1518
  ui.pinBtn = root.querySelector('[data-act="pin"]');
1287
- ui.pinSec = root.querySelector(".tfb-pinsec"); ui.capCur = root.querySelector('[data-cap="cur"]');
1519
+ ui.pinSec = root.querySelector(".tfb-pinsec");
1520
+ ui.capCur = root.querySelector('[data-cap="cur"]');
1288
1521
  ui.themeMenu = root.querySelector(".tfb-theme-menu");
1289
1522
 
1290
1523
  // restore position (clamped inside viewport)
@@ -1465,9 +1698,18 @@ window.__ModuleLoader__.load({
1465
1698
  renderThemeMenu();
1466
1699
  e.stopPropagation();
1467
1700
  } else if (act === "setTheme" && sid) {
1468
- // pick a skin from the menu
1469
- currentTheme = sid;
1470
- try { localStorage.setItem(THEME_KEY, sid); } catch (err) {}
1701
+ // pick a skin: "legacy:<id>" = classic skin; otherwise shared 128-catalog id
1702
+ if (sid.indexOf("legacy:") === 0) {
1703
+ currentSkinId = null;
1704
+ legacyPicked = true;
1705
+ currentTheme = sid.slice(7);
1706
+ try { localStorage.setItem(THEME_KEY, currentTheme); } catch (err) {}
1707
+ try { localStorage.setItem(SHARED_KEY, "legacy"); } catch (err) {}
1708
+ } else if (SK && SK.BY_ID[sid]) {
1709
+ currentSkinId = sid;
1710
+ legacyPicked = false;
1711
+ SK.setSkin(sid);
1712
+ }
1471
1713
  try {
1472
1714
  var stEl = ui.root.querySelector("style");
1473
1715
  if (stEl) stEl.textContent = cssText();
@@ -1490,7 +1732,8 @@ window.__ModuleLoader__.load({
1490
1732
  // Plan-A2.2: resolve the row's OWN session (a pinned list row
1491
1733
  // belongs to its pinned sid, not to the current one) — walk up to
1492
1734
  // the enclosing .tfb-pinlist's parent pinrow when present.
1493
- e.stopPropagation(); var li = t.closest ? t.closest(".tfb-item") : null;
1735
+ e.stopPropagation();
1736
+ var li = t.closest ? t.closest(".tfb-item") : null;
1494
1737
  var txtEl = li ? li.querySelector(".tfb-txt") : null;
1495
1738
  if (txtEl) {
1496
1739
  // Plan-A2.2: the row's own session. Pinned lists carry
@@ -1529,10 +1772,18 @@ window.__ModuleLoader__.load({
1529
1772
  var t = e.target && e.target.closest ? e.target.closest("[data-tfb-theme]") : null;
1530
1773
  if (!t) return;
1531
1774
  var theme = t.getAttribute("data-tfb-theme");
1532
- if (theme !== "nebula" && theme !== "graphite" && theme !== "blue" && theme !== "glass" && theme !== "nebB" && theme !== "nebC") return;
1533
- try { localStorage.setItem(THEME_KEY, theme); } catch (err) {}
1534
- currentTheme = theme;
1535
- applyThemeNow();
1775
+ var legacySet = { nebula: 1, graphite: 1, blue: 1, glass: 1, nebB: 1, nebC: 1 };
1776
+ if (legacySet[theme]) {
1777
+ currentSkinId = null;
1778
+ legacyPicked = true;
1779
+ currentTheme = theme;
1780
+ try { localStorage.setItem(THEME_KEY, theme); } catch (err) {}
1781
+ try { localStorage.setItem(SHARED_KEY, "legacy"); } catch (err) {}
1782
+ applyThemeNow();
1783
+ return;
1784
+ }
1785
+ if (SK && SK.BY_ID[theme]) { SK.setSkin(theme); return; }
1786
+ return;
1536
1787
  }, true);
1537
1788
  }
1538
1789
 
@@ -1579,15 +1830,30 @@ window.__ModuleLoader__.load({
1579
1830
  try { syncFromSessions(); } catch (e) {}
1580
1831
  try {
1581
1832
  var v = peekCfg(THEME_KEY, DEFAULTS.theme);
1582
- if (isTheme(v) && v !== currentTheme) applyThemeNow();
1833
+ if (isTheme(v) && v !== currentTheme && !currentSkinId) applyThemeNow();
1583
1834
  } catch (e) {}
1835
+ try {
1836
+ if (SK) {
1837
+ var skv = readSharedKey();
1838
+ if (skv && skv !== "legacy" && skv !== currentSkinId && SK.BY_ID[skv]) applyThemeNow();
1839
+ else if (skv === "legacy" && currentSkinId) applyThemeNow();
1840
+ }
1841
+ } catch (e2) {}
1584
1842
  }, 2000);
1585
1843
  }
1586
1844
  // Immediate theme application — exposed as window.__dshtfbApplyTheme so
1587
1845
  // the sibling settings section can invoke it synchronously on click.
1588
1846
  function applyThemeNow() {
1589
- var v = getCfg(THEME_KEY, DEFAULTS.theme);
1590
- currentTheme = isTheme(v) ? v : DEFAULTS.theme;
1847
+ try {
1848
+ var raw = readSharedKey();
1849
+ if (raw === "legacy") { currentSkinId = null; }
1850
+ else if (raw && SK && SK.BY_ID[raw]) { currentSkinId = raw; legacyPicked = false; }
1851
+ else if ((!raw || (SK && raw === SK.DEFAULT_ID)) && SK && !legacyPicked) { currentSkinId = SK.DEFAULT_ID; }
1852
+ } catch (e) {}
1853
+ if (!currentSkinId) {
1854
+ var v = getCfg(THEME_KEY, DEFAULTS.theme);
1855
+ currentTheme = isTheme(v) ? v : DEFAULTS.theme;
1856
+ }
1591
1857
  try {
1592
1858
  if (ui.root) {
1593
1859
  var st = ui.root.querySelector("style");
@@ -1622,6 +1888,21 @@ window.__ModuleLoader__.load({
1622
1888
  try {
1623
1889
  window.__dshtfbApplyTheme = applyThemeNow;
1624
1890
  } catch (e) {}
1891
+ // unified skin sync: hook registry + events (same-document custom event,
1892
+ // cross-context storage event) + first-run seed of the shared key.
1893
+ try {
1894
+ window.__dshBallSkinHooks = window.__dshBallSkinHooks || [];
1895
+ if (window.__dshBallSkinHooks.indexOf(applyThemeNow) < 0) window.__dshBallSkinHooks.push(applyThemeNow);
1896
+ } catch (e) {}
1897
+ try {
1898
+ window.addEventListener("dsh-ball-skin-change", function () { applyThemeNow(); });
1899
+ } catch (e) {}
1900
+ try {
1901
+ window.addEventListener("storage", function (ev) { if (ev && ev.key === SHARED_KEY) applyThemeNow(); });
1902
+ } catch (e) {}
1903
+ try {
1904
+ if (SK && readSharedKey() == null) localStorage.setItem(SHARED_KEY, SK.DEFAULT_ID);
1905
+ } catch (e) {}
1625
1906
  // document-level delegation for the sibling skin buttons (React
1626
1907
  // synthetic events / refs unreliable in that slot — plain
1627
1908
  // data-attribute buttons + capture-phase listener always fire)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-todo-float-ball",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
4
4
  "description": "DSH todo 悬浮球:常驻可拖动悬浮球实时显示当前会话 todo_write 任务清单进度(总数/完成数/进行中),Shadow DOM 样式隔离,点击折叠/展开完整清单,状态颜色(待办灰/进行中橙脉动/完成绿)。数据双路同步:MutationObserver 抓官方 todo 面板为主 + 拦截会话投影帧为辅。双端可用(Desktop 桌面端 + Web 网页端)。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",