:root{color-scheme:light;--ink:#33334b;--paper:#f6f4ed;--stage:#282c48;--mint:#d7efba;--lilac:#b8abec;--accent:#f4d37d;--rose:#f1a8b3;--surface-subtle:#eeece5;--surface-hover:#eae8e1;--surface-selected:#dfdcf1;--surface-control:#444560;--surface-track:#2e304b;--text-on-stage:#ebe8ff;--text-on-control:#eeeaff;--text-on-accent:#2b2940;--text-on-rose:#42303b;--text-muted:#777385;--border:#dddcd4;--divider:#dedbd3;--divider-on-stage:#62617b;--focus:#9a85d9;--font-ui:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--text-caption:12px;--text-label:13px;--text-body:14px;--text-input-touch:16px;--text-title:18px;--text-dialog-title:24px;--weight-control:650;--weight-strong:750;--weight-heading:800;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--gap-controls:var(--space-3);--gap-fields:var(--space-2);--gap-sections:var(--space-4);--panel-padding:var(--space-6);--panel-padding-compact:var(--space-4);--control-performance:56px;--control-standard:40px;--target-touch:44px;--radius-field:12px;--radius-card:20px;--radius-panel:24px;--radius-pill:999px;--radius-round:50%;--shadow-control:0 4px 0 #15182f50;--shadow-popover:0 6px 0 #15182f50;--shadow-dialog:0 20px 70px #14142833}*{box-sizing:border-box}body,html{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{position:fixed;inset:0}.instrument,.instrument *{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.instrument input:not([type=range]):not([type=checkbox]),.instrument textarea{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font-ui);font-size:var(--text-body);-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button,input[type=number],input[type=search],input[type=text],select{border:1px solid var(--border);background:var(--paper);border-radius:var(--radius-field);padding:9px 12px;min-height:var(--control-standard)}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.instrument{height:100svh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.toolbar{display:flex;align-items:center;gap:var(--gap-controls);padding:10px 0;flex-shrink:0}h1{font-size:var(--text-title);font-weight:var(--weight-heading);letter-spacing:-.8px;margin:0 12px 0 0}.toolbar>button{border-color:transparent;background:transparent}.break-picker{display:flex;align-items:center;gap:var(--gap-fields);min-width:var(--target-touch);max-width:52%;margin-right:auto}.break-picker span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-label);font-weight:550}.break-picker svg{width:20px;height:20px}.break-picker:hover,.toolbar .setup-toggle:hover{background:var(--surface-hover)}.icon-button{display:grid;place-items:center;width:var(--control-standard);height:var(--control-standard);padding:0;border:0;flex-shrink:0}.tempo-control{position:relative;flex-shrink:0}.tempo-scrub{display:flex;gap:5px;align-items:baseline;justify-content:center;width:96px;font-size:var(--text-title);font-weight:700;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;border-color:transparent;background:var(--surface-hover);cursor:ew-resize;touch-action:none;user-select:none;-webkit-user-select:none}.tempo-scrub span{font-size:10px;font-weight:500;opacity:.55}.tempo-scrub[aria-disabled=true]{cursor:default;background:transparent}.tempo-entry{width:96px;font-size:var(--text-title);text-align:center;font-weight:700}.tempo-error{position:absolute;z-index:6;right:0;top:45px;white-space:nowrap;background:var(--paper);border-radius:var(--radius-field);padding:var(--space-2) var(--space-3);color:var(--ink);box-shadow:var(--shadow-popover);font-size:var(--text-caption)}.toolbar .calibrate{font-size:11px;background:#f6e6b7;white-space:nowrap}.workspace{display:flex;flex:1 1;min-height:0;position:relative}.library{display:none;width:254px;flex-shrink:0;background:var(--paper);min-height:0;padding:2px 14px 0 4px;flex-direction:column;gap:var(--gap-controls)}.library.open{display:flex}.dialog-heading,.library-heading{display:flex;justify-content:space-between;align-items:center;gap:var(--gap-fields)}.library-heading{flex-shrink:0}.library-heading button{background:transparent}.library-search{width:100%;min-width:0;background:var(--surface-subtle)!important;border-color:transparent!important;font-size:var(--text-label)}.break-list{flex:1 1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-height:0;scrollbar-width:none}.break-list .break-choice{display:block;width:100%;border:0;border-radius:10px;padding:12px;margin-bottom:3px;text-align:left;font-size:var(--text-caption);line-height:1.5;min-height:var(--target-touch)}.break-list .break-choice:hover{background:var(--surface-hover)}.break-list .break-choice[aria-pressed=true]{background:var(--surface-selected);font-weight:var(--weight-control)}.break-list .break-choice.loading{opacity:.5}.no-results{font-size:var(--text-caption);padding:8px;opacity:.6}.library-backdrop{display:none}.stage{container-type:inline-size;--pulse:0;position:relative;flex:1 1;min-width:0;overflow:hidden;background:var(--stage);color:var(--text-on-stage);border-radius:var(--radius-panel)}.stage,.touch-surface{touch-action:none;isolation:isolate}.touch-surface{container-type:size;position:absolute;inset:26px 0 94px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;outline-offset:-4px;cursor:crosshair}.touch-surface:focus-visible{outline:2px solid var(--lilac);border-radius:var(--radius-field)}.touch-surface[aria-disabled=true]{cursor:default}.surface-grid{inset:0;background:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / var(--speed-columns, 3) - 1px),#c3b9e538 calc(100% / var(--speed-columns, 3) - 1px),#c3b9e538 calc(100% / var(--speed-columns, 3))),repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 1px),#c3b9e52b calc(25% - 1px),#c3b9e52b 25%)}.surface-grid,.touch-orb{position:absolute;pointer-events:none}.touch-orb{--orb-size:104px;--shadow-depth:3px;z-index:1;width:var(--orb-size);height:var(--orb-size);left:var(--point-x);top:var(--point-y);border-radius:42% 48% 44% 48%;background:var(--lilac);color:var(--text-on-accent);transform:translate(-50%,-50%) scale(calc(1 + var(--pulse) * .09));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(1px,calc(var(--orb-size) * .025),var(--space-1));font-size:clamp(10px,calc(var(--orb-size) * .22),32px);font-weight:var(--weight-strong);line-height:1.05;box-shadow:0 var(--shadow-depth) 0 #15182f50}.touch-orb span+span{font-size:clamp(9px,calc(var(--orb-size) * .13),17px);font-weight:500}.touch-orb.held{--orb-size:130px;background:var(--accent);border-radius:44% 48% 42% 50%}@supports (width:1cqmin){.touch-orb{--rest-size:min(60cqmin,clamp(46px,calc(22px + 17cqmin),104px));--orb-size:var(--rest-size)}.touch-orb.held{--orb-size:calc(var(--rest-size) * 1.25)}}.reversed .touch-orb.held{background:var(--rose)}.axis-x{inset:auto 0 7px;grid-template-columns:repeat(var(--speed-columns,3),1fr);text-align:center;font-size:11px;font-weight:550}.axis-x,.axis-y{position:absolute;display:grid;opacity:.6;pointer-events:none}.axis-y{inset:0 14px 0 auto;grid-template-rows:repeat(4,1fr);align-items:center;text-align:right;font-size:10px}.stage-controls{position:absolute;z-index:2;bottom:18px;left:22px;right:22px;display:flex;align-items:center;gap:var(--gap-controls)}.stage-controls .round{display:grid;place-items:center;width:var(--control-performance);height:var(--control-performance);border-radius:var(--radius-round);padding:0;border:0;background:var(--surface-control);color:var(--text-on-control);flex-shrink:0}.stage-controls .round:hover{filter:brightness(1.08)}.stage-controls .round:active{transform:translateY(2px)}.stage-controls .play{background:var(--mint);color:#333d31;box-shadow:var(--shadow-control)}.stage-controls .mute,.stage-controls .performance-toggle,.stage-controls .play,.stage-controls .reverse{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.stage-controls .mute[aria-pressed=true],.stage-controls .reverse[aria-pressed=true]{background:var(--rose);color:var(--text-on-rose)}.stage-controls .mute:focus,.stage-controls .performance-toggle:focus{outline:none}.volume-control{position:relative;margin-left:auto;flex-shrink:0}.volume-toggle{touch-action:manipulation}.volume-popover input:focus,.volume-toggle:focus{outline:none}.stage-controls .volume-toggle[aria-expanded=true]{background:var(--lilac);color:var(--text-on-accent)}.volume-popover{position:absolute;z-index:4;bottom:calc(100% + var(--gap-controls));right:0;width:80px;height:clamp(120px,calc(100dvh - 230px),224px);display:flex;flex-direction:column;align-items:center;gap:var(--gap-controls);padding:var(--space-4);background:var(--surface-control);color:var(--text-on-control);border-radius:40px;box-shadow:var(--shadow-popover)}.volume-popover input{appearance:none;-webkit-appearance:none;writing-mode:vertical-lr;direction:rtl;width:var(--target-touch);height:100%;min-height:0;flex:1 1;margin:0;padding:0;background:transparent;border:0;cursor:pointer;touch-action:none}.volume-popover input::-webkit-slider-runnable-track{width:12px;border-radius:var(--radius-pill);background:linear-gradient(to top,var(--lilac) 0 var(--volume),var(--surface-track) var(--volume) 100%);cursor:pointer}.volume-popover input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:32px;height:32px;margin-left:-10px;border:0;border-radius:var(--radius-round);background:var(--lilac);box-shadow:0 3px 0 #15182f50;cursor:pointer}.volume-popover input::-moz-range-track{width:12px;height:100%;border-radius:var(--radius-pill);background:linear-gradient(to top,var(--lilac) 0 var(--volume),var(--surface-track) var(--volume) 100%);cursor:pointer}.volume-popover input::-moz-range-thumb{width:32px;height:32px;border:0;border-radius:var(--radius-round);background:var(--lilac);box-shadow:0 3px 0 #15182f50;cursor:pointer}.volume-popover output{font-size:var(--text-caption);font-weight:var(--weight-strong);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.playhead{position:absolute;top:0;bottom:0;width:2px;background:var(--lilac);opacity:.11;pointer-events:none;z-index:-1}.error{position:fixed;z-index:5;bottom:calc(max(var(--space-3), env(safe-area-inset-bottom)) + 98px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);background:var(--paper);border:0;border-radius:var(--radius-panel);padding:var(--space-2) var(--space-2) var(--space-2) var(--space-4);color:var(--ink);box-shadow:var(--shadow-popover);display:flex;align-items:center;gap:var(--gap-controls);font-size:var(--text-label)}.error span{flex:1 1;min-width:0;overflow-wrap:anywhere}.error button{border:0;background:var(--surface-hover);border-radius:var(--radius-round);width:var(--target-touch);height:var(--target-touch);padding:0;flex-shrink:0}.setup-dialog{position:fixed;inset:0;margin:auto;z-index:20;overscroll-behavior:contain;overflow-y:auto;scrollbar-width:none;width:min(560px,calc(100% - 28px));height:640px;max-height:calc(100dvh - 40px);border:0;border-radius:var(--radius-panel);background:var(--paper);color:var(--ink);padding:0;box-shadow:var(--shadow-dialog)}.setup-shade{position:fixed;inset:0;z-index:19;background:#171d3b80;pointer-events:none}.setup-content{min-height:100%;padding:var(--panel-padding)}.dialog-heading button{display:grid;place-items:center;padding:8px;background:var(--surface-hover);border:0}h2,h3{margin:0;font-family:inherit;font-weight:var(--weight-heading)}h2,h3{letter-spacing:-.4px}h2{font-size:var(--text-dialog-title)}h3{font-size:var(--text-body);margin-bottom:14px}.settings-section{margin-top:var(--gap-sections);padding:var(--space-4);border-radius:var(--radius-card);background:var(--surface-subtle)}.settings-line{display:flex;align-items:flex-end;gap:var(--gap-controls);flex-wrap:wrap}.settings-line label{display:grid;gap:var(--gap-fields);font-size:var(--text-caption)}.port-settings{display:grid;gap:var(--gap-controls);margin-top:14px}.port-settings label{display:grid;gap:var(--gap-fields);font-size:var(--text-caption)}select{max-width:100%;min-width:0}.loop-fields input{width:100px}.setting-note{font-size:11px;margin:12px 0 0;line-height:1.5;opacity:.75}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.setup-error{font-size:var(--text-label);color:var(--ink)}@media (max-width:700px),(pointer:coarse) and (max-height:500px){.instrument{padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto var(--target-touch);gap:var(--space-2);padding:12px 0}.toolbar h1{grid-column:1/-1;grid-row:1;margin:0;font-size:var(--text-title)}.toolbar .tempo-control{grid-area:2/2}.toolbar .setup-toggle{grid-area:2/3}.toolbar .calibrate{grid-column:1/-1;grid-row:3;justify-self:start}.break-picker{grid-area:2/1;justify-self:start;max-width:100%;margin:0;border-inline-start:0;padding:var(--space-1) var(--space-2);padding-inline-start:0}.break-picker span{font-size:var(--text-caption)}.tempo-entry,.tempo-scrub{width:88px}.library{position:absolute;z-index:3;inset:0 auto 0 0;width:min(310px,87vw);padding:12px;border-radius:18px;box-shadow:6px 0 30px #15182f20}.library-backdrop{display:block;position:absolute;z-index:2;inset:0;width:100%;border:0;background:#171d3b80}.library-backdrop,.stage{border-radius:var(--radius-card)}.stage-controls{left:16px;right:16px;gap:var(--gap-controls)}.axis-y{right:8px}.setup-dialog{width:calc(100% - 16px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px)}.setup-content{padding:var(--panel-padding-compact)}}@media (max-height:460px){.touch-surface{top:20px;bottom:70px}.stage-controls{bottom:12px}}@media (prefers-reduced-motion:reduce){.touch-orb{transform:translate(-50%,-50%)}.playhead{display:none}}.library-option{display:flex;align-items:center;gap:7px;font-size:11px;color:#727080;padding:8px 4px;margin-top:auto;flex-shrink:0}.library-option input{accent-color:#8072b7}.break-entry{position:relative}.break-list .break-choice{padding-right:40px}.break-meta{display:block;font-size:10px;font-weight:400;color:var(--text-muted);margin-top:5px;line-height:1.4}.metadata-items{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--gap-controls)}.break-actions{position:absolute;right:3px;top:4px;display:flex;flex-direction:column}.favorite-star{display:grid;place-items:center;width:32px;min-height:30px;border:0;padding:0;background:transparent;color:#a8a1b6}.favorite-star svg{width:18px;height:18px}.break-list .break-choice{min-height:64px}.favorite-star[aria-pressed=true],.favorites-filter[aria-pressed=true]{color:#8a6b28}.favorite-star[aria-pressed=true] svg,.favorites-filter[aria-pressed=true] svg{fill:#d5a53e;stroke:none}.library-heading .icon-button{width:32px;height:38px}.library-sort{display:flex;align-items:center;gap:var(--space-2);flex-shrink:0;padding-left:4px;color:var(--text-muted);font-size:11px}.library-sort select{flex:1 1;min-width:0;min-height:34px;padding:5px 9px;font-size:var(--text-caption);color:var(--ink)}.break-menu{position:relative}.break-menu summary{display:grid;place-items:center;width:32px;height:26px;cursor:pointer;border-radius:8px;color:#81798c;list-style:none}.break-menu summary::-webkit-details-marker{display:none}.break-menu summary::marker{content:""}.break-menu summary:hover{background:var(--surface-hover)}.break-menu summary:focus-visible{outline:3px solid var(--focus)}.break-menu summary svg{width:16px;height:16px}.break-menu-content{position:absolute;right:30px;top:-8px;z-index:4;padding:4px;background:var(--paper);border:1px solid var(--border);border-radius:10px;box-shadow:0 4px 14px #33334b20}.break-menu-content button{white-space:nowrap;font-size:var(--text-caption);border:0;min-height:32px}@media (hover:hover) and (pointer:fine){.break-menu{opacity:0}.break-entry:focus-within .break-menu,.break-entry:hover .break-menu,.break-menu[open]{opacity:1}}.editor-name{font-size:var(--text-caption);margin:0 0 14px;color:var(--text-muted)}.editor-toolbar{justify-content:space-between;gap:var(--gap-controls);margin-bottom:12px}.editor-play,.editor-toolbar{display:flex;align-items:center}.editor-play{justify-content:center;gap:var(--gap-fields);background:var(--mint);border:0;font-size:var(--text-caption)}.editor-play svg{width:18px;height:18px}.editor-zoom{display:flex;gap:3px}.editor-zoom button{min-width:32px;min-height:34px;padding:4px 8px;font-size:var(--text-caption);border:0;background:var(--surface-hover)}.loop-waveform{position:relative;height:160px;margin:0 12px;background:#e2e0ef;border-radius:8px;isolation:isolate}.loop-waveform canvas{display:block;width:100%;height:100%;border-radius:8px}.loop-shade{top:0;background:#f6f4edcf}.editor-beat,.loop-shade{position:absolute;bottom:0;pointer-events:none}.editor-beat{top:30px;width:1px;background:#6c638523}.editor-beat.bar{background:#6c638548}.editor-playhead{position:absolute;top:0;bottom:0;width:2px;background:#7962c4;pointer-events:none}.loop-handle{position:absolute;z-index:2;top:0;height:100%;width:24px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;transform:translateX(-50%);cursor:ew-resize;touch-action:none;-webkit-user-select:none;user-select:none}.loop-handle:before{content:"";width:2px;bottom:0;left:calc(50% - 1px)}.loop-handle span,.loop-handle:before{position:absolute;top:0;background:#7962c4}.loop-handle span{padding:4px 6px;color:white;border-radius:5px;font-size:10px}.loop-handle.start span{left:50%}.loop-handle.end span{right:50%}.waveform-times{display:flex;justify-content:space-between;margin:7px 12px 0;font-size:10px;color:var(--text-muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.waveform-pan{width:100%;margin:10px 0 0;accent-color:#8072b7}.loop-editor .loop-fields{margin-top:16px}.loop-editor .loop-fields input{width:95px}@media (pointer:coarse){.instrument{-webkit-tap-highlight-color:transparent}.instrument :focus,.instrument :focus-visible{outline:none}.stage-controls .round{min-width:var(--target-touch);min-height:var(--target-touch)}.library-search,.library-sort select,.setup-dialog input[type=number],.setup-dialog select{font-size:var(--text-input-touch)}.break-picker,.icon-button,.library-heading .icon-button{min-height:var(--target-touch)}.library-heading .icon-button,.setup-toggle{width:var(--target-touch)}.editor-play,.editor-zoom button,.library-sort select{min-height:var(--target-touch)}.break-menu summary,.favorite-star{width:var(--target-touch);min-height:var(--target-touch)}.break-list .break-choice{min-height:96px;padding-right:50px}.break-menu-content{right:42px}.break-menu-content button{min-height:var(--target-touch)}.loop-handle{width:var(--target-touch)}.loop-waveform{margin-left:22px;margin-right:22px}.editor-toolbar{flex-wrap:wrap}.waveform-pan{min-height:var(--target-touch)}}.usb-link{display:block;overflow-wrap:anywhere;margin:.75rem 0;user-select:text;-webkit-user-select:text}.usb-qr{display:block;max-width:100%;height:auto;margin:1rem auto;background:white}.clock-modes{display:flex;gap:var(--space-1);flex:1 1}.clock-modes button{flex:1 1}.clock-modes button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.connection-status{font-size:var(--text-caption);margin:0 0 12px}@container (max-width: 359px){.touch-surface{bottom:162px}.stage-controls{left:16px;right:16px;display:grid;grid-template-columns:repeat(2,var(--control-performance)) minmax(var(--control-performance),1fr);gap:var(--gap-controls)}.stage-controls .play{grid-column:1;grid-row:2}.stage-controls .reverse{grid-column:2;grid-row:2}.stage-controls .mute{grid-column:3;grid-row:2}.stage-controls .performance-control{grid-column:1;grid-row:1}.stage-controls .volume-control{grid-column:3;grid-row:1;justify-self:end;margin-left:0}}.break-list::-webkit-scrollbar,.setup-dialog::-webkit-scrollbar{display:none}.settings-header{position:sticky;top:0;z-index:2;background:var(--paper);margin:calc(-1 * var(--panel-padding)) calc(-1 * var(--panel-padding)) 0;padding:var(--panel-padding) var(--panel-padding) var(--space-3)}.dialog-heading button{width:var(--control-standard);height:var(--control-standard);border-radius:var(--radius-round)}.settings-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-1);margin-top:var(--space-4);padding:var(--space-1);border-radius:var(--radius-pill);background:var(--surface-hover)}.settings-nav button{border:0;border-radius:var(--radius-pill);padding:8px 4px;background:transparent;font-size:var(--text-caption);font-weight:var(--weight-strong)}.settings-nav button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.settings-section button,.settings-section select{border:0;border-radius:var(--radius-pill);font-size:var(--text-caption);font-weight:var(--weight-control);cursor:pointer}.settings-section>button{margin-top:12px}.settings-section .settings-line{align-items:center;gap:var(--space-2)}.settings-section .port-settings{margin:12px 0}.settings-section .port-settings label{gap:var(--space-2);font-weight:var(--weight-control)}.settings-section .clock-modes{padding:4px;background:var(--paper);border-radius:var(--radius-pill);min-width:190px}.settings-section .clock-modes button{min-height:var(--control-standard);padding:7px 10px}.settings-section .connection-status{margin-top:12px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);min-height:58px;font-size:var(--text-label);font-weight:var(--weight-control)}.setting-row+.setting-row{border-top:1px solid var(--divider)}.setting-row select{min-width:72px;text-align:center}.setting-switch{min-height:0;touch-action:none;appearance:none;-webkit-appearance:none;position:relative;flex:0 0 46px;width:46px;height:28px;margin:0;padding:3px;border:0;border-radius:var(--radius-pill);background:#d6d3cc;cursor:pointer}.setting-switch:before{content:"";display:block;width:22px;height:22px;border-radius:var(--radius-round);background:var(--paper)}.setting-row-button[aria-checked=true] .setting-switch{background:var(--lilac)}.setting-row-button[aria-checked=true] .setting-switch:before{transform:translateX(18px)}@media (max-width:700px){.settings-header{margin:calc(-1 * var(--panel-padding-compact)) calc(-1 * var(--panel-padding-compact)) 0;padding:var(--panel-padding-compact) var(--panel-padding-compact) var(--space-3)}.settings-section{padding:var(--space-4)}}.performance-control{flex-shrink:0}.stage-controls .performance-toggle[aria-expanded=true]{background:var(--lilac);color:var(--text-on-accent)}.performance-popover{position:absolute;z-index:4;bottom:calc(100% + var(--gap-controls));left:0;width:min(304px,100%);padding:var(--space-3) var(--space-4);border-radius:var(--radius-panel);background:var(--surface-control);color:var(--text-on-control);box-shadow:var(--shadow-popover)}.performance-popover .setting-row+.setting-row{border-color:var(--divider-on-stage)}.performance-popover .setting-switch{background:var(--surface-track)}.performance-popover .setting-row-button[aria-checked=true] .setting-switch{background:var(--lilac)}.speed-toggle{position:relative;display:grid;grid-template-columns:1fr 1fr;flex-shrink:0;width:86px;height:42px;min-height:42px;padding:3px;border:0;border-radius:var(--radius-pill);background:var(--surface-track);color:inherit;font-weight:var(--weight-strong)}.speed-toggle:before{content:"";position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:var(--radius-pill);background:var(--lilac)}.speed-toggle[aria-checked=true]:before{transform:translateX(100%)}.speed-toggle span{position:relative;display:grid;place-items:center}.speed-toggle[aria-checked=false] span:first-child,.speed-toggle[aria-checked=true] span:last-child{color:var(--text-on-accent)}@media (pointer:coarse){.settings-nav button,.settings-section .clock-modes button,.settings-section button,.settings-section select,.speed-toggle{min-height:var(--target-touch)}.dialog-heading button{width:var(--target-touch);height:var(--target-touch)}.settings-section select{font-size:var(--text-input-touch)}}@media (max-width:383px){.error{bottom:calc(max(var(--space-3), env(safe-area-inset-bottom)) + 166px)}}.setting-row-button{width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;touch-action:none}