/* Scoped to opted-in portal HTML, preserving the existing light appearance. */
.pse-theme-toggle{display:block!important;width:100%!important;margin:0 0 18px!important;padding:12px 14px!important;border:1px solid #dce1e8!important;border-radius:8px!important;background:#f7f8fa!important;color:#172238!important;text-align:left!important;font:600 12px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif!important;cursor:pointer!important}
.pse-theme-toggle:focus-visible{outline:3px solid #d6af61!important;outline-offset:3px!important}.pse-theme-floating{position:fixed!important;bottom:18px!important;right:18px!important;width:auto!important;max-width:calc(100vw - 36px)!important;z-index:50!important;box-shadow:0 4px 20px #0002}.pse-theme-floating{margin:0!important}
@media screen{
html[data-pse-theme=dark]{color-scheme:dark;--ink:#edf1f7!important;--muted:#a0aec2!important;--line:#2b3a4e!important;--navy:#243853!important;--gold:#e5bd70!important;--bg:#0b111b!important;--admin-ink:#edf1f7!important;--admin-muted:#a0aec2!important;--admin-line:#2b3a4e!important;--admin-navy:#243853!important;--admin-gold:#e5bd70!important}
html[data-pse-theme=dark] body,html[data-pse-theme=dark] body.admin-light{background:#0b111b!important;color:#edf1f7!important}
html[data-pse-theme=dark] :is(.card,.panel,.sidebar,.admin-sidebar,.topbar,.standalone-header,.child-switch,dialog,.modal,.billing-card,.purchase-card,.training-card,.member-card,.shell>aside){background:#131d2b!important;color:#edf1f7!important;border-color:#2b3a4e!important;box-shadow:none!important}
html[data-pse-theme=dark] :is(.player-summary,.avatar,.stat,.metric,.admin-stat,.admin-stat-card,.member-stat,.member-summary,.admin-nav-group[open]>summary){background:#19283b!important;color:#edf1f7!important;border-color:#2b3a4e!important}
html[data-pse-theme=dark] :is(h1,h2,h3,h4,strong,b,label,summary,.value,.training-time,.portal-brand,.admin-brand){color:#edf1f7!important}
html[data-pse-theme=dark] :is(p,small,.small,.muted,.privacy,.hint,.sub,.note,.admin-pagebar p,.admin-brand small,.portal-brand small){color:#a0aec2!important}
html[data-pse-theme=dark] a{color:#e5bd70!important}
html[data-pse-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea){background:#101a28!important;color:#edf1f7!important;border-color:#36475f!important}
html[data-pse-theme=dark] :is(input,textarea)::placeholder{color:#98a6ba!important;opacity:1}html[data-pse-theme=dark] input:is([type=checkbox],[type=radio]){accent-color:#d6af61}
html[data-pse-theme=dark] :is(button,.button,.btn,.tabs a){background:#1d2e44!important;color:#edf1f7!important;border-color:#3b4f6b!important}
html[data-pse-theme=dark] :is(.primary,button.primary,.btn.primary,.sidebar-nav a.active,.admin-sidebar nav a.active,.tabs a.active,.child-switch a.active){background:#d6af61!important;color:#111a29!important;border-color:#d6af61!important}
html[data-pse-theme=dark] :is(.notice,.flash,.success,.notice.success){background:#18342c!important;color:#b3dfc3!important;border-color:#426b58!important}
html[data-pse-theme=dark] :is(.notice.error,.error,.alert-danger){background:#3b2029!important;color:#ffc3c9!important;border-color:#80505e!important}
html[data-pse-theme=dark] :is(.warning,.notice.warning,.badge.muted){background:#3a3020!important;color:#f1d394!important;border-color:#7e683d!important}
html[data-pse-theme=dark] .badge{background:#18382c!important;color:#a9dabb!important}
html[data-pse-theme=dark] :is(table,thead,tbody,tr,td,th,.training-row,.admin-upcoming,.participant,.action,.member-row,.admin-section-head,details){border-color:#2b3a4e!important}
html[data-pse-theme=dark] :is(th,thead,thead tr,thead th){background:#192536!important;color:#b6c3d5!important}
html[data-pse-theme=dark] :is(td,tbody tr){background:transparent!important;color:#edf1f7!important}
html[data-pse-theme=dark] :is(.pse-theme-toggle,.admin-light .pse-theme-toggle){background:#192536!important;color:#e5bd70!important;border-color:#36475f!important}
html[data-pse-theme=dark] :is(a,button,input,select,textarea):focus-visible{outline:2px solid #e5bd70!important;outline-offset:3px!important}
html[data-pse-theme=dark] .btn.delete,html[data-pse-theme=dark] .delete{color:#ffb0bc!important}
}
@media print{.pse-theme-toggle{display:none!important}}
/* Contrastcorrectie: compacte tellers, ledenkaarten en planningvensters. */
@media screen{
html[data-pse-theme=dark] :is(.ma-stats>div,.admin-metric,.admin-metric:first-child,.admin-light .item,.admin-light .preview,.ma-form-section,.ma-dialog-head,.pr-head,.pr-avatar,.pw-day,.attachment,.update){background:#192536!important;color:#edf1f7!important;border-color:#36475f!important}
html[data-pse-theme=dark] :is(.ma-stats>div,.admin-metric) :is(b,strong,.value){color:#f1f5fb!important}
html[data-pse-theme=dark] :is(.ma-stats>div,.admin-metric) :is(small,span,p){color:#b6c3d5!important}
html[data-pse-theme=dark] :is(.ma-dialog,.pr-dialog){background:#131d2b!important;color:#edf1f7!important;border-color:#36475f!important}
html[data-pse-theme=dark] :is(.pr-badge,.pr-actions .pr-quick-add){background:#243853!important;color:#edf1f7!important;border-color:#49617e!important}
html[data-pse-theme=dark] .pw-move-error:not([hidden]){background:#3b2029!important;color:#ffc3c9!important;border-color:#80505e!important}
html[data-pse-theme=dark] :is(.admin-light .ok,.ma-dialog .notice){background:#18342c!important;color:#b3dfc3!important;border-color:#426b58!important}
/* Het deelbare planningblad blijft bewust een licht document. */
html[data-pse-theme=dark] .pw-share-card,html[data-pse-theme=dark] .pw-share-card :is(h1,h2,h3,h4,b,strong,p,small,span,div){color:#172238!important}
html[data-pse-theme=dark] :is(.pw-share-card,.pw-share-day){background:#fff!important;border-color:#dce1e8!important}
}
