/* Alleen indeling van de editor. Inputs, knoppen, vensters en kleuren erven de centrale standaard. */
.afbeelding-editor{min-width:0;--editor-lijn:color-mix(in srgb,currentColor 24%,transparent)}
.afbeelding-editor *{box-sizing:border-box}
.afbeelding-editor [hidden]{display:none!important}
.afbeeldingshulpmiddel:has(.afbeelding-editor){max-width:none}
.editor-werkruimte{display:grid;grid-template-columns:max-content minmax(0,1fr) auto;align-items:start;gap:.7rem;min-width:0}
.editor-werkvlak{min-width:0;min-height:18rem;max-height:70vh;overflow:auto;flex:1 1 65%;padding:.8rem;border:1px solid var(--editor-lijn);border-radius:var(--kader-hoek,8px);background:color-mix(in srgb,currentColor 5%,transparent);overscroll-behavior:contain}
.editor-doek{position:relative;margin:auto;flex:none;isolation:isolate;background-color:#fff;background-image:conic-gradient(#ddd 25%,#fff 0 50%,#ddd 0 75%,#fff 0);background-size:20px 20px}
.editor-doek>canvas{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none}
.editor-doek>[data-editor-selectie]{touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.editor-doek>[data-editor-selectie]:focus-visible{outline:2px solid var(--kleur-icoon,currentColor);outline-offset:3px}
.editor-leeg{text-align:center;padding:4rem 1rem}
.editor-zijpaneel{flex:0 1 19rem;min-width:12rem;max-height:70vh;overflow:auto}
.editor-zijpaneel>section{padding:.7rem;margin:0 0 .6rem}
.editor-zijpaneel h3{font-size:1em;margin:0 0 .5rem}
.editor-zijpaneel button:not(.site-paneel-kop){max-width:100%;margin:.15rem}
.editor-laagacties{display:flex;gap:.25rem;flex-wrap:wrap}
.editor-laag{display:grid;grid-template-columns:2.5rem minmax(4rem,1fr);gap:.35rem;align-items:center;padding:.4rem;margin:.35rem 0;border:1px solid var(--editor-lijn);border-radius:var(--kader-hoek,6px)}
.editor-laag.is-actief{outline:2px solid var(--kleur-icoon,currentColor);outline-offset:-2px}
.editor-laag>canvas{width:2.5rem;height:2rem;object-fit:contain;background:repeating-conic-gradient(#ddd 0% 25%,#fff 0% 50%) 0/10px 10px}
.editor-laag>label{grid-column:1/-1}
.editor-laag>button{overflow-wrap:anywhere;text-align:start}
.editor-weergavebalk{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin-top:.8rem}
.editor-weergavebalk>.editor-veld{display:flex;flex-direction:row;align-items:center;width:auto}
.editor-weergavebalk>input[type=range]{flex:1 1 8rem;max-width:16rem;min-width:6rem}
.editor-weergavebalk>output{font-variant-numeric:tabular-nums;white-space:nowrap}
.editor-veld{display:grid;gap:.3rem;margin:.5rem 0;min-width:0;align-content:start}
.editor-veld>:is(input,select,textarea){width:100%;min-width:0;max-width:100%;margin:0}
.editor-veld textarea{min-height:5rem;resize:vertical}
.editor-aanvink{display:flex;align-items:center;gap:.45rem;margin:.5rem 0;cursor:pointer}
.editor-aanvink>input{flex:none;width:auto;accent-color:var(--kleur-icoon,currentColor)}
.editor-getalregel{display:flex;align-items:center;gap:.5rem;min-width:0}
.editor-getalregel>input[type=range]{flex:1 1 7rem;min-width:4rem;accent-color:var(--kleur-icoon,currentColor)}
.editor-getalregel>input[type=number]{width:6rem;max-width:100%;min-width:0;flex:0 1 7rem;font-variant-numeric:tabular-nums}
.editor-popup{width:min(62rem,96vw);max-width:96vw}
.editor-popup .site-popup-inhoud{max-height:75vh;overflow:auto}
.editor-popup canvas:not(.kleur-voorbeeld canvas){display:block;max-width:100%;height:auto;max-height:48vh;object-fit:contain;touch-action:none;background-color:#fff;background-image:repeating-conic-gradient(#ddd 0% 25%,#fff 0% 50%);background-size:20px 20px}
.editor-dialog-layout,.editor-dialoog-layout{display:grid;grid-template-columns:minmax(14rem,1fr) minmax(0,1.3fr);gap:1rem;align-items:start}
.editor-dialog-controls,.editor-dialoog-velden{min-width:0}
.editor-voorbeeld,.editor-preview,.editor-dialog-preview{min-width:0;display:grid;place-items:center;align-self:start;position:sticky;top:0}
.editor-preview-info{font-size:.9em;line-height:1.45;justify-self:stretch}
.editor-parameterblok{border-top:1px solid var(--editor-lijn);padding-top:.4rem;margin-top:.6rem}
.editor-kleurregel{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.editor-popup .site-popup-inhoud>.editor-veld{display:grid;align-items:start}
.editor-popup progress{width:100%;accent-color:var(--kleur-icoon,currentColor)}
.editor-popup [role=alert],.afbeelding-editor>[role=alert]{font-weight:600;overflow-wrap:anywhere}
.afbeelding-editor>[data-editor-status]:empty{display:none}
.editor-privacy{font-size:.88em;line-height:1.4;opacity:.85;margin:.7rem 0 0}
.editor-afbeelding-info{font-size:.92em;line-height:1.5}
.afbeelding-editor-kleuradapter{position:absolute!important;width:0;height:0;overflow:visible;pointer-events:none;visibility:hidden}
.afbeelding-editor-kleuradapter>fieldset>*:not(dialog){display:none!important}
.afbeelding-editor-kleuradapter>fieldset{border:0!important;margin:0!important;padding:0!important}
.afbeelding-editor-kleuradapter dialog[open]{pointer-events:auto;visibility:visible}
.editor-modelinformatie{font-size:.9em;line-height:1.5}
.editor-busy{opacity:.7}
@media(max-width:48rem){.editor-werkruimte{grid-template-columns:max-content minmax(0,1fr)}.editor-zijpaneel{grid-column:2}.editor-zijpaneel{flex:auto;min-width:0;max-height:24rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.editor-dialog-layout,.editor-dialoog-layout{grid-template-columns:minmax(0,1fr)}.editor-voorbeeld,.editor-preview,.editor-dialog-preview{position:static}.editor-toolbar{gap:.3rem}.editor-tooltekst{font-size:.88em}}
@media(max-width:30rem){.editor-zijpaneel{grid-template-columns:minmax(0,1fr)}.editor-werkvlak{padding:.25rem}.editor-werkruimte{gap:.3rem}.editor-weergavebalk{gap:.4rem}.editor-popup{max-width:98vw}}
@media(prefers-reduced-motion:reduce){.afbeelding-editor *{scroll-behavior:auto}}

/* De gedeelde Start-menuclasses leveren uiterlijk en muis/touch-navigatie. */
.editor-menubalk.windows-menu{display:flex;flex-wrap:wrap;align-items:center;gap:0;position:relative;z-index:20;list-style:none;min-width:0;width:100%;margin:0 0 .7rem;padding:0;border:0;border-bottom:1px solid var(--editor-lijn);border-radius:0;box-shadow:none;background:transparent}
.editor-menubalk>.menu-item{min-width:0;flex:0 0 auto}
.editor-menubalk>.menu-item>a{padding-inline:.5rem;min-height:44px}
.editor-menubalk .windows-menu{max-height:65vh;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
.editor-menubalk .editor-menulijst>.menu-item+.menu-item{border-top:1px solid var(--editor-lijn)}
.editor-menubalk .menu-groep::after{content:'›';margin-inline-start:auto;padding-inline-start:.75rem}
.editor-menubalk>.menu-item>.menu-groep::after{content:'⌄';padding-inline-start:.35rem}
.editor-menubalk .menu-item.is-open>.windows-menu,.editor-menubalk .menu-item:focus-within>.windows-menu{display:block}
.editor-menubalk>.menu-item:not(.is-open)>.windows-menu{display:none}
.editor-menubalk.editor-menus-gesloten .windows-menu{display:none!important}
.editor-menubalk .menu-item.heeft-submenu::after{right:0;width:1px}
.editor-menubalk .menu-item>a:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.editor-menubalk .menu-item>a{white-space:normal;overflow-wrap:anywhere}
.editor-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:.3rem;grid-column:1;grid-row:1;max-height:70vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:.2rem;margin:0}
.editor-toolbar>button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;margin:0;touch-action:manipulation}
.editor-toolbar>button>span{font-size:1.25em;line-height:1}
.editor-toolbar>button[aria-pressed=true]{box-shadow:inset 0 2px 6px #0008;outline:2px solid currentColor;outline-offset:-3px;transform:translateY(1px)}
.editor-tooltooltip{position:fixed;z-index:15000;pointer-events:none;max-width:min(20rem,calc(100vw - 16px));padding:.45rem .65rem;border:1px solid currentColor;border-radius:var(--kader-hoek,5px);background:var(--kleur-menu,#f7f7f7);color:var(--kleur-menutekst,#182e38);box-shadow:0 3px 9px #0004;font-size:.92em}
.editor-werkvlak{grid-column:2;grid-row:1;width:100%}
.editor-effect-kleurstaal{display:inline-block;width:2rem;height:2rem;border:1px solid var(--editor-lijn);border-radius:.25rem}
.editor-effect-sleeppunt{cursor:crosshair}
.editor-effect-afmetingen{font-size:.88em;font-variant-numeric:tabular-nums}
.editor-effect-layout input[type=range]{touch-action:pan-y}
.editor-popup canvas.editor-effect-kleurstaal{width:2rem;height:2rem;max-height:2rem}
.editor-popup .editor-getalregel input{min-height:44px;font:inherit}
.editor-popup .editor-getalregel input[type=number]{padding:.35rem}
@media(max-width:48rem){.editor-effect-layout>.editor-dialog-preview{grid-row:1;position:sticky;top:0;z-index:2;background:var(--kleur-vlak,Canvas);padding:.35rem;border-bottom:1px solid var(--editor-lijn)}.editor-effect-layout>.editor-dialog-preview>canvas{max-height:27vh;width:auto;max-width:100%}.editor-effect-layout>.editor-dialog-controls{grid-row:2}.editor-effect-layout .editor-effect-afmetingen{font-size:.8em}}
.editor-menubalk .menu-item.is-collapsed:not(.is-open)>.windows-menu{display:none}
.editor-effect-keuzevoorbeelden{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.3rem;margin:.35rem 0 .7rem}
/* Beeldkeuzes erven de centrale knopopmaak; de beeldinhoud bepaalt bewust de hoogte. */
.editor-effect-keuzevoorbeelden>button{display:flex;flex-direction:column;gap:.3rem;align-items:center;min-width:0;width:100%;height:auto!important;max-height:none!important;min-height:44px;overflow:hidden;padding:.3rem}
.editor-effect-keuzevoorbeelden>button>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:.2rem}
.editor-effect-keuzevoorbeelden>button>span{font-size:.85em;white-space:normal;overflow-wrap:anywhere}
.editor-effect-keuzevoorbeelden>button[aria-pressed=true]{outline:2px solid currentColor;outline-offset:-3px;box-shadow:inset 0 2px 5px #0006}

/* De editor is de inhoud van het bestaande venster; alleen echte eigenschappen
   hebben een eigen paneel. De centrale controls blijven hun uiterlijk beheren. */
.editor-venster>.applicatie-inhoud{padding:0;min-height:0;overflow:auto}
.editor-venster .browser-tool[data-browser-tool="afbeeldingsformaat"]{padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;max-width:none}
.editor-venster .browser-tool[data-browser-tool="afbeeldingsformaat"]>.browser-tool-kop{display:none}
.editor-venster>.applicatie-titelbalk{height:auto;flex-basis:auto;flex-wrap:wrap;gap:0;padding:0;align-items:center}
.editor-venster>.applicatie-titelbalk>.window-navigatie{display:none}
.editor-venster>.applicatie-titelbalk>.window-titel,.editor-venster>.applicatie-titelbalk>h1{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.editor-venster>.applicatie-titelbalk>.window-knoppen{order:3;align-self:flex-start;margin-inline-start:auto;flex-shrink:0}
.editor-venster>.applicatie-titelbalk>.window-knoppen{height:var(--titelbalk-hoogte,46px)}
.editor-venster>.applicatie-titelbalk>.window-knoppen>.window-knop{height:var(--titelbalk-hoogte,46px)}
.editor-titelbediening{display:flex;align-items:center;gap:.35rem;flex:1 1 35rem;min-width:0;max-width:100%;order:2;flex-wrap:wrap;padding:.15rem .35rem;background:var(--venster-achtergrond,var(--kleur-achtergrond,#f5f5f5));color:var(--tekst-venster,inherit)}
.editor-titelbediening .editor-menubalk.windows-menu{width:auto;flex:1 1 auto;margin:0;border:0;box-shadow:none;z-index:25}
.editor-titelbediening .editor-menubalk>.menu-item+.menu-item{border-inline-start:1px solid var(--editor-lijn,color-mix(in srgb,currentColor 24%,transparent))}
.editor-menubalk a,.editor-menubalk a:visited,.editor-menubalk a:hover{text-decoration:none!important}
.editor-titelbediening .editor-menubalk .windows-menu{background:var(--venster-achtergrond,var(--kleur-achtergrond,#f5f5f5));text-decoration:none}
.editor-venster .editor-titelbediening,.editor-venster .editor-titelbediening .windows-menu{background:var(--editor-achtergrond,#fff)!important}
.editor-menubalk .menu-groep::after{content:'›'!important;font-family:Arial,sans-serif;font-size:1em}
.editor-menubalk>.menu-item>.menu-groep::after{content:'⌄'!important}
.editor-menubalk .editor-menulijst>.menu-item+.menu-item{border-top:1px solid var(--editor-lijn,color-mix(in srgb,currentColor 24%,transparent))}
.editor-menubalk :is([role=menuitemcheckbox],[role=menuitemradio])::before{content:'✓';visibility:hidden;display:inline-block;width:1.1em;flex-shrink:0}
.editor-menubalk :is([role=menuitemcheckbox],[role=menuitemradio])[aria-checked=true]::before{visibility:visible}
.editor-kleurstalen{position:relative;width:72px;height:72px;margin:.3rem}
.editor-kleurstaal{position:absolute;display:block;width:48px;height:48px;cursor:pointer;touch-action:manipulation;outline:1px solid var(--editor-lijn)}
.editor-kleurstaal[data-editor-color=foreground]{top:0;left:0;z-index:2}
.editor-kleurstaal[data-editor-color=background]{bottom:0;right:0;z-index:1}
.editor-kleurstaal>canvas{display:block;position:static;width:100%;height:100%;background:repeating-conic-gradient(#ddd 0% 25%,#fff 0% 50%) 0/8px 8px}
.editor-kleurstaal:focus-visible{outline:2px solid var(--kleur-icoon,currentColor);outline-offset:2px;z-index:3}
.editor-werkruimte{padding:.35rem;gap:.4rem;align-items:start}
.editor-werkvlak{border:0;border-radius:0;background:transparent;min-height:20rem;max-height:calc(100vh - 13rem);padding:.25rem}
.editor-toolbar{overflow:visible;position:sticky;top:0;z-index:30;padding:.1rem;gap:.2rem;max-height:none}
.editor-toolbar>button,.editor-toolgroep>button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;padding:.2rem;touch-action:manipulation}
.editor-toolgroep{position:relative;flex:none}
.editor-toolgroep>button{width:100%}
.editor-toolgroep>button>span{display:block;font-size:1.25em;line-height:1}
.editor-toolgroep svg{width:1.25em;height:1.25em;display:block}
.editor-toolbar [data-editor-persistent][aria-pressed=true]{box-shadow:inset 0 2px 6px #0008;outline:2px solid currentColor;outline-offset:-3px;transform:translateY(1px)}
.editor-toolsubmenu{display:flex;position:fixed;z-index:11005;gap:.15rem;padding:.25rem;border:1px solid var(--editor-lijn);background:var(--venster-achtergrond,var(--kleur-achtergrond,#f5f5f5));box-shadow:0 3px 8px #0004;border-radius:var(--kader-hoek,5px);max-width:calc(100vw - 8px)}
.editor-toolsubmenu>button{display:flex;align-items:center;justify-content:center;min-width:40px;min-height:44px;padding:.2rem;margin:0!important;flex:1 1 40px;touch-action:manipulation}
.editor-toolsubmenu>button>span{font-size:1.2em;line-height:1}
.editor-toolsubmenu>button[aria-current=true]{outline:2px solid currentColor;outline-offset:-3px;box-shadow:inset 0 2px 4px #0006}
.editor-doek>[data-editor-selectie][data-tool=move-selection]{cursor:move}
.editor-doek>[data-editor-selectie][data-tool=text]{cursor:text}
.editor-zijpaneel{display:flex;flex-direction:column;align-items:stretch;min-width:0;width:17rem;max-width:42vw;height:var(--editor-paneelhoogte,calc(100dvh - 13rem));max-height:none;gap:.25rem;padding:0;overflow:hidden}
.editor-zijpaneel.is-alles-ingeklapt{height:auto}
.editor-zijpaneel>.editor-eigenschappenpaneel{position:relative;display:flex;flex-direction:column;flex:1 1 0;width:100%;min-width:0;max-width:100%;min-height:30px;overflow:hidden;border:1px solid var(--editor-lijn);border-radius:var(--kader-hoek,6px);padding:0;margin:0;background:var(--venster-achtergrond,var(--kleur-achtergrond,transparent))}
.editor-zijpaneel>.editor-eigenschappenpaneel.is-ingeklapt{flex:0 0 auto;min-height:0}
.editor-paneelinhoud{overflow:auto;overscroll-behavior:contain;padding:.4rem;min-height:0;flex:1 1 0}
.editor-weergavebalk{padding:0 .5rem .4rem;margin-top:0}
.afbeelding-editor>[data-editor-status]{margin:.2rem .5rem}
.editor-effect-viewport{width:100%;max-width:100%;max-height:48vh;overflow:auto;min-width:0;display:block}
@media(max-width:60rem){.editor-venster>.applicatie-titelbalk>.window-knoppen{order:3}.editor-titelbediening{order:2;flex:1 1 14rem;width:auto}.editor-venster>.applicatie-titelbalk>.window-titel,.editor-venster>.applicatie-titelbalk>h1{max-width:calc(100% - 8rem)}.editor-titelbediening .editor-menubalk{flex-basis:100%}}
@media(max-width:48rem){.editor-werkruimte{grid-template-columns:44px minmax(0,1fr)}.editor-zijpaneel{grid-column:2;width:100%;max-width:100%}.editor-zijpaneel>.editor-eigenschappenpaneel{min-width:0}.editor-werkvlak{max-height:56vh;min-height:18rem}.editor-effect-viewport{max-height:27vh}.editor-toolbar>button,.editor-toolgroep>button{min-width:44px;max-width:44px}.editor-toolsubmenu{gap:.1rem;padding:.15rem}.editor-titelbediening .editor-menubalk>.menu-item>a{padding-inline:.4rem}}
@media(max-width:30rem){.editor-titelbediening{gap:.2rem}.editor-titelbediening .editor-menubalk>.menu-item>a{min-height:36px;padding-inline:.3rem;font-size:.92em}.editor-toolbar>button,.editor-toolgroep>button{min-height:42px}.editor-toolsubmenu>button{min-width:38px;min-height:42px}.editor-werkruimte{padding:.15rem;gap:.2rem}}


/* Actiegerichte opties blijven verbonden met de gedeelde veld- en knopstandaard. */
.afbeelding-editor[data-editor-mode=simple] [data-editor-advanced],.editor-titelbediening[data-editor-mode=simple] [data-editor-advanced]{display:none!important}
.editor-gereedschapopties{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.4rem;max-height:11rem;overflow:auto;border-bottom:1px solid var(--editor-lijn)}
.editor-gereedschapopties>.editor-veld{flex:1 1 10rem;max-width:18rem;min-width:8rem;margin:0}
.editor-gereedschapopties[hidden]{display:none}
.editor-interactie-controls{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.editor-interactie-controls>.editor-veld{flex:1 1 12rem;min-width:8rem}
.editor-interactie-controls>p{flex-basis:100%;margin:.25rem 0}
.editor-interactie-viewport{overflow:auto;max-height:58vh;min-height:8rem;display:flex;align-items:flex-start;justify-content:center}
.editor-popup .editor-interactie-canvas{max-width:100%;max-height:55vh;object-fit:contain;touch-action:none;cursor:crosshair}
.editor-venster .editor-werkvlak{min-height:0;max-height:none}
.editor-tekstpad{border-top:1px solid var(--editor-lijn);margin-top:.4rem;padding-top:.4rem}
.editor-tekstpad>.editor-veld{margin:.3rem 0}

.editor-popup .editor-interactie-acties{flex-wrap:wrap}
