/* Coordinated page surfaces, readable controls and an optional buyer preview. */
html[data-afm-palette="chalk"] body{--paper:#f5f2e9;--ink:#292d29;--muted:#62665b;--rule:#d3d0c2;--red:#963e30;--white:#fffcf4;--p-surface:#e8e3d6;--p-panel:#fdfaf2;--p-dark:#252e27;--p-on-dark:#f2ecdf;--p-muted-dark:#c4c7b7;--p-art-paper:#e8e1d1;--p-art-ink:#293025}
html[data-afm-palette="sage"] body{--paper:#eeeede;--ink:#29352c;--muted:#59624d;--rule:#c9ceba;--red:#536348;--white:#f9f8ed;--p-surface:#dce1cc;--p-panel:#f3f3e6;--p-dark:#26372c;--p-on-dark:#f0f1df;--p-muted-dark:#c1ccb1;--p-art-paper:#e4e4ce;--p-art-ink:#29352c}
html[data-afm-palette="clay"] body{--paper:#f1e5db;--ink:#3d302a;--muted:#665345;--rule:#d4bfae;--red:#954832;--white:#fff3e7;--p-surface:#e5cbb8;--p-panel:#f7ebdf;--p-dark:#3a2d27;--p-on-dark:#f6e6d4;--p-muted-dark:#d7c0ab;--p-art-paper:#e9d6bf;--p-art-ink:#49382b}
html[data-afm-palette="midnight"] body{--paper:#17212c;--ink:#ede6d5;--muted:#b2bbc1;--rule:#3c4b57;--red:#c4a46f;--white:#f2e9d6;--p-surface:#243443;--p-panel:#1e2c39;--p-dark:#101923;--p-on-dark:#eee3cb;--p-muted-dark:#b6c0c7;--p-art-paper:#e3d5b9;--p-art-ink:#30382f}
html:not([data-afm-palette="original"]) body{--atelier-accent:var(--red);--atelier-surface:var(--p-surface);background:var(--paper);color:var(--ink)}
html[data-afm-accent="custom"] body{--red:var(--afm-owner-accent);--atelier-accent:var(--afm-owner-accent)}
html:not([data-afm-palette="original"]) :is(.site-header,.demo-views,.visual-settings){background:var(--paper);color:var(--ink);border-color:var(--rule)}
html:not([data-afm-palette="original"]) .demo-bar{background:var(--p-surface);color:var(--muted)}
html:not([data-afm-palette="original"]) :is(.footer,.studio-split,.ink-editorial,.study-editorial,.journal-afterword,.booking-aside,.receipt-card,.artist-ink-interlude,.artist-manifesto){background:var(--p-surface);color:var(--ink);border-color:var(--rule);--paper:inherit;--ink:inherit}
html:not([data-afm-palette="original"]) .artist-ink-interlude{--paper:var(--p-surface);--ink:inherit;--muted:inherit;--red:inherit;--rule:inherit}
html:not([data-afm-palette="original"]) :is(.artists-band,.current-interlude){background:var(--p-dark);color:var(--p-on-dark)}
html:not([data-afm-palette="original"]) :is(.artists-band,.current-interlude) :is(.eyebrow,.disclosure,.heading-side,.artist-specialism){color:var(--p-muted-dark)}
html:not([data-afm-palette="original"]) .current-interlude p:not(.eyebrow){color:var(--p-muted-dark)}
html:not([data-afm-palette="original"]) :is(.artists-band,.current-interlude) .text-link{border-color:var(--p-muted-dark);color:var(--p-on-dark)}
html:not([data-afm-palette="original"]) :is(.footer-top,.footer-bottom,.statement-strip,.reading-aside,.contact-paths a,.design-observations>div,.atelier-vocabulary,.atelier-enquiry,.palette-options>button){border-color:var(--rule)}
html:not([data-afm-palette="original"]) :is(.footer-bottom,.inner-hero .lead,.inner-hero-foot,.page-intro .lead,.booking-aside>p,.receipt-card>p:not(.eyebrow),.receipt-card dt,.slot-card strong small,.design-observations dd,.artist-direction-card p,.atelier-direction-description){color:var(--muted)}
html:not([data-afm-palette="original"]) :is(.hero h1 em,.studio-copy h2 em,.section-heading h2 em,.footer-invite em,.artist-hero h1 em,.artist-manifesto h2 em,.artist-appointment h2 em,.artist-ink-interlude h2 em,.booking-aside h2 em,.atelier-hero h1>span,.artist-direction-card em){color:var(--red)}
html[data-afm-accent="custom"] :is(.hero h1 em,.artist-hero h1 em,.artist-manifesto h2 em,.artist-appointment h2 em,.atelier-hero h1>span,.artist-direction-card em){color:var(--red)}
html:not([data-afm-palette="original"]) .brand-mark{color:var(--red)}
html:not([data-afm-palette="original"]) :is(.button-dark,.button-light){background:var(--ink);color:var(--paper)}
html:not([data-afm-palette="original"]) :is(.button-dark,.button-light):hover{background:var(--red);color:var(--white)}
html[data-afm-palette="midnight"] :is(.button-dark,.button-light):hover{color:#17212c}
html:not([data-afm-palette="original"]) .photo-seal{background:var(--paper);color:var(--ink);border-color:var(--rule)}
html:not([data-afm-palette="original"]) :is(.work-image,.dark-work-image,.shortlist-card-image,.artist-mini,.month-calendar,.slot-card){background:var(--p-surface);color:var(--ink)}
html:not([data-afm-palette="original"]) :is(.flash-paper,.flash-card:nth-child(even) .flash-paper,.artist-flash .flash-paper){background:var(--p-art-paper);color:var(--p-art-ink);border-color:var(--rule)}
html:not([data-afm-palette="original"]) :is(.image-arrow,.flash-corner){background:var(--p-art-paper);color:var(--p-art-ink)}
html:not([data-afm-palette="original"]) .atelier-collection{background:var(--p-surface)}
html:not([data-afm-palette="original"]) .atelier-collection .work-image{background:var(--p-art-paper);color:var(--p-art-ink)}
html:not([data-afm-palette="original"]) [data-afm-art][src$=".svg"]{background:var(--p-art-paper)}
html:not([data-afm-palette="original"]) .atelier-process-photo>.atelier-motif{background:var(--p-art-paper)}
html:not([data-afm-palette="original"]) .month-grid a{color:var(--ink)}
html:not([data-afm-palette="original"]) .month-day{color:var(--muted)}
html:not([data-afm-palette="original"]) :is(.month-day.is-selected,.slot-card:has(input:checked)){background:var(--p-panel);color:var(--ink);border-color:var(--red)}
html:not([data-afm-palette="original"]) :is(.brief-form input:not([type=checkbox]),.brief-form textarea,.brief-form select,.booking-contact input:not([type=checkbox]),.booking-contact textarea,.booking-filters select,.flow-quality select,.visual-settings select){background:var(--p-panel);color:var(--ink);border-color:var(--rule);accent-color:var(--red)}
html:not([data-afm-palette="original"]) :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html:not([data-afm-palette="original"]) :is(select option){background:var(--p-panel);color:var(--ink)}
html:not([data-afm-palette="original"]) .shortlist-dock{background:var(--ink);color:var(--paper);border-color:var(--rule)}
html:not([data-afm-palette="original"]) .shortlist-dock [data-shortlist-count]{background:var(--paper);color:var(--ink)}
/* The viewer keeps a neutral art surface while its chrome follows the site. */
html:not([data-afm-palette="original"]) .art-dialog{--paper:inherit;--ink:inherit;--red:inherit;--muted:inherit;background:var(--p-panel);color:var(--ink)}
html:not([data-afm-palette="original"]) :is(.art-toolbar,.art-information,.art-thumbnails){border-color:var(--rule)}
html:not([data-afm-palette="original"]) :is(.art-toolbar button,.art-save){color:var(--ink)}
html:not([data-afm-palette="original"]) :is(.art-credit,.art-help,.art-information dt){color:var(--muted)}
html:not([data-afm-palette="original"]) .art-information .text-link{border-color:var(--ink)}
html:not([data-afm-palette="original"]) .art-quality select{background:var(--paper);color:var(--ink);border-color:var(--rule)}
html:not([data-afm-palette="original"]) .artist-hero{color:var(--p-on-dark)}
html:not([data-afm-palette="original"]) .artist-hero h1 em{color:var(--p-on-dark)}
html:not([data-afm-palette="original"]) .artist-hero .button-light{background:var(--p-on-dark);color:var(--p-dark)}
html:not([data-afm-palette="original"]) :is(.dark-work-caption>span,.artist-profile-line span,.artist-appointment>p:not(.eyebrow),.artist-manifesto p:not(.eyebrow):not(.artist-profile-line)){color:var(--muted)}
html:not([data-afm-palette="original"]) .artist-monogram img{filter:none;background:var(--p-art-paper)}
html:not([data-afm-palette="original"]) body .art-dialog :is(.art-save,.text-link){color:var(--ink);border-color:var(--ink)}
html:not([data-afm-palette="original"]) body .art-dialog .button-dark{background:var(--ink);color:var(--paper)}
html[data-afm-palette="sage"] .ink-stage :is(canvas,.ink-still){filter:hue-rotate(42deg) saturate(.55)}
html[data-afm-palette="clay"] .ink-stage :is(canvas,.ink-still){filter:sepia(.12) saturate(.85)}
html[data-afm-palette="midnight"] .ink-stage :is(canvas,.ink-still){filter:hue-rotate(185deg) saturate(.55)}
html[data-afm-motion="off"]{scroll-behavior:auto}
html[data-afm-motion="off"] *,html[data-afm-motion="off"] *:before,html[data-afm-motion="off"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-afm-motion="off"] :is(.flow-surface canvas,.ink-stage canvas,.art-liquid){display:none!important}
html[data-afm-motion="off"] :is(.flow-fallback,.ink-still){opacity:1!important}
html[data-afm-motion="off"] :is(.work-tile:hover img,.artist-direction-card:hover img,.flash-card:hover img,.journal-feature:hover img){transform:none}
.palette-preview{position:fixed;left:22px;bottom:22px;z-index:38;color:var(--ink)}.palette-launch{display:flex;align-items:center;gap:12px;min-height:48px;padding:11px 15px;border:1px solid var(--rule);background:var(--paper);color:var(--ink);font:10px var(--sans);box-shadow:0 5px 22px #1112}.palette-launch>span:last-child{font-size:16px}.palette-launch-mark{display:flex;gap:2px}.palette-launch-mark i{width:5px;height:17px;background:var(--ink)}.palette-launch-mark i:first-child{background:var(--red)}.palette-launch-mark i:last-child{background:var(--muted)}.palette-panel{position:absolute;bottom:62px;left:0;width:352px;max-width:calc(100vw - 44px);max-height:calc(100dvh - 110px);overflow:auto;background:var(--paper);color:var(--ink);border:1px solid var(--rule);box-shadow:0 20px 70px #0003;padding:25px;overscroll-behavior:contain}.palette-panel header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.palette-panel .eyebrow{font-size:8px;margin-bottom:16px}.palette-panel h2{font-size:46px;line-height:.96}.palette-panel h2 em{color:var(--red)}.palette-panel header>button{border:0;background:none;color:var(--ink);font:27px/1 var(--sans);width:32px;height:32px;margin:-8px -8px 0 0}.palette-description{font-size:10px;color:var(--muted);margin:18px 0 20px}.palette-options{display:grid;gap:7px}.palette-options>button{display:flex;align-items:center;gap:12px;background:transparent;color:var(--ink);border:1px solid var(--rule);padding:12px 10px;text-align:left;min-height:62px}.palette-options>button[aria-pressed="true"]{border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}.palette-swatch{display:flex;gap:2px;flex-shrink:0}.palette-swatch i{display:block;width:10px;height:30px;background:var(--swatch-paper);border:1px solid #8883}.palette-swatch i:nth-child(2){background:var(--swatch-ink)}.palette-swatch i:nth-child(3){background:var(--swatch-accent)}.palette-options strong{display:block;font:11px/1.4 var(--sans);font-weight:500}.palette-options small{display:block;font:8px/1.5 var(--sans);color:var(--muted);margin-top:4px}.palette-choice-mark{margin-left:auto;font-size:15px}.palette-panel footer{border-top:1px solid var(--rule);margin-top:20px;padding-top:17px}.palette-panel footer>label{display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:10px}.palette-panel select{background:var(--paper);color:var(--ink);border:1px solid var(--rule);padding:7px 10px;font:11px var(--sans)}.palette-panel footer>p{font-size:8px;color:var(--muted);line-height:1.8;margin-top:12px}.palette-panel footer>[data-palette-current]{font-size:9px;color:var(--red)}
@media(max-width:780px){.palette-preview{left:15px;bottom:15px}.palette-launch{min-height:44px;padding:10px 12px;gap:9px;font-size:9px}.palette-launch-mark i{height:15px;width:4px}.palette-panel{width:330px;max-width:calc(100vw - 30px);bottom:57px;padding:22px;max-height:calc(100dvh - 94px)}.palette-panel h2{font-size:43px}.palette-panel select{font-size:16px}.palette-panel header>button{min-width:40px;min-height:40px}.palette-options>button{min-height:60px}.palette-options small{font-size:8px}}
