/* Omniverse Orgel. Het beeld vult het venster; de bediening ligt erover en verdwijnt als de muis stilstaat. */
:root{color-scheme:dark;--paper:#f4f1ff;--dim:#817d91;--accent:#a48aff;--line:#ffffff16;--surface:#121215e6}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;overflow:hidden;background:#000;color:var(--paper);font:13px Arial,Helvetica,sans-serif}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
[hidden]{display:none!important}
/* Het doek vult het venster bij 16:9 en breder; orgel.js maakt het dan net zo breed. Een smaller venster houdt 16:9
   met zwarte stroken boven en onder. object-fit houdt het beeld op zijn verhouding zolang orgel.js na een andere
   venstermaat nog niet bijgewerkt heeft. */
#stage{position:fixed;inset:0;margin:auto;display:block;width:100vw;height:min(100vh,100vw*9/16);object-fit:contain;background:#000}
@supports(height:100dvh){#stage{height:min(100dvh,100vw*9/16)}}
.panel{position:fixed;left:16px;bottom:16px;width:min(300px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;display:grid;gap:14px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:8px;backdrop-filter:blur(10px);transition:opacity .4s ease}
/* Stil beeld voor de show: geen paneel en geen cursor. */
body.idle .panel{opacity:0;pointer-events:none}
body.idle{cursor:none}
.group{display:grid;gap:12px}
.group+.group{padding-top:14px;border-top:1px solid var(--line)}
label{display:block;color:var(--dim);font-size:11px;letter-spacing:.4px}
label output{float:right;color:var(--paper)}
select{display:block;width:100%;margin-top:6px;border:1px solid #ffffff19;border-radius:3px;background:#1b171f;color:#e9e1f0;padding:9px}
input[type=range]{display:block;width:100%;margin:10px 0 0;accent-color:#ae85ee;height:3px}
meter{display:block;width:100%;height:12px;margin-top:6px;accent-color:#b590ff}
/* De grafiek van de laatste tien seconden onder Niveau: wat de analyse binnenkrijgt, ook als het beeld stilvalt. */
#trace{display:block;width:100%;height:72px;background:#0c0c0e;border-radius:4px}
.segmented{display:flex;flex-wrap:wrap;gap:4px;padding:4px;background:#0c0c0e;border:1px solid var(--line);border-radius:6px}
.segmented button{flex:1 1 28%;padding:9px 8px;background:transparent;border:0;border-radius:4px;color:#84808d;font-size:12px}
.segmented button[aria-pressed=true]{background:#282331;color:#fff}
/* Tien smaken in drie gelijke kolommen, zodat de laatste rij niet uitrekt tot een knop over de hele breedte. */
.segmented.smaken{display:grid;grid-template-columns:repeat(3,1fr)}
/* Een smaak die nog niet klaar is staat wel in de balk, maar kan niet gekozen worden. */
.segmented button:disabled{opacity:.35;cursor:default}
kbd{margin-left:6px;font:10px Arial,sans-serif;color:var(--dim)}
.file-button{position:relative;padding:10px;border:1px dashed #ffffff30;border-radius:5px;color:var(--paper);text-align:center;cursor:pointer}
.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}
.primary{padding:11px;border:0;border-radius:5px;background:var(--accent);color:var(--accent-ink,#080809);font-weight:bold}
.status{margin:0;color:var(--dim);font-size:11px;line-height:1.4}
.keys{margin:0;color:var(--dim);font-size:10px;line-height:1.4}
/* De knop voor het beeldscherm: rustiger dan Geluid starten, want hij wordt één keer per avond gebruikt. */
.secondary{padding:11px;border:1px solid var(--line);border-radius:5px;background:#1b171f;color:var(--paper)}
/* Met een beeldvenster staat het beeld op het doek; de bediening tekent dan niet en toont alleen het paneel. */
body.screen-open #stage{visibility:hidden}
/* Het beeldvenster: alleen het doek, zonder paneel. */
body.screen #panel{display:none}
/* Het tandwiel met de standaardknoppen: dicht een klein knopje, open een rij knoppen onder elkaar. */
.standard{display:grid;gap:8px}
.standard[open]{gap:10px}
.standard summary{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:6px 8px;border:1px solid var(--line);border-radius:5px;color:var(--dim);font-size:11px;cursor:pointer;list-style:none}
.standard summary::-webkit-details-marker{display:none}
.standard summary:hover,.standard[open] summary{color:var(--paper)}
.standard summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.standard>:not(summary){display:block;width:100%;margin-top:8px}
/* De velden van de smaak staan samen in één blok, zodat Breed ze als één kolom kan plaatsen. */
.smaak-instellingen{display:grid;gap:12px}
/* De kleuren van de gekozen set, in hun aandeel, boven de schuif die door de sets loopt. */
.swatch{display:flex;height:8px;margin-top:8px;border-radius:2px;overflow:hidden}
.swatch span{flex:1 1 0}
/* Naast de schuif Kleuren de knop naar het kleurpaneel. */
.slider-row{display:flex;align-items:center;gap:8px;margin-top:10px}
.slider-row input[type=range]{margin:0;flex:1}
.icon-button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:5px;background:#1b171f;color:var(--paper)}
/* Het kleurpaneel vervangt de instellingen: de groepen gaan weg zolang het open staat. */
.panel.palettes-open>.group,.panel.palettes-open>.keys{display:none}
.palette-panel{display:grid;gap:12px}
.back-button{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:6px 8px;background:transparent;border:1px solid var(--line);border-radius:5px;color:var(--paper);font-size:12px}
.palette-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.palette-tile{display:grid;gap:8px;padding:10px;background:#0c0c0e;border:1px solid var(--line);border-radius:6px;color:#c9c4d3;font-size:12px;text-align:left}
.palette-tile .swatch{margin:0;height:18px}
.palette-tile[aria-pressed=true]{border-color:var(--accent);color:#fff}
.palette-tile .share{color:var(--dim);font-size:10px}
.palette-tile kbd{float:right}
/* Het logopaneel: een beeld van 16 bij 9 in negen vakken; het gekozen vak toont een streepje als logo. */
.logo-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:4px;aspect-ratio:16/9;padding:4px;background:#0c0c0e;border:1px solid var(--line);border-radius:6px}
.logo-grid button{display:grid;place-items:center;padding:0;background:#16141a;border:1px solid transparent;border-radius:3px}
.logo-grid button span{width:36%;height:14%;border-radius:2px;background:#ffffff26}
.logo-grid button[aria-pressed=true]{border-color:var(--accent)}
.logo-grid button[aria-pressed=true] span{background:var(--paper)}
#logo-panel [data-logo-place=""][aria-pressed=true]{border-color:var(--accent)}
/* Een vinkje als regel in het paneel. */
.check{display:flex;align-items:center;gap:8px;min-height:32px;cursor:pointer}
.check input{width:16px;height:16px;margin:0;accent-color:var(--accent)}
/* De inlog, dezelfde kaart als op de sprekerspagina. Hij ligt over het hele venster, ook over het paneel. */
.login{--accent:#ff7a1a;position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:#0b0b0c;color:#f5f0e8;font:16px/1.5 Inter,system-ui,sans-serif}
.login form{width:min(380px,100%);background:#151517;border:1px solid #2a2a2d;border-radius:16px;padding:32px 24px}
.login .logo{display:block;width:180px;height:auto;margin:0 auto 28px}
.login label{display:block;font-size:13px;color:#9a948b;margin:0 0 6px}
.login input{width:100%;background:#0b0b0c;border:1px solid #2a2a2d;border-radius:8px;padding:0 12px;min-height:48px;font-size:16px}
.login input:focus{outline:none;border-color:var(--accent)}
.login .ga{width:100%;margin-top:22px;min-height:48px;border:0;border-radius:8px;background:var(--accent);color:var(--accent-ink,#0b0b0c);font-weight:600;font-size:16px}
.login .ga:disabled{opacity:.6;cursor:default}
.login .fout{color:var(--accent);font-size:14px;min-height:20px;margin-top:10px;text-align:center}
/* De weergave Simpel (/orgel/simpel): de acht nummers, de bron, het niveau en het beeldscherm. */
body:not(.simpel) .simpel-alleen{display:none!important}
body.simpel .uitgebreid{display:none!important}
.panel.palettes-open>.switches{display:none}
/* De schakelaars onderaan het paneel. Simpel: aan is Simpel, het label noemt de weergave die nu staat. Breed: aan is
   de weergave met het voorbeeld bovenaan en de groepen in kolommen. */
.switches{display:flex;flex-wrap:wrap;gap:4px 20px}
.mode-switch{justify-self:start;display:flex;align-items:center;gap:8px;min-height:32px;padding:0;border:0;background:none;color:var(--paper);font-size:12px;cursor:pointer}
.mode-switch .track{position:relative;flex:none;width:34px;height:20px;border:1px solid var(--line);border-radius:10px;background:#1b171f;transition:background .2s,border-color .2s}
.mode-switch .thumb{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--paper);transition:transform .2s,background .2s}
.mode-switch[aria-checked=true] .track{border-color:var(--accent);background:var(--accent)}
.mode-switch[aria-checked=true] .thumb{transform:translateX(14px);background:var(--accent-ink,#080809)}
/* Opslaan onder: acht kleine knoppen in twee rijen van vier, zodat ze in de breedte van het paneel passen. */
.save-slots{display:grid;grid-template-columns:repeat(4,1fr);align-items:center;gap:6px;color:var(--dim);font-size:11px}
.save-slots-head{grid-column:1/-1;display:flex;align-items:center;gap:10px}
.save-slots-head span{margin-right:auto}
/* Verbergen en Tonen: een rustige tekstknop rechts in de kop. */
.text-button{min-height:28px;padding:4px 0;border:0;background:none;color:var(--dim);font-size:11px;text-decoration:underline;text-underline-offset:2px}
.text-button:hover:not(:disabled){color:var(--paper)}
.text-button:disabled{opacity:.35;cursor:default;text-decoration:none}
/* Verborgen staan alleen de nummerknoppen weg; de kop blijft, zodat Tonen en Ongedaan maken bereikbaar zijn. */
.save-slots.folded [data-save-slot]{display:none}
/* Een nummer dat bij de eerste klik wacht op de tweede: in de accentkleur, met Vervangen? als tekst. */
.save-slots .secondary.armed{border-color:var(--paper)}
/* De bevestiging staat onder de knoppen, niet op de plek van het nummer, zodat een tweede klik niets vervangt. */
.slot-confirm{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;border:1px solid var(--paper);border-radius:5px}
.save-slots #slot-confirm-ok{background:var(--paper);color:#080809}
.slot-confirm p{grid-column:1/-1;margin:0;color:var(--paper);font-size:12px;line-height:1.4}
.save-slots .slot-confirm button{padding:8px 4px}
.save-slots.folded .slot-confirm{display:none}
.slot-history{grid-column:1/-1;display:flex;gap:6px}
/* Herstellen en Opnieuw: pictogram met tekst, groot genoeg om te raken, en een zichtbare focus. */
.history-button{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 10px;border:1px solid var(--line);border-radius:5px;background:none;color:var(--paper);font-size:11px}
.history-button:disabled{opacity:.35;cursor:default}
.history-button:focus-visible,.text-button:focus-visible,.slot-confirm button:focus-visible{outline:2px solid var(--paper);outline-offset:2px}
.save-slots .secondary{padding:8px 0}
/* Het naamveld voor een nummer. 16px tekst, zodat een telefoon niet inzoomt en de naam leesbaar blijft. */
.slot-name-field input{display:block;width:100%;margin-top:6px;padding:9px;border:1px solid #ffffff19;border-radius:3px;background:#1b171f;color:#e9e1f0;font-size:16px}
/* De acht nummers in twee kolommen van vier, zodat het paneel niet te lang wordt. Een lange naam breekt af. */
/* Elke knop even groot (ook Zwart en Logo), met een eigen vlak en rand zodat hij er klikbaar uitziet. */
.presets{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:6px}
.presets button{display:grid;align-content:start;gap:6px;min-height:78px;padding:12px;font-size:14px;text-align:left;min-width:0;overflow-wrap:anywhere;background:#17141c;border:1px solid #ffffff17;border-radius:6px;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.presets button:hover{background:#221d29;border-color:#ffffff33;color:#fff}
.presets button[aria-pressed=true]{background:#2a2433;border-color:var(--accent);color:#fff}
.presets small{color:var(--dim);font-size:11px}
.preset-strip{display:flex;height:6px;border-radius:2px;overflow:hidden}
.preset-strip.picture{height:12px}
.preset-strip.picture img{display:block;width:100%;height:100%;object-fit:cover}
/* Zwart en Logo staan naast elkaar boven de acht nummers. */
.presets .cover .preset-strip span{flex:1;background:#000;border:1px solid var(--line)}
/* Het kleurverloop: het vinkje en daaronder de gekozen sets, een klik opent het paneel weer. */
.cycle-field{display:grid;gap:6px}
.cycle-field .secondary{text-align:left;font-size:12px}
/* De weergave Breed. Het beeld staat als voorbeeld van 16:9 bovenaan in het midden, de groepen staan als kaarten in
   kolommen eromheen en eronder, elk met een eigen scroll. De pagina zelf scrolt niet. Onder 1100 pixels breed blijft
   de gewone weergave staan, zodat een laptop niet breekt. --preview is de breedte van het voorbeeld: 40 procent van
   het venster, en smaller als er anders onder het voorbeeld te weinig hoogte overblijft. */
@media (min-width:1100px){
 body.breed{--preview:min(40vw,(100vh - 420px)*16/9);--gap:12px;--top:16px}
 body.breed #stage{inset:var(--top) auto auto 50%;transform:translateX(-50%);z-index:1;width:var(--preview);height:calc(var(--preview)*9/16);border:1px solid var(--line);border-radius:6px}
 /* Met het beeldscherm open blijft het voorbeeld staan; orgel.js tekent het dan ook. */
 body.breed.screen-open #stage{visibility:visible}
 /* Vier kolommen: links, twee in het midden (samen zo breed als het voorbeeld) en rechts. Links staan Nummers en
    daaronder Beeldscherm en Algemeen, elk zo hoog als ze nodig hebben; Smaak krijgt het midden onder het voorbeeld tot
    de voet, zodat zijn velden niet in een halve kolom scrollen. De laatste rij is de schakelaars en de toetsen. */
 body.breed .panel{inset:var(--top) 16px 16px;width:auto;max-height:none;overflow:hidden;padding:0;background:none;border:0;border-radius:0;backdrop-filter:none;gap:var(--gap);
  grid-template-columns:minmax(0,1fr) calc((var(--preview) - var(--gap))/2) calc((var(--preview) - var(--gap))/2) minmax(0,1fr);
  grid-template-rows:calc(var(--preview)*9/16) minmax(0,1fr) auto auto auto;
  grid-template-areas:"nummers voorbeeld voorbeeld geluid" "nummers smaak smaak geluid" "scherm smaak smaak geluid" "algemeen smaak smaak geluid" "voet voet voet voet"}
 body.breed .panel>.group{min-height:0;overflow:auto;align-content:start;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:8px;backdrop-filter:blur(10px)}
 body.breed .vak-nummers{grid-area:nummers}
 body.breed .vak-geluid{grid-area:geluid}
 body.breed .vak-smaak{grid-area:smaak}
 body.breed .vak-beeldscherm{grid-area:scherm}
 body.breed .vak-algemeen{grid-area:algemeen}
 /* Simpel heeft geen Smaak en Algemeen: het beeldscherm krijgt de hele breedte onder het voorbeeld. */
 body.breed.simpel .vak-beeldscherm{grid-column:2/4;grid-row:2/5}
 /* Smaak in twee kolommen: de tien smaken in twee rijen van vijf over de volle breedte, daaronder links de velden van
    de smaak met Standaard en rechts de groep Emulsion. Zonder Emulsion krijgen de velden de hele breedte. */
 body.breed .vak-smaak{grid-template-columns:1fr 1fr;align-content:start;column-gap:16px}
 body.breed .vak-smaak:has(#emulsion-field[hidden]){grid-template-columns:1fr}
 body.breed .vak-smaak>.smaken{grid-column:1/-1;grid-template-columns:repeat(5,1fr)}
 body.breed .vak-smaak>.smaak-instellingen{grid-column:1;grid-row:2}
 body.breed .vak-smaak>#emulsion-field{grid-column:2;grid-row:2;padding-left:16px;border-left:1px solid var(--line)}
 /* Standaard staat in Breed open, zonder tandwiel; orgel.js zet hem open. De knoppen naast elkaar waar het past. */
 body.breed .standard summary{display:none}
 body.breed .standard{padding-top:12px;border-top:1px solid var(--line)}
 body.breed .standard>:not(summary){margin-top:0}
 body.breed .switches{grid-area:voet;align-self:center}
 body.breed .panel>.keys{grid-area:voet;justify-self:end;align-self:center;max-width:calc(100% - 260px);text-align:right}
 /* De kleur-, logo- en verloopoverzichten liggen onder het voorbeeld, over de twee middelste kolommen. Nummers en
    Geluid blijven staan; wat daar onder het voorbeeld lag, gaat zolang weg. */
 body.breed .panel.palettes-open>.group{display:grid}
 body.breed .panel.palettes-open>.vak-smaak,body.breed.simpel .panel.palettes-open>.vak-beeldscherm{display:none}
 body.breed .panel>.palette-panel{grid-column:2/4;grid-row:2/5;min-height:0;overflow:auto;align-content:start;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
 body.breed .palette-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
 body.breed .logo-grid{max-width:480px}
 /* Bij stilstand van de muis blijven het paneel en de cursor staan: dit is het bedieningsscherm. */
 body.breed.idle .panel{opacity:1;pointer-events:auto}
 body.breed.idle{cursor:auto}
}
/* De groep Emulsion. Het naamveld zoals dat van de nummers; Beelden toevoegen is een knop met het bestandsveld eroverheen.
   De strook toont de beelden van de samenstelling in volgorde, 64 px hoog, met per beeld een kruisje rechtsboven. */
.set-name-field input{display:block;width:100%;margin-top:6px;padding:9px;border:1px solid #ffffff19;border-radius:3px;background:#1b171f;color:#e9e1f0;font-size:16px}
.set-name-field input:disabled{opacity:.35}
.picture-add{position:relative;display:block;text-align:center;color:var(--paper);font-size:inherit;letter-spacing:0;cursor:pointer}
.picture-add input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}
.picture-add:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.picture-strip{display:flex;flex-wrap:wrap;gap:6px}
.picture-strip .picture{position:relative;height:64px;border:1px solid var(--line);border-radius:3px;overflow:hidden;background:#0c0c0e}
.picture-strip img{display:block;height:64px;width:auto;min-width:40px}
.picture-strip .remove{position:absolute;top:3px;right:3px;display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:#000000b3;color:var(--paper);cursor:pointer}
.picture-strip .remove:hover,.picture-strip .remove:focus-visible{background:var(--accent);color:var(--accent-ink,#080809)}
/* Het tempo van Emulsion: Wisselen op en Wisselen elke samen onderaan de groep, met de statusregel die aftelt. */
.wissel-field{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.wissel-field .field-label{color:var(--dim);font-size:11px;letter-spacing:.4px}
/* Het beeld dat nu op het doek staat. */
.picture-strip .picture[aria-current=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}

/* Breed: het beeld staat centraal. De bediening gebruikt neutraal zwart, systeemletters en één zwevende effectbalk. */
.wide-only{display:none}
@media(min-width:1100px){
 body.breed{--paper:#f5f5f7;--dim:#a1a1a6;--accent:#f5f5f7;--accent-ink:#111;--line:#ffffff12;--surface:#141414;--control:#242424;--hover:#303030;--rail:clamp(208px,12vw,280px);--right:clamp(224px,13vw,288px);--gap:24px;--top:76px;--center:calc(100vw - var(--rail) - var(--right) - 96px);--preview:min(var(--center),(100vh - 485px)*16/9);background:#080808;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
 body.breed .wide-only{display:flex}
 body.breed .normal-only{display:none}
 body.breed .console-header{position:fixed;inset:0 24px auto;height:64px;align-items:center;justify-content:space-between;z-index:4;pointer-events:none}
 body.breed .console-brand{display:flex;align-items:center;gap:12px;color:var(--paper)}
 body.breed .console-brand>svg{width:26px;height:26px}
 body.breed .console-brand>div{display:flex;align-items:baseline;gap:9px}
 body.breed .console-brand strong{font-size:22px;font-weight:600;letter-spacing:-.8px;order:-1}
 body.breed .console-brand span{font-size:12px;color:var(--dim);letter-spacing:0}
 body.breed .console-context{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;color:var(--dim);font-size:12px}
 body.breed .console-context>span{font-size:12px}
 body.breed #console-current{font-size:12px;font-weight:500;color:var(--paper);padding:5px 10px;border-radius:20px;background:var(--control)}
 body.breed .panel{inset:var(--top) 24px 12px;width:auto;z-index:2;grid-template-columns:var(--rail) minmax(0,1fr) minmax(0,1fr) var(--right);grid-template-rows:calc(var(--preview)*9/16) minmax(0,1fr) auto auto 28px;gap:14px 24px;overflow:visible;grid-template-areas:"nummers voorbeeld voorbeeld geluid" "nummers smaak smaak geluid" "scherm smaak smaak geluid" "algemeen smaak smaak geluid" "voet voet voet voet"}
 body.breed #stage{left:calc(50% + (var(--rail) - var(--right))/2);top:var(--top);width:var(--preview);height:calc(var(--preview)*9/16);border:0;border-radius:16px;box-shadow:none}
 body.breed .panel>.group{padding:12px 0;background:none;border:0;border-radius:0;backdrop-filter:none;gap:14px;scrollbar-width:thin;scrollbar-color:#444 transparent}
 body.breed .panel>.vak-nummers{padding-right:12px;gap:12px}
 body.breed .panel>.vak-geluid{padding-left:20px;border-left:1px solid var(--line);gap:18px}
 body.breed .section-heading{margin:0 0 4px;align-items:center;justify-content:space-between;color:var(--paper);font-size:15px;letter-spacing:-.2px;font-weight:600}
 body.breed .section-heading small{display:none}
 body.breed label,body.breed .field-label{font-size:12px;letter-spacing:0;line-height:1.3;color:var(--dim)}
 body.breed label output{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--paper)}
 body.breed select,body.breed input[type=text]{background:var(--surface);color:var(--paper);border:1px solid var(--line);border-radius:9px;min-height:36px;padding:8px 10px;font-size:12px}
 body.breed select{cursor:pointer}
 body.breed input[type=range]{appearance:none;-webkit-appearance:none;height:4px;margin:16px 0 6px;border-radius:4px;background:linear-gradient(to right,var(--paper) var(--fill,0%),#393939 var(--fill,0%));cursor:ew-resize;accent-color:var(--paper)}
 body.breed input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:var(--paper);border:0;box-shadow:0 1px 5px #0006;transition:scale .15s}
 body.breed input[type=range]:hover::-webkit-slider-thumb{scale:1.18}
 body.breed input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--paper);border:0}
 body.breed input[type=range]:focus-visible{outline-offset:8px}
 body.breed meter{accent-color:var(--paper)}
 body.breed meter::-webkit-meter-bar{background:#303030;border:0}
 body.breed meter::-webkit-meter-optimum-value{background:var(--paper)}
 body.breed button,body.breed .picture-add{transition:background .15s,color .15s,transform .15s;min-height:32px}
 body.breed button:active:not(:disabled),body.breed .picture-add:active{transform:scale(.98)}
 body.breed .secondary,body.breed .icon-button,body.breed .back-button{background:var(--control);color:var(--paper);border:0;border-radius:9px;font-size:12px}
 body.breed button:hover,body.breed .picture-add:hover{background:var(--hover);color:var(--paper)}
 body.breed .primary{background:var(--paper);color:var(--accent-ink);border-radius:24px;min-height:42px;font-weight:600;font-size:13px}
 body.breed .primary:hover{background:#ddd;color:var(--accent-ink)}
 body.breed .segmented{background:var(--surface);border:0;border-radius:10px;padding:3px;gap:3px}
 body.breed .segmented button{color:var(--dim);font-size:12px;border-radius:8px;padding:6px 12px;white-space:nowrap}
 body.breed .segmented button[aria-pressed=true]{background:#373737;color:var(--paper);border:0}
 body.breed .presets{background:none;padding:0;gap:6px;grid-template-columns:1fr 1fr;grid-auto-rows:auto}
 body.breed .presets button[data-slot]{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:1fr 1fr;grid-column:1/-1;min-height:56px;padding:7px 9px;gap:1px 10px;background:transparent;border:0;border-radius:11px;text-align:left;overflow:hidden}
 body.breed .presets button[data-slot]:hover{background:#1b1b1b}
 body.breed .presets button[data-slot][aria-pressed=true]{background:#272727}
 body.breed .presets button[data-slot]>.preset-strip{grid-row:1/3;grid-column:1;width:42px;height:42px;margin:0;border-radius:7px;opacity:.85}
 body.breed .presets button[data-slot]>span:not(.preset-strip){grid-column:2;align-self:end;min-width:0}
 body.breed .presets button[data-slot]>small{grid-column:2;align-self:start;min-width:0;font-size:10px;color:var(--dim);line-height:1.4}
 body.breed .slot-name{font-size:12px;font-weight:500}
 body.breed .presets small,body.breed .slot-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 body.breed .presets button.cover{min-height:36px;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;font-size:12px;border:1px solid var(--line);border-radius:20px;background:var(--surface);margin-bottom:6px}
 body.breed .presets button.cover .preset-strip{display:none}
 body.breed .presets button.cover[aria-pressed=true]{background:#2c2c2c;border-color:#777}
 body.breed .slot-name-field{padding-top:16px;border-top:1px solid var(--line)}
 body.breed .save-slots{gap:5px}
 body.breed .save-slots .secondary{padding:4px;min-height:28px;font-size:11px}
 body.breed #slot-status{font-size:10px;line-height:1.4}
 body.breed .text-button{min-height:28px;padding:4px 0;font-size:10px}
 body.breed .history-button{min-height:28px;padding:2px 8px;font-size:10px}
 body.breed .text-button:hover{background:none}
 body.breed .slot-confirm{padding:6px;gap:5px}
 body.breed .slot-confirm p{font-size:11px}
 body.breed .save-slots .slot-confirm button{min-height:28px;padding:4px;font-size:11px;border-radius:5px}
 body.breed #slot-status .wide-only{display:inline}
 body.breed .status{font-size:11px;line-height:1.4;color:var(--dim)}
 body.breed .panel>.vak-smaak{position:relative;display:flex;flex-direction:column;overflow:auto;padding:8px 0 16px;gap:16px;min-width:0}
 body.breed .vak-smaak>.section-heading{display:none}
 body.breed .vak-smaak>.smaken{position:fixed;left:calc(50% + (var(--rail) - var(--right))/2);top:calc(var(--top) + var(--preview)*9/16 - 84px);transform:translateX(-50%);z-index:3;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));width:min(1050px,calc(var(--center) - 32px));padding:7px;gap:4px;border-radius:23px;border:1px solid #ffffff20;background:#202020bd;backdrop-filter:blur(24px) saturate(0%);box-shadow:0 8px 28px #0006}
 body.breed .vak-smaak>.smaken button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:60px;padding:7px 3px;border-radius:16px;font-size:10px;font-weight:500;color:#b4b4b8}
 body.breed .vak-smaak>.smaken button[aria-pressed=true]{background:#f5f5f7;color:var(--accent-ink)}
 body.breed .flavor-mark{width:28px;height:25px;flex-shrink:0;stroke-width:1.35}
 body.breed .smaken kbd{display:none}
 body.breed .smaak-instellingen{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:24px;align-items:center;order:2;min-width:0}
 body.breed .vak-smaak>.smaak-instellingen{grid-column:auto;grid-row:auto;gap:24px}
 body.breed #grain-field{display:block}
 body.breed .motion-field{display:grid;gap:7px}
 body.breed .motion-field>.status{display:none}
 body.breed .motion-field>.segmented{max-width:240px}
 body.breed .standard{position:fixed;top:15px;right:24px;z-index:10;padding:0;border:0;display:block}
 body.breed .standard summary{display:flex;align-items:center;justify-content:center;min-height:34px;padding:7px 13px;border:1px solid var(--line);border-radius:20px;background:var(--surface);font-size:12px;color:var(--paper)}
 body.breed .standard summary svg{display:none}
 body.breed .standard[open] summary{background:var(--control)}
 body.breed .standard:not([open])::details-content{display:none}
 body.breed .standard::details-content{position:absolute;right:0;top:44px;width:350px;border:1px solid #ffffff1a;border-radius:18px;background:#202020f2;backdrop-filter:blur(20px);box-shadow:0 18px 60px #0009;padding:18px}
 body.breed .standard>.secondary{font-size:12px;text-align:left;padding:10px 12px}
 body.breed .standard>.status:first-of-type{font-size:11px;line-height:1.45;margin-bottom:14px}
 body.breed #standard-status:empty,body.breed #emulsion-message:empty{display:none}
 body.breed #version{font-size:10px}
 body.breed .vak-smaak>#emulsion-field{display:grid;position:relative;grid-template-columns:minmax(0,1fr) 36px 36px 154px;grid-column:auto;grid-row:auto;padding:0;border:0;gap:12px 8px;min-width:0;align-content:start;order:1}
 body.breed #emulsion-field>label:first-child{grid-column:1;grid-row:1;font-size:0;max-width:340px}
 body.breed #picture-set{font-size:15px;font-weight:600;letter-spacing:-.3px;margin:0;padding:4px 8px 4px 0;background:none;border:0;min-height:36px}
 body.breed #new-set{grid-column:2;grid-row:1;min-width:36px;padding:0;font-size:0;background:transparent;border-radius:50%}
 body.breed #new-set:after{content:'+';font-size:25px;font-weight:300}
 body.breed #rename-set{grid-column:3;grid-row:1;align-items:center;justify-content:center;background:transparent;border-radius:50%}
 body.breed #new-set:hover,body.breed #rename-set:hover{background:var(--control)}
 body.breed #emulsion-field>.set-name-field{display:none;position:absolute;z-index:5;top:44px;left:0;width:280px;padding:14px;background:#242424;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 40px #0009}
 body.breed #emulsion-field.renaming>.set-name-field{display:block}
 body.breed #emulsion-field>.picture-add{grid-column:4;grid-row:1;display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;margin:0;padding:8px 14px;border-radius:20px;font-size:12px;background:#ededed;color:var(--accent-ink)}
 body.breed #picture-strip{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:nowrap;align-items:stretch;gap:12px;padding:4px 2px 8px;overflow-x:auto;min-height:112px;max-height:none;scrollbar-width:thin;scrollbar-color:#444 transparent;overscroll-behavior-x:contain}
 body.breed #picture-strip .picture{position:relative;flex:0 0 160px;display:block;height:104px;border:2px solid transparent;border-radius:12px;overflow:hidden;background:var(--surface);transition:border-color .2s,opacity .2s}
 body.breed #picture-strip .picture img{height:100%;width:100%;object-fit:cover;display:block;pointer-events:none}
 body.breed #picture-strip .picture[aria-current=true]{border-color:var(--paper);box-shadow:none}
 body.breed .picture-select{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;border-radius:10px;background:none;cursor:grab}
 body.breed .picture-select:hover{background:#ffffff08}
 body.breed .picture-select:active{cursor:grabbing;transform:none}
 body.breed .picture-select:focus-visible{outline:2px solid var(--paper);outline-offset:-5px}
 body.breed .picture-number{position:absolute;bottom:7px;left:8px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;font-size:10px;color:#fff;background:#0009;backdrop-filter:blur(8px);border-radius:7px;pointer-events:none;font-variant-numeric:tabular-nums}
 body.breed .picture[aria-current=true] .picture-number{background:#f5f5f7;color:#111}
 body.breed #picture-strip .remove{min-height:22px;top:6px;right:6px;z-index:2;opacity:0;transition:opacity .15s}
 body.breed #picture-strip .picture:hover .remove,body.breed #picture-strip .picture:focus-within .remove{opacity:1}
 body.breed #picture-strip .picture.dragging{opacity:.3}
 body.breed #picture-strip .picture.drop-before{box-shadow:-5px 0 0 -2px #f5f5f7}
 body.breed #picture-strip .picture.drop-after{box-shadow:5px 0 0 -2px #f5f5f7}
 body.breed .picture-add-tile{flex:0 0 112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:104px;border:1px dashed #ffffff35;border-radius:12px;background:none;color:var(--dim);font-size:11px}
 body.breed .picture-add-tile svg{width:24px;height:24px}
 body.breed .picture-empty{flex:1;display:flex;align-items:center;justify-content:center;gap:16px;min-height:112px;border:1px dashed #ffffff30;border-radius:14px;background:#111;color:var(--paper);cursor:pointer;text-align:left}
 body.breed .picture-empty svg{width:44px;height:44px;color:#aaa}
 body.breed .picture-empty span{display:grid;gap:6px}
 body.breed .picture-empty strong{font-size:15px;font-weight:500}
 body.breed .picture-empty small{font-size:12px;color:var(--dim)}
 body.breed #emulsion-field.file-over #picture-strip{outline:2px solid var(--paper);outline-offset:4px;border-radius:14px}
 body.breed #emulsion-message{position:fixed;top:70px;left:50%;transform:translateX(-50%);z-index:20;max-width:560px;padding:12px 18px;background:#242424f2;border:1px solid #ffffff20;border-radius:14px;box-shadow:0 8px 24px #0006;backdrop-filter:blur(20px);color:var(--paper);font-size:12px;pointer-events:none}
 body.breed .wissel-field{grid-column:1/-1;display:grid;grid-template-columns:160px minmax(160px,1fr) 142px;gap:12px 20px;align-items:center;padding:12px 0 0;border-top:1px solid var(--line);background:none}
 body.breed .wissel-field>.field-label{display:none}
 body.breed .wissel-field>.segmented{grid-column:1;grid-row:1}
 body.breed #picture-interval-field{grid-column:2;grid-row:1}
 body.breed #next-picture{grid-column:3;grid-row:1;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:36px;padding:8px 12px;text-align:left;border-radius:20px}
 body.breed #emulsion-status{grid-column:1/-1;margin:0;font-size:10px;font-variant-numeric:tabular-nums}
 body.breed .vak-smaak:has(#emulsion-field:not([hidden])) .smaak-instellingen{padding-top:12px;border-top:1px solid var(--line)}
 body.breed .vak-beeldscherm,body.breed .vak-algemeen{border-top:1px solid var(--line)!important;padding-right:12px!important}
 body.breed .vak-beeldscherm>.section-heading{display:none}
 body.breed .vak-beeldscherm #screen-status{font-size:10px}
 body.breed .vak-algemeen{gap:0!important}
 body.breed .check{font-size:11px;min-height:28px}
 body.breed .vak-geluid #trace{background:#111;border:0;border-radius:10px;height:64px}
 body.breed .vak-geluid #toggle:before{content:'▶';display:inline-block;margin-right:8px;font-size:10px}
 body.breed .vak-geluid:has(#toggle[data-running=true]) #toggle:before{content:'Ⅱ'}
 body.breed .vak-geluid .slider-row{gap:10px;margin-top:12px}
 body.breed .vak-geluid .slider-row input{margin:0}
 body.breed .vak-geluid .swatch{height:4px;border-radius:4px}
 body.breed .mode-switch{font-size:11px}
 body.breed .mode-switch .track{background:#272727}
 body.breed .mode-switch[aria-checked=true] .track{background:var(--paper)}
 body.breed .panel>.keys{font-size:10px;line-height:1.3;color:#85858a;max-width:calc(100% - 300px)}
 body.breed .palette-tile{background:var(--surface);border-color:var(--line);border-radius:14px;color:var(--paper)}
 body.breed .palette-tile[aria-pressed=true]{border-color:var(--paper)}
 body.breed .logo-grid,body.breed .logo-grid button{background:var(--surface)}
 body.breed .panel>.palette-panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;gap:16px}
 body.breed .panel.palettes-open>.vak-smaak{display:none}
 body.breed button:disabled{opacity:.35;cursor:default}
 body.breed.simpel .vak-beeldscherm{grid-column:2/4;grid-row:2/5}
}
@media(min-width:1700px){
 body.breed .vak-smaak:has(#emulsion-field:not([hidden])) .smaak-instellingen{position:absolute;z-index:2;left:0;bottom:10px;width:45%;border:0;padding:0;gap:20px}
 body.breed .wissel-field{margin-left:49%;width:51%;border:0;padding-top:16px;grid-template-columns:146px minmax(120px,1fr) 142px;gap:10px 16px}
 body.breed #emulsion-status{text-align:right}
 body.breed .picture-strip .picture{flex-basis:184px!important;height:120px!important}
 body.breed #picture-strip{min-height:128px}
 body.breed .picture-add-tile{min-height:120px}
}
@media(min-width:1100px) and (max-height:1000px){
 body.breed{--top:64px;--preview:min(var(--center),max(220px,(100vh - 500px))*16/9)}
 body.breed .console-header{height:52px}
 body.breed .standard{top:10px}
 body.breed .panel>.group{gap:10px}
 body.breed .presets button[data-slot]{grid-column:auto;min-height:54px;padding:6px;grid-template-columns:25px minmax(0,1fr);gap:2px 7px}
 body.breed .presets button[data-slot]>.preset-strip{width:25px;height:32px;align-self:center}
 body.breed .presets button[data-slot]>small{font-size:9px}
 body.breed .presets .slot-name{font-size:11px}
 body.breed .slot-name-field{padding-top:10px}
 body.breed .save-slots .secondary{min-height:24px;padding:2px}
 body.breed .slot-name-field input{min-height:30px;padding:6px 8px}
 body.breed .vak-geluid{gap:12px!important}
 body.breed .vak-geluid input[type=range]{margin-top:12px}
 body.breed .vak-geluid #trace{height:44px}
 body.breed .vak-geluid .status{font-size:10px}
 body.breed .vak-beeldscherm{gap:7px!important;padding-top:10px!important;padding-bottom:6px!important}
 body.breed .vak-algemeen{padding-top:4px!important;padding-bottom:2px!important}
 body.breed .check{min-height:26px}
 body.breed .vak-smaak>#emulsion-field{gap:8px}
 body.breed #picture-strip .picture{flex-basis:144px;height:92px}
 body.breed #picture-strip{min-height:100px}
 body.breed .picture-add-tile{min-height:92px}
 body.breed .picture-empty{min-height:100px}
 body.breed .panel>.vak-smaak{gap:12px}
 body.breed .wissel-field{padding-top:8px;gap:8px 16px}
 body.breed .vak-smaak>.smaken button{min-height:56px;font-size:9px}
 body.breed .vak-smaak>.smaken{top:calc(var(--top) + var(--preview)*9/16 - 78px);border-radius:21px}
}
@media(min-width:1100px) and (max-width:1350px){
 body.breed{--rail:184px;--right:210px;--center:calc(100vw - var(--rail) - var(--right) - 72px)}
 body.breed .panel{inset:var(--top) 18px 10px;column-gap:18px}
 body.breed .vak-smaak>.smaken{width:var(--center);gap:0;padding:5px}
 body.breed .vak-smaak>.smaken button{font-size:8px}
 body.breed .flavor-mark{width:23px;height:21px}
 body.breed .vak-smaak>.smaak-instellingen{gap:14px}
 body.breed .wissel-field{grid-template-columns:130px minmax(120px,1fr) 126px;gap:8px 12px}
 body.breed .panel>.vak-geluid{padding-left:14px}
}
@media(min-width:1100px) and (max-height:820px){
 body.breed{--preview:min(var(--center),max(180px,(100vh - 405px))*16/9)}
 body.breed .panel>.vak-smaak{overflow:auto;padding-bottom:8px}
 body.breed .presets{gap:4px}
 body.breed .presets button[data-slot]{grid-column:auto;grid-template-columns:1fr;grid-template-rows:1fr;min-height:43px;padding:6px}
 body.breed .presets button[data-slot]>.preset-strip{display:none}
 body.breed .presets button[data-slot]>span:not(.preset-strip),body.breed .presets button[data-slot]>small{grid-column:1}
 body.breed .vak-smaak>.smaken{position:fixed}
}
@media(prefers-reduced-motion:reduce){body.breed button,body.breed .picture,body.breed input[type=range]::-webkit-slider-thumb{transition:none!important}}
@media(prefers-contrast:more) and (min-width:1100px){body.breed{--dim:#ccc;--line:#ffffff60}body.breed .vak-smaak>.smaken{background:#202020;border-color:#888;backdrop-filter:none}}
@media(prefers-reduced-transparency:reduce) and (min-width:1100px){body.breed .vak-smaak>.smaken,body.breed .standard::details-content{background:#202020;backdrop-filter:none}}
@media(min-width:1100px) and (min-height:1001px) and (max-height:1200px){
 body.breed .presets button[data-slot]{grid-column:auto;min-height:60px;padding:7px;grid-template-columns:28px minmax(0,1fr);gap:2px 8px}
 body.breed .presets button[data-slot]>.preset-strip{width:28px;height:36px;align-self:center}
 body.breed .presets button[data-slot]>small{font-size:9px}
 body.breed .presets .slot-name{font-size:11px}
}
@media(min-width:1100px){
 body.breed .vak-geluid>*{order:4}
 body.breed .vak-geluid>.section-heading{order:0}
 body.breed .vak-geluid>label:first-of-type{order:1}
 body.breed .vak-geluid>#toggle{order:2}
 body.breed .vak-geluid>#status{order:3;padding-bottom:14px;border-bottom:1px solid var(--line)}
/* De opslagmelding staat direct onder de statusregel, ook in Breed, en niet onder de geluidsschuiven waar hij buiten beeld valt. */
body.breed .vak-geluid>#storage-status{order:3}
}

/* Scrollen blijft mogelijk met muis, trackpad en toetsenbord; Breed toont geen schuifbalken. */
@media(min-width:1100px){
 body.breed .panel>.group,body.breed .palette-panel,body.breed #picture-strip{scrollbar-width:none}
 body.breed .panel>.group::-webkit-scrollbar,body.breed .palette-panel::-webkit-scrollbar,body.breed #picture-strip::-webkit-scrollbar{display:none}
}

@media(min-width:1100px){
 body.breed #picture-set{display:none}
 body.breed #emulsion-field>label:first-child{position:relative;max-width:440px}
 body.breed #picture-set-open{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:4px 8px 4px 0;min-height:36px;background:none;border:0;border-radius:8px;font-size:15px;font-weight:600;text-align:left}
 body.breed #picture-set-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.breed #picture-set-open svg{flex:none}
 body.breed #picture-set-menu{position:absolute;z-index:8;left:0;top:42px;display:grid;gap:4px;width:100%;min-width:240px;max-height:220px;overflow:auto;padding:6px;background:#222;color:#f5f5f7;border:1px solid #ffffff26;border-radius:14px;box-shadow:0 14px 40px #0009;scrollbar-width:none}
 body.breed #picture-set-menu button{display:block;width:100%;min-height:40px;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#f5f5f7;text-align:left;font-size:13px;font-weight:400}
 body.breed #picture-set-menu button:hover,body.breed #picture-set-menu button:focus-visible{background:#393939;outline:0}
 body.breed #picture-set-menu button[aria-selected=true]{background:#f5f5f7;color:#111}
 body.breed .vak-smaak>.smaak-instellingen,body.breed .vak-smaak>#emulsion-field{flex-shrink:0}
}

@media(min-width:1100px) and (max-width:1699px) and (min-height:1001px){
 body.breed{--preview:min(var(--center),(100vh - 530px)*16/9)}
}

/* Op een laag breed scherm houdt de bediening dezelfde samenhang als op de laptop. */
@media(min-width:1700px) and (max-height:1000px){
 body.breed{--preview:min(var(--center),max(220px,(100vh - 370px))*16/9)}
 body.breed .panel>.vak-smaak{width:100%;max-width:1160px;justify-self:center}
 body.breed .picture-strip .picture{height:92px!important}
 body.breed #picture-strip{min-height:100px}
 body.breed .picture-add-tile{min-height:92px}
 body.breed .wissel-field{grid-template-columns:130px minmax(100px,1fr) 142px;gap:8px 12px}
 body.breed .vak-smaak:has(#emulsion-field:not([hidden])) .smaak-instellingen{gap:16px}
}
@media(min-width:1100px){
 body.breed .vak-smaak>#emulsion-field{grid-template-columns:minmax(0,1fr) 36px 36px 36px 154px}
 body.breed #delete-set{grid-column:4;grid-row:1;align-items:center;justify-content:center;background:transparent;border-radius:50%}
 body.breed #delete-set:hover{background:var(--control)}
 body.breed #emulsion-field>.picture-add{grid-column:5}
}

.set-dialog{width:min(420px,calc(100vw - 40px));padding:24px;border:1px solid #ffffff26;border-radius:18px;background:#202020;color:#f5f5f7;box-shadow:0 20px 80px #0009;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.set-dialog::backdrop{background:#0008}
.set-dialog h2{font-size:18px;margin:0 0 14px}
.set-dialog p{font-size:14px;line-height:1.5;color:#b4b4b8;margin:0 0 24px}
.set-dialog form>div{display:flex;justify-content:flex-end;gap:10px}
.set-dialog button{min-height:44px;padding:10px 16px;border:0;border-radius:10px;background:#393939;color:#f5f5f7;font-size:14px}
.set-dialog button[value=delete]{background:#f5f5f7;color:#111}
