@font-face{font-family:Studio Serif;src:local("Baskerville")}
:root{--paper:#eae8e1;--ink:#293b34;--muted:#6c756b;--line:#c9cec2;--green:#254f40;--serif:"Studio Serif","Songti SC","STSong",Georgia,serif;--sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:13px var(--sans);-webkit-font-smoothing:antialiased}[hidden]{display:none!important}button,a,select,input{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.35;cursor:default}button,a,input,select,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,canvas:focus-visible{outline:2px solid #427d64}h1:focus{outline:none}button:not(:disabled),a{transition:background .18s,color .18s}button:not(:disabled):active{transform:translateY(1px)}a{color:inherit;text-decoration:none}svg{display:block}h1,h2,h3,p{margin:0}p{line-height:1.8}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
/* 导航始终切换视图，工作台下方不串接介绍内容。 */
.header{height:84px;margin:0 40px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand svg{width:31px;height:34px;stroke:var(--ink);fill:none;stroke-width:1.5}.brand>span:first-of-type{font:600 25px var(--serif);letter-spacing:.12em}.brand-divider{width:1px;height:18px;background:var(--line);margin:0 2px}.brand small{font-size:10px;letter-spacing:.12em;color:var(--muted)}.page-nav{display:flex;align-self:stretch;gap:25px;margin-left:auto}.page-nav>button{position:relative;padding:0 0;font-size:11px;color:var(--muted);white-space:nowrap}.page-nav>button[aria-current]{color:var(--green)}.page-nav>button[aria-current]:after{content:"";position:absolute;height:2px;bottom:-1px;left:0;right:0;background:var(--green)}#collection-count{font-size:9px;background:#dce1d7;border-radius:10px;padding:2px 5px;margin-left:5px}.header-actions{display:flex;align-items:center;gap:15px;margin-left:15px}.text-button{font-size:11px;padding:8px 0;color:#61735e}.text-button:hover{color:#254f40}.help-button{width:25px;height:25px;border:1px solid #bcc5b5;border-radius:50%;font:italic 15px var(--serif)}.header select{appearance:none;background:none;border:0;border-bottom:1px solid var(--line);font-size:11px;padding:7px 13px 7px 0;cursor:pointer}.header #sound{font-size:10px;white-space:nowrap}
/* 左侧用内容决定行高，数字和状态各有独立位置。 */
.workspace{display:grid;grid-template-columns:240px minmax(320px,1fr) 205px;grid-template-areas:"intro stage tools" "motor stage tools";grid-template-rows:minmax(min-content,1fr) auto;column-gap:18px;margin:0 40px;height:auto;min-height:max(610px,calc(100svh - 84px))}.intro{grid-area:intro;padding-top:28px;min-width:0}.eyebrow{display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:.1em;color:var(--muted)}.tiny-line{width:18px;height:1px;background:#8d9886;display:inline-block}.intro h1{font:400 46px/1.22 var(--serif);letter-spacing:-.05em;white-space:pre-line;margin-top:18px}.lead{font-size:12px;line-height:1.85;color:var(--muted);white-space:pre-line;margin-top:16px}.intro-actions{margin:18px 0 12px}.intro-actions button{background:var(--green);color:#f0f1e8;padding:12px 15px;font-size:10px;min-height:40px}.intro-actions button:hover{background:#376650}.motor-card{grid-area:motor;min-width:0;align-self:end;margin:20px 0 28px;padding:16px;border:1px solid #bec8b6;background:linear-gradient(125deg,#edf0e5a8,#e1e6d7a8);border-radius:2px}.motor-heading{display:flex;align-items:center;gap:6px}.motor-heading strong{font-size:11px;font-weight:500}.motor-heading>span:last-child{font-size:8px;margin-left:auto;color:var(--muted)}.motor-dot{width:5px;height:5px;flex:none;border-radius:50%;background:#4c7e60}.hamster-telemetry{display:grid;grid-template-columns:74px minmax(0,1fr);gap:13px;align-items:center;margin-top:12px}.hamster-wheel{width:74px;height:74px;fill:none;stroke:#697e60;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}.wheel-stand{stroke:#a1ae92}.wheel-rim{stroke-width:1.4}.wheel-magnet{fill:#b89252;stroke:#e3ddc2}.hamster-fur{fill:#c8ba94;stroke:#61745d}.hamster-belly{stroke:#eae4d2}.hamster-eye{fill:#314c3c;stroke:none}.reading-label{display:block;font-size:10px;color:var(--muted)}.rpm-row{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin-top:6px}#rpm{font:36px/1 var(--serif);letter-spacing:-.025em;font-variant-numeric:tabular-nums}.rpm-unit{white-space:nowrap;font-size:9px;color:var(--muted)}.power-effect{font-size:10px;color:#536b53;line-height:1.6;min-height:30px;margin-top:10px;padding-top:9px;border-top:1px solid #c6cfbf}.source-row{font-size:9px;letter-spacing:.025em;color:#8d693b;line-height:1.5;margin:9px 0}.motor-card[data-mode=live][data-unknown=false] .source-row{color:var(--green)}.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;border:1px solid #b8c1b2}.mode-switch button{font-size:10px;min-height:31px;padding:5px 4px}.mode-switch button[aria-pressed=true]{color:#f0f1e8;background:var(--green)}.sim-states{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:7px}.sim-states button{font-size:10px;color:var(--muted);padding:7px 2px;min-height:30px}.sim-states button[aria-pressed=true]{background:#d7dece;color:var(--green)}#live-info{padding-top:12px;font-size:9px;color:var(--muted)}.sample-row{display:flex;gap:8px;align-items:baseline}.sample-row time{margin-left:auto;font-variant-numeric:tabular-nums;color:#4f6553;white-space:nowrap}.connection-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;min-height:30px}#live-status{font-size:9px;line-height:1.6}#retry{font-size:10px;white-space:nowrap;flex:none}.motor-card[data-unknown=true] .motor-dot{background:#ad7a43}.motor-card[data-unknown=true] .hamster-wheel{opacity:.55}.motor-card[data-unknown=true] .power-effect{color:#8d693b}body[data-rest=true] .motor-dot{background:#a0aa8a}
/* 动力状态收进卡片标题，音乐设置按需展开，不占工作台空间。 */
.motor-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"heading source" "reading reading" "effect effect" "mode mode" "sim sim" "live live";column-gap:6px}.motor-heading{grid-area:heading}.source-row{grid-area:source;justify-self:end;text-align:right;margin:0;font-size:8px;max-width:112px}.hamster-telemetry{grid-area:reading}.power-effect{grid-area:effect}.mode-switch{grid-area:mode;margin-top:10px}.sim-states{grid-area:sim}#live-info{grid-area:live}.recent-activity{font-size:8px;line-height:1.6;margin-top:3px;color:var(--muted)}
.audio-control{position:relative}.audio-pill{display:flex;align-items:center;border:1px solid #c8d0c1;border-radius:20px;min-height:32px;background:#e4e8dc65}.header #sound{display:flex;align-items:center;gap:7px;padding:7px 6px 7px 11px;font-size:10px;min-height:32px}.music-bars{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round}.audio-control[data-audio-state=playing] .music-bars{color:#267b5d}.audio-control[data-audio-state=playing] .music-bars path{animation:music-breathe 2.2s ease-in-out infinite;transform-origin:center}#sound-settings{width:24px;height:30px;display:grid;place-items:center;padding:0 6px 0 2px;border-radius:0 18px 18px 0}#sound-settings svg{width:11px;fill:none;stroke:currentColor;stroke-width:1.1}#sound-settings[aria-expanded=true] svg{transform:rotate(180deg)}.sound-panel{position:absolute;top:calc(100% + 13px);right:0;width:266px;max-width:calc(100vw - 36px);z-index:12;background:#f1f0e9;border:1px solid #c6cebd;border-radius:8px;padding:20px;box-shadow:0 15px 40px #344d3920}.sound-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.sound-panel-heading div>span{display:block;font-size:8px;letter-spacing:.08em;color:var(--muted);margin-bottom:7px}.sound-panel-heading strong{font:23px var(--serif);font-weight:400}#sound-state{font-size:9px;color:var(--muted)}.sound-panel .section-label{margin-bottom:9px}.sound-panel input[type=range]{margin:15px 0 23px}.wheel-audio-option{display:flex;align-items:center;justify-content:space-between;font-size:10px;padding-top:14px;border-top:1px solid var(--line)}.wheel-audio-option input{accent-color:var(--green);width:16px;height:16px;margin:0}.audio-control[data-audio-state=playing] .audio-pill{border-color:#a3b49c;background:#dce4d6}@keyframes music-breathe{50%{transform:scaleY(.55)}}
.stage{grid-area:stage;position:relative;min-width:0;min-height:0;overflow:hidden}.stage-heading{position:absolute;top:30px;left:15px;right:15px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:9px;letter-spacing:.1em;color:#7b8175;z-index:2;pointer-events:none}.stage-tag{font-size:8px;letter-spacing:.04em;background:#e7e8db99;border:1px solid #bdc7b2;border-radius:15px;padding:5px 8px;white-space:nowrap}#scene{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:ew-resize}body[data-phase=glaze] #scene{cursor:grab}body[data-dragging=true] #scene{cursor:grabbing}.stage-bottom{position:absolute;bottom:28px;left:10px;right:10px;display:flex;align-items:center;justify-content:center;gap:12px;pointer-events:none}.stage-caption{display:flex;align-items:center;gap:8px;max-width:calc(100% - 42px);font-size:10px;color:#60745c;background:#eae8e1c9;backdrop-filter:blur(8px);padding:9px 13px;border:1px solid #d2d6c9;border-radius:22px;line-height:1.55}.caption-symbol{font-size:17px;flex:none}.icon-button{width:29px;height:29px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;flex:none;pointer-events:auto}.icon-button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.25}
.tools{grid-area:tools;min-width:0;display:flex;flex-direction:column;align-self:center;min-height:440px;margin:28px 0}.steps{display:flex;gap:26px;border-bottom:1px solid var(--line);margin-bottom:26px}.steps button{position:relative;display:flex;align-items:baseline;gap:7px;font-size:12px;padding:0 0 13px;color:#7d8579}.steps button>span:first-child{font:italic 11px var(--serif)}.steps button[aria-pressed=true]{color:var(--ink)}.steps button[aria-pressed=true]:after{content:"";position:absolute;height:2px;bottom:-1px;left:0;right:0;background:var(--green)}.section-label{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:10px;color:var(--muted);margin-bottom:13px}.micro{font-size:8px}.forms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:29px}.forms button{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #cbd0c3;padding:10px 4px;font-size:10px;background:#edece650;border-radius:2px}.forms button[aria-pressed=true]{background:#dce1d6;border-color:#8d9e89}.forms svg{width:33px;height:37px;stroke:#7c8c77;stroke-width:1.2;fill:#d4d9cc80}.forms button[aria-pressed=true] svg{fill:#acbaa3;stroke:#71816b}input[type=range]{appearance:none;width:100%;display:block;height:3px;background:#c6cfbf;border-radius:5px;cursor:pointer;margin:17px 0 25px}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:var(--green);border:3px solid var(--paper);box-shadow:0 0 0 1px #597457}input[type=range]::-moz-range-thumb{width:7px;height:7px;background:var(--green);border:3px solid var(--paper);border-radius:50%}.edit-history{display:flex;gap:18px;margin-bottom:16px}.edit-history button{display:flex;align-items:center;gap:6px;font-size:10px}.edit-history button>span:first-child{font-size:20px}.precise{font-size:10px;color:var(--muted);margin:8px 0 25px}.precise summary{cursor:pointer;padding:6px 0}.precise label{display:block;margin-top:12px}.nudge{display:flex;gap:6px}.nudge button{border:1px solid var(--line);padding:9px 5px;flex:1}.tool-footer{margin-top:auto;padding-top:25px}.primary-button,.secondary-button{display:flex;justify-content:center;align-items:center;min-height:44px;padding:13px 16px;width:100%;border-radius:2px;font-size:11px;line-height:1.5}.primary-button{background:var(--green);color:#f2f0e7}.primary-button:hover{background:#376650}.secondary-button{border:1px solid #aab9a4}.secondary-button:hover{background:#dee4d8}.new-button{display:block;margin:9px auto 0;font-size:10px}.swatches{display:flex;justify-content:space-between;margin:22px 0 35px}.swatches button{width:36px;height:36px;border-radius:50%;background:radial-gradient(ellipse at 28% 24%,#ffffff70,transparent 50%),var(--swatch);border:4px solid var(--paper);box-shadow:0 0 0 1px #c8ccbf}.swatches button[aria-pressed=true]{box-shadow:0 0 0 1px #617a60;outline:1px solid #617a60;outline-offset:3px}.workspace:has(#shape-tools:not([hidden]) .precise[open]){min-height:680px}
/* 挑战中的信息只显示目标、剩余圈数、形状反馈。 */
body[data-challenge=running] .intro h1,body[data-challenge=finished] .intro h1{font-size:35px;margin-top:17px}body[data-challenge=running] .intro .lead,body[data-challenge=finished] .intro .lead{margin-top:12px;font-size:12px}#order-hud{margin:17px 0 10px}.order-meter{display:flex;justify-content:space-between;align-items:flex-end;gap:15px}.order-meter>div>span{display:block;font-size:9px;color:var(--muted);margin-bottom:6px}.order-meter strong{font:29px/1 var(--serif);font-variant-numeric:tabular-nums;letter-spacing:-.03em}.order-meter small{font-size:9px;color:var(--muted);margin-left:5px}.order-match{text-align:right}.order-match strong{font-size:24px;color:#8c713e}#order-progress{appearance:none;border:0;width:100%;height:3px;display:block;margin:11px 0 9px;background:#c9cfbf}#order-progress::-webkit-progress-bar{background:#c9cfbf}#order-progress::-webkit-progress-value{background:#8e9d7d}#order-progress::-moz-progress-bar{background:#8e9d7d}#order-state{font-size:10px;line-height:1.6;min-height:32px;color:#5c7158}#exit-order{font-size:9px;color:var(--muted);text-decoration:underline;text-underline-offset:4px;padding:5px 0}body[data-challenge=running] .forms,body[data-challenge=finished] .forms,body[data-challenge=running] #shape-tools>.section-label:first-child,body[data-challenge=finished] #shape-tools>.section-label:first-child{display:none}
/* 订单选择和藏品是独立视图，各自拥有标题和返回路径。 */
.page-panel{max-width:1180px;margin:0 auto;padding:46px 40px 50px;min-height:calc(100svh - 84px)}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;margin-bottom:30px}.page-heading h1{font:400 43px/1.2 var(--serif);letter-spacing:-.035em;margin:17px 0}.page-lead{font-size:12px;color:var(--muted);max-width:650px;line-height:1.9}.page-heading>.text-button{white-space:nowrap}.order-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}.order-options button{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 18px;border:1px solid #c3cbbb;background:#e7e8df;min-height:275px;border-radius:3px}.order-options button:hover{background:#e0e5d7}.order-options button[aria-pressed=true]{border-color:#8a9c78;background:#dce3d1;box-shadow:inset 0 0 0 1px #8a9c7828}.order-number{position:absolute;top:19px;left:20px;font:italic 13px var(--serif);color:#88927e}.order-options svg{width:116px;height:155px;fill:#b5c1a8;stroke:#748565;stroke-width:1.1}.order-options button>span:not(.order-number){font:20px var(--serif)}.order-options small{font-size:10px;color:var(--muted)}.order-launch{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:24px 0 0;margin-top:25px;border-top:1px solid var(--line)}.order-launch>.primary-button{max-width:270px}.order-mode{display:flex;gap:5px;margin-bottom:10px}.order-mode button{font-size:10px;border:1px solid var(--line);min-height:31px;padding:6px 18px}.order-mode button[aria-pressed=true]{background:#dce3d1;border-color:#8a9c78}.order-source{font-size:11px;color:#7b704b}.order-launch p{font-size:11px;line-height:1.8}.order-launch #order-unsaved{margin-top:6px;color:#7c6a4a}.order-launch #order-keep-first{font-size:10px;text-decoration:underline;text-underline-offset:4px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.gallery-card{padding:0 0 18px;text-align:left;min-width:0;border-bottom:1px solid var(--line)}.gallery-card img{display:block;width:100%;aspect-ratio:1/1.06;object-fit:cover;margin-bottom:18px;border:1px solid #d3d6cb;border-radius:2px}.gallery-card strong{display:block;font:20px var(--serif);font-weight:400;margin-bottom:8px}.gallery-card span{display:block;font-size:10px;color:var(--muted);margin-top:6px;line-height:1.6}.gallery-empty{padding:90px 20px;text-align:center;border:1px solid var(--line)}.gallery-empty p{font:25px var(--serif)}.gallery-empty button{max-width:240px;margin:28px auto 0}
.loading{position:absolute;inset:0;z-index:4;background:var(--paper);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px}.loading span{width:24px;height:24px;border:1px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:spin 1.2s linear infinite}.loading p{font-size:11px;color:var(--muted)}@keyframes spin{to{transform:rotate(360deg)}}.webgl-error{position:absolute;inset:12%;z-index:5;background:var(--paper);display:flex;flex-direction:column;justify-content:center;text-align:center;gap:20px}.webgl-error h2{font:28px var(--serif)}.webgl-error p{font-size:12px}.webgl-error button{padding:12px;border:1px solid var(--line)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:20;max-width:90vw;padding:13px 20px;background:#274836f0;color:#f2f0e7;border-radius:4px;box-shadow:0 5px 25px #23342320;font-size:12px;line-height:1.6;text-align:center;pointer-events:none}
dialog{border:1px solid #bdc6b7;background:#eeede5;color:var(--ink);padding:28px;max-width:510px;width:calc(100% - 32px);border-radius:5px;box-shadow:0 25px 100px #14261b26;max-height:90svh;overflow:auto}dialog::backdrop{background:#202f2a55;backdrop-filter:blur(9px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px;margin-bottom:25px}.close-button{display:grid;place-items:center;flex:none;font-size:23px;line-height:1;width:30px;height:30px;border:1px solid var(--line);border-radius:50%}dialog h2{font:400 32px/1.3 var(--serif);white-space:pre-line;letter-spacing:-.025em;margin-bottom:22px}dialog p{font-size:12px;color:var(--muted);margin:16px 0;white-space:pre-line}dialog a{font-size:11px;text-decoration:underline;text-underline-offset:4px}.help-steps{list-style:decimal-leading-zero;padding-left:28px;margin:0}.help-steps li{padding:10px 0 10px 7px;color:#7d8a70}.help-steps strong{font:20px var(--serif);color:var(--ink)}.help-steps p{font-size:11px;margin:8px 0 0}.help-connection{border-top:1px solid var(--line);padding-top:18px;font-size:10px}.saved-dialog{max-width:590px}.saved-dialog #saved-image{display:block;width:100%;height:min(58svh,550px);object-fit:contain;border:1px solid var(--line);background:var(--paper)}.saved-actions,.confirm-actions{display:flex;gap:10px;margin-top:18px}.saved-actions>*,.confirm-actions>*{flex:1}.saved-dialog p{font-size:10px}.result-score{display:flex;align-items:baseline;gap:7px;border-top:1px solid var(--line);padding-top:18px}.result-score strong{font:68px/1 var(--serif);letter-spacing:-.05em}.result-score>span{font:25px var(--serif);color:var(--muted)}.result-score small{font-size:11px;margin-left:auto;color:var(--muted)}.result-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 0;margin:20px 0}.result-facts dt{font-size:9px;color:var(--muted);margin-bottom:9px}.result-facts dd{font-size:13px;margin:0}.order-fine{font-size:10px!important;margin-bottom:0}
html[lang=en] .brand>span:first-of-type{font-size:23px;letter-spacing:-.035em}html[lang=en] .brand small{display:none}html[lang=en] .brand-divider{display:none}html[lang=en] .intro h1{font-size:39px}html[lang=en] .lead{font-size:11px}html[lang=en] .motor-heading>span:last-child{font-size:7px}html[lang=en] .power-effect{font-size:9px}html[lang=en] #order-state{font-size:9px}html[lang=en] .source-row{font-size:8px}
@media(min-width:1500px){.header,.workspace{margin-left:64px;margin-right:64px}.workspace{grid-template-columns:275px minmax(340px,1fr) 235px;column-gap:30px}.intro{padding-top:50px}.intro h1{font-size:56px}.lead{font-size:13px}.motor-card{max-width:270px;padding:20px}.tools{min-height:490px}html[lang=en] .intro h1{font-size:46px}}
@media(min-width:1001px) and (max-width:1150px){.header,.workspace{margin-left:25px;margin-right:25px}.workspace{grid-template-columns:215px minmax(300px,1fr) 180px;column-gap:12px}.brand small,.brand-divider{display:none}.page-nav{gap:20px}.intro h1{font-size:41px}.motor-card{padding:13px}.hamster-telemetry{grid-template-columns:62px minmax(0,1fr);gap:9px}.hamster-wheel{width:62px;height:65px}#rpm{font-size:32px}.motor-heading>span:last-child{display:none}.header-actions{gap:13px;margin-left:7px}html[lang=en] .intro h1{font-size:35px}}
@media(max-width:1000px){
 .header{height:auto;min-height:105px;margin:0 22px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:15px;row-gap:0}.brand{padding:17px 0 13px;gap:9px}.brand svg{width:27px;height:29px}.brand>span:first-of-type{font-size:23px}.brand small,.brand-divider{display:none}.header-actions{margin:0;gap:12px}.header select{font-size:10px;padding-right:6px}.page-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;min-height:38px}.page-nav>button{font-size:11px;padding:9px 5px;white-space:normal}.page-nav>button[aria-current]:after{left:20%;right:20%}.header-actions{position:relative}.audio-control{position:static}.header #sound{width:30px;height:30px;min-height:30px;justify-content:center;padding:0}.header #sound-label{display:none}#sound-settings{width:18px;padding:0 4px 0 0}.sound-panel{top:calc(100% + 12px)}.help-button{width:23px;height:23px}
 .workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"intro intro" "motor motor" "stage stage" "tools tools";grid-template-rows:auto auto 440px auto;gap:0;height:auto;min-height:0;margin:0 22px}.intro{padding-top:26px}.intro h1{font-size:34px;white-space:normal;line-height:1.2;margin-top:15px;max-width:680px}.lead{font-size:11px;line-height:1.8;margin-top:13px;white-space:normal}.eyebrow{font-size:8px}.intro-actions{margin:15px 0 0}.intro-actions button{font-size:10px;padding:10px 14px}.motor-card{margin:22px 0 8px;width:100%;max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"heading source" "reading mode" "reading sim" "effect effect" "live live";gap:0 15px;padding:14px}.motor-heading{grid-area:heading}.motor-heading>span:last-child{display:none}.motor-heading strong{font-size:10px}.hamster-telemetry{grid-area:reading;grid-template-columns:51px minmax(0,1fr);gap:8px;margin:9px 0 0}.hamster-wheel{width:51px;height:54px}.reading-label{font-size:9px}#rpm{font-size:28px}.rpm-row{margin-top:5px;gap:5px}.rpm-unit{font-size:8px}.source-row{grid-area:source;justify-self:end;text-align:right;margin:0;font-size:8px;max-width:100%;overflow-wrap:anywhere}.mode-switch{grid-area:mode;margin-top:8px}.mode-switch button{font-size:10px;min-height:30px;padding:5px 2px}.sim-states{grid-area:sim;margin-top:4px;gap:3px}.sim-states button{font-size:9px;padding:5px 2px;min-height:30px}.power-effect{grid-area:effect;font-size:9px;min-height:0;margin-top:10px;padding-top:8px}#live-info{grid-area:live;padding-top:9px}.connection-row{margin-top:3px}.sample-row,.connection-row{gap:16px}.stage{height:440px;margin:0 -22px}.stage-heading{top:13px;left:24px;right:24px}.stage-bottom{bottom:13px;gap:10px}.stage-caption{font-size:10px}.tools{grid-area:tools;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:23px;min-height:0;margin:20px 0 32px}.steps{grid-column:1/-1;margin-bottom:22px;gap:30px}.forms{gap:6px;margin-bottom:24px}.forms button{font-size:10px;padding:9px 3px}.forms svg{width:30px;height:33px}.tool-footer{align-self:end;padding-top:0}.precise{margin-bottom:0}.primary-button,.secondary-button{font-size:11px;padding:12px 10px}.new-button{font-size:9px}.swatches button{width:30px;height:30px}.workspace:has(#shape-tools:not([hidden]) .precise[open]){min-height:0}
 body[data-challenge=running] .intro h1,body[data-challenge=finished] .intro h1{font-size:29px;white-space:normal}.order-meter>div>span{font-size:9px}.order-meter strong{font-size:27px}.order-match strong{font-size:23px}#order-hud{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 18px;margin-top:15px}.order-meter,#order-progress{grid-column:1/-1}#order-state{font-size:9px;min-height:0}#exit-order{font-size:8px;white-space:nowrap;align-self:start;padding-top:0}.page-panel{padding:31px 22px 38px;min-height:calc(100svh - 105px)}.page-heading{display:block;margin-bottom:25px}.page-heading h1{font-size:33px;margin:14px 0}.page-lead{font-size:11px;line-height:1.85}.page-heading>.text-button{margin-top:12px;font-size:10px}.order-options{gap:10px}.order-options button{min-height:210px;padding:25px 8px 19px;gap:9px}.order-options svg{width:82px;height:115px;max-width:100%}.order-options button>span:not(.order-number){font-size:16px}.order-options small{font-size:9px}.order-number{font-size:10px;left:12px;top:12px}.order-launch{display:block;margin-top:22px;padding-top:20px}.order-launch>.primary-button{max-width:none;margin-top:17px}.order-launch p{font-size:10px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 15px}.gallery-card img{margin-bottom:14px}.gallery-card strong{font-size:17px}.gallery-card span{font-size:9px}.gallery-empty{padding:70px 16px}.gallery-empty p{font-size:22px}
 dialog{padding:22px}dialog h2{font-size:28px}.saved-dialog #saved-image{height:min(55svh,550px)}.result-facts{gap:10px}.result-facts dd{font-size:11px}.saved-actions>*{font-size:10px}html[lang=en] .brand>span:first-of-type{font-size:20px}html[lang=en] .intro h1{font-size:32px;white-space:pre-line}html[lang=en] .power-effect{font-size:9px}html[lang=en] .order-options button>span:not(.order-number){font-size:15px;text-align:center}html[lang=en] .motor-heading>span:last-child{display:none}
}
@media(max-width:400px){.header{column-gap:8px}.header-actions{gap:6px!important}html[lang=en] .brand>span:first-of-type{font-size:18px}.header,.workspace{margin-left:18px;margin-right:18px}.page-panel{padding-left:18px;padding-right:18px}.header-actions{gap:8px}.brand{gap:7px}.brand svg{width:25px}.intro h1{font-size:30px}.motor-card{padding:12px;column-gap:12px}.hamster-telemetry{grid-template-columns:40px minmax(0,1fr);gap:6px}.hamster-wheel{width:40px;height:45px}#rpm{font-size:26px}.rpm-row{gap:4px}.stage{margin-left:-18px;margin-right:-18px}.stage-caption{font-size:9px;padding:9px 10px}.tools{column-gap:18px}.order-options{gap:8px}.order-options button{min-height:190px;padding:25px 5px 17px}.order-options svg{width:69px;height:97px}.order-options button>span:not(.order-number){font-size:15px}.page-heading h1{font-size:30px}.source-row{font-size:7px}html[lang=en] .intro h1{font-size:29px}html[lang=en] .source-row{font-size:7px}}
@media(max-width:600px){.tools{display:block}.tool-footer{padding-top:23px}.forms button{padding:11px 5px}.forms svg{width:35px;height:38px}.swatches{justify-content:flex-start;gap:25px}.new-button{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.loading span,.music-bars path{animation:none!important}}
/* 题库像一排器形样本；规则与器形分别选择，保留清晰的留白。 */
.orders-page{max-width:1140px}.orders-page .page-heading{margin-bottom:24px}.orders-page .page-heading h1{margin-bottom:11px}
.play-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.play-options button{text-align:left;border:1px solid var(--line);padding:15px 17px;min-height:78px;border-radius:3px}.play-options button[aria-pressed=true]{border-color:#718d68;background:#dfe5d6}.play-options strong{display:block;font:19px var(--serif);font-weight:400;margin-bottom:7px}.play-options button>span{font:10px/1.6 var(--sans);color:var(--muted)}.play-rule{font-size:11px;color:#6f755f;min-height:22px;margin:13px 0 23px}
.order-options{gap:12px}.order-options button{display:grid;grid-template-columns:94px minmax(0,1fr);align-items:center;text-align:left;min-height:142px;padding:12px 20px 12px 23px;gap:10px;background:#e7e9df}.order-options svg{width:85px;height:113px;fill:#b7c4ac;stroke:#7b8c70}.order-number{left:12px;top:12px;font-size:10px}.order-card-copy{display:block}.order-card-copy strong{font:22px/1.3 var(--serif);font-weight:400;display:block}.order-card-copy small{display:block;font:9px/1.5 var(--sans);letter-spacing:.06em;margin-top:8px}.order-options button[aria-pressed=true] svg{fill:#9fb794;stroke:#55734b}.selected-order{display:flex;align-items:baseline;gap:16px;padding:17px 0 0}.selected-order strong{font:17px var(--serif);white-space:nowrap}.selected-order p{font-size:11px;color:var(--muted)}.order-launch{margin-top:18px;padding-top:19px}.order-launch>.primary-button{max-width:240px}
.connection-details{display:block;text-decoration:underline;text-underline-offset:3px;font-size:9px;color:#65765e;padding:7px 0 0}.connection-facts{margin:15px 0;border-top:1px solid var(--line)}.connection-facts>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-bottom:1px solid var(--line);padding:13px 0;font-size:11px}.connection-facts dt{color:var(--muted)}.connection-facts dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.connection-local{font-size:10px}#connection-refresh{margin-top:24px}#connection-state{color:var(--green)}
@media(max-width:1000px){.order-options button{grid-template-columns:62px minmax(0,1fr);min-height:123px;padding:12px;gap:8px}.order-options svg{width:62px;height:91px}.order-card-copy strong{font-size:18px}.order-card-copy small{font-size:8px}.order-number{top:7px;left:9px}.order-launch>.primary-button{max-width:none}.play-options strong{font-size:17px}.play-options button{padding:13px}.play-rule{font-size:10px}}
@media(max-width:650px){.orders-page .page-heading{margin-bottom:20px}.play-options{gap:7px}.play-options button{padding:12px 10px;min-height:78px}.play-options strong{font-size:15px}.play-options button>span{font-size:9px;line-height:1.6}.order-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.order-options button{display:flex;flex-direction:column;justify-content:center;min-height:155px;padding:17px 5px 12px;gap:4px;text-align:center}.order-options svg{width:64px;height:83px}.order-card-copy strong{font-size:16px}.order-card-copy small{font-size:8px;margin-top:5px}.selected-order{display:block;padding-top:17px}.selected-order p{margin-top:5px;font-size:10px}.play-rule{margin-bottom:18px;min-height:0}html[lang=en] .order-card-copy strong{font-size:14px}html[lang=en] .play-options strong{font-size:14px}.connection-facts>div{font-size:10px}}

/* 完整色谱与工艺样片：控制保持在工具侧栏内。 */
.swatches{display:grid;grid-template-columns:repeat(4,36px);justify-content:space-between;gap:12px 8px;margin:19px 0 27px}.swatches button{width:34px;height:34px;border-width:4px}.swatches button:hover{transform:translateY(-1px)}
.surface-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:14px 0 25px}.surface-options button{border:1px solid #c8ccbf;border-radius:3px;display:flex;flex-direction:column;align-items:center;gap:7px;min-height:66px;padding:9px 3px;font-size:10px}.surface-options button[aria-pressed=true]{border-color:#6f8863;background:#dce4d4}.surface-sample{display:block;width:34px;height:20px;border-radius:50%;background:var(--glaze);box-shadow:inset 0 -3px 5px #0002}.surface-sample.glossy{background:radial-gradient(ellipse at 35% 28%,#fff9,transparent 49%),var(--glaze)}.surface-sample.matte{background:var(--glaze);opacity:.8}.surface-sample.speckle{background:radial-gradient(circle,#2b3029 0 1px,transparent 1.5px) 1px 1px/7px 6px,var(--glaze)}.surface-sample.flow{background:linear-gradient(165deg,var(--accent) 38%,var(--glaze) 68%)}
#repair-metrics{font-size:10px;color:#7b6034;line-height:1.7;margin:7px 0;grid-column:1/-1;font-variant-numeric:tabular-nums}
@media(max-width:1000px){.swatches{grid-template-columns:repeat(4,34px);justify-content:start;gap:14px 19px}.surface-options{max-width:320px}}
@media(min-width:601px) and (max-width:720px){.swatches{gap:12px 8px}}
@media(max-width:600px){.swatches{grid-template-columns:repeat(8,minmax(0,1fr));gap:13px 5px;justify-content:space-between}.swatches button{width:29px;height:29px;border-width:3px;justify-self:center}.surface-options{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}.surface-options button{font-size:9px}.tools:has(#glaze-tools:not([hidden])) .tool-footer{padding-top:5px}}

/* 首页向下即工作台，其他导航仍是独立页面。 */
.header{position:sticky;top:0;z-index:20;background:var(--paper);box-shadow:40px 0 var(--paper),-40px 0 var(--paper)}
body[data-page=home] .workspace{border-top:1px solid var(--line);scroll-margin-top:84px}
@media(max-width:1000px){body[data-page=home] .workspace{scroll-margin-top:105px}}
body[data-page=home] .workspace .intro .eyebrow{padding-top:8px}
.audio-control[data-audio-state=paused] .music-bars{opacity:.55}
.saved-dialog{max-width:620px}.saved-dialog #saved-image{height:min(44svh,460px)}

.music-play{width:16px;height:16px;fill:currentColor;opacity:.65}.audio-control:not([data-audio-state=playing]) .music-bars{display:none}.audio-control[data-audio-state=playing] .music-play{display:none}

/* 交互细节：唱片式音控、可触摸釉片与有方向的短反馈。 */
button:not(:disabled),a{transition:background .18s,color .18s,border-color .18s,box-shadow .18s,transform .18s}
.primary-button:hover:not(:disabled),.home-enter:hover{box-shadow:0 5px 13px #294a321a;transform:translateY(-1px)}
.primary-button:active:not(:disabled),.secondary-button:active:not(:disabled){transform:translateY(1px);box-shadow:none}
.secondary-button:hover:not(:disabled){background:#e0e6d9;border-color:#98ad8d}
.page-nav>button:before{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#88a17b;transform:scaleX(0);transition:transform .2s;transform-origin:left}
.page-nav>button:hover:before{transform:scaleX(1)}
.page-panel:not([hidden]){animation:page-arrive .32s cubic-bezier(.2,.7,.2,1) both}
#shape-tools:not([hidden]),#glaze-tools:not([hidden]){animation:tools-arrive .28s ease-out both}
@keyframes page-arrive{from{opacity:.5;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes tools-arrive{from{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.audio-pill{border:0;border-radius:0;background:none;gap:0}
.header #sound{padding:3px 8px 3px 3px;gap:10px;min-height:46px;border-radius:4px;position:relative}
.header #sound:hover{background:#dce2d34d}
.audio-control[data-audio-state=playing] .audio-pill{background:none;border-color:transparent}
.sound-disc{position:relative;display:block;width:38px;height:38px;border-radius:50%;flex:none;background:#2d4034;box-shadow:0 2px 4px #243d2a21,inset 0 0 0 1px #192f27}
.disc-grooves{position:absolute;inset:2px;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 2px,#b6bf9d2e 2.5px 3px),conic-gradient(from 30deg,#354b3a,#718269 18%,#294033 35%,#304b3b 60%,#72836a 74%,#354b3a);animation:disc-spin 8s linear infinite;animation-play-state:paused}
.disc-grooves:after{content:'';position:absolute;top:5px;left:17px;width:2px;height:4px;border-radius:2px;background:#c6ad71}
.disc-centre{position:absolute;inset:11px;background:#c1ac76;border:1px solid #e5d5a33d;border-radius:50%;display:grid;place-items:center;color:#273c2d}
.disc-centre svg{width:12px;height:12px;fill:currentColor}.disc-pause{display:none}
.audio-control[data-audio-state=playing] .disc-grooves{animation-play-state:running}
.audio-control[data-audio-state=playing] .disc-play{display:none}.audio-control[data-audio-state=playing] .disc-pause{display:block}
.audio-control[data-muted=true] .disc-grooves{animation-play-state:paused}
.sound-caption{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:52px}.sound-caption strong{font:13px var(--serif);font-weight:400;color:#40583e}.header #sound-label{font:8px var(--sans);color:#7a8770;letter-spacing:.02em}
.sound-lamp{width:4px;height:4px;border-radius:50%;background:#b1b9a6;align-self:flex-end;margin:0 0 7px 1px}
.audio-control[data-audio-state=playing]:not([data-muted=true]) .sound-lamp{background:#4e8f68;box-shadow:0 0 0 3px #5e8d5710}
.audio-control[data-audio-state=error] .sound-lamp{background:#ae734d}
.audio-control[data-audio-state=loading] .sound-disc{opacity:.65}
#sound-settings{width:30px;height:44px;padding:0;border-radius:3px;color:#78866e}
#sound-settings:hover,#sound-settings[aria-expanded=true]{background:#dce2d3b0;color:#365b43}
#sound-settings svg{transition:transform .2s}
.sound-panel{width:294px;padding:23px;border-radius:5px;box-shadow:0 18px 55px #293b2929;animation:panel-arrive .22s ease-out both;transform-origin:top right}
.sound-panel-heading{margin-bottom:18px}.sound-panel-heading strong{font-size:27px}.sound-panel-heading div>span{font-size:8px;letter-spacing:.13em}.sound-panel #sound-state{font-size:9px;padding:5px 7px;border:1px solid #c7cebc;border-radius:2px}
.sound-score{display:flex;align-items:center;gap:17px;border-top:1px solid #c9cfbf;border-bottom:1px solid #c9cfbf;padding:17px 0;margin-bottom:22px}
.sound-score strong{font:26px/1 var(--serif);font-weight:400;color:#4a6048}.sound-score small{font:8px var(--sans);color:#88927a;margin-left:5px}.sound-score p{font:9px/1.5 var(--sans);color:#7e8b73;margin-top:8px}
.score-orbits{height:55px;width:55px;flex:none;border:1px solid #a7b395;border-radius:50%;display:grid;place-items:center;position:relative;background:repeating-radial-gradient(circle,#e4e7db 0 5px,#c6ceba 5.5px 6px)}
.score-orbits span{height:13px;width:13px;border-radius:50%;background:#ac9763;box-shadow:0 0 0 5px #e7e9dc}
.score-orbits i{position:absolute;inset:3px;animation:disc-spin 8s linear infinite;animation-play-state:paused}.score-orbits i:after{content:'';position:absolute;left:50%;top:0;width:4px;height:4px;border-radius:50%;background:#4d7253}
.audio-control[data-audio-state=playing]:not([data-muted=true]) .score-orbits i{animation-play-state:running}
#sound-volume{height:5px;background:linear-gradient(to right,#597c5e 0 var(--range-fill,36%),#ced5c5 var(--range-fill,36%) 100%);border-radius:4px}
.wheel-audio-option{min-height:44px}.wheel-audio-option input{appearance:none;width:31px;height:18px;border-radius:12px;background:#ccd2c2;border:1px solid #aebba1;position:relative;transition:background .2s}
.wheel-audio-option input:before{content:'';position:absolute;width:12px;height:12px;left:2px;top:2px;border-radius:50%;background:#f4f1e6;box-shadow:0 1px 2px #293b2933;transition:transform .2s}
.wheel-audio-option input:checked{background:#648366;border-color:#648366}.wheel-audio-option input:checked:before{transform:translateX(12px)}
@keyframes disc-spin{to{transform:rotate(360deg)}}
@keyframes panel-arrive{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}
.swatches{grid-template-columns:repeat(4,44px);gap:9px 4px}
.swatches button{position:relative;width:44px;height:44px;border:6px solid var(--paper);box-shadow:inset 0 0 0 1px #7285693d;border-radius:50%}
.swatches button:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px #7285693d,0 3px 8px #405b3720}
.swatches button[aria-pressed=true]{outline:1px solid #728d64;outline-offset:0}
.swatches button[aria-pressed=true]:after{content:'';position:absolute;right:-5px;bottom:-5px;border-radius:50%;background:#38593c;color:#f4f1e8;width:15px;height:15px;display:grid;place-items:center;font:9px var(--sans);box-shadow:0 0 0 2px var(--paper)}
.surface-options button:hover:not([aria-pressed=true]),.forms button:hover:not([aria-pressed=true]),.play-options button:hover:not([aria-pressed=true]){background:#dce3d48c;border-color:#9bad8d}
.order-options button{transition:background .2s,border-color .2s,box-shadow .2s,transform .2s}.order-options button:hover{box-shadow:0 5px 16px #405b3714;transform:translateY(-2px)}.order-options button svg{transition:transform .25s}.order-options button:hover svg{transform:translateY(-3px)}
.order-options button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #708b62}
.help-button{width:40px;height:40px;border:0;position:relative;font-size:16px;display:grid;place-items:center}.help-button:before{content:'';position:absolute;inset:7px;border:1px solid #b9c5af;border-radius:50%}.help-button:hover:before{background:#d8e1d060}.help-button:hover{color:#244e35}
.close-button{width:40px;height:40px;border-color:transparent;position:relative}.close-button:before{content:'';position:absolute;inset:5px;border:1px solid var(--line);border-radius:50%}.close-button:hover{background:#dfe5d8}.icon-button{min-width:40px;min-height:40px}
#height-value{font-size:10px;color:#61755b;font-variant-numeric:tabular-nums}.precise .section-label{margin:16px 0 6px}.precise .section-label label{margin:0}
.gallery-card[aria-busy=true]{opacity:.55;cursor:progress}.gallery-card img{transition:transform .3s,box-shadow .3s}.gallery-card:hover img{transform:translateY(-3px);box-shadow:0 9px 20px #314c3214}
.primary-button[aria-busy=true]{cursor:progress}
dialog[open]{animation:dialog-arrive .2s ease-out}dialog[open]::backdrop{animation:veil-arrive .2s ease-out}
@keyframes dialog-arrive{from{opacity:0;transform:translateY(9px) scale(.99)}to{opacity:1;transform:none}}@keyframes veil-arrive{from{background:#202f2a00;backdrop-filter:blur(0)}to{background:#202f2a55;backdrop-filter:blur(9px)}}
#challenge-keep-first{margin-top:14px;min-height:40px}.connection-local{font-size:10px;line-height:1.7}
@media(max-width:1000px){.header #sound{width:43px;height:44px;padding:2px;min-height:44px}.sound-caption,.sound-lamp{display:none}.header #sound-settings{width:28px;min-height:44px;padding:0}.header-actions{gap:8px}.help-button{width:40px;height:40px}.sound-disc{width:35px;height:35px}.disc-centre{inset:10px}.header #sound-label{display:none}.swatches{grid-template-columns:repeat(4,44px);gap:9px 9px}.sound-panel{top:calc(100% + 12px)}}
@media(max-width:600px){.swatches{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px 3px}.surface-options button{min-height:70px}.share-actions a,.share-actions button{min-height:44px}.sound-panel{right:0}}
@media(max-width:400px){.header-actions{gap:4px!important}.header{column-gap:6px}.header .brand{gap:6px}.header #sound{width:40px}.header #language{font-size:9px;padding-right:2px}.header .brand svg{width:24px}.header .sound-panel{right:0;max-width:calc(100vw - 36px)}}
@media(prefers-reduced-motion:reduce){.disc-grooves,.score-orbits i,.page-panel,#shape-tools,#glaze-tools,.sound-panel,dialog,dialog::backdrop{animation:none!important}.gallery-card:hover img,.order-options button:hover,.order-options button:hover svg,.primary-button:hover{transform:none!important}}

.swatches button[aria-pressed=true]:before{content:'';position:absolute;right:-1px;bottom:1px;width:6px;height:3px;border-left:1.5px solid #f4f1e8;border-bottom:1.5px solid #f4f1e8;transform:rotate(-45deg);z-index:1}
@media(min-width:1001px) and (max-height:800px){body[data-phase=glaze] .tools{margin:20px 0}body[data-phase=glaze] .steps{margin-bottom:18px}body[data-phase=glaze] .swatches{margin:12px 0 18px;row-gap:6px}body[data-phase=glaze] .surface-options{margin:10px 0 17px}body[data-phase=glaze] .surface-options button{min-height:59px}body[data-phase=glaze] .tool-footer{padding-top:13px}}
@media(max-width:360px){html[lang=en] .header .brand svg{display:none}.header .sound-panel{width:calc(100vw - 56px)}}
/* 唱片架：四首原创曲目拥有独立选择状态，不把选择曲目伪装成播放。 */
.sound-panel{width:320px;padding:20px;max-height:calc(100dvh - 100px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.sound-panel-heading{margin-bottom:12px}.sound-score{padding:12px 0;margin-bottom:12px}.sound-score strong{font-size:23px}
.sound-library-label{font-size:8px;letter-spacing:.14em;color:#7c8872;margin:0 0 8px}.sound-tracks{display:grid;gap:3px;margin-bottom:17px}
.sound-track{display:grid;grid-template-columns:24px minmax(0,1fr) 16px;align-items:center;gap:8px;text-align:left;width:100%;min-height:45px;padding:6px 9px;border:1px solid transparent;border-radius:3px;transition:background .18s,border-color .18s}
.sound-track .track-number{font:italic 12px var(--serif);color:#8e987d}.track-name{display:block;font:15px/1.3 var(--serif);color:#3d5845;font-weight:400}.track-mood{display:block;font:8px/1.5 var(--sans);color:#8a907e;margin-top:2px}.track-indicator{width:5px;height:5px;border:1px solid #9eac90;border-radius:50%}
.sound-track:hover{background:#e4e8dc}.sound-track[aria-pressed=true]{background:#e1e6d7;border-color:#bac8ad}.sound-track[aria-pressed=true] .track-indicator{background:#55745a;border-color:#55745a;box-shadow:0 0 0 3px #91a28020}
.sound-panel .section-label{margin-bottom:0}.sound-panel input[type=range]{margin:12px 0 18px}.sound-panel .wheel-audio-option{padding-top:12px}.sound-panel-heading strong{font-size:25px}.sound-caption{min-width:58px}
/* 陶坯旁是共同作者的线描落款；状态来自同一份动力信号。 */
.partner-credit{position:absolute;z-index:2;left:17px;top:66px;display:flex;align-items:center;gap:8px;pointer-events:none;color:#77836c;opacity:.85}
.partner-credit span{font:11px/1.5 var(--serif);display:block;color:#61735a}.partner-credit small{display:block;font:8px/1.6 var(--sans);margin-top:2px;color:#8a927d}
.partner-credit[data-state=unknown]{opacity:.58}
@media(max-width:1000px){.partner-credit{left:25px;top:47px}.partner-credit span{font-size:10px}.partner-credit small{font-size:7px}.sound-panel{max-height:calc(100dvh - 85px)}}
@media(max-width:400px){.partner-credit{left:19px;gap:6px}.partner-credit span{font-size:9px}.partner-credit small{max-width:112px;line-height:1.45}.sound-panel{padding:16px}.sound-track{padding:5px 6px;min-height:45px}.track-name{font-size:14px}}
@media(prefers-reduced-motion:reduce){.sound-track{transition:none}}

.sound-track[data-preparing="true"] .track-indicator{background:transparent;border:1px solid currentColor;border-right-color:transparent;border-radius:50%;animation:track-preparing .8s linear infinite}.sound-track[data-preparing="true"]{opacity:.7}@keyframes track-preparing{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.sound-track[data-preparing="true"] .track-indicator{animation:none}}

/* 两端独立读数，传动关系放在数值之间；仓鼠遥测不被游戏转速覆盖。 */
.input-reading .drive-link{display:flex;align-items:center;gap:6px;margin:7px 0;color:var(--muted)}.drive-link i{display:block;width:15px;height:8px;border-left:1px solid currentColor;border-bottom:1px solid currentColor;position:relative;opacity:.7}.drive-link i:after{content:"";position:absolute;right:0;bottom:-2px;width:4px;height:4px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg)}.drive-link small{font-size:8px;letter-spacing:.02em}.pottery-rpm-row{margin-top:4px}#pottery-rpm{font:25px/1 var(--serif);font-variant-numeric:tabular-nums;letter-spacing:-.025em}.input-reading .rpm-row{gap:5px}
