:root{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--wine:#bd466d;--wine-dark:#a3315b;--rose:#664153;--blush:#372b35;--cream:#181419;--paper:#251f25;--ink:#f7eff4;--muted:#cbbbc7;--line:#66535f;--green:#287a4c;--theme-accent:#ffc1d8;--theme-subtle:#201b20;--theme-control-line:#8f7d89}
.theme-slot{display:flex;align-items:center;flex:0 0 auto}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;width:76px;flex:0 0 76px;padding:8px;border:1px solid #968491;border-radius:999px;background:var(--paper);color:var(--ink);font:700 12px var(--sans);white-space:nowrap;line-height:1.2}
.theme-toggle svg{width:17px;height:17px;flex:0 0 17px}
.theme-toggle .theme-moon,.theme-toggle .theme-dark-label{display:none}
[data-theme=dark] .theme-toggle .theme-sun,[data-theme=dark] .theme-toggle .theme-light-label{display:none}
[data-theme=dark] .theme-toggle .theme-moon,[data-theme=dark] .theme-toggle .theme-dark-label{display:block}
.theme-toggle:hover{background:var(--blush)}
.theme-toggle:focus-visible{outline:3px solid #98526f;outline-offset:3px}
.dialog-topbar .theme-toggle{width:68px;flex:0 0 68px;font-size:11px;padding:6px;gap:4px}
.dialog-topbar p{min-width:0}
.option-status{color:#59616d}
.form-input,.item-notes,.search-field,.category-select select,.quantity-control{border-color:#968491}
input::placeholder,textarea::placeholder{color:#67717a;opacity:1}
[data-theme=dark] body{background:#181419}
[data-theme=dark] .shop-panel,[data-theme=dark] .catalogue,[data-theme=dark] .catalogue-heading,[data-theme=dark] .site-footer,[data-theme=dark] .start-order-bar,[data-theme=dark] .mobile-basket,[data-theme=dark] .floating-tools,[data-theme=dark] .tool-button,[data-theme=dark] dialog,[data-theme=dark] .dialog-topbar,[data-theme=dark] .dialog-footer,[data-theme=dark] .detail-gallery,[data-theme=dark] .nav-list button{background:var(--paper);color:var(--ink)}
[data-theme=dark] #category-home,[data-theme=dark] .shop-notice,[data-theme=dark] .order-context>button,[data-theme=dark] .identity-arrow,[data-theme=dark] .draft-text{background:var(--theme-subtle);color:var(--ink)}
[data-theme=dark] .shop-notice,[data-theme=dark] .home-category,[data-theme=dark] .order-context{border-color:var(--line)}
[data-theme=dark] .home-category,[data-theme=dark] .product-card{background:var(--paper);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .product-description,[data-theme=dark] .detail-description{color:var(--muted)}
[data-theme=dark] .home-category b,[data-theme=dark] .store-order-note,[data-theme=dark] .order-context svg,[data-theme=dark] .order-context b,[data-theme=dark] .product-price,[data-theme=dark] .detail-price,[data-theme=dark] .detail-category,[data-theme=dark] .eyebrow,[data-theme=dark] .text-button,[data-theme=dark] .quantity-control button,[data-theme=dark] .basket-line-info>p,[data-theme=dark] .availability-note,[data-theme=dark] .empty-basket .empty-flower{color:var(--theme-accent)}
[data-theme=dark] .category-chip,[data-theme=dark] .add-product,[data-theme=dark] .quick-add-product,[data-theme=dark] .button.outline{background:var(--paper);color:var(--theme-accent);border-color:#bc829e}
[data-theme=dark] .category-chip[aria-pressed=true],[data-theme=dark] .add-product:hover,[data-theme=dark] .quick-add-product:hover,[data-theme=dark] .button.outline:hover{background:var(--blush);color:var(--theme-accent);border-color:var(--theme-accent)}
[data-theme=dark] .quick-buy-product{background:var(--wine);color:#fff!important;border-color:var(--wine)}
[data-theme=dark] .quick-buy-product:hover{background:var(--wine-dark)}
[data-theme=dark] .category-heading-picker select,[data-theme=dark] .category-select select,[data-theme=dark] .form-input,[data-theme=dark] .item-notes{background:var(--theme-subtle);color:var(--ink)}
[data-theme=dark] .form-input,[data-theme=dark] .item-notes,[data-theme=dark] .search-field,[data-theme=dark] .category-select select,[data-theme=dark] .quantity-control{border-color:var(--theme-control-line)}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:var(--muted)}
[data-theme=dark] .search-field svg{color:var(--muted)}
[data-theme=dark] .choice-row{background:var(--paper);border-color:var(--theme-control-line)}
[data-theme=dark] .choice-row:has(input:checked),[data-theme=dark] .choice-row.selected,[data-theme=dark] .service-switch label:has(input:checked){background:#3e2b37;border-color:var(--theme-accent)}
[data-theme=dark] .service-switch label{border-color:var(--theme-control-line)}
[data-theme=dark] .choice-row input[type=radio],[data-theme=dark] .choice-row input[type=checkbox],[data-theme=dark] .service-switch input{accent-color:#e3a0bc}
[data-theme=dark] .option-status{background:var(--blush);color:var(--muted)}
[data-theme=dark] .option-status.complete,[data-theme=dark] .added-check,[data-theme=dark] .confirmation-note{background:#1e3a2e;color:#c1ead0}
[data-theme=dark] .lead-time,[data-theme=dark] .owner-notice{background:var(--blush);color:var(--theme-accent)}
[data-theme=dark] .warning-box{background:#443521;color:#ffe2ae;border-color:#b9955c}
[data-theme=dark] .dialog-error{background:#4c252d;color:#ffd7df}
[data-theme=dark] .product-badge{background:#241b24f2;color:#ffe5f0}
[data-theme=dark] .detail-main-photo,[data-theme=dark] .product-photo-button{background:#302730}
[data-theme=dark] .notice-icon{border-color:var(--muted)}
[data-theme=dark] .photo-controls{background:#251f25f2;border:1px solid var(--line)}
[data-theme=dark] .photo-controls button{color:var(--theme-accent)}
[data-theme=dark] .theme-toggle{border-color:var(--theme-control-line)}
[data-theme=dark] :is(button,a,input,select,textarea):focus-visible{outline:3px solid #ffe3a1;outline-offset:3px}
@media(max-width:900px){.floating-tools{gap:8px;padding-inline:10px}.theme-toggle{width:72px;flex-basis:72px}}
@media(max-width:400px){.dialog-topbar{gap:3px;padding-inline:7px}.dialog-topbar p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-topbar .theme-toggle{width:64px;flex-basis:64px}}
