/* A quiet teal-charcoal shell. Stone photos and drawing colours stay true. */
#themeToggle{display:inline-grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;border-radius:50%;border:1px solid #dce5e1;background:#f4f7f5;color:#aa792d;flex:none}
#themeToggle:hover{background:#e8efeb;border-color:#b6c9bf}
#themeToggle svg{pointer-events:none}
@media screen{
html[data-theme=dark]{color-scheme:dark;--ink:#e0eae5;--muted:#a1b5ae;--line:#314246;--accent:#82cbb1;--paper:#111b1e;--gold:#e0b879;--surface:#192629;--raised:#223337;--soft:#263d39}
html[data-theme=dark] body{background:var(--paper);color:var(--ink);scrollbar-color:#4b6462 #192629}
html[data-theme=dark] :is(header,.ribbon,.formalModes,.projectTitleRow,aside,.previewStrip,.propertyGroup,#slabSettings,.projectTools,.wallEditor .wallInspector,.wallSelection,.cutReturn){background:var(--surface);border-color:var(--line)}
html[data-theme=dark] :is(.workspace,.wallEditor,.stageMode .workspace){background:var(--paper)}
html[data-theme=dark] :is(button,input,select,textarea,dialog,.formalDialog,.shareCard,.slabCard,.attachBox,.kitchenTools,.pastePhoto,.toolbarMore[open],.drawerClose){background:var(--raised);color:var(--ink);border-color:#3b5255}
html[data-theme=dark] :is(.projectTitleRow #projectName,.exportRemark textarea,.stageMode aside.right details){background:var(--raised);color:var(--ink);border-color:#3b5255}
html[data-theme=dark] :is(button:hover,.pieceRow:hover,#kitchenCut:hover,#wallCut:hover){background:#304743;border-color:#669387}
html[data-theme=dark] :is(.quiet,.toolbarMore>summary,.tabs button,.badge,label,.wallInspector label,.projectTitleRow label,.splashControls small,.shareCard small,.exportChoices label span){color:#b5c9c1}
html[data-theme=dark] :is(.hint,.pasteHint,.canvasToolbar span,.wallEditor .canvasToolbar span,.pieceRow small,.slabCard small,.summary,.eyebrow,.sourceLabel,.projectTitleRow #saveStatus){color:#9fb5ad}
html[data-theme=dark] :is(.right h2,.left h2,.propertyGroup>summary,.piecesGroup>summary,.kitchenTools>summary,.projectTools>summary,#slabSettings>summary){background:var(--soft);color:#c1e2d3;border-color:var(--line)}
html[data-theme=dark] :is(.upload,.sharepointButton){background:#1e3431;border-color:#52786b;color:#b3dfcc}
html[data-theme=dark] :is(.tabs,.exportChoices){background:#111e21;border-color:var(--line)}
html[data-theme=dark] :is(.tabs button.active,.tabs button:hover,.formalModes [data-formal-mode]:hover){background:#2b4640;color:#d6f3e4;border-color:#608e7b}
html[data-theme=dark] :is(.formalModes [data-formal-mode].active,.formalModes [data-formal-mode][aria-pressed=true],.primary,.exportMainAction #printDrawings){background:#377d69;color:#fff;border-color:#5c9b84}
html[data-theme=dark] :is(.slabCard.active,.wallList button.active,.toolbarButtons button[aria-pressed=true],#assemblyBorders[aria-pressed=true],#wallBorders[aria-pressed=true]){background:#29453d;color:#d0eddf;border-color:#648f7d}
html[data-theme=dark] .pieceRow.active{background:#29453d!important;border-color:#648f7d!important;box-shadow:inset 3px 0 #8bc8aa}
html[data-theme=dark] :is(#kitchenCut,#wallCut){background:var(--raised);color:#d8e8e0;border-color:#45605a}
html[data-theme=dark] :is(.pieceGroupCount,h2 em){background:#344e45;color:#d0e9dc}
html[data-theme=dark] #themeToggle{background:#2c4245;color:#e5cd95;border-color:#587477;box-shadow:0 0 0 3px #d3c18b08}
html[data-theme=dark] .brandLogos{background:#f8faf8;border:1px solid #d7e0da;border-radius:10px;padding:7px 10px}
html[data-theme=dark] :is(.warnings,.slabQuickDelete){color:#edb394}
html[data-theme=dark] .slabQuickDelete{background:#3c302c;border-color:#705347}
html[data-theme=dark] dialog::backdrop{background:#050c10bb}
html[data-theme=dark] input:focus,html[data-theme=dark] select:focus,html[data-theme=dark] textarea:focus{border-color:#85c4a9;box-shadow:0 0 0 3px #85c4a91a}
html[data-theme=dark] :is(.canvasWrap,.wallEditor .wallStage){border:1px solid #3b5053}
}
@media(max-width:650px){html[data-theme=dark] .brandLogos{width:auto;max-width:100%;margin-inline:auto}#themeToggle{width:38px;height:38px;min-width:38px}}
@media print{#themeToggle{display:none!important}}
@media screen{
html[data-theme=dark] .kitchenToolBody>#addTableTop,html[data-theme=dark] .kitchenToolBody>#addStanding,html[data-theme=dark] .kitchenToolBody>.splashControls{background:var(--raised);color:var(--ink);border-color:#3b5255}
html[data-theme=dark] .splashControls[open]>summary,html[data-theme=dark] .splashArrows button{background:#29453d;color:#d0eddf;border-color:#648f7d}
html[data-theme=dark] .pieceRow:hover,html[data-theme=dark] .pieceRow.preview,html[data-theme=dark] .wallList button:hover,html[data-theme=dark] .wallList button.preview{background:#4b4030!important;color:#ffead0;border-color:#b49560!important}
html[data-theme=dark] .pieceRow.active.preview{background:#3e5545!important}
}
@media screen{html[data-theme=dark] .splashControls>summary{color:#d0eddf}html[data-theme=dark] .splashControls>summary:hover{background:#304743;color:#e0f3e9}}
