:root{font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;color:#253431;background:#eaece8;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #50a597;outline-offset:3px}[hidden]{display:none!important}.app{min-height:100vh;display:grid;grid-template-columns:206px minmax(0,1fr);background:#f6f7f4}.sidebar{background:#f0f2ee;border-right:1px solid #e0e5df;display:flex;flex-direction:column;padding:29px 17px}.brand{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:750;padding:0 7px 62px}.brand-mark{width:35px;height:35px;border-radius:10px;background:#244a44;color:#fff;display:inline-grid;place-items:center;font-size:20px;flex:none}.brand small,.sidebar-bottom small{display:block;color:#8b9992;font-size:9px;letter-spacing:.1em;margin-top:4px}.nav-label,.overline{font-size:10px;letter-spacing:.14em;color:#91a098;font-weight:700}.nav-label{padding:0 10px;margin-bottom:12px}.nav{min-height:45px;border:0;background:none;text-align:left;border-radius:8px;color:#788780;padding:0 12px;font-size:13px;font-weight:600}.nav span{font-size:18px;margin-right:12px;vertical-align:middle}.nav.active{background:#dfeae5;color:#275b50}.sidebar-bottom{margin-top:auto;display:flex;gap:10px;align-items:center;border-top:1px solid #dce3dc;padding:20px 5px 0;font-size:12px;font-weight:700}.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#d6e2d9;color:#537166}.main{min-width:0}.topbar{height:64px;border-bottom:1px solid #e8ece7;display:flex;align-items:center;justify-content:space-between;padding:0 38px;color:#98a49d;font-size:12px}.breadcrumb span{margin:0 12px;color:#ccd4ce}.breadcrumb strong{color:#52645b}.top-actions{display:flex;align-items:center;gap:22px}.prototype-badge,.light-tag{background:#e8efea;color:#668276;border-radius:5px;padding:5px 8px;font-size:10px;font-weight:700}.icon-button{border:0;background:none;color:#8b9992;font-size:25px;width:44px;height:44px}.view{padding:37px 38px 0;max-width:1600px;margin:auto}.heading{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:.17em;font-weight:800;color:#75948a}.eyebrow span{color:#c0cec6;margin:0 5px}h1{font-size:29px;letter-spacing:-.04em;margin:10px 0 8px;color:#253630}p{color:#87958d;font-size:13px;line-height:1.7;margin:0}.connection{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e8ede7;border-radius:9px;padding:10px 15px;min-width:173px}.connection strong,.connection small,.save-status strong,.save-status small{display:block}.connection strong,.save-status strong{font-size:12px}.connection small,.save-status small{color:#9aa79f;font-size:10px;margin-top:4px}.status-dot{width:8px;height:8px;border-radius:50%;background:#c4a878;box-shadow:0 0 0 4px #f6f0e5}.status-dot.connected{background:#51a28a;box-shadow:0 0 0 4px #e5f2eb}.workspace{display:grid;grid-template-columns:minmax(420px,1fr) 365px;gap:18px}.card{background:#fff;border:1px solid #e8ede7;border-radius:12px;box-shadow:0 6px 25px #304a3a08}.canvas,.editor{padding:25px}.section-head{display:flex;align-items:start;justify-content:space-between}.section-head h2,.help-card h2{font-size:17px;margin:8px 0 0;letter-spacing:-.02em}.section-head h2 .light-tag{vertical-align:middle;margin-left:5px}.index{font-size:10px;color:#b1bdb5;letter-spacing:.1em}.section-description{margin-top:9px;font-size:12px}.device-stage{margin-top:21px;background:#f4f6f2;border:1px solid #edf0eb;border-radius:9px;padding:18px 20px 20px;min-height:380px}.stage-label{font-size:10px;color:#a1afa5;letter-spacing:.04em}.stage-label span{padding:0 5px}.device-body{max-width:480px;margin:30px auto 0;border:1px solid #d7ded5;border-radius:16px;padding:16px 18px 13px;background:linear-gradient(145deg,#e6ebe4,#d4ddd3);box-shadow:0 8px 0 #c4cfc4,0 16px 22px #526b5920}.device-top,.device-bottom{display:flex;justify-content:space-between;color:#98aa9b;font-size:8px;letter-spacing:.13em;font-weight:800}.device-led{width:6px;height:6px;background:#82a898;border-radius:50%}.keys{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:15px 0}.key{min-width:0;min-height:87px;border:1px solid #e8eee8;border-radius:9px;background:linear-gradient(#fff,#f4f7f2);box-shadow:0 4px 0 #c9d4ca;text-align:left;padding:10px;color:#50655a}.key.selected{border:2px solid #4c8c7b;background:#f2faf5;box-shadow:0 4px 0 #9fc0ac}.key-number{font-size:9px;color:#a3b1a6}.key-symbol{display:block;margin:9px 0 5px;font-size:19px;color:#587c6c}.key-name{display:block;font-size:10px;font-weight:700;overflow-wrap:anywhere}.knob-area{display:flex;align-items:center;justify-content:center;gap:16px;margin:30px auto 16px}.knob-art{height:62px;width:62px;border-radius:50%;padding:7px;background:repeating-conic-gradient(#b7c6b9 0deg 4deg,#d4ded5 4deg 8deg);box-shadow:0 3px 5px #42594a27}.knob-inner{height:100%;border-radius:50%;background:linear-gradient(145deg,#f5f8f3,#cddbd0);display:grid;place-items:center;color:#789384;font-size:24px}.knob-copy strong,.knob-copy small{display:block}.knob-copy strong{font-size:12px}.knob-copy small{font-size:10px;color:#9baa9f;margin-top:5px}.knob-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-width:480px;margin:auto}.knob-button{min-height:50px;border:1px solid #e2e9e1;background:#fff;border-radius:7px;text-align:left;padding:8px 10px;color:#6d8174;font-size:10px}.knob-button strong{display:block;color:#344b40;font-size:11px;margin-top:4px;overflow-wrap:anywhere}.knob-button.selected{border-color:#69a693;background:#eef8f1}.canvas-foot{display:flex;align-items:center;gap:8px;color:#98a69c;font-size:11px;margin-top:18px}.info-icon{display:grid;place-items:center;border:1px solid #adbbb1;border-radius:50%;width:15px;height:15px;font-size:10px;flex:none}.editor{display:flex;flex-direction:column}.selected-card{display:flex;gap:12px;align-items:center;padding:14px;background:#f3f7f3;border-radius:8px;margin-top:22px}.selected-icon{display:grid;place-items:center;width:40px;height:40px;background:#dcece3;border-radius:8px;color:#4c8a73;font-size:12px;font-weight:800}.selected-card small,.selected-card strong{display:block}.selected-card small{font-size:10px;color:#98a99d;margin-bottom:4px}.selected-card strong{font-size:13px}.selected-arrow{margin-left:auto;color:#a3b8aa}.current-action{padding:18px 1px}.field-label{font-size:10px;color:#9aaba0;margin-bottom:8px}.current-action strong{font-size:13px;display:block}.current-action span{display:block;color:#628375;font-size:12px;margin-top:6px;overflow-wrap:anywhere}.divider{height:1px;background:#edf0ec}.editor-heading{margin:18px 0 13px}.editor-heading strong,.editor-heading small{display:block}.editor-heading strong{font-size:13px}.editor-heading small{font-size:10px;color:#a0ada4;margin-top:5px}.tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:3px;background:#f2f5f1;border-radius:7px;gap:2px}.tabs button{border:0;border-radius:5px;background:none;color:#8b9a90;min-height:39px;font-size:11px}.tabs button.active{background:#fff;color:#2b5c4e;box-shadow:0 1px 4px #304a3a14;font-weight:700}#editor-options{padding-top:12px;flex:1}.option{display:flex;gap:10px;align-items:center;min-height:45px;border:1px solid #edf1ec;border-radius:7px;padding:8px 10px;margin-bottom:6px;font-size:12px;cursor:pointer}.option:has(input:checked){border-color:#8cb9a4;background:#f5fbf7}.option input,.demo-content input{accent-color:#387e68}.option small{margin-left:auto;color:#9aa99f}.custom-help{font-size:11px;margin:2px 0 10px}.modifiers{display:flex;gap:6px;flex-wrap:wrap}.modifier{border:1px solid #e3ebe3;border-radius:6px;padding:9px 8px;font-size:11px;min-height:40px}.modifier input{accent-color:#387e68}.key-select{width:100%;height:44px;border:1px solid #dfe8df;border-radius:7px;background:#fff;color:#41594d;padding:0 10px;margin-top:10px}.preview{background:#f3f7f2;padding:12px;border-radius:7px;color:#4d7764;font-size:12px;margin-top:10px;overflow-wrap:anywhere}.editor-actions{display:flex;gap:8px;margin-top:16px}.editor-actions .button{flex:1}.button{min-height:44px;border-radius:7px;padding:0 15px;font-size:11px;font-weight:700;white-space:nowrap;transition:transform .15s,background .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{opacity:.45;cursor:not-allowed}.subtle{border:1px solid transparent;background:#f2f5f1;color:#718579}.outline{border:1px solid #dfe7de;background:#fff;color:#536b5d}.dark{border:1px solid #344e43;background:#344e43;color:#fff}.primary{border:1px solid #397e69;background:#397e69;color:#fff}.button span{margin-left:9px}.editor-hint{font-size:10px;margin:10px 0 0;text-align:center}.bottom-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:17px;padding:15px 0 20px}.save-status{display:flex;gap:11px;align-items:center}.status-ring{width:9px;height:9px;border:2px solid #91ae9b;border-radius:50%}.status-ring.dirty{border-color:#c7a36d}.bottom-actions{display:flex;gap:8px}.demo-panel{margin:0 38px 24px;border:1px dashed #d2dfd4;border-radius:8px;background:#f8faf7;max-width:1524px}.demo-panel summary{min-height:44px;padding:12px 15px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:11px;color:#667e6f;font-weight:700;list-style:none}.demo-panel summary b{color:#6a9e86;font-size:15px;margin-right:7px}.demo-panel summary small{font-weight:400;color:#a1aea4;margin-left:8px}.demo-content{border-top:1px dashed #d2dfd4;padding:12px 15px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}.demo-content p,.demo-content label{font-size:11px}.demo-content label{color:#667d6e;display:flex;align-items:center;gap:5px;min-height:44px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.help-card{padding:28px;min-height:300px}.help-card p,.help-card li{margin-top:15px;color:#778b7d;font-size:13px;line-height:1.8}.help-card ol{padding-left:20px}.note{background:#f1f7f1;padding:12px;border-radius:7px}.help-view{min-height:550px}.tray{min-height:100vh;display:grid;place-items:center;padding:20px}.tray-card{max-width:500px;display:flex;gap:20px;padding:30px;background:white;border:1px solid #e0e8df;border-radius:12px;box-shadow:0 15px 50px #304a3a10}.tray-card h1{font-size:24px}.tray-actions{display:flex;gap:8px;margin-top:20px}dialog{border:0;border-radius:12px;padding:26px;max-width:440px;width:calc(100% - 32px);box-shadow:0 20px 70px #213c3040;color:#263a30}dialog::backdrop{background:#243a30a0}dialog h2{font-size:18px;margin:0 0 12px}dialog p{font-size:13px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px;flex-wrap:wrap}.toast{position:fixed;right:28px;bottom:25px;max-width:400px;background:#273f35;color:white;padding:13px 18px;border-radius:8px;font-size:12px;box-shadow:0 8px 25px #172a2040;opacity:0;pointer-events:none;transform:translateY(8px);transition:.2s}.toast.show{opacity:1;transform:translateY(0)}@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 340px}.view{padding-left:24px;padding-right:24px}.topbar{padding:0 24px}.demo-panel{margin-left:24px;margin-right:24px}}@media(max-width:850px){.app{grid-template-columns:1fr}.sidebar{padding:12px 20px;flex-direction:row;align-items:center;gap:8px}.brand{padding:0;margin-right:auto}.brand small,.nav-label,.sidebar-bottom{display:none}.nav{padding:0 10px}.nav span{margin-right:5px}.workspace{grid-template-columns:1fr}.editor{min-height:500px}.heading{align-items:start}.bottom-bar{align-items:start;flex-direction:column}.help-grid{grid-template-columns:1fr}}@media(max-width:520px){.view{padding:26px 15px 0}.topbar{padding:0 15px}.demo-panel{margin:0 15px 20px}.sidebar{padding:10px}.brand{font-size:12px}.brand-mark{width:30px;height:30px}.nav{font-size:11px}.heading{flex-direction:column}.canvas,.editor{padding:18px}.device-stage{padding:15px 10px}.device-body{padding:12px 9px}.keys{gap:5px}.key{padding:7px 5px}.key-name{font-size:9px}.bottom-actions{width:100%;flex-wrap:wrap}.bottom-actions .button{flex:1}.top-actions{gap:5px}.prototype-badge{white-space:nowrap}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* Readability and responsive refinements for the configuration workspace. */
body { min-width: 0; color: #253431; }
body p { color: #53675c; font-size: 14px; }
body .brand small { display: none; }
body .eyebrow, body .overline, body .index { display: none; }
body .device-top, body .device-bottom { visibility: hidden; }
body .sidebar-bottom, body .nav-label, body .sidebar-bottom small,
body .topbar, body .prototype-badge, body .light-tag,
body .connection small, body .save-status small,
body .section-description, body .stage-label, body .canvas-foot,
body .selected-card small, body .field-label, body .editor-heading small,
body .editor-hint, body .custom-help, body .demo-panel summary small {
  font-size: 12px;
  color: #53695c;
  letter-spacing: normal;
}
body .nav, body .connection strong, body .save-status strong,
body .selected-card strong, body .current-action strong,
body .current-action span, body .editor-heading strong,
body .option, body .preview, body .button, body .tabs button,
body .key-select, body .modifier, body .demo-panel summary,
body .demo-content p, body .demo-content label, body .toast {
  font-size: 13px;
}
body .sidebar-bottom small, body .connection small, body .save-status small,
body .editor-heading small, body .selected-card small {
  line-height: 1.45;
}
body .nav { color: #53695c; }
body .topbar { color: #53695c; }
body .breadcrumb span { color: #718579; }
body .prototype-badge, body .light-tag { color: #426656; }
body .section-description, body .canvas-foot, body .editor-hint { line-height: 1.55; }
body .connection { min-width: 190px; }
body .workspace { grid-template-columns: minmax(0, 1fr) minmax(355px, 390px); }
body .canvas, body .editor { min-width: 0; }
body .device-stage { min-height: 0; }
body .device-body { max-width: 520px; margin-top: 12px; }
body .device-top, body .device-bottom { height: 0; }
body .keys { margin: 8px 0; }
body .key { min-height: 100px; padding: 10px 7px; box-shadow: 0 3px 5px #657c6b33; }
body .key.selected { box-shadow: 0 3px 6px #5f907040; }
body .key-number { font-size: 12px; color: #596f61; }
body .key-symbol { margin: 8px 0 5px; }
body .key-name { font-size: 13px; line-height: 1.4; }
body .knob-copy strong, body .knob-button strong { font-size: 13px; }
body .knob-copy small, body .knob-button { font-size: 12px; color: #526c5d; }
body .knob-button { min-width: 0; min-height: 56px; line-height: 1.35; }
body .knob-button strong { line-height: 1.4; }
body .selected-card small, body .field-label, body .editor-heading small { color: #596e60; }
body .current-action span { color: #426e59; line-height: 1.45; }
body .tabs button { min-height: 44px; color: #52695b; }
body .option { min-height: 48px; line-height: 1.4; }
body .option small { color: #53695c; font-size: 12px; }
body .modifier { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; }
body .preview { color: #355f49; line-height: 1.5; }
body .button { line-height: 1.35; }
body .button.subtle { color: #4c6355; }
body .button.outline { color: #40594a; }
body .button:disabled { opacity: 1; color: #667970; background: #e5ebe5; border-color: #d1dbd2; }
body .editor-hint { color: #5a6e61; }
body .help-card p, body .help-card li, body dialog p { color: #53675c; font-size: 14px; }
body .demo-panel summary { color: #496654; }
body .demo-content label { color: #496654; }
body .toast { line-height: 1.5; }
body button:not(:disabled):hover { filter: brightness(.97); }
body button:not(:disabled):active { filter: brightness(.92); }
body ::selection { background: #c5e1d1; color: #203e30; }
@media (max-width: 1100px) {
  body .workspace { grid-template-columns: minmax(0, 1fr) minmax(330px, 360px); }
  body .canvas, body .editor { padding: 20px; }
}
@media (max-width: 850px) {
  body .workspace { grid-template-columns: minmax(0, 1fr); }
  body .editor { min-height: 0; }
  body .sidebar { flex-wrap: wrap; }
  body .sidebar-bottom { display: none; }
  body .nav { min-height: 44px; }
  body .help-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  body .sidebar { padding: 10px; gap: 4px; }
  body .brand { min-width: 0; font-size: 13px; }
  body .nav { padding: 0 8px; font-size: 13px; }
  body .nav span { margin-right: 3px; }
  body .topbar { padding: 0 15px; }
  body .breadcrumb span { margin: 0 5px; }
  body .view { padding: 24px 15px 0; }
  body .heading { flex-direction: column; align-items: stretch; }
  body .connection { align-self: flex-start; }
  body .canvas, body .editor { padding: 16px; }
  body .device-stage { padding: 14px 9px; }
  body .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body .key { min-height: 84px; }
  body .key-name { font-size: 13px; }
  body .knob-controls { grid-template-columns: 1fr; }
  body .knob-button { min-height: 52px; }
  body .bottom-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  body .bottom-actions .primary { grid-column: 1 / -1; }
  body .demo-panel { margin: 0 15px 20px; }
  body .demo-panel summary { gap: 10px; }
  body .demo-panel summary small { display: block; margin: 4px 0 0 22px; }
  body .demo-content { align-items: stretch; flex-direction: column; gap: 8px; }
  body .tray-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after { transition: none; animation: none; }
}
