/* Light preserves the original refresh; all three modes retain purple accents. */
:root{color-scheme:light;--button-bg:#744396;--button-text:#fffefa;--button-hover:#60377e}
:root[data-theme="medium"]{color-scheme:light;--paper:#d6d3db;--white:#e5e2e9;--haze:#c9c4d1;--lilac:#c2b5d0;--purple:#673c86;--plum:#392b45;--ink:#473950;--muted:#5d5068;--line:#b4a9bf;--button-bg:#673c86;--button-hover:#55306f}
:root[data-theme="dark"]{color-scheme:dark;--paper:#17151c;--white:#211d28;--haze:#2b2435;--lilac:#55405f;--purple:#c9a5e9;--plum:#f1e9f7;--ink:#e0d4e9;--muted:#bfb1cc;--line:#4b3d56;--button-bg:#a57ac6;--button-text:#1d1325;--button-hover:#ba92d9}
.button.primary,.filter-button.active,.chat-launcher{background:var(--button-bg);color:var(--button-text)}
.button.primary:hover,.chat-launcher:hover{background:var(--button-hover)}
.topbar{position:relative;z-index:35}.topbar .container{gap:20px}.topbar .topbar-area{padding:0}.theme-control{position:relative;flex-shrink:0}.theme-toggle{display:flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #bba4cc;border-radius:5px;background:transparent;font-size:11px;line-height:1.3;color:var(--plum)}.topbar .theme-toggle span{padding:0}.theme-toggle>span:first-child{font-size:17px;line-height:1}.theme-options{position:absolute;right:0;top:calc(100% + 9px);width:190px;padding:6px;background:var(--paper);border:1px solid var(--line);box-shadow:0 10px 30px #301d402b;border-radius:8px}.theme-options>button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:transparent;border-radius:4px;padding:11px 10px;color:var(--plum);font-size:13px}.theme-options>button:hover,.theme-options>button:focus-visible{background:var(--haze)}.theme-options>button[aria-pressed="true"]{background:var(--haze);font-weight:700}.topbar .theme-swatch{display:block;padding:0;width:18px;height:18px;border:1px solid #9e8caa;border-radius:50%;flex-shrink:0}.light-swatch{background:#fcfaf7}.medium-swatch{background:#aaa4b1}.dark-swatch{background:#211b29}.topbar .theme-check{margin-left:auto;padding:0;visibility:hidden}.theme-options>button[aria-pressed="true"] .theme-check{visibility:visible}
html:is([data-theme="medium"],[data-theme="dark"]) .site-header{background:var(--paper);border-color:var(--line)}
html:is([data-theme="medium"],[data-theme="dark"]) .topbar{background:var(--haze)}
html:is([data-theme="medium"],[data-theme="dark"]) .hero{background:radial-gradient(ellipse at 13% 47%,var(--haze),var(--paper) 80%)}
html:is([data-theme="medium"],[data-theme="dark"]) :is(.selected-work,.review-section,.project-photo){background:var(--haze)}
html:is([data-theme="medium"],[data-theme="dark"]) :is(.conversation,.contact-panel){background:radial-gradient(ellipse at 75% 35%,var(--lilac),var(--haze) 78%)}
html:is([data-theme="medium"],[data-theme="dark"]) .craft-badge{background:var(--haze);border-color:var(--paper)}
html:is([data-theme="medium"],[data-theme="dark"]) .image-tag{background:var(--paper);color:var(--plum)}
html:is([data-theme="medium"],[data-theme="dark"]) :is(.step-number,.story-note>span){color:var(--purple)}
html:is([data-theme="medium"],[data-theme="dark"]) :is(.step-number,.contact-tip,.chat-dialog,.gallery-dialog,.chat-dialog input,.chat-dialog select,.chat-dialog textarea){border-color:var(--line)}
html:is([data-theme="medium"],[data-theme="dark"]) .project-number{color:var(--muted)}
html:is([data-theme="medium"],[data-theme="dark"]) .text-link{border-color:var(--line)}
html:is([data-theme="medium"],[data-theme="dark"]) .signature-line{background:var(--line)}
html[data-theme="dark"] .filter-button.active{border-color:var(--button-bg)}
html[data-theme="dark"] .theme-toggle{border-color:var(--line)}
@media(max-width:760px){.topbar .container{justify-content:space-between;gap:10px}.topbar .topbar-area{display:none}.theme-toggle{font-size:10px;padding:4px 7px}.theme-options{width:185px}.theme-options>button{font-size:13px}}
