.theme-toggle{flex:none;border:1px solid #7ba6a2;border-radius:999px;background:#213b3c;color:#fff6e7;padding:9px 14px;font-size:.82rem;font-weight:800;cursor:pointer}
.theme-toggle:hover{border-color:#e9a332;background:#315355}
.theme-toggle:focus-visible{outline:3px solid #e9a332;outline-offset:3px}
@media(max-width:620px){.hpl-header{gap:8px}.hpl-nav{margin-left:auto}.theme-toggle{padding:7px 10px;font-size:.73rem}}

:root[data-theme="dark"]{color-scheme:dark;--paper:#0d1719;--cream:#142124;--ink:#ecf4f2;--muted:#b8cbc9;--line:#3c5559;--gold:#f0b447}
[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
[data-theme="dark"] .choice-section,[data-theme="dark"] .customizer{background:var(--cream)}
[data-theme="dark"] .base-step{background:#17282b}
[data-theme="dark"] .base-step p,[data-theme="dark"] .base-step small,[data-theme="dark"] .control-group small,[data-theme="dark"] .download-note{color:var(--muted)}
[data-theme="dark"] .toolbar{background:rgba(13,23,25,.94)}
[data-theme="dark"] :is(.search,.choice-card,.card,.controls,.motif-tray:not(.unused),.empty){background:#1b2b2e;color:var(--ink);border-color:var(--line)}
[data-theme="dark"] .motif-tray{background:#11191a;color:#fff;border-color:#355254}
[data-theme="dark"] :is(.search input,.control-group input,.control-group select,.svg-fields select,.placement-grid select,.base-step select,.swatch-input select,#nfc-fields input,#nfc-fields select){background:#142326;color:var(--ink);border-color:#527074}
[data-theme="dark"] input::placeholder{color:#9bb4b2}
[data-theme="dark"] :is(.swatch-input,.base-step .swatch-input,.physical,.photo-upload,.svg-upload,.placement-panel,.placement-grid,.nfc-option){background:#203336;color:var(--ink);border-color:#466266}
[data-theme="dark"] :is(.filter-row button,.secondary,.model-overlay button,.motif-edit button){background:#243a3e;color:var(--ink);border-color:#527074}
[data-theme="dark"] .filter-row button.active{background:#f0b447;border-color:#f0b447;color:#17201b}
[data-theme="dark"] .preview-stage{background:radial-gradient(circle at center,#2b4247 0,#1a2d31 62%,#122125 100%);border-color:#466266}
[data-theme="dark"] :is(.size-readout,.assembly-switch,.view-tabs){background:rgba(21,36,39,.96);border-color:#527074;color:var(--ink);box-shadow:0 3px 14px #0006}
[data-theme="dark"] :is(.view-tabs button,.assembly-switch button){color:var(--ink)}
[data-theme="dark"] .assembly-switch button.active{background:#f0b447;color:#17201b}
[data-theme="dark"] .model-overlay{color:#d2e1df}
[data-theme="dark"] .svg-upload .dropzone{background:#142326;border-color:#668285}
[data-theme="dark"] .svg-preview{background:radial-gradient(circle,#fff,#e9ecec)}
[data-theme="dark"] .motif-choices{background:#213338}
[data-theme="dark"] .motif-choices .motif-choice{color:#e7f1ef}
[data-theme="dark"] .motif-choices .motif-choice:hover,[data-theme="dark"] .motif-choices .motif-choice:focus-visible{background:#345054;border-color:#708d90}
[data-theme="dark"] .print-detail-note,[data-theme="dark"] .warnings{background:#423516;color:#ffe8af}
[data-theme="dark"] .preview-badge{background:#26482e;color:#d3f0d1}
[data-theme="dark"] .usage-consent{color:var(--ink)}
[data-theme="dark"] :is(.choice-card small,.card-info span,.empty span,#nfc-fields p){color:var(--muted)}
[data-theme="dark"] :is(.print-check,.draft-panel){background:#203336;color:var(--ink);border-color:#466266}
[data-theme="dark"] :is(.print-check>p,.draft-panel p,.draft-panel small){color:var(--muted)}
[data-theme="dark"] .print-check-head span{color:#f0b447}
[data-theme="dark"] .draft-return{background:#263630;border-color:#9b7834;color:var(--ink)}

