:root{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#252b28;background:#f1f3ef;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#252b28;--muted:#7b827d;--line:#e4e8e2;--paper:#fff;--green:#507b64;--green-dark:#365842;--mint:#e5eee5;--red:#a44f42;--shadow:0 20px 50px rgba(42,55,46,.07)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}.studio-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;padding:0 clamp(22px,5vw,76px);background:rgba(255,255,255,.88);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font:700 16px Manrope,sans-serif;letter-spacing:-.4px}.brand i{font-style:normal;color:#88908a;font-weight:500}.brand-mark{height:29px;width:29px;border-radius:9px;background:var(--green);color:#fff;display:grid;place-items:center;font:800 18px Manrope,sans-serif}.device-state{display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;color:#737c75}.state-dot,.save-indicator{height:7px;width:7px;border-radius:50%;background:#b9c0ba}.state-dot.connected,.save-indicator.saved{background:#5c9b72}.state-dot.busy{background:#d2a143;animation:pulse 1s infinite}.device-name{color:#3e5144;font-weight:600}.top-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px}.dirty-label{color:#966e2c;font-size:11px}.button{height:38px;padding:0 16px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:600 12px inherit;cursor:pointer;transition:background .16s,border .16s,transform .16s}.button:hover:not(:disabled){transform:translateY(-1px);border-color:#c4d0c5}.button:disabled{opacity:.42;cursor:not-allowed}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover:not(:disabled){background:var(--green-dark)}.button.quiet{background:transparent}.button.large{height:46px;padding:0 20px;font-size:13px}.button:focus-visible,.nav-item:focus-visible,.keycap:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #91b39a;outline-offset:2px}.studio-main{width:min(1400px,100%);margin:0 auto;padding:48px clamp(22px,5vw,76px) 32px;flex:1}.welcome{min-height:min(690px,calc(100vh - 150px));display:grid;grid-template-columns:.95fr 1.05fr;align-items:center;gap:36px}.welcome-copy{max-width:450px;padding-bottom:30px}.eyebrow{font-size:11px;color:var(--green);font-weight:700;margin:0 0 15px}.welcome h1{font:700 clamp(42px,5.5vw,68px)/1.08 Manrope,sans-serif;letter-spacing:-3.4px;margin:0 0 19px;color:#29372f}.welcome h1 span{color:var(--green)}.welcome-copy>p:not(.eyebrow){max-width:385px;font-size:14px;line-height:1.85;color:#727b74;margin:0 0 25px}.welcome-copy>small{display:block;margin-top:13px;font-size:10px;color:#8b938d}.welcome .button span{margin-left:16px;font-size:16px}.keyboard-art{width:min(100%,620px);justify-self:end;padding:35px 28px 25px;border:1px solid #d9ded8;border-radius:17px;background:linear-gradient(145deg,#fbfcfa,#edf1ec);box-shadow:var(--shadow);transform:rotate(-2deg)}.key-row{display:flex;gap:7px;margin:0 0 8px}.key-row.offset{margin-left:21px}.key-row b{height:43px;flex:1;min-width:21px;border-radius:6px;border:1px solid #d6dbd5;background:#fbfcfa;box-shadow:0 3px 0 #d9ded8;display:grid;place-items:center;color:#788078;font:500 10px 'DM Sans',sans-serif}.key-row .space-key{flex:4}.device-caption{text-align:right;color:#99a198;font-size:9px;margin:17px 1px 0}.workspace[aria-busy="true"] .sidebar,.workspace[aria-busy="true"] .page-head,.workspace[aria-busy="true"] .editor-layout,.workspace[aria-busy="true"] .lighting-view{pointer-events:none;opacity:.76}.workspace{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:calc(100vh - 175px);background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden;box-shadow:var(--shadow)}.sidebar{padding:24px 14px 16px;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:640px}.side-heading,.layer-heading{font-size:10px;color:#969e97;margin:0 9px 11px}.nav-item{border:0;background:transparent;color:#6f7770;height:42px;text-align:left;display:flex;align-items:center;gap:10px;padding:0 11px;border-radius:7px;font:500 12px 'DM Sans',sans-serif;cursor:pointer}.nav-item:hover{background:#f5f7f4}.nav-item.active{background:#eaf0e9;color:#405d48;font-weight:600}.nav-icon{width:18px;text-align:center;font-size:16px}.nav-tail{margin-left:auto;font-size:10px;color:#8a928c}.side-divider{border-top:1px solid #edf0ec;margin:20px 5px}.layer-heading{display:flex;justify-content:space-between;margin-bottom:8px}.layer-list{display:grid;gap:4px}.layer-button{border:0;background:transparent;height:33px;border-radius:6px;text-align:left;padding:0 10px 0 13px;color:#757d77;font:500 11px 'DM Sans',sans-serif;cursor:pointer}.layer-button:hover{background:#f5f7f4}.layer-button.active{color:#42634b;background:#f0f4ef;font-weight:600}.layer-button .dirty-star{float:right;color:#b18131}.sidebar-bottom{margin-top:auto;border-top:1px solid #edf0ec;padding:15px 7px 3px;display:flex;gap:10px;align-items:center}.usb-glyph{height:28px;width:28px;border-radius:8px;background:#eef2ee;display:grid;place-items:center;color:var(--green);font-size:18px}.sidebar-bottom b,.sidebar-bottom small{display:block}.sidebar-bottom b{font-size:11px;font-weight:600}.sidebar-bottom small{font-size:9px;color:#89918b;margin-top:3px}.editor-area{position:relative;padding:30px 32px 82px;min-width:0}.page-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 23px}.page-head .eyebrow{margin:0 0 5px;font-size:10px}.page-head h2{font:650 23px Manrope,sans-serif;letter-spacing:-.7px;margin:0;color:#303832}.page-head p:last-child{font-size:11px;color:#89918b;margin:6px 0 0}.refresh-button{height:32px;font-size:10px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;align-items:start}.keyboard-panel,.action-panel{border:1px solid #e9ece8;border-radius:9px;background:#fff}.keyboard-panel{min-height:410px;padding:20px}.panel-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.panel-top b{display:block;font-size:12px}.panel-top span{display:block;font-size:10px;color:#949b95;margin-top:4px}.legend{font-size:9px!important;display:flex!important;align-items:center;gap:6px}.legend i{height:7px;width:7px;border-radius:2px;background:#d9ebdc}.keyboard-map{display:grid;grid-template-columns:repeat(auto-fill,minmax(45px,1fr));gap:7px}.keycap{height:43px;min-width:0;border:1px solid #e1e5e0;border-radius:6px;background:#fafbf9;box-shadow:0 2px 0 #e2e6e1;color:#626b64;cursor:pointer;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:3px;transition:background .12s,border .12s,transform .12s}.keycap:hover{border-color:#9fb7a4;background:#f1f6f0;transform:translateY(-1px)}.keycap.selected{border-color:#60836a;background:#edf4ed;color:#355840;box-shadow:0 2px 0 #cbdacf}.keycap.modified::after{content:'';position:absolute;right:4px;top:4px;width:5px;height:5px;border-radius:50%;background:#ce9e46}.keycap strong{font-size:11px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis}.keycap small{font-size:8px;color:#9ba29b;margin-top:2px}.encoder-area{margin-top:27px;padding-top:17px;border-top:1px solid #edf0ec}.encoder-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}.encoder-heading b{font-size:11px}.encoder-heading span{font-size:9px;color:#969d97}.encoder-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.encoder-card{padding:12px;border:1px solid #edf0ec;border-radius:7px}.encoder-card>strong{font-size:10px}.encoder-actions{display:flex;gap:6px;margin-top:9px}.encoder-action{height:28px;flex:1;border:1px solid #e6eae5;background:#fbfcfb;border-radius:5px;color:#657068;font-size:9px;cursor:pointer}.encoder-action:hover{border-color:#9fb7a4}.encoder-action.modified{background:#eff5ef;border-color:#d7e4d7}.action-panel{min-height:330px;padding:16px}.empty-editor{min-height:285px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px}.empty-mark{height:38px;width:38px;border-radius:50%;display:grid;place-items:center;color:#728c77;background:#eff4ef;font-size:21px}.empty-editor h3{font:600 13px Manrope,sans-serif;margin:13px 0 6px}.empty-editor p{font-size:10px;line-height:1.7;color:#939a94;max-width:190px;margin:0}.selected-key{display:flex;align-items:center;gap:10px;padding-bottom:15px;border-bottom:1px solid #edf0ec;margin-bottom:17px}.selected-keycap{height:35px;min-width:39px;border:1px solid #dce4dc;background:#f1f6f1;border-radius:6px;display:grid;place-items:center;padding:0 6px;font-size:12px;font-weight:600;color:#45644b}.selected-key small,.selected-key b{display:block}.selected-key small{font-size:9px;color:#969d97;margin-bottom:3px}.selected-key b{font-size:11px}.text-button{margin-left:auto;border:0;background:transparent;color:#a45448;font-size:10px;cursor:pointer}.field-label{display:block;font-size:10px;font-weight:600;color:#606961;margin:0 0 7px}.action-panel select,.light-controls select,.action-fields select,.action-fields input[type=text]{width:100%;height:35px;padding:0 9px;border:1px solid #e1e6e0;border-radius:6px;background:#fff;color:#434c45;font:11px 'DM Sans',sans-serif}.action-fields{margin-top:13px;min-height:70px}.field-help{font-size:9px;color:#8c948d;line-height:1.55;margin:7px 0 0}.choice-row{display:flex;flex-wrap:wrap;gap:5px}.modifier-choice{display:flex;align-items:center;gap:4px;font-size:9px;color:#6f7770;padding:5px 7px;border:1px solid #e4e8e3;border-radius:5px}.modifier-choice input{accent-color:var(--green);margin:0}.save-button{width:100%;margin-top:9px;height:34px;font-size:10px}.editor-note{font-size:9px;line-height:1.55;color:#929a93;margin:10px 0 0}.save-dock{position:absolute;left:0;right:0;bottom:0;min-height:64px;padding:12px 32px;display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.95);border-top:1px solid var(--line)}.save-info{display:flex;align-items:center;gap:8px;margin-right:auto;font-size:10px;color:#7d857e}.save-indicator.dirty{background:#d5a446}.save-dock .button{height:34px;font-size:10px}.lighting-view{max-width:760px}.lighting-intro{display:flex;align-items:center;gap:15px;padding:20px 0 23px;border-bottom:1px solid #edf0ec}.light-orb{height:45px;width:45px;border-radius:50%;display:grid;place-items:center;color:#71927a;background:#eef4ed;font-size:23px}.lighting-intro h3{font:600 13px Manrope,sans-serif;margin:0 0 5px}.lighting-intro p{font-size:10px;color:#8d958e;margin:0}.light-controls{display:grid;grid-template-columns:100px 160px 1fr;align-items:center;gap:12px;padding:18px 0}.light-controls .field-label{margin:0}.light-controls select{width:160px}.sleep-toggle{font-size:10px;color:#636c64;display:flex;align-items:center;gap:7px}.sleep-toggle input{accent-color:var(--green)}.color-grid{display:grid;grid-template-columns:repeat(8,minmax(52px,1fr));gap:8px}.color-cell{padding:8px 6px;border:1px solid #e9ece8;border-radius:7px;text-align:center}.color-cell input{width:30px;height:30px;border:0;padding:0;background:none;cursor:pointer}.color-cell span{display:block;font-size:8px;color:#919991;margin-top:4px}.footer{height:46px;border-top:1px solid #e5e9e3;padding:0 clamp(22px,5vw,76px);display:flex;align-items:center;justify-content:space-between;color:#9aa19b;font-size:9px}.toast{position:fixed;bottom:23px;left:50%;transform:translateX(-50%);padding:11px 16px;border-radius:7px;background:#26362c;color:#fff;font-size:11px;box-shadow:0 7px 24px #1c302b30;opacity:0;pointer-events:none;transition:opacity .18s;z-index:10}.toast.show{opacity:1}[hidden]{display:none!important}@keyframes pulse{50%{opacity:.35}}@media(max-width:1000px){.editor-layout{grid-template-columns:minmax(0,1fr) 245px}.editor-area{padding-left:22px;padding-right:22px}.save-dock{padding-left:22px;padding-right:22px}.welcome{gap:15px}.keyboard-art{padding:25px 18px}.key-row b{height:36px}}@media(max-width:760px){.topbar{height:64px;grid-template-columns:1fr auto;padding:0 18px}.device-state{grid-row:2;grid-column:1/-1;position:absolute;left:18px;bottom:-24px;justify-content:flex-start;background:#fff;padding:5px 9px;border-radius:0 0 6px 6px;font-size:10px}.top-actions{grid-column:2;grid-row:1}.top-actions .button{height:33px;padding:0 11px;font-size:10px}.studio-main{padding:35px 14px 20px}.welcome{min-height:0;padding:55px 4px 30px;grid-template-columns:1fr}.welcome-copy{padding:0}.welcome h1{font-size:54px}.keyboard-art{justify-self:center;width:100%;max-width:520px;margin-top:12px}.workspace{grid-template-columns:1fr}.sidebar{min-height:0;padding:11px 12px;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:8px}.side-heading,.side-divider,.sidebar-bottom{display:none}.sidebar>.nav-item{grid-row:1}.layer-heading{grid-column:1/-1;margin:6px 3px 0}.layer-list{grid-column:1/-1;display:flex;overflow:auto}.layer-button{flex:0 0 auto;padding:0 12px}.editor-area{padding:22px 14px 77px}.page-head h2{font-size:20px}.page-head p:last-child{max-width:300px;line-height:1.5}.editor-layout{grid-template-columns:1fr}.keyboard-panel{padding:13px;min-height:0}.keyboard-map{grid-template-columns:repeat(auto-fill,minmax(39px,1fr));gap:6px}.keycap{height:39px}.action-panel{min-height:0}.empty-editor{min-height:150px}.save-dock{padding:10px 12px;gap:6px;flex-wrap:wrap}.save-info{flex:1 0 100%;margin:0}.save-dock .button{flex:1}.light-controls{grid-template-columns:90px 1fr}.sleep-toggle{grid-column:1/-1}.color-grid{grid-template-columns:repeat(4,minmax(45px,1fr))}.footer{padding:0 14px}.footer span:last-child{max-width:190px;text-align:right;line-height:1.4}}@media(max-width:430px){.brand{font-size:14px}.brand-mark{width:26px;height:26px}.dirty-label{display:none}.welcome h1{font-size:46px;letter-spacing:-2.6px}.welcome-copy>p:not(.eyebrow){font-size:12px}.key-row{gap:4px;margin-bottom:6px}.key-row b{height:30px;min-width:14px;font-size:8px}.keyboard-art{padding:19px 12px}.editor-area{padding-left:10px;padding-right:10px}.panel-top{margin-bottom:14px}.keycap{height:36px}.keycap strong{font-size:10px}.footer{font-size:8px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
