niuma-codex 0.0.0-stage → 0.0.1-beta.10

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.
@@ -0,0 +1,28 @@
1
+ /** 只有可信空快照才自动生成二维码。 */
2
+ export function initialView(snapshot) {
3
+ if (!snapshot.available) return 'unavailable';
4
+ return snapshot.total === 0 ? 'qr' : 'devices';
5
+ }
6
+ /** 每标签最多一个在途轮询;停止使旧响应失活,恢复等待旧请求释放。 */
7
+ export function createPoller(task, {intervalMs = 1000, schedule = fn => setTimeout(fn,intervalMs), cancel = clearTimeout, onError = () => {}} = {}) {
8
+ let active = false, running = false, timer = null, controller = null;
9
+ async function tick() {
10
+ timer = null;
11
+ if (!active || running) return;
12
+ running = true;
13
+ controller = new AbortController();
14
+ const current = controller;
15
+ try { await task(current.signal); }
16
+ catch (error) {
17
+ if (!current.signal.aborted) { active = false; onError(error); }
18
+ } finally {
19
+ running = false;
20
+ if (controller === current) controller = null;
21
+ if (active) timer = schedule(tick);
22
+ }
23
+ }
24
+ return {
25
+ start(delayed=false) { if (active) return; active = true; if(running)return; if(delayed)timer=schedule(tick);else void tick(); },
26
+ stop() { active = false; if (timer !== null) cancel(timer); timer = null; controller?.abort(); },
27
+ };
28
+ }
@@ -0,0 +1,98 @@
1
+ /* Dark Studio:固定品牌框架,列表与配对状态共用双栏布局。 */
2
+ :root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#f0f0f2;background:#111214;color-scheme:dark;font-synthesis:none;--muted:#a3a6af;--line:#303136;--accent:#ac99fc}
3
+ *{box-sizing:border-box}body{margin:0;min-width:320px}button{font:inherit;cursor:pointer;border:1px solid #555861;border-radius:5px;background:transparent;color:inherit;min-height:44px;padding:10px 22px;display:inline-flex;align-items:center;justify-content:center;gap:10px}button:hover{background:#ffffff09}button:disabled{opacity:.45;cursor:default}button:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button.primary{background:var(--accent);border-color:var(--accent);color:#181421;font-weight:600}button.primary:hover{background:#beadff}button.text-button{border-color:transparent;color:var(--muted);padding:8px 0}button.text-button:hover{color:#fff}.icon{display:inline-block;flex-shrink:0;width:24px;height:24px;background:currentColor;mask:var(--icon) center/contain no-repeat}
4
+ .topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.brand{font-size:23px;letter-spacing:5px}.local{font-size:16px;color:var(--muted)}.workspace{display:grid;grid-template-columns:32% 68%;min-height:calc(100svh - 178px)}.sidebar{padding:66px 52px;border-right:1px solid var(--line)}h1,h2,h3,p{margin:0}h1{font-size:58px;line-height:1.25;font-weight:600;letter-spacing:-1.5px}p{color:var(--muted);line-height:1.8;font-size:16px}.sidebar p{margin-top:32px}.sidebar #add{margin-top:40px;width:100%;min-height:62px;font-size:20px}.sidebar .trust{margin-top:38px}.content{padding:52px 52px 80px;min-width:0}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:36px}h2{font-size:28px;font-weight:550;line-height:1.4}#device-count{margin-left:18px;font-size:22px;color:var(--muted);font-weight:400}.device{display:grid;grid-template-columns:42px minmax(140px,1fr) minmax(145px,.6fr) auto;column-gap:22px;align-items:center;padding:29px 0;border-bottom:1px solid var(--line)}.device>.icon{width:36px;height:42px;grid-row:1/3}.device h3{font-size:21px;font-weight:500;overflow-wrap:anywhere;grid-column:2}.device .device-info{grid-column:2;font-size:15px}.device .paired-time{grid-column:3;grid-row:1/3;font-size:14px;white-space:pre-line}.device .remove-device{grid-column:4;grid-row:1/3;color:var(--accent);border:0;padding:10px 4px;min-width:44px}.device.new-device{background:#a696ff08}.notice{padding:12px 16px;margin:0 0 14px;border-radius:5px;background:#ffffff05}#notice{color:var(--muted)}#notice.success{background:#20372a;color:#b2e5be}#notice.error{background:#392827;color:#f0bab4}.empty{padding:56px 0}#pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:30px;color:var(--muted)}footer{height:102px;border-top:1px solid var(--line);display:flex;align-items:center;padding:0 52px;font-size:13px;color:var(--muted)}
5
+ /* 所有步骤只展示进度,不提供跳过批准的交互。 */
6
+ .back{margin:-12px 0 32px;font-size:14px}.back .icon{width:20px;height:20px}#flow-intro h1{font-size:40px;letter-spacing:-.6px}#flow-intro p{font-size:14px;margin-top:18px}.steps{list-style:none;margin:46px 0 0;padding:0}.steps li{position:relative;display:flex;align-items:center;gap:18px;min-height:96px;font-size:16px;color:#737883}.steps li:not(:last-child):after{content:"";position:absolute;top:65px;bottom:-26px;left:15px;border-left:1px solid #555b66}.step-number{width:31px;height:31px;display:grid;place-items:center;border:1px solid #666c77;border-radius:50%;font-size:14px}.steps li.current,.steps li.done{color:#ececf0}.current .step-number{background:var(--accent);border-color:var(--accent);color:#15131c}.done .step-number{font-size:0;background:#23262b}.done .step-number:before{content:"";width:18px;height:18px;background:#c5c9d0;mask:var(--check-icon) center/contain no-repeat}.steps li.attention .step-number{background:transparent;border-color:#e3bd67;color:#e3bd67}.flow-panel{max-width:600px;margin:18px auto 0;text-align:center}.flow-panel>p{margin-top:12px}.flow-panel h2{font-size:32px;font-weight:600}.qr-surface{background:#fff;border-radius:14px;width:320px;max-width:100%;margin:28px auto 0;padding:12px}#qr{display:block;width:100%;height:auto;image-rendering:pixelated}.expiry{display:table;margin:18px auto 0!important;padding:0 12px;background:#282b31;border-radius:20px;font-size:13px}.flow-panel .waiting{color:#c5b8ff;font-size:14px;margin-top:17px}.waiting:before{content:"";display:inline-block;width:8px;height:8px;background:var(--accent);border-radius:50%;margin-right:9px}.flow-panel .scan-help{border-top:1px solid var(--line);margin-top:40px;padding-top:22px;font-size:14px;text-align:left}.device-portrait{width:62px;height:86px;margin:46px 0 12px}#client-name{font-size:24px;font-weight:500}.flow-panel .permission{border-top:1px solid var(--line);padding-top:22px;margin-top:48px;font-size:14px}.actions{display:flex;gap:16px;margin-top:24px}.actions button{flex:1}.actions .primary{flex:1.2}.flow-panel .hint{font-size:13px;margin-top:24px;color:#9297a1}.status-panel{padding-top:140px}.status-panel>#status-icon{width:64px;height:64px;color:var(--accent);margin-bottom:28px}.status-panel h2{font-size:30px}.status-panel #status-device{font-size:20px;color:#f0f0f2;margin-top:18px}.status-panel #retry{margin-top:28px;min-width:250px}.status-panel>#status-icon.warning{color:#e6bc5e}.spinning{animation:spin 1.3s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}[hidden]{display:none!important}@media(prefers-reduced-motion:reduce){.spinning{animation:none}}
7
+ @media(min-width:1600px){.sidebar{padding-left:max(52px,calc((100vw - 1440px)/2))}.content{padding-right:max(52px,calc((100vw - 1440px)/2))}}@media(max-width:1100px){.sidebar{padding:48px 30px}.content{padding:40px 30px}h1{font-size:44px}.sidebar p{font-size:14px}.sidebar #add{font-size:17px}.device{column-gap:12px;grid-template-columns:32px minmax(90px,1fr) auto}.device .paired-time{grid-column:2;grid-row:3;font-size:12px;margin-top:6px}.device .remove-device{grid-column:3;grid-row:1/4}.device h3{font-size:18px}.device>.icon{width:28px}.flow-panel h2{font-size:26px}.qr-surface{width:290px}}
8
+ @media(max-width:700px){.topbar{height:64px;padding:0 22px}.brand{font-size:19px}.local{font-size:12px}.workspace{display:block;min-height:calc(100svh - 142px)}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:28px 24px}h1{font-size:34px;letter-spacing:-.5px}#home-intro h1 br{display:none}.sidebar p{margin-top:14px}.sidebar #add{margin-top:22px;min-height:48px}.sidebar .trust{margin-top:16px;font-size:13px}.content{padding:28px 24px 48px}.list-heading{gap:8px;margin-bottom:12px}h2{font-size:23px}#device-count{font-size:17px;margin-left:8px}#refresh{font-size:13px}.device{padding:24px 0}.back{margin:0 0 20px}#flow-intro h1{font-size:30px}#flow-intro p{margin-top:10px}.steps{display:flex;justify-content:space-between;margin-top:24px;gap:12px}.steps li{min-height:auto;flex-direction:column;gap:8px;font-size:12px}.steps li:after{display:none}.step-number{width:26px;height:26px}.flow-panel{margin-top:6px}.flow-panel h2{font-size:25px}.flow-panel>p{font-size:14px}.status-panel{padding-top:45px;padding-bottom:35px}.status-panel>#status-icon{width:48px;height:48px}.device-portrait{margin-top:30px}.flow-panel .permission{margin-top:28px}footer{height:78px;padding:20px 24px;font-size:12px}#pagination{gap:10px;font-size:13px}#pagination button{padding:8px 12px}}
9
+
10
+ /* Phosphor Icons,MIT;从项目已有图标库生成,保持原始路径。 */
11
+ .icon-phone{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M176%2C18H80A22%2C22%2C0%2C0%2C0%2C58%2C40V216a22%2C22%2C0%2C0%2C0%2C22%2C22h96a22%2C22%2C0%2C0%2C0%2C22-22V40A22%2C22%2C0%2C0%2C0%2C176%2C18ZM70%2C62H186V194H70ZM80%2C30h96a10%2C10%2C0%2C0%2C1%2C10%2C10V50H70V40A10%2C10%2C0%2C0%2C1%2C80%2C30Zm96%2C196H80a10%2C10%2C0%2C0%2C1-10-10V206H186v10A10%2C10%2C0%2C0%2C1%2C176%2C226Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
12
+ .icon-laptop{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M232%2C170H222V72a22%2C22%2C0%2C0%2C0-22-22H56A22%2C22%2C0%2C0%2C0%2C34%2C72v98H24a6%2C6%2C0%2C0%2C0-6%2C6v16a22%2C22%2C0%2C0%2C0%2C22%2C22H216a22%2C22%2C0%2C0%2C0%2C22-22V176A6%2C6%2C0%2C0%2C0%2C232%2C170ZM46%2C72A10%2C10%2C0%2C0%2C1%2C56%2C62H200a10%2C10%2C0%2C0%2C1%2C10%2C10v98H46ZM226%2C192a10%2C10%2C0%2C0%2C1-10%2C10H40a10%2C10%2C0%2C0%2C1-10-10V182H226ZM150%2C88a6%2C6%2C0%2C0%2C1-6%2C6H112a6%2C6%2C0%2C0%2C1%2C0-12h32A6%2C6%2C0%2C0%2C1%2C150%2C88Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
13
+ .icon-plus{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M222%2C128a6%2C6%2C0%2C0%2C1-6%2C6H134v82a6%2C6%2C0%2C0%2C1-12%2C0V134H40a6%2C6%2C0%2C0%2C1%2C0-12h82V40a6%2C6%2C0%2C0%2C1%2C12%2C0v82h82A6%2C6%2C0%2C0%2C1%2C222%2C128Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
14
+ .icon-arrow{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M222%2C128a6%2C6%2C0%2C0%2C1-6%2C6H54.49l61.75%2C61.76a6%2C6%2C0%2C1%2C1-8.48%2C8.48l-72-72a6%2C6%2C0%2C0%2C1%2C0-8.48l72-72a6%2C6%2C0%2C0%2C1%2C8.48%2C8.48L54.49%2C122H216A6%2C6%2C0%2C0%2C1%2C222%2C128Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
15
+ .icon-refresh{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M238%2C56v48a6%2C6%2C0%2C0%2C1-6%2C6H184a6%2C6%2C0%2C0%2C1%2C0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82%2C82%2C0%2C1%2C0-1.7%2C117.65%2C6%2C6%2C0%2C0%2C1%2C8.24%2C8.73A93.46%2C93.46%2C0%2C0%2C1%2C128%2C222h-1.28A94%2C94%2C0%2C1%2C1%2C194.37%2C61.4L226%2C90.35V56a6%2C6%2C0%2C1%2C1%2C12%2C0Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
16
+ .icon-spinner{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M134%2C32V64a6%2C6%2C0%2C0%2C1-12%2C0V32a6%2C6%2C0%2C0%2C1%2C12%2C0Zm90%2C90H192a6%2C6%2C0%2C0%2C0%2C0%2C12h32a6%2C6%2C0%2C0%2C0%2C0-12Zm-46.5%2C47A6%2C6%2C0%2C0%2C0%2C169%2C177.5l22.63%2C22.62a6%2C6%2C0%2C0%2C0%2C8.48-8.48ZM128%2C186a6%2C6%2C0%2C0%2C0-6%2C6v32a6%2C6%2C0%2C0%2C0%2C12%2C0V192A6%2C6%2C0%2C0%2C0%2C128%2C186ZM78.5%2C169%2C55.88%2C191.64a6%2C6%2C0%2C1%2C0%2C8.48%2C8.48L87%2C177.5A6%2C6%2C0%2C1%2C0%2C78.5%2C169ZM70%2C128a6%2C6%2C0%2C0%2C0-6-6H32a6%2C6%2C0%2C0%2C0%2C0%2C12H64A6%2C6%2C0%2C0%2C0%2C70%2C128ZM64.36%2C55.88a6%2C6%2C0%2C0%2C0-8.48%2C8.48L78.5%2C87A6%2C6%2C0%2C1%2C0%2C87%2C78.5Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
17
+ .icon-clock{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M128%2C26A102%2C102%2C0%2C1%2C0%2C230%2C128%2C102.12%2C102.12%2C0%2C0%2C0%2C128%2C26Zm0%2C192a90%2C90%2C0%2C1%2C1%2C90-90A90.1%2C90.1%2C0%2C0%2C1%2C128%2C218Zm62-90a6%2C6%2C0%2C0%2C1-6%2C6H128a6%2C6%2C0%2C0%2C1-6-6V72a6%2C6%2C0%2C0%2C1%2C12%2C0v50h50A6%2C6%2C0%2C0%2C1%2C190%2C128Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
18
+ .icon-warning{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M128%2C26A102%2C102%2C0%2C1%2C0%2C230%2C128%2C102.12%2C102.12%2C0%2C0%2C0%2C128%2C26Zm0%2C192a90%2C90%2C0%2C1%2C1%2C90-90A90.1%2C90.1%2C0%2C0%2C1%2C128%2C218Zm-6-82V80a6%2C6%2C0%2C0%2C1%2C12%2C0v56a6%2C6%2C0%2C0%2C1-12%2C0Zm16%2C36a10%2C10%2C0%2C1%2C1-10-10A10%2C10%2C0%2C0%2C1%2C138%2C172Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
19
+ .icon-check{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M228.24%2C76.24l-128%2C128a6%2C6%2C0%2C0%2C1-8.48%2C0l-56-56a6%2C6%2C0%2C0%2C1%2C8.48-8.48L96%2C191.51%2C219.76%2C67.76a6%2C6%2C0%2C0%2C1%2C8.48%2C8.48Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
20
+ :root{--check-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M228.24%2C76.24l-128%2C128a6%2C6%2C0%2C0%2C1-8.48%2C0l-56-56a6%2C6%2C0%2C0%2C1%2C8.48-8.48L96%2C191.51%2C219.76%2C67.76a6%2C6%2C0%2C0%2C1%2C8.48%2C8.48Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
21
+
22
+ .list-title{display:flex;align-items:center;min-width:0}
23
+
24
+ /* 对照高保真稿放大流程主信息,错误状态提供就近返回入口。 */
25
+ @media(min-width:1101px){#flow-intro h1{font-size:52px}#flow-intro p{font-size:16px}.back{font-size:18px}.steps li{font-size:18px;gap:24px}.step-number{width:40px;height:40px;font-size:16px}.steps li:not(:last-child):after{left:19px;top:72px;bottom:-22px}.flow-panel h2{font-size:38px}.flow-panel>p{font-size:18px}.status-panel{padding-top:160px}.status-panel h2{font-size:38px}.status-panel #retry{min-width:360px;min-height:60px;font-size:19px}.status-panel .hint{font-size:16px}.status-panel>#status-icon{width:76px;height:76px}.device-portrait{width:82px;height:106px}.actions button{min-height:60px;font-size:18px}.flow-panel .permission{font-size:16px}.flow-panel .hint{font-size:15px}}
26
+ #status-back{display:flex;margin:14px auto 0;color:var(--accent)}#notice.success:before{content:"";display:inline-block;width:18px;height:18px;margin-right:10px;vertical-align:-3px;background:currentColor;mask:var(--check-icon) center/contain no-repeat}
27
+ .steps li.attention .step-number{font-size:0}.steps li.attention .step-number:before{content:"!";font-size:22px}.steps li.done .step-number{font-size:0}
28
+
29
+ /* 使用同库的开环与现代手机图标贴近设计稿。 */
30
+ .icon-spinner{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M230%2C128a102%2C102%2C0%2C0%2C1-204%2C0c0-40.18%2C23.35-76.86%2C59.5-93.45a6%2C6%2C0%2C0%2C1%2C5%2C10.9C58.61%2C60.09%2C38%2C92.49%2C38%2C128a90%2C90%2C0%2C0%2C0%2C180%2C0c0-35.51-20.61-67.91-52.5-82.55a6%2C6%2C0%2C0%2C1%2C5-10.9C206.65%2C51.14%2C230%2C87.82%2C230%2C128Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
31
+ .icon-phone{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M176%2C18H80A22%2C22%2C0%2C0%2C0%2C58%2C40V216a22%2C22%2C0%2C0%2C0%2C22%2C22h96a22%2C22%2C0%2C0%2C0%2C22-22V40A22%2C22%2C0%2C0%2C0%2C176%2C18Zm10%2C198a10%2C10%2C0%2C0%2C1-10%2C10H80a10%2C10%2C0%2C0%2C1-10-10V40A10%2C10%2C0%2C0%2C1%2C80%2C30h96a10%2C10%2C0%2C0%2C1%2C10%2C10ZM138%2C60a10%2C10%2C0%2C1%2C1-10-10A10%2C10%2C0%2C0%2C1%2C138%2C60Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E")}
32
+ .steps li.attention .step-number{border:0}.steps li.attention .step-number:before{content:"";width:100%;height:100%;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22black%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M128%2C26A102%2C102%2C0%2C1%2C0%2C230%2C128%2C102.12%2C102.12%2C0%2C0%2C0%2C128%2C26Zm0%2C192a90%2C90%2C0%2C1%2C1%2C90-90A90.1%2C90.1%2C0%2C0%2C1%2C128%2C218Zm-6-82V80a6%2C6%2C0%2C0%2C1%2C12%2C0v56a6%2C6%2C0%2C0%2C1-12%2C0Zm16%2C36a10%2C10%2C0%2C1%2C1-10-10A10%2C10%2C0%2C0%2C1%2C138%2C172Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E") center/contain no-repeat}
33
+ @media(min-width:1101px){#approval{margin-top:60px}.device-portrait{width:106px;height:132px}#client-name{font-size:28px}.flow-panel h2{font-size:42px}.steps li{font-size:20px}.qr-surface{width:344px}.status-panel{padding-top:190px}.status-panel>#status-icon{width:96px;height:96px}.status-panel h2{font-size:42px}.status-panel #status-detail{font-size:20px}}
34
+ .steps li.attention .step-number:before{width:31px;height:31px}@media(min-width:1101px){.steps li.attention .step-number:before{width:40px;height:40px}}@media(max-width:700px){.steps li.attention .step-number:before{width:26px;height:26px}}
35
+
36
+ /* 连接状态同时用文字与颜色表达,沿用设备列表的紧凑布局。 */
37
+ .connection-state{display:inline-flex;align-items:center;gap:6px;margin-left:12px;font-size:11px;font-weight:500;white-space:nowrap;color:#8b929d;vertical-align:middle}
38
+ .connection-state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
39
+ .connection-state.connected{color:#8acb9f}
40
+
41
+ /* 设置详情与设备内容共用右侧空间,导航保持独立。 */
42
+ .topbar-actions{display:flex;align-items:center;gap:28px}
43
+
44
+ .settings-panel{max-width:840px}
45
+ .settings-panel h2{font-size:28px}
46
+ .autostart-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
47
+ .autostart-row label{font-size:17px;cursor:pointer}
48
+ .autostart-row p{margin:8px 0 0;color:var(--muted);font-size:14px}
49
+ .autostart-row .settings-hint{font-size:13px}
50
+ #autostart-enabled{appearance:none;flex:none;width:48px;height:28px;margin:0;border:1px solid #707075;border-radius:14px;background:#343438;cursor:pointer;position:relative}
51
+ #autostart-enabled::after{content:"";position:absolute;width:20px;height:20px;top:3px;left:3px;border-radius:50%;background:#dedee2;transition:transform 150ms ease}
52
+ #autostart-enabled:checked{background:var(--accent);border-color:var(--accent)}
53
+ #autostart-enabled:checked::after{transform:translateX(20px);background:#181421}
54
+ #autostart-enabled:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
55
+ #autostart-enabled:disabled{opacity:.5;cursor:wait}
56
+ #autostart-message{font-size:14px;color:var(--muted);margin:18px 0 0}
57
+ @media(max-width:640px){.topbar-actions{gap:16px}.topbar-actions .local{display:none}.autostart-row{gap:16px}}
58
+ @media(prefers-reduced-motion:reduce){#autostart-enabled::after{transition:none}}
59
+
60
+ /* 固定导航宽度,把主要空间留给设备列表和后续设置分组。 */
61
+ .workspace{grid-template-columns:260px minmax(0,1fr)}
62
+ .sidebar{padding:40px 24px}
63
+ .sidebar-heading h1{font-size:24px;letter-spacing:0;line-height:1.4}
64
+ .sidebar-heading p{font-size:14px;margin-top:12px}
65
+ .workspace-nav{display:flex;flex-direction:column;gap:8px;margin-top:32px}
66
+ .nav-button{width:100%;min-height:52px;justify-content:flex-start;padding:12px 16px;border-color:transparent;font-size:17px;color:var(--muted);gap:12px}
67
+ .nav-button[aria-current="page"]{color:#d0c4ff;background:#ac99fc18}
68
+ .nav-button:hover{background:#ffffff0d;color:#f0f0f2}
69
+ .sidebar .trust{font-size:13px;margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
70
+ .content{padding:40px 48px 64px}
71
+ .list-heading{flex-wrap:wrap;gap:24px;margin-bottom:24px}
72
+ .list-actions{display:flex;align-items:center;flex-wrap:wrap;gap:20px}
73
+ .page-heading{margin-bottom:40px}
74
+ .page-heading p{margin-top:12px}
75
+ .settings-group-title{font-size:16px;font-weight:500;color:var(--muted);padding-bottom:16px;border-bottom:1px solid var(--line)}
76
+ .autostart-row{padding:24px 0 0;gap:32px}
77
+ .autostart-row label{font-size:18px;font-weight:500}
78
+ .autostart-row p{max-width:60ch}
79
+ #autostart-enabled{margin-top:4px}
80
+ /* 配对进度属于设备工作区,切换设置后仍保留原有流程。 */
81
+ #flow-intro .back{margin:0 0 16px;font-size:14px}
82
+ #flow-intro h1{font-size:28px;letter-spacing:0}
83
+ #flow-intro p{margin-top:8px;font-size:14px}
84
+ .steps{display:flex;gap:32px;margin:24px 0 32px;padding-bottom:24px;border-bottom:1px solid var(--line)}
85
+ .steps li{min-height:40px;gap:12px;font-size:14px;flex-direction:row}
86
+ .steps li:not(:last-child):after{display:none}
87
+ .step-number{width:31px;height:31px;font-size:14px}
88
+ .steps li.attention .step-number:before{width:31px;height:31px}
89
+ .flow-panel,.status-panel,#approval{margin:24px auto 0;padding-top:0}
90
+ .flow-panel h2,.status-panel h2{font-size:28px}
91
+ @media(max-width:900px){.workspace{grid-template-columns:220px minmax(0,1fr)}.content{padding:32px 24px}.steps{gap:16px}.steps li{gap:8px}.list-actions{gap:12px}}
92
+ @media(max-width:700px){
93
+ .workspace{display:block}.sidebar{padding:24px}.sidebar-heading p,.sidebar .trust{display:none}
94
+ .workspace-nav{flex-direction:row;margin-top:20px;gap:12px}.nav-button{flex:1;min-height:52px}
95
+ .content{padding:28px 24px 48px}.list-heading{align-items:flex-start;gap:20px}.list-actions{width:100%;justify-content:space-between}
96
+ .page-heading{margin-bottom:32px}.settings-panel h2{font-size:24px}.autostart-row{gap:20px}.autostart-row label{font-size:16px}
97
+ .steps{gap:12px;justify-content:space-between}.steps li{flex-direction:column;font-size:12px}.flow-panel h2{font-size:24px}
98
+ }