/* Shared semantic roles. Legacy dark values stay at their original declarations as fallbacks. */
:root { color-scheme:dark; --mush-accent-text:#ff6168; --mush-on-accent:#fff; --mush-control-border:#6c7380; }
:root[data-theme="light"] {
    color-scheme:light;
    --mush-page:#f7f8fa; --mush-surface:#fff; --mush-surface-soft:#edf0f4;
    --mush-text:#20262f; --mush-copy:#465261; --mush-muted:#596575;
    --mush-border:#d4dae2; --mush-control:#fff; --mush-control-border:#7e8a99;
    --mush-focus:#b91b2a; --mush-accent-text:#b91b2a; --mush-shadow:#1c29391f;
    --mush-danger-text:#a21c2d; --mush-danger-surface:#fff0f2; --mush-danger-border:#c6818d;
    --mush-success-text:#185b3b; --mush-success-surface:#ebf6ef; --mush-success-border:#8aaf99;
    --mush-warning-text:#76500b;
}
.header-actions,.theme-brand-row { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; padding:0; border:1px solid var(--mush-control-border,#555963); border-radius:50%; background:var(--mush-surface,#14161a); color:var(--mush-text,#f4f4f4); cursor:pointer; }
.theme-toggle:hover { background:var(--mush-surface-soft,#25282e); border-color:var(--mush-muted,#a2a4ad); }
.theme-toggle:focus-visible { outline:2px solid var(--mush-focus,#ff6168); outline-offset:4px; }
.theme-toggle[hidden] { display:none!important; }
.theme-toggle .theme-moon { display:none; }
:root[data-theme="light"] .theme-toggle .theme-moon { display:block; }
:root[data-theme="light"] .theme-toggle .theme-sun { display:none; }
.topbar>div:first-child { min-width:0; }
.topbar-title { overflow-wrap:anywhere; }
.public-message h1 { overflow-wrap:anywhere; }
.account { flex-shrink:0; }
.theme-brand-row { justify-content:space-between; }
.theme-brand-row .brand-logo { max-width:calc(100% - 56px); }
.btn.red,.button-primary,.quote-page button.btn.red { color:var(--mush-on-accent,#fff); }
.button-primary:not(:disabled):hover { background:#bb1723; border-color:#bb1723; }
.brand-logo .brand-picture-light { display:none; }
:root[data-theme="light"] .brand-logo .brand-picture-dark { display:none; }
:root[data-theme="light"] .brand-logo .brand-picture-light { display:block; }
:root[data-theme="light"] .login-body { background:radial-gradient(ellipse at 15% 30%,#f0e8ea 0,#f7f8fa 45%,#edf0f4 100%); }
:root[data-theme="light"] .login-brand { background:linear-gradient(145deg,#f0f2f5,#e7ebf0); }
:root[data-theme="light"] .product-status:not(.published) { background:#f4eef1; border-color:#b8a8b0; color:#61434f; }
:root[data-theme="light"] .field select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23465261' stroke-width='1.5'/%3E%3C/svg%3E"); }
.field input[type=file]::file-selector-button { padding:6px 10px; margin-right:12px; border:1px solid var(--mush-control-border,#555963); border-radius:4px; background:var(--mush-surface,#191b20); color:inherit; cursor:pointer; }
.contact-field input::placeholder,.contact-field textarea::placeholder,.field input::placeholder,.field textarea::placeholder,.login-form input::placeholder { color:var(--mush-muted,#a2a4ad); opacity:1; }
/* Photography is an intentional dark canvas in both themes; no image filters or pixel changes. */
.home-page .hero--image { color:#f4f4f4; }
.home-page:has(.hero--image) .site-header--overlay { color:#f4f4f4; --mush-copy:#dedede; --mush-text:#f4f4f4; --mush-control-border:#777; --mush-surface:#14161a; --mush-surface-soft:#25282e; }
.home-page:has(.hero--image) .site-header--overlay .brand-picture-dark { display:block; }
.home-page:has(.hero--image) .site-header--overlay .brand-picture-light { display:none; }
.home-page:has(.hero--image) .site-header--overlay .menu { color:#ddd; }
.home-page:has(.hero--image) .site-header--overlay .theme-toggle { color:#fff; }
.home-page .hero--image .btn { color:#f4f4f4; }
.home-page .hero--image .btn:focus-visible { outline-color:#fff; }
@media(max-width:800px) {
    .header-actions { gap:8px; }
    .site-header .header-actions>.btn { padding:10px 12px; }
    .topbar { gap:12px; }
}
@media(forced-colors:active) {
    .theme-toggle { border:1px solid ButtonText; background:ButtonFace; color:ButtonText; }
}
