.app{display:flex;flex-direction:column;min-height:100vh;max-width:960px;margin:0 auto;padding:0 var(--space-xl)}.connection-bar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);padding:var(--space-lg) 0;border-bottom:1px solid var(--charcoal-border);flex-wrap:wrap}.brand{display:flex;align-items:baseline;gap:var(--space-sm);flex-shrink:0}.wordmark{font-family:var(--font-brand);font-size:1.6rem;color:var(--gold-primary);letter-spacing:.1em}.product-name{font-size:1.1rem;font-weight:500;color:var(--silver-primary);text-transform:uppercase;letter-spacing:.12em}.connection-status{display:flex;align-items:center;gap:var(--space-sm)}.status-badge{width:8px;height:8px;border-radius:var(--radius-full);background:var(--silver-muted)}.status-badge.status-connected{background:var(--success)}.status-badge.status-connecting{background:var(--warning)}.status-badge.status-error{background:var(--error)}.status-text{font-size:.8rem;color:var(--silver-light)}.connection-status-btn{background:none;border:1px solid transparent;border-radius:var(--radius-sm);padding:var(--space-xs) var(--space-sm);transition:border-color .15s,background .15s;white-space:nowrap}.connection-status-btn:hover{border-color:var(--charcoal-border);background:var(--charcoal-raised)}.connection-status-btn:hover .status-badge{background:var(--error)}.connection-status-btn .status-text-hover,.connection-status-btn:hover .status-text-default{display:none}.connection-status-btn:hover .status-text-hover{display:inline;color:var(--off-white)}.main-content{flex:1;display:flex;align-items:center;justify-content:center}.hero{text-align:center;padding:var(--space-2xl)}.hero h1{font-size:1.5rem;font-weight:500;color:var(--off-white);margin-bottom:var(--space-md)}.hero p{font-size:.9rem;color:var(--silver-light);margin-bottom:var(--space-xl);max-width:400px;margin-left:auto;margin-right:auto}.hero-error{font-size:.8rem;color:var(--error);margin-bottom:var(--space-lg)}.hero-actions{display:flex;flex-wrap:wrap;gap:var(--space-md);justify-content:center}.btn-primary{background:var(--gold-primary);color:var(--charcoal-black);font-weight:600;font-size:.85rem;padding:10px 28px;border-radius:var(--radius-md);letter-spacing:.03em}.btn-primary:hover:not(:disabled){background:var(--gold-light);transform:translateY(-2px)}.btn-primary:focus-visible{outline:none;box-shadow:0 0 0 3px var(--gold-glow)}.btn-secondary{background:transparent;color:var(--gold-primary);font-weight:500;font-size:.8rem;padding:8px 20px;border:1px solid var(--gold-muted);border-radius:var(--radius-md);letter-spacing:.03em}.btn-secondary:hover:not(:disabled){background:var(--gold-glow);border-color:var(--gold-primary)}.btn-secondary:focus-visible{outline:none;box-shadow:0 0 0 3px var(--gold-glow)}.btn-ghost{background:transparent;color:var(--silver-light);font-weight:500;font-size:.8rem;padding:8px 20px;border:1px solid var(--charcoal-border);border-radius:var(--radius-md);letter-spacing:.03em}.btn-ghost:hover:not(:disabled){border-color:var(--silver-muted);color:var(--off-white);background:var(--charcoal-raised)}.btn-ghost:focus-visible{outline:none;box-shadow:0 0 0 3px var(--gold-glow)}.connection-controls{display:flex;align-items:center;gap:var(--space-sm);flex-wrap:wrap;justify-content:flex-end}.device-select{color:var(--silver-primary);background:var(--charcoal-raised);border-color:transparent;max-width:180px;transition:color var(--transition-fast),border-color var(--transition-fast)}.device-select:hover:not(:disabled){color:var(--off-white);border-color:var(--charcoal-border)}.device-select:disabled{opacity:.5;cursor:default}.firmware-badge{font-size:.7rem;color:var(--silver-primary);background:var(--charcoal-raised);padding:2px 8px;border-radius:var(--radius-full);letter-spacing:.04em}.demo-exit-btn .status-text-default{color:var(--gold-primary)}.demo-exit-btn:hover{border-color:var(--gold-muted)!important}.demo-exit-btn:hover .status-text-hover{color:var(--gold-primary)}.settings-btn{background:none;border:1px solid transparent;border-radius:var(--radius-sm);color:var(--silver-primary);font-size:1.1rem;padding:4px 6px;line-height:1;transition:color .15s,border-color .15s,background .15s}.settings-btn:hover{color:var(--off-white);border-color:var(--charcoal-border);background:var(--charcoal-raised)}.settings-btn:focus-visible{outline:none;box-shadow:0 0 0 2px var(--gold-glow)}.error-banner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);padding:var(--space-sm) var(--space-md);background:var(--error-glow);border:1px solid var(--error-muted);border-radius:var(--radius-md);font-size:.8rem;color:var(--error);margin-top:var(--space-md)}.error-dismiss{font-size:.7rem;color:var(--silver-primary);background:none;padding:2px 6px;border-radius:var(--radius-sm)}.error-dismiss:hover{color:var(--off-white)}.main-connected{align-items:stretch;justify-content:flex-start}.connected-layout{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden}.editor-placeholder{text-align:center;padding:var(--space-xl) 0}.editor-placeholder p{font-size:.9rem;color:var(--silver-light);margin-bottom:var(--space-lg)}.updating-overlay{position:fixed;inset:0;background:var(--charcoal-black);display:flex;align-items:center;justify-content:center;z-index:400}.updating-content{text-align:center}.updating-content h2{font-size:1.25rem;font-weight:600;color:var(--off-white);margin-top:var(--space-lg)}.updating-content p{font-size:.85rem;color:var(--silver-light);margin-top:var(--space-sm)}.updating-spinner{width:40px;height:40px;border:3px solid var(--charcoal-border);border-top-color:var(--gold-primary);border-radius:50%;margin:0 auto;animation:updating-spin 1s linear infinite}@keyframes updating-spin{to{transform:rotate(360deg)}}.demo-dialog-overlay,.info-dialog-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:300}.demo-dialog,.info-dialog{background:var(--charcoal-raised);border:1px solid var(--charcoal-border);border-radius:var(--radius-lg);padding:var(--space-xl);text-align:center;max-width:340px;width:90%}.demo-dialog h2,.info-dialog h2{font-size:1.1rem;font-weight:600;color:var(--off-white);margin-bottom:var(--space-xs)}.demo-dialog p,.info-dialog p{font-size:.8rem;color:var(--silver-primary);margin-bottom:var(--space-lg)}.info-dialog-lead{text-align:left;margin-bottom:var(--space-xs)!important;color:var(--off-white)!important}.info-dialog-steps{text-align:left;margin:0 0 var(--space-lg);padding-left:1.1rem;font-size:.8rem;line-height:1.6;color:var(--silver-primary)}.info-dialog-steps li+li{margin-top:var(--space-xs)}.info-dialog-steps code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem;padding:1px 4px;border-radius:var(--radius-sm);background:#0000004d;color:var(--off-white);white-space:nowrap}.info-dialog-buttons{display:flex;justify-content:center}.hero-help-link{display:block;margin:var(--space-lg) auto 0;background:none;border:none;padding:0;font-family:inherit;font-size:.78rem;color:var(--silver-primary);text-decoration:underline;text-underline-offset:3px;cursor:pointer}.hero-help-link:hover{color:var(--off-white)}.hero-help-link:focus-visible{outline:2px solid var(--gold-primary);outline-offset:3px;border-radius:var(--radius-sm)}.demo-dialog-buttons{display:flex;gap:var(--space-md);justify-content:center}.demo-dialog-buttons .btn-primary{flex:1}.account-anchor{position:relative;display:inline-flex}.account-dot{position:absolute;top:2px;right:2px;width:6px;height:6px;border-radius:50%;background:var(--gold-primary)}.preset-list-container{display:flex;flex-direction:column;gap:var(--space-xs);padding-top:var(--space-md)}.preset-list-heading{font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--silver-light)}.preset-list{display:flex;gap:var(--space-sm);padding:var(--space-xs) 0 var(--space-md);overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--charcoal-border) transparent}.preset-list::-webkit-scrollbar{height:4px}.preset-list::-webkit-scrollbar-track{background:transparent}.preset-list::-webkit-scrollbar-thumb{background:var(--charcoal-border);border-radius:var(--radius-full)}.preset-list-item{display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:var(--space-xs) var(--space-md);background:var(--charcoal-raised);border:1px solid var(--charcoal-border);border-radius:var(--radius-md);cursor:pointer;min-width:64px;flex-shrink:0;transition:border-color .15s,background .15s,box-shadow .15s,translate .18s ease,scale .15s ease;translate:0;scale:1}.preset-list-item:hover:not(.active){border-color:var(--silver-muted)}.preset-list-item{touch-action:none;-webkit-user-select:none;user-select:none}.preset-list-item.drag-source{scale:1.04;z-index:2;cursor:grabbing;box-shadow:0 10px 24px #00000080}.preset-list.dragging .preset-list-item.drag-source{transition:scale .15s ease,box-shadow .15s ease}.preset-list.snapping .preset-list-item{transition:none}.preset-list.dragging .preset-list-item:hover:not(.active){border-color:var(--charcoal-border)}.preset-list-item.active{border-color:var(--gold-primary)}.preset-list-item:focus-visible{outline:none;box-shadow:0 0 0 3px var(--gold-glow)}.preset-list-top{display:flex;align-items:center;gap:var(--space-sm);min-height:10px}.preset-list-pc{margin-left:auto;font-size:.65rem;color:var(--silver-primary);letter-spacing:.05em}.preset-list-name{font-size:.75rem;color:var(--off-white);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}.preset-list-item.active .preset-list-name{color:var(--gold-primary)}.preset-list-empty{display:flex;flex-direction:column;gap:var(--space-sm);padding:var(--space-md) 0}.preset-list-empty span{font-size:.8rem;color:var(--silver-primary)}.tt-wrap{display:inline-flex;align-items:center;gap:4px}.tt-popup{position:fixed;z-index:500;max-width:280px;padding:8px 12px;background:var(--charcoal-raised);border:1px solid var(--charcoal-border);border-radius:var(--radius-md);box-shadow:0 4px 16px #00000080;pointer-events:none;opacity:0;animation:ttFadeIn .15s ease forwards}@keyframes ttFadeIn{to{opacity:1}}.tt-text{font-size:.75rem;color:var(--silver-light);line-height:1.4}.tt-arrow{position:absolute;width:8px;height:8px;background:var(--charcoal-raised);border-right:1px solid var(--charcoal-border);border-bottom:1px solid var(--charcoal-border)}.tt-arrow-below{bottom:-5px;left:50%;transform:translate(-50%) rotate(45deg)}.tt-arrow-above{top:-5px;left:50%;transform:translate(-50%) rotate(-135deg)}.tt-info-btn{display:none;background:none;border:1px solid var(--charcoal-border);border-radius:50%;width:16px;height:16px;padding:0;flex-shrink:0;align-items:center;justify-content:center}.tt-info-icon{font-size:.6rem;font-weight:600;font-style:italic;color:var(--silver-primary);line-height:1}.tt-info-btn:hover{border-color:var(--silver-primary)}.tt-info-btn:hover .tt-info-icon{color:var(--off-white)}@media(hover:none){.tt-info-btn{display:inline-flex}.tt-popup{pointer-events:auto}}.overflow-menu{position:absolute;top:100%;right:0;margin-top:var(--space-xs);background:var(--charcoal-raised);border:1px solid var(--charcoal-border);border-radius:var(--radius-md);padding:var(--space-xs) 0;min-width:160px;z-index:50;box-shadow:0 4px 16px #0006}.overflow-menu-item{text-decoration:none;display:block;width:100%;padding:var(--space-sm) var(--space-md);font-size:.8rem;color:var(--silver-light);background:none;text-align:left;transition:background .1s}.overflow-menu-item:hover:not(:disabled){background:var(--charcoal-black);color:var(--off-white)}.overflow-menu-item:disabled{color:var(--silver-primary);opacity:.5;cursor:not-allowed}.overflow-menu-item.destructive{color:var(--error)}.overflow-menu-item.destructive:hover:not(:disabled){background:var(--error-glow)}.overflow-menu-header{padding:var(--space-xs) var(--space-md);color:var(--silver-muted);font-size:.75rem;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid var(--charcoal-border);margin-bottom:var(--space-xs)}.overflow-menu-item.starts-group{border-top:1px solid var(--charcoal-border);margin-top:var(--space-xs);padding-top:calc(var(--space-xs) + 6px)}.dialog-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:300}.dialog{background:var(--charcoal-raised);border:1px solid var(--charcoal-border);border-radius:var(--radius-md);padding:var(--space-xl);min-width:300px;max-width:400px}.dialog-title{font-size:1rem;font-weight:600;color:var(--off-white);margin-bottom:var(--space-sm)}.dialog-message{font-size:.85rem;color:var(--silver-light);margin-bottom:var(--space-xl);line-height:1.5}.dialog-message>p+p,.dialog-message>ul+p{margin-top:var(--space-md)}.dialog-list{list-style:disc;margin-top:var(--space-sm);padding-left:var(--space-lg)}.dialog-list li{color:var(--off-white)}.dialog-actions{display:flex;justify-content:flex-end;gap:var(--space-sm)}.btn-destructive{background:var(--error);color:var(--off-white);font-weight:600;font-size:.85rem;padding:8px 20px;border-radius:var(--radius-md);letter-spacing:.03em}.btn-destructive:hover{opacity:.9}.btn-destructive:focus-visible{outline:none;box-shadow:0 0 0 3px var(--error-glow)}.save-as-dialog{min-width:320px}.save-as-label{display:block;font-size:.75rem;font-weight:500;color:var(--silver-primary);text-transform:uppercase;letter-spacing:.06em;margin-bottom:var(--space-md)}.save-as-input{display:block;width:100%;margin-top:var(--space-xs);padding:var(--space-sm);font-size:.85rem;color:var(--off-white);background:var(--charcoal-black);border:1px solid var(--charcoal-border);border-radius:var(--radius-sm)}.save-as-pc{width:80px}.save-as-warning{font-size:.8rem;color:var(--warning);margin-bottom:var(--space-md)}.led-picker{position:absolute;top:calc(100% + 6px);left:0;z-index:20;display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-xs);padding:var(--space-sm);background:var(--charcoal-raised);border:1px solid var(--charcoal-border);border-radius:var(--radius-md);box-shadow:0 4px 14px #00000073}.led-picker-right{left:auto;right:0}.led-picker-swatch{width:20px;height:20px;padding:0;border:1px solid var(--charcoal-border);border-radius:50%;background:var(--swatch);cursor:pointer;transition:transform .1s ease,box-shadow .1s ease}.led-picker-swatch:hover{transform:scale(1.12)}.led-picker-swatch.selected{box-shadow:0 0 0 2px var(--charcoal-raised),0 0 0 3px var(--gold-primary)}.led-picker-swatch.led-off{background:transparent;border-style:dashed;border-color:var(--silver-muted)}.led-swatch{flex:none;width:10px;height:10px;border-radius:50%;border:1px solid var(--charcoal-border);background:var(--swatch)}.led-swatch-off{background:transparent;border-style:dashed;border-color:var(--silver-muted)}.led-swatch-btn{display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;background:none;border:1px solid transparent;border-radius:var(--radius-sm);cursor:pointer}.led-swatch-btn:hover{border-color:var(--charcoal-border)}.led-swatch-btn .led-swatch{width:12px;height:12px}.preset-bar{display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-sm) 0}.preset-bar-pc-label{font-size:.6rem;font-weight:500;color:var(--silver-primary);letter-spacing:.05em;white-space:nowrap}.preset-bar-pc{font-size:.7rem;color:var(--silver-primary);background:var(--charcoal-raised);border:1px solid transparent;padding:2px 8px;border-radius:var(--radius-sm);min-width:24px;text-align:center;letter-spacing:.04em}.preset-bar-pc:hover{color:var(--off-white);border-color:var(--charcoal-border)}.preset-bar-pc-input{font-size:.7rem;color:var(--off-white);border-color:var(--gold-primary);padding:2px 4px;width:40px;text-align:center;letter-spacing:.04em;-moz-appearance:textfield}.preset-bar-pc-input::-webkit-inner-spin-button,.preset-bar-pc-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.preset-bar-pc-conflict{border-color:var(--error)}.preset-bar-pc-conflict:focus{box-shadow:0 0 0 2px var(--error-glow)}.preset-bar-name{flex:1;font-size:.9rem;font-weight:500;color:var(--off-white);background:none;border:none;padding:var(--space-xs) var(--space-sm);text-align:left;cursor:text;border-radius:var(--radius-sm);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preset-bar-name:hover{background:var(--charcoal-raised)}.preset-bar-name-input{flex:1;font-size:.9rem;font-weight:500;color:var(--off-white);border-color:var(--gold-primary);padding:var(--space-xs) var(--space-sm);min-width:0}.preset-bar-save{display:flex;align-items:center;gap:var(--space-xs);font-size:.8rem;font-weight:600;color:var(--charcoal-black);background:var(--gold-primary);border-radius:var(--radius-md);padding:6px 16px;white-space:nowrap}.preset-bar-save:hover:not(:disabled){background:var(--gold-light)}.preset-bar-save:disabled{opacity:.4;cursor:not-allowed}.preset-bar-save:focus-visible{outline:none;box-shadow:0 0 0 3px var(--gold-glow)}.save-check{color:var(--charcoal-black);font-weight:700}.dirty-dot{width:6px;height:6px;border-radius:var(--radius-full);background:var(--charcoal-black);opacity:.6}.preset-bar-overflow{position:relative}.overflow-btn{font-size:1.2rem;color:var(--silver-light);background:none;padding:4px 8px;border-radius:var(--radius-sm);line-height:1;letter-spacing:.1em}.overflow-btn:hover{background:var(--charcoal-raised);color:var(--off-white)}.overflow-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--gold-glow)}.preset-bar-leds{display:flex;align-items:center;gap:2px}.preset-bar-led{position:relative;display:flex;align-items:center}.seg{display:flex;border:1px solid var(--charcoal-border);border-radius:var(--radius-sm);overflow:hidden}.seg-option{font-size:.75rem;font-weight:500;padding:5px 14px;background:transparent;color:var(--silver-primary);border-radius:0;transition:background .15s,color .15s}.seg-option-active{background:var(--gold-primary);color:var(--charcoal-black)}.seg-option:hover:not(.seg-option-active){color:var(--off-white);background:var(--charcoal-border)}.seg-option:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--gold-primary)}.seg-inactive .seg-option-active{background:var(--charcoal-border);color:var(--silver-light)}.seg-inactive .seg-option-active:hover{color:var(--off-white)}.mode-tabs-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-md);row-gap:var(--space-sm);padding:0 0 var(--space-sm);border-bottom:1px solid var(--charcoal-border)}.mode-tabs{display:flex;gap:2px;padding:2px;background:var(--charcoal-black);border:1px solid var(--charcoal-border);border-radius:var(--radius-md)}.mode-tab{display:flex;align-items:center;gap:5px;padding:4px 14px;font-size:.72rem;font-weight:500;letter-spacing:.04em;color:var(--silver-primary);background:none;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:color .12s ease,background .12s ease}.mode-tab:hover{color:var(--silver-light)}.mode-tab-active{color:var(--off-white);background:var(--charcoal-border)}.mode-tab:focus-visible{outline:none;box-shadow:0 0 0 3px var(--gold-glow)}.mode-tab-live{width:5px;height:5px;border-radius:50%;background:var(--gold-primary);box-shadow:0 0 4px var(--gold-glow)}.mode-tabs-right{display:flex;align-items:center;gap:var(--space-sm)}.mode-jack-label{font-size:.7rem;color:var(--silver-primary);white-space:nowrap;-webkit-user-select:none;user-select:none}.coord-entry-dialog{min-width:280px}.coord-entry-label{display:block;font-size:.75rem;font-weight:500;color:var(--silver-primary);letter-spacing:.06em;margin-bottom:var(--space-md)}.coord-entry-input{display:block;width:80px;margin-top:var(--space-xs);padding:var(--space-sm);font-size:.85rem;color:var(--off-white);background:var(--charcoal-black);border:1px solid var(--charcoal-border);border-radius:var(--radius-sm)}.coord-entry-input:disabled{opacity:.4;cursor:not-allowed}.curve-editor-container{position:relative;width:100%;padding:var(--space-md) 0;min-width:0}.ce-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-md);row-gap:var(--space-xs);padding:0 0 var(--space-xs)}.ce-header-right{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:var(--space-sm);margin-left:auto}.ce-seg-label{font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--silver-primary);margin-right:calc(-1 * var(--space-sm) + 6px)}.ce-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.ce-title{font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--silver-light)}.ce-no-sweep-slot{aspect-ratio:600 / 350;min-height:fit-content;display:flex;align-items:center;justify-content:center}.ce-no-sweep{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-sm);max-width:44ch;padding:var(--space-lg);background:var(--charcoal-raised);border-radius:var(--radius-md)}.ce-no-sweep-title{font-size:.875rem;font-weight:600;color:var(--off-white)}.ce-no-sweep-body{font-size:.875rem;color:var(--silver-light)}.ce-no-sweep .btn-secondary{margin-top:var(--space-xs);padding:var(--space-sm) var(--space-lg)}.response-curve{width:100%;height:auto;display:block;user-select:none;-webkit-user-select:none;touch-action:none}.grid-line{stroke:var(--charcoal-border);stroke-width:.5}.axis-label{font-family:var(--font-primary);font-size:9px;fill:var(--silver-primary)}.axis-end-label{font-family:var(--font-primary);fill:var(--silver-muted);letter-spacing:.04em}.treadle-band{fill:#c49a6c1a}.treadle-raw{stroke:var(--silver-muted);stroke-width:1;stroke-dasharray:4 3;opacity:.4}.treadle-smooth{stroke:var(--gold-primary);stroke-width:1;stroke-dasharray:4 3;opacity:.7}.treadle-output-line{stroke:var(--gold-primary);stroke-width:1;stroke-dasharray:4 3;opacity:.5}.treadle-output-label-bg{fill:var(--charcoal-black)}.treadle-output-label{fill:var(--gold-primary);opacity:.7}.ce-treadle-handle{cursor:grab;touch-action:none}.ce-treadle-handle polygon{fill:var(--gold-primary);opacity:.8;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}.ce-treadle-handle:hover polygon{opacity:1}.ce-treadle-handle.dragging{cursor:grabbing}.ce-treadle-handle.dragging polygon{opacity:1}.curve-path{fill:none;stroke:var(--gold-primary);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.curve-path-target{fill:none;stroke:var(--gold-light);stroke-width:1;stroke-dasharray:1 3;stroke-linecap:round;opacity:.75;vector-effect:non-scaling-stroke;pointer-events:none}.control-point{fill:var(--charcoal-black);stroke:var(--gold-primary);stroke-width:2;vector-effect:non-scaling-stroke}.control-point.hover{fill:var(--charcoal-raised)}.control-point.dragging{fill:var(--gold-primary);stroke:var(--gold-light)}.control-point.ghost{fill:transparent;stroke-dasharray:3 3;opacity:.6}.control-point.ghost.hover{opacity:1}.control-point.ghost.dragging{fill:var(--gold-primary);stroke-dasharray:none;opacity:1}.auto-point{fill:var(--gold-primary);opacity:.7;pointer-events:none}.coord-label{font-family:var(--font-primary);font-size:10px;fill:var(--silver-light);pointer-events:none}.ce-invert{padding:4px 14px;font-size:.75rem}.ce-switch{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:var(--radius-full);border:1px solid var(--charcoal-border);background:var(--charcoal-raised)}.ce-switch-dot{width:8px;height:8px;border-radius:50%;background:var(--silver-muted);transition:background var(--transition-fast)}.ce-switch-label{font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--silver-primary);transition:color var(--transition-fast)}.ce-switch-on .ce-switch-dot{background:var(--gold-primary)}.ce-switch-on .ce-switch-label{color:var(--gold-primary)}.ce-hint{position:absolute;background:var(--charcoal-raised);border:1px solid var(--charcoal-border);border-radius:var(--radius-md);padding:8px 12px;font-size:.75rem;color:var(--silver-light);line-height:1.4;white-space:pre-line;max-width:280px;pointer-events:none;opacity:0;transition:opacity var(--transition-base)}.ce-hint-br{bottom:40px;right:16px;text-align:right}.ce-hint-bl{bottom:40px;left:46px;text-align:left}.ce-hint-demo.ce-hint-br,.ce-hint-demo.ce-hint-bl{bottom:60px}.ce-hint-tr{top:50px;right:16px;text-align:right}.ce-hint-tl{top:50px;left:46px;text-align:left}.ce-hint-visible{opacity:1}@media(hover:none){.ce-hint{opacity:.8}}.smoothing{width:100%;padding:var(--space-sm) 0 var(--space-md);min-width:0}.sm-header{padding:0 0 var(--space-xs)}.sm-title{font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--silver-light)}.sm-sliders{display:flex;gap:var(--space-lg);padding:var(--space-xs) 0 0}.sm-slider-group{flex:1 1 0%;display:flex;flex-direction:column;gap:6px;min-width:0}.sm-slider-label-row{display:flex;justify-content:space-between;align-items:baseline}.sm-slider-label{font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase}.sm-label-gold,.sm-label-silver{color:var(--gold-primary)}.sm-value-group{display:flex;align-items:center;gap:4px}.sm-value-display{font-weight:500;font-size:.875rem;color:var(--white);min-width:3em;text-align:center;cursor:text}.sm-value-input{font-weight:500;font-size:.875rem;width:3.5em;text-align:center;padding:1px 2px;color:var(--white);background:var(--charcoal-black);border:1px solid var(--gold-primary);border-radius:var(--radius-sm);outline:none}.sm-step-btn{background:none;color:var(--silver-primary);font-size:.55rem;padding:2px 4px;line-height:1;border-radius:var(--radius-sm)}.sm-step-btn:hover{color:var(--off-white);background:var(--charcoal-border)}.sm-slider-track{height:4px;background:var(--charcoal-raised);border-radius:var(--radius-full);position:relative;cursor:pointer;margin:0 7px;touch-action:none}.sm-slider-fill{height:100%;border-radius:var(--radius-full);pointer-events:none;position:absolute;left:0;top:0}.sm-fill-gold,.sm-fill-silver{background:linear-gradient(90deg,var(--gold-muted),var(--gold-primary))}.sm-slider-thumb{width:14px;height:14px;border-radius:50%;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 2px 8px #0006;cursor:grab;z-index:1}.sm-slider-thumb:active{cursor:grabbing}.sm-thumb-gold,.sm-thumb-silver{background:var(--gold-primary);border:2px solid var(--gold-light)}.midi-routing{width:100%;padding:var(--space-lg) 0 var(--space-md);min-width:0}.mr-header{display:flex;align-items:center;justify-content:space-between;padding:0 0 var(--space-xs)}.mr-title{font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--silver-light)}.mr-controls{display:flex;flex-direction:column;gap:var(--space-sm);padding-top:var(--space-xs)}.mr-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);min-height:28px}.mr-label{font-size:.75rem;color:var(--silver-light);white-space:nowrap}.mr-select{color:var(--off-white);min-width:80px;font-size:.8rem}.mr-input{color:var(--off-white);width:70px;text-align:right;font-size:.8rem}.mr-inherited{font-size:.75rem;color:var(--silver-primary);padding-top:var(--space-xs);line-height:1.5}.mr-inherited-value{color:var(--silver-light)}.settings-overlay{position:fixed;inset:0;background:#00000080;z-index:200}.settings-panel{position:fixed;top:0;right:0;bottom:0;width:360px;max-width:90vw;background:var(--charcoal-raised);border-left:1px solid var(--charcoal-border);display:flex;flex-direction:column;z-index:201;animation:spSlideIn .2s ease-out}@keyframes spSlideIn{0%{transform:translate(100%)}to{transform:translate(0)}}.sp-header{display:flex;align-items:center;justify-content:space-between;padding:var(--space-lg) var(--space-xl);border-bottom:1px solid var(--charcoal-border);flex-shrink:0}.sp-title{font-size:1rem;font-weight:600;color:var(--off-white)}.sp-close{background:none;color:var(--silver-primary);font-size:1.2rem;padding:4px 8px;border-radius:var(--radius-sm);line-height:1}.sp-close:hover{color:var(--off-white);background:var(--charcoal-border)}.sp-body{flex:1;overflow-y:auto;padding:0}.sp-section{padding:var(--space-lg) var(--space-xl);border-bottom:1px solid var(--charcoal-border)}.sp-section:last-child{border-bottom:none}.sp-section-title{font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--silver-light);margin-bottom:var(--space-md)}.sp-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);min-height:32px}.sp-row+.sp-row{margin-top:var(--space-sm)}.sp-label{font-size:.8rem;color:var(--silver-light);white-space:nowrap}.sp-hint{font-size:.75rem;color:var(--silver-primary);margin-top:var(--space-xs);line-height:1.4}.sp-hint+.sp-btn-row,.sp-warning+.sp-btn-row{margin-top:var(--space-sm)}.sp-warning{font-size:.75rem;color:var(--warning);margin-top:var(--space-xs);line-height:1.4}.sp-select{color:var(--off-white);min-width:100px}.sp-input{color:var(--off-white);width:80px;text-align:right}.sp-name-input{color:var(--off-white);width:150px;text-align:left}.sp-serial{font-size:.8rem;letter-spacing:.06em;color:var(--silver-primary)}.sp-mode-status{font-size:.75rem;color:var(--silver-primary);margin-top:var(--space-xs)}.sp-dz-row{display:flex;flex-direction:column;gap:var(--space-sm)}.sp-dz-row+.sp-dz-row{margin-top:var(--space-lg)}.sp-dz-label-row{display:flex;align-items:center;justify-content:space-between}.sp-dz-stepper{display:flex;align-items:center;gap:4px}.sp-dz-step-btn{background:none;color:var(--silver-primary);font-size:.55rem;padding:2px 4px;line-height:1;border-radius:var(--radius-sm)}.sp-dz-step-btn:hover:not(:disabled){color:var(--off-white);background:var(--charcoal-border)}.sp-dz-step-btn:disabled{opacity:.3;cursor:not-allowed}.sp-dz-value{font-size:.875rem;color:var(--white);min-width:2.5em;text-align:center;cursor:text}.sp-dz-input{width:3em;font-size:.875rem;color:var(--white);background:var(--charcoal-black);border:1px solid var(--gold-primary);border-radius:var(--radius-sm);text-align:center;padding:1px 2px;outline:none}.sp-dz-track{height:4px;background:var(--charcoal-black);border-radius:var(--radius-full);position:relative;cursor:pointer;touch-action:none}.sp-dz-fill{height:100%;border-radius:var(--radius-full);pointer-events:none;position:absolute;left:0;top:0;background:linear-gradient(90deg,var(--gold-muted),var(--gold-primary))}.sp-dz-thumb{width:14px;height:14px;border-radius:50%;position:absolute;top:50%;transform:translate(-50%,-50%);background:var(--gold-primary);border:2px solid var(--gold-light);box-shadow:0 2px 8px #0006;cursor:grab;z-index:1}.sp-dz-thumb:active{cursor:grabbing}.sp-cal-values{display:flex;gap:var(--space-lg);margin:var(--space-md) 0}.sp-cal-item{display:flex;flex-direction:column;gap:2px}.sp-cal-label{font-size:.7rem;color:var(--silver-primary);text-transform:uppercase;letter-spacing:.05em}.sp-cal-value{font-size:.9rem;font-weight:500;color:var(--off-white)}.sp-cal-unit{font-size:.7rem;font-weight:400;color:var(--silver-primary)}.sp-demo-hint{font-size:.8rem;color:var(--silver-primary);font-style:italic}.sp-status-value{font-size:.9rem;font-weight:500;color:var(--off-white)}.sp-btn{font-size:.8rem;font-weight:500;padding:8px 16px;border-radius:var(--radius-md);transition:background .15s,color .15s}.sp-btn-default{background:transparent;color:var(--gold-primary);border:1px solid var(--gold-muted)}.sp-btn-default:hover{background:var(--gold-glow);border-color:var(--gold-primary)}.sp-btn-primary{background:var(--gold-primary);color:var(--charcoal-black);font-weight:600}.sp-btn-primary:hover{background:var(--gold-light);transform:translateY(-2px)}.sp-btn-danger{background:transparent;color:var(--error);border:1px solid var(--error-muted)}.sp-btn-danger:hover{background:var(--error-glow)}.sp-btn:disabled{opacity:.4;cursor:not-allowed}.sp-btn-row{display:flex;gap:var(--space-md)}.sp-btn-row .sp-btn{flex:1}.sp-btn-row+.sp-btn-row{margin-top:var(--space-sm)}.sp-update-info{font-size:.8rem;color:var(--silver-light);margin-bottom:var(--space-md);line-height:1.5}.relay{display:flex;flex-direction:column;gap:var(--space-sm);margin-top:var(--space-sm)}.relay-messages{display:flex;flex-direction:column;gap:var(--space-sm);max-height:16rem;overflow-y:auto;margin:0;padding:0;list-style:none}.relay-messages>li{padding:var(--space-sm);border-radius:var(--radius-sm);background:#ffffff0f}.relay-mine{border-left:2px solid var(--gold-muted)}.relay-theirs{border-left:2px solid var(--silver-muted)}.relay-who{display:flex;gap:var(--space-sm);align-items:baseline;justify-content:space-between;margin:0 0 .25rem;font-size:.8rem;font-weight:600;color:var(--silver-light)}.relay-when{font-weight:400;font-variant-numeric:tabular-nums;color:var(--silver-primary)}.relay-body{margin:0;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.relay-compose{display:flex;flex-direction:column;gap:.25rem}.relay-label{font-size:.8rem;font-weight:600;color:var(--silver-light)}.relay-compose textarea{width:100%;padding:var(--space-sm);border:1px solid var(--charcoal-border);border-radius:var(--radius-sm);background:var(--charcoal-black);color:var(--white);font-family:var(--font-primary);font-size:.85rem;line-height:1.5;resize:vertical}.relay-compose textarea:focus{outline:none;border-color:var(--gold-muted)}.relay-actions{display:flex;gap:var(--space-sm);align-items:center}.relay-quiet{margin:0;font-size:.85rem;color:var(--silver-primary)}.relay-note{margin:0;font-size:.85rem;color:var(--silver-light)}.relay-note-bad{color:var(--error)}.flagged-banner{margin:0 0 var(--space-md);padding:var(--space-md);border:1px solid var(--error-muted);border-left-width:4px;border-radius:var(--radius-md);background:var(--error-glow);color:var(--off-white)}.flagged-banner-owner{border-color:var(--warning-muted);background:var(--warning-glow)}.flagged-headline{margin:0 0 .5rem;font-weight:600}.flagged-line{margin:0 0 .5rem;line-height:1.5}.flagged-line:last-child{margin-bottom:0}.flagged-link{padding:0;border:none;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.flagged-link:hover,.flagged-link:focus-visible{color:var(--warning)}.flagged-banner a{color:inherit;text-decoration:underline;text-underline-offset:2px}.flagged-relay{margin-top:var(--space-md);padding-top:var(--space-md);border-top:1px solid rgb(255 255 255 / 12%)}.flagged-relay>button{margin-top:var(--space-sm)}.flagged-quiet{color:var(--silver-primary);font-size:.9em}.update-toast{position:fixed;bottom:var(--space-lg);right:var(--space-lg);z-index:250;display:flex;align-items:center;gap:var(--space-lg);max-width:min(24rem,calc(100vw - 2 * var(--space-lg)));padding:var(--space-md);background:var(--charcoal-raised);border:1px solid var(--charcoal-border);border-left:3px solid var(--gold-primary);border-radius:var(--radius-md);box-shadow:0 8px 24px #0000008c;animation:update-toast-in var(--transition-base)}@keyframes update-toast-in{0%{transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){.update-toast{animation:none}}.update-toast-text{display:flex;flex-direction:column;gap:2px;min-width:0}.update-toast-text strong{font-size:.8rem;font-weight:600;color:var(--off-white)}.update-toast-text span{font-size:.75rem;color:var(--silver-light)}.update-toast-actions{display:flex;align-items:center;gap:var(--space-xs);margin-left:auto}.update-toast-refresh{padding:6px 16px;font-size:.75rem;white-space:nowrap}.update-toast-dismiss{display:flex;align-items:center;justify-content:center;padding:6px;background:none;color:var(--silver-primary);border-radius:var(--radius-sm)}.update-toast-dismiss:hover{color:var(--off-white);background:var(--charcoal-black)}.update-toast-dismiss:focus-visible{outline:none;box-shadow:0 0 0 2px var(--gold-glow)}@media(max-width:480px){.update-toast{left:var(--space-md);right:var(--space-md);bottom:var(--space-md);max-width:none}}
