/* Store navigation and controls only. Canvas, images, swatches and guest/editor routes retain their colours. */
[data-stationery-theme-toggle]{display:inline-flex;flex:none}
[data-stationery-theme-toggle][hidden]{display:none}
[data-stationery-theme-toggle] .theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid #d6d6d6;border-radius:50%;background:#fff;color:#202322;cursor:pointer}
[data-stationery-theme-toggle] .theme-toggle svg{display:block}
html[data-theme="dark"][data-stationery-surface="browse"],
html[data-theme="dark"][data-stationery-surface="browse"] body{
 color-scheme:dark;
 --paper:#000000;--ink:#f5f5f5;--muted:#bdbdbd;--line:#3d3d3d;
 --chapter-paper:#000000;--chapter-ink:#f5f5f5;--chapter-gold:#bdbdbd;
 --forest:#f5f5f5;--leaf:#bdbdbd;--wine:#f5f5f5;
 background:#000000!important;color:#f5f5f5!important;
}
html[data-theme="dark"][data-stationery-surface="browse"] :is(#header,#main,#foot,.product-nav,.cat-title){
 background:#000000!important;color:#f5f5f5!important;border-color:#3d3d3d;
}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.brand,.opening-hero h1,.opening-hero h1 em,.cat-title h1,.piece-details h1,.studiohead h1,.mood-heading h2,.custom-showcase,.design-card,.opening-label,.cat-kicker,.opening-signup .opening-benefit){
 color:#f5f5f5!important;
}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.panel,.opening-signup,.home-plan,.edition-options article,.opening-products article,.opening-status,.custom-preparation,.order-status,.membership-note,.notice,.custom-preview-note,.sample-gallery,.colour-review){
 background:#141414!important;color:#f5f5f5;border-color:#3d3d3d;
}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.home-plan-featured){box-shadow:inset 0 3px 0 #bdbdbd}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.home-plans,.home-plan+.home-plan,.home-plan ul,.edition-options,.edition-guide th,.edition-guide td,.piece-facts,.piece-facts>div,.catalog-tools,.home-colours,.making-guide,.savecard,.archive,.opening-label,.policy-list section){border-color:#3d3d3d}
html[data-theme="dark"][data-stationery-surface="browse"] .edition-guide thead th{background:#262626}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.opening-hero p,.opening-hero figcaption,.custom-intro p,.custom-feature>span,.custom-feature label,.custom-feature>p,.custom-free-note,.custom-stage>small,.sample-tile small,.design-card small,.cat-title p,.piece-details p,.piece-facts dt,.catalog-info,.back-row,.tier-nav small,.making-guide header p,.film-notes li p,.plan-number,.home-plan .plan-term,.home-plan .plan-copy,.home-plan .plan-context,.edition-terms,.mood-heading p,.opening-status p,.opening-products p,.custom-preparation p,.custom-preparation small,.archive summary,.catalog-type){color:#bdbdbd!important}
html[data-theme="dark"][data-stationery-surface="browse"] .home-plan li::before,
html[data-theme="dark"][data-stationery-surface="browse"] .film-notes li::marker{color:#bdbdbd}
html[data-theme="dark"][data-stationery-surface="browse"] .home-plan .plan-editing{color:#bdbdbd}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.btn,.black-cta,#header .create-nav){
 background:#f5f5f5!important;color:#000000!important;border-color:#f5f5f5!important;
}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.btn.secondary,.pill,.custom-tabs button,.custom-fonts button,.custom-swatches button,.colour-review button){
 background:#141414!important;color:#f5f5f5!important;border-color:#3d3d3d!important;
}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.pill[aria-pressed="true"],.pill[aria-current="page"],.custom-tabs button[aria-pressed="true"],.custom-fonts button[aria-pressed="true"],.custom-swatches button[aria-pressed="true"]){
 background:#333333!important;color:#f5f5f5!important;border-color:#bdbdbd!important;box-shadow:none;
}
html[data-theme="dark"][data-stationery-surface="browse"] .tier-nav a[aria-current="true"]{border-color:#f5f5f5}
html[data-theme="dark"][data-stationery-surface="browse"] :is(input,select,textarea){background:#141414;color:#f5f5f5;border-color:#3d3d3d;accent-color:#f5f5f5}
html[data-theme="dark"][data-stationery-surface="browse"] .custom-feature input{background:#141414;color:#f5f5f5}
html[data-theme="dark"][data-stationery-surface="browse"] input::placeholder{color:#b0b0b0;opacity:1}
html[data-theme="dark"][data-stationery-surface="browse"] #mainMenu>div{background:#141414;color:#f5f5f5;border-color:#3d3d3d}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.bottom-ribbon,.store-footer){background:#141414;color:#f5f5f5;border-color:#3d3d3d}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.bottom-ribbon i,.store-footer p){color:#bdbdbd}
html[data-theme="dark"][data-stationery-surface="browse"] .bottom-ribbon a{border-color:#3d3d3d}
html[data-theme="dark"][data-stationery-surface="browse"] .custom-stage{background:#141414;color:#f5f5f5}
html[data-theme="dark"][data-stationery-surface="browse"] .wf-palette-picker{--wf-palette-ink:#f5f5f5;--wf-palette-border:#3d3d3d}
html[data-theme="dark"][data-stationery-surface="browse"] .wf-palette-card{background:#141414!important;color:#f5f5f5}
html[data-theme="dark"][data-stationery-surface="browse"] :is(.wf-palette-heading p,.wf-palette-use,.wf-palette-recipe){color:#bdbdbd}
html[data-theme="dark"][data-stationery-surface="browse"] .wf-palette-card[aria-pressed="true"]{border-color:#bdbdbd;box-shadow:inset 0 0 0 1px #bdbdbd}
/* A catalogue preview remains a light art board, including its front/back control. */
html[data-theme="dark"][data-stationery-surface="browse"] .piece-stage{color-scheme:light;color:#111111}
html[data-theme="dark"][data-stationery-surface="browse"] #toast{background:#f5f5f5;color:#000000}
html[data-theme="dark"][data-stationery-surface="browse"] [data-theme-toggle]{background:#141414;color:#f5f5f5;border-color:#3d3d3d}
html[data-theme="dark"][data-stationery-surface="browse"] :is(button,a,input,select,textarea):focus-visible{outline:2px solid #bdbdbd;outline-offset:3px}
@media(max-width:760px){[data-stationery-surface="browse"] #header .nav-right{gap:8px}[data-stationery-theme-toggle] .theme-toggle{width:36px;height:36px}}
