/* Synth Lab — warm metal, muted terracotta, clearly grouped hardware controls. */
#synth-dialog{--syn-bg:#d2c9bc;--syn-surface:#e7dfd3;--syn-line:#beb2a0;--syn-ink:#34332d;--syn-muted:#716b5e;--syn-accent:#a95437;box-sizing:border-box;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:var(--syn-bg);color:var(--syn-ink);font:14px/1.45 system-ui,-apple-system,sans-serif;overflow:auto;overscroll-behavior:contain;color-scheme:light}
#synth-dialog *{box-sizing:border-box}#synth-dialog [hidden]{display:none!important}#synth-dialog button,#synth-dialog input,#synth-dialog select{font:inherit}#synth-dialog button{cursor:pointer;touch-action:manipulation}#synth-dialog input,#synth-dialog select{color:var(--syn-ink);background:#f2ece2;border:1px solid var(--syn-line);border-radius:7px;padding:7px;min-width:0}#synth-dialog input[type=range]{padding:0;accent-color:var(--syn-accent);cursor:ew-resize}#synth-dialog button:focus-visible,#synth-dialog input:focus-visible,#synth-dialog select:focus-visible{outline:3px solid #487e7a;outline-offset:3px}#synth-dialog button:disabled{opacity:.35;cursor:default}#synth-dialog h2,#synth-dialog h3,#synth-dialog p{margin:0}#synth-dialog h2{font-size:20px;letter-spacing:-.5px}#synth-dialog h3{font-size:14px;font-weight:650;letter-spacing:0}#synth-dialog label{font-size:11px;color:var(--syn-muted)}
.synth-header{position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:16px;padding:14px 22px;background:#e4dbcedf;backdrop-filter:blur(16px);border-bottom:1px solid var(--syn-line);padding-top:max(14px,env(safe-area-inset-top))}.synth-brand{font-size:18px;letter-spacing:2px;font-weight:800;line-height:1.2}.synth-brand>span{color:#9f573e;font-size:13px;letter-spacing:2px;margin-left:6px}.synth-brand small{display:block;font-size:8px;font-weight:600;letter-spacing:2.6px;color:var(--syn-muted);margin-top:5px}.synth-engine-label{font-size:10px;letter-spacing:2px;color:var(--syn-muted);margin-left:18px}.synth-header-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.synth-button{padding:9px 13px;background:#e9e2d7;color:var(--syn-ink);border:1px solid var(--syn-line);border-radius:8px;font-size:12px;line-height:1.4;white-space:nowrap}.synth-button:hover{background:#f3ede4}.synth-button.synth-primary{background:#a95437;border-color:#93472f;color:#fff8eb;box-shadow:0 2px 3px #6c4e2e1a}.synth-button[aria-pressed=true]{background:#687c70;border-color:#5a7163;color:#fff}.synth-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--syn-line);border-radius:50%;background:transparent;color:var(--syn-ink);font-size:20px}.synth-wide{width:100%;text-align:center}
.synth-layout{display:grid;grid-template-columns:205px minmax(0,1fr) 275px;gap:18px;padding:20px 22px 10px;align-items:start;max-width:1920px;margin:auto}.synth-presets{align-self:stretch;border-right:1px solid var(--syn-line);padding-right:16px;grid-row:1 / 3}.synth-panel-heading{display:flex;justify-content:space-between;align-items:baseline;gap:6px;margin-bottom:14px;font-size:10px;font-weight:650;letter-spacing:1.3px;color:var(--syn-muted)}.synth-presets>.synth-panel-heading{display:block}.synth-presets h2{margin-bottom:6px!important}.synth-presets input,.synth-presets select{width:100%;margin-bottom:8px}.synth-preset{display:flex;align-items:center;gap:9px;width:100%;min-height:43px;text-align:left;background:transparent;border:1px solid transparent;border-radius:7px;padding:9px 6px;color:var(--syn-ink);font-size:12px!important}.synth-preset>span:nth-child(2){flex:1}.synth-preset small{font-size:8px;letter-spacing:1px;color:var(--syn-muted)}.synth-preset.chosen{background:#e9dfcf;border-color:#c5af95}.synth-preset:hover{background:#e1d8cb}.synth-preset-dot{width:6px;height:6px;flex:none;border-radius:50%;background:#b7774f}.synth-preset-dot.fm{background:#64847d}.synth-preset-dot.wave{background:#8a7495}.synth-preset-foot{margin-top:24px!important;line-height:1.8}.synth-small{font-size:11px;color:var(--syn-muted);line-height:1.6}.synth-patch-bar{display:grid;grid-template-columns:1.3fr 1.1fr .7fr .9fr;gap:10px;margin-bottom:18px}.synth-patch-bar label{display:flex;flex-direction:column;gap:5px}.synth-patch-bar input,.synth-patch-bar select{width:100%;height:34px}.synth-name-field input{font-weight:700}.synth-output-level{display:grid!important;grid-template-columns:1fr 1fr;gap:0 8px!important}.synth-output-level output{text-align:right;font-variant-numeric:tabular-nums}.synth-output-level input{grid-column:1/-1}.synth-flow{font-size:10px;letter-spacing:1px;color:var(--syn-muted);text-transform:uppercase;padding:0 0 10px 1px}.synth-osc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.synth-panel{background:linear-gradient(150deg,#eee6db,#e3dacd);border:1px solid var(--syn-line);border-radius:12px;padding:15px;box-shadow:0 2px 3px #51432d06}.synth-section-number{font:9px/1.3 ui-monospace,monospace;letter-spacing:1.2px;color:var(--syn-muted)}.synth-osc .synth-panel-heading,.synth-operator .synth-panel-heading{display:block}.synth-osc h3,.synth-operator h3{margin-top:5px!important}.synth-select-field{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0}.synth-select-field select{font-size:11px!important;max-width:68%;padding:5px!important}.synth-knob-row{display:flex;justify-content:space-around;gap:8px;flex-wrap:wrap}.synth-knob{position:relative;display:flex;flex:1 1 52px;flex-direction:column;align-items:center;gap:5px;min-width:0;text-align:center;padding:7px 0}.synth-param-name{font-size:9px;min-height:24px;display:flex;align-items:center;justify-content:center;line-height:1.25}.synth-dial{--knob-angle:0deg;--knob-fill:135deg;position:relative;display:block;width:43px;height:43px;border-radius:50%;background:conic-gradient(from 225deg,#a85c3d var(--knob-fill),#c5baaa var(--knob-fill) 270deg,transparent 270deg);box-shadow:0 2px 5px #3d342c18}.synth-dial:before{content:'';position:absolute;inset:4px;background:linear-gradient(135deg,#59584d,#35382f);border-radius:50%;box-shadow:inset 0 1px 2px #d5cdb12e,0 1px 3px #1b221c66}.synth-dial:after{content:'';position:absolute;width:2px;height:11px;left:calc(50% - 1px);top:8px;background:#e7cba0;border-radius:2px;transform-origin:1px 14px;transform:rotate(var(--knob-angle))}.synth-knob output{font:10px/1.3 ui-monospace,monospace;color:var(--syn-ink);font-variant-numeric:tabular-nums}.synth-knob input[type=range]{width:100%;height:12px;max-width:95px;opacity:.7}.synth-extra{margin-top:10px}.synth-extra>.synth-panel-heading{margin-bottom:3px}.synth-tone{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.synth-tone>.synth-panel:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:10px}.synth-tone>.synth-panel:last-child>.synth-knob-row{grid-column:3;grid-row:1/4}.synth-tone>.synth-panel:last-child>.synth-panel-heading{margin-bottom:0}.synth-envelope{width:100%;height:55px;display:block}.synth-adsr .synth-knob{flex-basis:35px}.synth-adsr .synth-dial{width:34px;height:34px}.synth-adsr .synth-dial:after{height:8px;top:8px;transform-origin:1px 9px}.synth-adsr .synth-param-name{font-size:8px}.synth-panel details{border-top:1px solid #c9beaf;padding-top:8px;margin-top:7px}.synth-panel summary{font-size:10px;color:var(--syn-muted);cursor:pointer}.synth-scope-panel{background:#37382f;border:1px solid #555449;border-radius:12px;overflow:hidden;margin-bottom:12px;color:#d8d0bc}.synth-scope-panel .synth-panel-heading{padding:12px 14px;margin:0;color:#c6bfa9;font-size:9px}.synth-scope-panel canvas{display:block;width:100%;height:106px}.synth-scope-panel p{color:#b6b09e;padding:10px 14px;font-size:9px}.synth-right>.synth-wide{margin-top:12px}.synth-fx{border-top:1px solid #cbbfae;padding-top:9px;margin-top:9px}.synth-fx-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px}.synth-fx .synth-icon{width:22px;height:22px;font-size:13px}.synth-fx-add{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.synth-fx-add select{flex:1;max-width:100%;font-size:11px!important}.synth-fx-add button{font-size:11px!important}.synth-operator-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.synth-operator{padding:12px 10px}.synth-fm-matrix{margin-top:10px}.synth-matrix-grid{display:grid;grid-template-columns:80px repeat(4,minmax(0,1fr));gap:5px;align-items:center;text-align:center;font-size:10px;margin-top:10px}.synth-matrix-cell{display:flex;align-items:center;gap:5px;border:1px solid #cfc4b5;padding:7px;border-radius:5px}.synth-matrix-cell.active{background:#d3ded1;border-color:#9aaa96}.synth-matrix-cell input{width:100%;height:12px;min-width:12px}.synth-matrix-cell output{font:11px ui-monospace,monospace;min-width:20px}
.synth-performance{grid-column:2/4;border-top:1px solid var(--syn-line);padding-top:17px}.synth-seq-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.synth-seq-heading h2{margin-top:3px!important}.synth-transport{display:flex;align-items:center;gap:12px}.synth-bpm{white-space:nowrap}.synth-bpm input{width:58px!important;font-weight:700!important}#synth-position{font:9px ui-monospace,monospace;min-width:85px;color:var(--syn-muted)}.synth-seq-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}.synth-seq-tools label{display:flex;align-items:center;gap:7px}.synth-seq-tools select{font-size:11px!important;padding:5px!important}.synth-seq-tools button{font-size:10px}.synth-swing input{width:75px}.synth-pagination{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:10px}.synth-pagination .synth-icon{width:25px;height:25px}.synth-strip{position:relative}#synth-sequence{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:4px}.synth-step{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;height:76px;padding:7px 2px;background:#dcd3c5;border:1px solid #bbae9a;border-radius:7px;color:#716b5e;overflow:hidden}.synth-step:nth-child(4n+1){border-left:2px solid #83765f}.synth-step:nth-child(8n+1){border-left:3px solid #665d4b}.synth-step.on{background:linear-gradient(180deg,#d4a984,#c3865e);border-color:#b47b55;color:#372b22}.synth-step.on:after{content:'';position:absolute;left:0;right:0;bottom:0;height:calc(var(--hit-strength)*6px);background:#95533366}.synth-step:nth-child(n+9).on{background:linear-gradient(180deg,#aebca4,#8da48e);border-color:#81967c;color:#24352a}.synth-step.selected{outline:2px solid #fff5e3;outline-offset:-4px;box-shadow:0 0 0 2px #997557}.synth-step.playing{box-shadow:inset 0 0 0 2px #fff4cc,0 0 9px #d6a35699}.synth-step-number{font:9px ui-monospace,monospace;align-self:flex-start;margin-left:4px;opacity:.8}.synth-step strong{font:600 12px ui-monospace,monospace}.synth-step-length{font-size:8px;opacity:.7}#synth-cursor{position:absolute;top:-3px;bottom:-3px;width:2px;background:#fff6d7;pointer-events:none;box-shadow:0 0 5px #5d503f;transition:none;z-index:2}#synth-note-controls{display:flex;align-items:center;flex-wrap:wrap;gap:14px;min-height:57px;padding:9px 0}#synth-note-controls>strong{font-size:10px;color:var(--syn-muted)}#synth-note-controls label{display:flex;align-items:center;gap:7px;margin:0}#synth-note-controls input{width:64px}#synth-note-controls select{max-width:none;width:82px}.synth-delete{margin-left:auto}.synth-keyboard-heading{display:flex;justify-content:space-between;color:var(--syn-muted);font-size:8px;letter-spacing:1.2px;margin:8px 0}#synth-keyboard{display:flex;gap:3px;height:88px;border-radius:8px;background:#756b5b;padding:4px;overflow:hidden}.synth-key{flex:1;min-width:0;border:1px solid #bdb29f;border-radius:3px 3px 6px 6px;background:linear-gradient(#eee7da,#f8f2e7);color:#716754;font:8px ui-monospace,monospace!important;display:flex;align-items:flex-end;justify-content:center;padding:0 1px 8px;box-shadow:0 2px 2px #4e42324a;touch-action:none!important;user-select:none}.synth-key.black{height:63%;background:linear-gradient(#42463a,#282d26);color:#bdb99c;border-color:#343c2b;flex:.7;box-shadow:0 3px 3px #28271e70}.synth-key.pressed{background:#b88359;color:#fff}.synth-key.black.pressed{background:#6a8b78}.synth-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:46px;padding:10px 22px;padding-bottom:max(10px,env(safe-area-inset-bottom));font-size:11px;color:var(--syn-muted)}.synth-footer>span{font-size:9px;white-space:nowrap}
@media(min-width:1600px){.synth-layout{grid-template-columns:225px minmax(0,1fr) 310px;gap:24px;padding:24px 30px}.synth-dial{width:53px;height:53px}.synth-dial:after{top:9px;transform-origin:1px 18px;height:12px}.synth-param-name{font-size:10px}.synth-osc .synth-knob-row{gap:18px}.synth-scope-panel canvas{height:145px}.synth-step{height:88px}}
@media(max-width:1150px){.synth-layout{grid-template-columns:165px minmax(0,1fr);gap:14px;padding:15px}.synth-right{grid-column:2;display:grid;grid-template-columns:1fr 1fr;gap:10px}.synth-right>.synth-wide{grid-column:1/-1;margin:0}.synth-performance{grid-column:2}.synth-scope-panel{margin:0;align-self:start}.synth-presets{grid-row:1/4}.synth-header{padding-left:15px;padding-right:15px;gap:10px}.synth-engine-label{display:none}.synth-tone>.synth-panel:last-child{display:block}.synth-patch-bar{grid-template-columns:1.2fr 1fr}.synth-output-level{align-content:start}.synth-output-level input{height:26px}.synth-param-name{font-size:8px}.synth-operator-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.synth-operator .synth-adsr{flex-wrap:nowrap}.synth-seq-heading{align-items:flex-start}.synth-seq-heading h2{font-size:17px!important}.synth-transport{flex-wrap:wrap;justify-content:flex-end;gap:7px}#synth-position{display:none}}
@media(max-width:760px){.synth-header{flex-wrap:wrap;padding:10px;gap:8px}.synth-brand{font-size:15px}.synth-brand>span{font-size:10px}.synth-brand small{font-size:7px}.synth-header-actions{width:100%;justify-content:flex-end;gap:5px}.synth-header-actions button{font-size:10px;padding:8px}.synth-header-actions #synth-save{margin-left:auto}.synth-layout{grid-template-columns:minmax(0,1fr);padding:10px;gap:13px}.synth-presets{grid-row:auto;border-right:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:7px}.synth-presets>.synth-panel-heading{grid-column:1/-1;display:flex;align-items:center;margin-bottom:0}.synth-presets h2{font-size:16px!important;margin:0!important}.synth-presets>.synth-panel-heading span{font-size:8px}.synth-presets input,.synth-presets select{margin:0;height:31px;font-size:11px!important}#synth-preset-list{grid-column:1/-1;display:flex;gap:5px;overflow:auto;max-width:100%;padding-bottom:5px}.synth-preset{width:auto;min-width:135px;flex:none;padding:8px;background:#e5dccf;border-color:#c6b8a3;min-height:38px}.synth-preset small{display:none}.synth-preset-foot{display:none}.synth-main{min-width:0}.synth-patch-bar{gap:8px;margin-bottom:12px}.synth-patch-bar input,.synth-patch-bar select{height:31px;font-size:11px!important}.synth-panel{padding:11px}.synth-osc-grid{gap:6px}.synth-osc{padding:9px 6px}.synth-osc h3{font-size:11px!important}.synth-osc .synth-select-field{display:block;font-size:8px}.synth-osc .synth-select-field select{display:block;width:100%;max-width:none;margin-top:3px;font-size:9px!important}.synth-osc .synth-knob-row{gap:4px}.synth-osc .synth-knob{flex-basis:30px}.synth-osc .synth-dial{width:34px;height:34px}.synth-osc .synth-dial:after{top:7px;height:8px;transform-origin:1px 10px}.synth-param-name{min-height:22px;font-size:8px}.synth-knob output{font-size:9px}.synth-tone{grid-template-columns:1fr}.synth-tone>.synth-panel:last-child{display:grid;grid-template-columns:1fr 1fr}.synth-tone>.synth-panel:last-child>.synth-knob-row{grid-column:2;grid-row:1/4}.synth-tone .synth-adsr{flex-wrap:nowrap}.synth-tone .synth-adsr .synth-dial{width:43px;height:43px}.synth-tone .synth-adsr .synth-dial:after{top:8px;height:11px;transform-origin:1px 14px}.synth-right,.synth-performance{grid-column:1}.synth-right{grid-template-columns:1fr}.synth-scope-panel canvas{height:90px}.synth-seq-heading{gap:6px}.synth-transport{gap:5px;max-width:50%}.synth-transport button{font-size:11px;padding:8px}.synth-bpm input{width:49px!important;font-size:12px!important;padding:6px!important}.synth-seq-tools{gap:7px}.synth-seq-tools label{font-size:10px!important}.synth-seq-tools button{padding:7px;font-size:10px}.synth-swing input{width:58px}.synth-pagination{margin-left:0}.synth-strip{overflow:visible}#synth-sequence{gap:2px}.synth-step{height:63px;padding:5px 0;border-radius:4px}.synth-step strong{font-size:8px;writing-mode:vertical-rl}.synth-step-number{font-size:7px;margin-left:1px}.synth-step-length{display:none}.synth-step:nth-child(4n+1){border-left-width:2px}.synth-step:nth-child(8n+1){border-left-width:2px}#synth-note-controls{gap:8px;font-size:10px}#synth-note-controls label{font-size:10px}#synth-note-controls input{width:54px;padding:5px}#synth-note-controls select{width:68px}.synth-keyboard-heading{font-size:7px;letter-spacing:.5px}.synth-keyboard-heading span:last-child{display:none}#synth-keyboard{height:78px;gap:2px;padding:3px}.synth-key{font-size:6px!important;padding-bottom:5px}.synth-footer{padding:12px 10px;align-items:flex-start}.synth-footer>span{display:none}.synth-matrix-grid{grid-template-columns:55px repeat(4,minmax(0,1fr));gap:3px;font-size:8px}.synth-matrix-cell{flex-direction:column;gap:3px;padding:5px 3px}.synth-flow{font-size:8px}.synth-button,.synth-icon{min-height:32px}}
@media(prefers-reduced-motion:reduce){#synth-dialog *{scroll-behavior:auto!important}}
/* Isolate the instrument from the rhythm library's broad element rules. */
#synth-dialog .synth-main{margin:0;padding:0;max-width:none;width:auto;min-width:0}
#synth-dialog input[type=range]{min-height:12px;margin:0}
#synth-dialog .synth-footer{margin:0;border:0;border-top:1px solid var(--syn-line);flex-direction:row;flex:none}
#synth-dialog .synth-icon{min-height:32px}
@media(min-width:761px){
 #synth-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
 .synth-header{position:relative;flex:none}
 .synth-layout{flex:1;min-height:0;width:100%;max-width:none;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}
 .synth-main,.synth-right,.synth-presets{height:100%;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#ad9f8b transparent}
 .synth-main{padding-right:3px!important}.synth-right{padding-right:3px}.synth-presets{grid-row:1/3}
 .synth-performance{grid-row:2;grid-column:2/4}
 .synth-seq-heading{margin-bottom:8px}.synth-seq-tools{margin-bottom:8px}
 .synth-step{height:65px}#synth-note-controls{min-height:47px;padding:6px 0}
 #synth-keyboard{height:65px}.synth-keyboard-heading{margin:5px 0}
 #synth-dialog button{min-height:32px}#synth-dialog .synth-pagination .synth-icon{min-height:25px}
 .synth-knob{padding:4px 0}.synth-param-name{min-height:20px}.synth-knob-row{gap:7px}
}
@media(min-width:761px) and (max-width:1150px){
 .synth-layout{grid-template-columns:130px minmax(0,1fr) 185px;gap:12px}
 .synth-right{display:block;grid-column:3;grid-row:1}.synth-right>.synth-wide{margin-top:10px;white-space:normal}
 .synth-scope-panel{margin-bottom:10px}.synth-panel{padding:10px}.synth-osc-grid{gap:6px}
 .synth-osc h3{font-size:11px!important}.synth-osc .synth-select-field{display:block;font-size:8px}.synth-osc .synth-select-field select{max-width:none;width:100%;font-size:9px!important}
 .synth-tone{grid-template-columns:1fr}.synth-tone>.synth-panel:last-child{display:grid;grid-template-columns:1fr 1fr}.synth-tone>.synth-panel:last-child>.synth-knob-row{grid-column:2}
 .synth-osc .synth-knob{flex-basis:30px}.synth-preset{font-size:10px!important;padding:7px 3px}.synth-preset small{display:none}
 .synth-presets>.synth-panel-heading span{font-size:8px}.synth-presets input,.synth-presets select{font-size:10px!important}
 .synth-fx .synth-knob{flex-basis:35px}.synth-performance{grid-column:2/4}.synth-fx-add button{white-space:normal}
}
@media(max-width:760px){#synth-dialog input[type=range]{min-height:24px}.synth-knob input[type=range]{max-width:75px}}
.synth-dial{touch-action:none;cursor:ns-resize;user-select:none}
.synth-mobile-nav{display:none}
@media(max-width:760px){.synth-mobile-nav{position:sticky;top:var(--synth-header-height,100px);z-index:7;display:flex;gap:5px;background:#ded5c7;padding:6px 10px;border-bottom:1px solid var(--syn-line)}.synth-mobile-nav button{flex:1;min-height:34px;border:1px solid #beb09c;background:#eae1d4;color:#544b3d;border-radius:6px;font-size:11px!important}.synth-mobile-nav button:last-child{background:#647c70;color:#fff;border-color:#647c70}#synth-oscillators,#synth-effects,#synth-performance{scroll-margin-top:calc(var(--synth-header-height,100px) + 55px)}}
.synth-library-tabs{display:flex;gap:4px;margin:0 0 12px}.synth-library-tabs button{flex:1;border:1px solid #b6a993;background:#ded4c5;color:#695d4a;border-radius:6px;padding:6px;font-size:11px!important}.synth-library-tabs button[aria-pressed=true]{background:#6b7e6e;color:#fff9eb;border-color:#6b7e6e}.synth-random-box{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.synth-random-box select{flex:1;font-size:10px!important;max-width:100%}.synth-random-box button{flex:1;background:#8d7257;color:#fff9ea;border-color:#8d7257}.synth-melody-title{font-size:10px;color:#78654d;display:block;margin-top:3px}.synth-record-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px 13px;border-top:1px solid #bdae98;padding:9px 0;margin-top:5px}.synth-record-options label{display:flex;align-items:center;gap:5px}.synth-record-options select{font-size:10px!important;padding:5px!important;max-width:145px}.synth-record-options input[type=checkbox],.synth-xy-options input[type=checkbox]{width:14px;height:14px;min-height:0!important;margin:0;accent-color:#a65438}.synth-record-options b{font:11px ui-monospace,monospace;color:#9a563a}.synth-palette-settings{font-size:10px;color:#786a54;margin:0 0 8px}.synth-palette-settings summary{cursor:pointer}.synth-palette-settings label{display:inline-flex;align-items:center;gap:7px;margin:6px 12px 0 0}.synth-palette-settings select{padding:4px!important;font-size:10px!important}.synth-record{color:#a44937;background:#efdbcd;border-color:#be8874}.synth-record[aria-pressed=true]{background:#b34732!important;border-color:#a3422e!important;color:#fff!important;box-shadow:0 0 0 3px #b3473220}.synth-key.chosen-note{outline:2px solid #a05a3b;outline-offset:-3px;background:#dfc6a0}.synth-key.black.chosen-note{background:#817653;color:#fff}.synth-hit-stack{display:flex;flex-direction:column;justify-content:center;gap:2px;width:100%;flex:1;min-height:0}.synth-hit{display:block;min-height:0!important;height:14px;line-height:14px;padding:0 1px;border:0;border-radius:2px;color:inherit;background:#ffffff22;font:9px ui-monospace,monospace!important;white-space:nowrap;cursor:pointer}.synth-hit.picked{background:#fff8dcaa;box-shadow:inset 0 0 0 1px #836b4c}.synth-hit-more{font-size:8px}.synth-micro-onset{position:absolute;top:18px;bottom:13px;width:1px;background:#3b55474a;pointer-events:none}.synth-step{cursor:crosshair}.synth-step.on{padding-top:5px}.synth-step:focus-visible{outline:2px solid #497d73;outline-offset:1px}.synth-hit-stack>strong{margin:auto}.synth-xy{margin:0 0 12px}.synth-xy .synth-panel-heading{display:block}.synth-xy .synth-panel-heading span{display:block;font:8px ui-monospace,monospace;margin-top:5px;letter-spacing:1px}.synth-xy-routing{display:flex;gap:7px;margin-bottom:9px}.synth-xy-routing label{display:flex;align-items:center;gap:5px;min-width:0;flex:1}.synth-xy-routing select{width:100%;font-size:9px!important;padding:5px!important;min-width:0}#synth-xy-pad{position:relative;overflow:hidden;height:170px;border:1px solid #777861;border-radius:9px;background:radial-gradient(ellipse at 60% 20%,#b5b99c55,transparent 70%),repeating-linear-gradient(0deg,transparent 0,transparent calc(25% - 1px),#bdbb9c35 calc(25% - 1px),#bdbb9c35 25%),repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),#bdbb9c35 calc(25% - 1px),#bdbb9c35 25%),#4a5143;touch-action:none;cursor:crosshair;user-select:none;isolation:isolate}#synth-xy-pad:focus-visible{outline:3px solid #b8764b;outline-offset:2px}#synth-xy-dot{position:absolute;transform:translate(-50%,-50%);width:16px;height:16px;border:2px solid #ffebc2;border-radius:50%;background:#d5a26a;box-shadow:0 0 0 8px #f5ca7530,0 0 28px #e3be7280;pointer-events:none;z-index:2}#synth-xy-x-label,#synth-xy-y-label{position:absolute;font-size:8px;letter-spacing:.5px;color:#e8e2c8;pointer-events:none}#synth-xy-x-label{bottom:7px;left:8px}#synth-xy-y-label{top:7px;left:8px}.synth-xy-instruction{position:absolute;top:45%;width:100%;text-align:center;color:#e5dfbe88;font-size:10px;pointer-events:none}#synth-xy-values{display:block;font:9px/1.6 ui-monospace,monospace;color:#6e5f49;padding:7px 0;min-height:26px}.synth-xy-options{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:9px}.synth-xy-options label{display:flex;align-items:center;gap:5px;font-size:9px!important}.synth-xy .synth-wide{font-size:10px!important}
@media(min-width:761px){.synth-performance{min-height:0;max-height:55dvh;overflow:auto;scrollbar-width:thin;padding-right:4px}.synth-layout{grid-template-rows:minmax(170px,1fr) auto}.synth-presets .synth-panel-heading h2{font-size:16px!important}.synth-seq-tools{gap:7px}.synth-seq-tools .synth-button{font-size:10px;padding:6px 8px}.synth-seq-heading{margin-bottom:4px}.synth-seq-heading h2{font-size:17px!important}.synth-transport{gap:7px}.synth-transport button{font-size:11px!important;padding:7px 9px}.synth-record-options{padding:6px 0}.synth-step{height:66px}.synth-step.on:after{height:3px}}
@media(min-width:761px) and (max-width:1150px){.synth-library-tabs button{font-size:9px!important}.synth-xy{padding:9px}.synth-xy-routing{display:block}.synth-xy-routing label+label{margin-top:5px}.synth-performance{max-height:53dvh}.synth-record-options{gap:7px}.synth-xy .synth-panel-heading h3{font-size:12px!important}#synth-xy-pad{height:145px}}
@media(max-width:760px){.synth-presets .synth-library-tabs{grid-column:1/-1;margin:0}.synth-library-tabs button{min-height:34px}.synth-random-box{grid-column:1/-1;flex-wrap:nowrap;margin:2px 0 4px}.synth-random-box select{height:32px!important;width:auto!important;margin:0!important;max-width:65%}.synth-random-box button{min-height:32px;padding:5px}.synth-hit{font-size:7px!important;height:13px;line-height:13px}.synth-hit-stack>strong{writing-mode:initial!important}.synth-step.on{min-height:74px}.synth-step.on .synth-step-number{margin-bottom:1px}.synth-record-options{gap:9px;align-items:center}.synth-record-options label{font-size:10px!important}.synth-record-options select{font-size:11px!important;max-width:140px}.synth-transport{max-width:61%}.synth-transport button{font-size:10px!important;padding:7px 8px}.synth-seq-heading>div:first-child{max-width:39%}.synth-seq-heading h2{font-size:15px!important}.synth-melody-title{font-size:9px}.synth-record-options label:last-child{width:100%}.synth-xy-routing select{font-size:11px!important}.synth-xy-routing{gap:12px}#synth-xy-pad{height:225px}.synth-xy-options label{font-size:11px!important;min-height:25px}#synth-xy-values{font-size:10px}.synth-xy{padding:14px}#synth-xy-pad,.synth-xy{scroll-margin-top:150px}}
#synth-xy-dialog{color:var(--syn-ink);background:#e1d8c9;width:min(760px,96vw);max-width:96vw;max-height:94dvh;border:1px solid #a89c87;border-radius:16px;padding:20px;margin:auto;overflow:auto}#synth-xy-dialog::backdrop{background:#28271f9e;backdrop-filter:blur(5px)}.synth-xy-full-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}#synth-xy-dialog .synth-xy{margin:0;padding:18px}#synth-xy-dialog #synth-xy-pad{height:clamp(250px,49dvh,470px)}#synth-xy-dialog .synth-xy-routing select{font-size:13px!important;min-height:36px}#synth-xy-dialog .synth-xy-options label{font-size:12px!important;min-height:30px}#synth-xy-dialog #synth-xy-values{font-size:12px}#synth-xy-dialog #synth-xy-x-label,#synth-xy-dialog #synth-xy-y-label{font-size:12px;padding:5px}#synth-xy-dialog .synth-xy-instruction{font-size:14px}#synth-xy-dialog #synth-xy-dot{width:24px;height:24px}.synth-xy-launch{background:#6d7f6d;color:#fff8e8;border-color:#6d7f6d;letter-spacing:1px}
@media(max-width:760px){#synth-xy-dialog{padding:12px;max-height:96dvh;width:100%;max-width:100%;border-radius:10px}#synth-xy-dialog .synth-xy{padding:10px}#synth-xy-dialog .synth-xy-routing{display:flex}#synth-xy-dialog .synth-xy-routing select{font-size:11px!important}#synth-xy-dialog #synth-xy-values{font-size:10px}.synth-xy-launch{margin-left:auto;padding:7px 13px}}
