/* Selectable Crest Wood Co. palettes. */
html[data-palette="midnight"]{--lab-paper:#e9eef5;--lab-ink:#202f41;--lab-muted:#54697f;--lab-dark:#101d2d;--lab-panel:#1a2d42;--lab-accent:#a5c6e2;--lab-border:#7594b0;--lab-glass:rgba(31,55,79,.63);--lab-tint:rgba(18,48,80,.5)}
html[data-palette="forest"]{--lab-paper:#e8eee7;--lab-ink:#263b30;--lab-muted:#586e5d;--lab-dark:#13251d;--lab-panel:#203c2e;--lab-accent:#bacc9c;--lab-border:#839c7a;--lab-glass:rgba(38,72,54,.62);--lab-tint:rgba(26,67,41,.5)}
html[data-palette="graphite"]{--lab-paper:#e6dbd0;--lab-ink:#322a25;--lab-muted:#6c5b4c;--lab-dark:#1a1918;--lab-panel:#252321;--lab-accent:#c99a65;--lab-border:#826b55;--lab-glass:rgba(42,39,36,.73);--lab-tint:rgba(28,20,13,.68)}
html[data-palette="midnight"]{--lab-menu-text:#d6e9fa;--lab-menu-hover:#ffffff;--lab-copyright:#aec9de}
html[data-palette="forest"]{--lab-menu-text:#dbe9cd;--lab-menu-hover:#ffffff;--lab-copyright:#b8cda9}
html[data-palette="graphite"]{--lab-menu-text:#ead0aa;--lab-menu-hover:#fff3df;--lab-copyright:#c6a982}
html[data-palette]{--paper:var(--lab-paper);--ink:var(--lab-ink);--muted:var(--lab-muted);--silver:var(--lab-border)}
html[data-palette][data-theme="dark"]{--paper:var(--lab-dark);--ink:#f1eee9;--muted:#c2c4be;--silver:var(--lab-border)}
html[data-palette="graphite"][data-theme="dark"]{--paper:#191817;--ink:#f2ebe1;--muted:#c8b8a6;--silver:#866d53;color-scheme:dark}
html[data-palette] .announcement{background:var(--lab-panel);color:#f5efe8}
html[data-palette] .site-header,html[data-palette] .footer{background:var(--lab-dark);border-color:var(--lab-border)}
html[data-palette] .site-nav,html[data-palette][data-theme="dark"] .site-nav,
html[data-palette] .dropdown,html[data-palette][data-theme="dark"] .dropdown{background:var(--lab-glass);border-color:var(--lab-border)}
html[data-palette] .site-nav a.current{background:rgba(255,255,255,.13);color:#fff}
html[data-palette] .hero{background:transparent}
html[data-palette] .hero-content,html[data-palette] .home-craft,html[data-palette] .collection-card-image{background:var(--lab-panel)}
html[data-palette] .hero-shade{display:none}
html[data-palette] .collections-cta,html[data-palette][data-theme="dark"] .collections-cta,
html[data-palette] .theme-toggle,html[data-palette][data-theme="dark"] .theme-toggle{background:var(--lab-glass);border-color:var(--lab-accent);color:#fff}
html[data-palette] .collections-cta:hover,html[data-palette] .theme-toggle:hover{background:var(--lab-panel)}
html[data-palette] :is(.home-updates,.home-collection-blank,.home-collection-content,.home-collection .collection-links a,.workshop-grid article,.collection-card,.meta-card,.feedback-form){border-color:var(--lab-border)}
html[data-palette] :is(.home-updates,.meta-card,.workshop-grid article,.feedback-form,.collection-card){background:rgba(255,255,255,.56)}
html[data-palette][data-theme="dark"] :is(.home-updates,.meta-card,.workshop-grid article,.feedback-form,.collection-card){background:rgba(255,255,255,.055);color:#f1eee9}
html[data-palette] :is(.eyebrow,.collection-links span:first-child,.updates-category){color:var(--lab-muted)}
html[data-palette] .hero .hero-content .eyebrow{color:var(--lab-menu-text)}
html[data-palette][data-theme="dark"] :is(.eyebrow,.collection-links span:first-child,.updates-category){color:var(--lab-accent)}
html[data-palette] .card-link,html[data-palette] .updates-link{border-color:var(--lab-accent)}
html[data-palette] .footer-nav,html[data-palette] .footer-bottom{border-color:var(--lab-border)}
html[data-palette] :is(.site-nav>a,.nav-group-head>a,.dropdown a,.dropdown-toggle,.menu-toggle,.collections-cta,.footer-nav a){color:var(--lab-menu-text)}
html[data-palette] :is(.site-nav>a,.nav-group-head>a,.dropdown a,.footer-nav a):hover,
html[data-palette] :is(.site-nav>a,.nav-group-head>a,.dropdown a,.footer-nav a):focus-visible{color:var(--lab-menu-hover)}
html[data-palette] :is(.site-nav a.current,.dropdown a.current){color:var(--lab-menu-hover);border-color:var(--lab-accent)}
html[data-palette] .footer-bottom,html[data-palette] .footer-bottom span{color:var(--lab-copyright)}
html[data-palette] .header-instagram{border-color:var(--lab-accent)}
html[data-palette] .entry-shade{background:linear-gradient(90deg,var(--lab-tint),rgba(4,7,9,.18) 85%),linear-gradient(0deg,rgba(3,6,8,.38),transparent 60%)}
html[data-palette] .entry-button{border-color:var(--lab-accent)}
/* Graphite and champagne-gold treatment inspired by the supplied dashboard reference. */
html[data-palette="graphite"] body{background:var(--paper)}
html[data-palette="graphite"] .site-header,html[data-palette="graphite"] .footer{background:#1d1c1b;border-color:#65523f}
html[data-palette="graphite"] .announcement{background:#302b26;color:#e7cfb2}
html[data-palette="graphite"] .site-nav,html[data-palette="graphite"] .dropdown{background:rgba(35,33,31,.81);border:1px solid #76614a;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 14px 32px #0c0a0880}
html[data-palette="graphite"] .site-nav a.current,html[data-palette="graphite"] .dropdown a:hover{background:rgba(206,157,100,.18);color:#f7ddb8}
html[data-palette="graphite"] .hero-content,html[data-palette="graphite"] .hero-slides,html[data-palette="graphite"] .hero>img{background:#24211e;border:1px solid #5a4938;box-shadow:0 22px 45px #0d0a0866}
html[data-palette="graphite"] :is(.home-updates,.home-collection-blank,.home-collection-content,.home-product-card,.collection-card,.meta-card,.workshop-grid article,.feedback-form){border:1px solid #73604c;box-shadow:0 14px 32px #0e0b0960,inset 0 1px 0 #edc28c1c}
html[data-palette="graphite"][data-theme="dark"] :is(.home-updates,.home-collection-blank,.home-collection-content,.home-product-card,.collection-card,.meta-card,.workshop-grid article,.feedback-form,.home-craft){background:linear-gradient(145deg,#2b2825,#211f1d);color:#f2ebe1}
html[data-palette="graphite"]:not([data-theme="dark"]) :is(.home-updates,.home-collection-blank,.home-collection-content,.home-product-card,.collection-card,.meta-card,.workshop-grid article,.feedback-form,.home-craft){background:linear-gradient(145deg,#f1e7db,#ddd0c1);color:#322a25}
html[data-palette="graphite"] .home-craft{border:1px solid #73604c;box-shadow:0 16px 35px #0e0b0940}
html[data-palette="graphite"] .home-product-image,html[data-palette="graphite"] .collection-card-image,html[data-palette="graphite"] .meta-image{background:#24211f}
html[data-palette="graphite"] :is(.eyebrow,.home-product-copy>span,.collection-card-copy .eyebrow,.workshop-grid span,.updates-category){color:#cfa875}
html[data-palette="graphite"][data-theme="dark"] :is(.home-section-head>p,.home-product-copy p,.home-craft-copy>p:not(.eyebrow),.collection-card-copy>p:not(.eyebrow),.meta-copy p,.workshop-grid p,.collections-intro>p:last-child,.feedback-intro){color:#c8b8a6}
html[data-palette="graphite"] :is(.collection-links,.collection-links a,.home-collection .collection-links a,.footer-nav,.footer-bottom,.card-link,.home-product-copy>a,.updates-link){border-color:#947454}
html[data-palette="graphite"] :is(.home-collection .collection-links a,.collections-cta,.theme-toggle,.button,.home-craft .button,.form-actions .button){background:transparent;color:inherit;border:1px solid #b78a5b;border-radius:14px;box-shadow:inset 0 1px 0 #e3b77e20}
html[data-palette="graphite"] :is(.home-collection .collection-links a,.collections-cta,.theme-toggle,.button,.home-craft .button,.form-actions .button):hover{background:rgba(201,154,101,.18);border-color:#e2b47b;box-shadow:0 0 22px #bd855a30;color:inherit}
html[data-palette="graphite"] .collections-cta{border-radius:999px;color:#f5eadc}
html[data-palette="graphite"] .theme-toggle{border-radius:50%;color:#f5eadc}
html[data-palette="graphite"] .updates-pulse{background:#d7ab76;box-shadow:0 0 0 4px #d7ab7629,0 0 14px #dfad70}
html[data-palette="graphite"] .updates-link{border-radius:50%;color:var(--ink)}
html[data-palette="graphite"] :is(.home-product-card,.collection-card,.meta-card,.workshop-grid article,.home-collection .collection-links a){transition:transform .22s,border-color .22s,box-shadow .22s}
html[data-palette="graphite"] :is(.home-product-card,.collection-card,.meta-card,.workshop-grid article,.home-collection .collection-links a):hover{transform:translateY(-3px);border-color:#c99a65;box-shadow:0 17px 36px #0e0b0980,0 0 22px #d59b5d25}
html[data-palette="graphite"] .feedback-form :is(input,select,textarea){border-color:#806a53;background:#191817;color:#f2ebe1}
@media(max-width:620px){html[data-palette="graphite"] .collections-cta{border-radius:999px}}

/* Compact palette selector in the header, immediately before the theme toggle. */
.palette-picker{position:absolute;right:222px;z-index:30}
.palette-picker__toggle{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(222,234,231,.58);border-radius:50%;background:rgba(69,83,84,.42);cursor:pointer;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition:background .22s,border-color .22s,transform .22s}
.palette-picker__toggle:hover{background:rgba(112,130,130,.48);transform:translateY(-2px)}
.palette-picker__toggle:focus-visible,.palette-picker__option:focus-visible{outline:2px solid #fff;outline-offset:3px}
.palette-picker__mark{display:block;width:18px;height:18px;border-radius:50%;border:1px solid #ffffffa0;background:linear-gradient(135deg,#e6e8e5 50%,#303a3b 50%)}
html[data-palette="midnight"] .palette-picker__mark{background:#53779d}
html[data-palette="forest"] .palette-picker__mark{background:#5d866a}
html[data-palette="graphite"] .palette-picker__mark{background:linear-gradient(135deg,#252321 45%,#c99a65 45%)}
html[data-palette] .palette-picker__toggle{border-color:var(--lab-accent);background:var(--lab-glass)}
.palette-picker__panel{position:absolute;right:0;top:calc(100% + 10px);display:flex;gap:12px;padding:13px;border:1px solid #74807c;border-radius:999px;background:rgba(27,34,34,.95);box-shadow:0 15px 30px #0007;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.palette-picker__panel[hidden]{display:none}
html[data-palette] .palette-picker__panel{border-color:var(--lab-border);background:var(--lab-dark)}
.palette-picker__option{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #ffffff80;border-radius:50%;background:transparent;cursor:pointer}
.palette-picker__option:hover{transform:scale(1.1);border-color:white}
.palette-picker__option[aria-pressed="true"]{outline:2px solid white;outline-offset:2px}
.palette-picker__dot{display:block;width:24px;height:24px;border-radius:50%}
.palette-picker__dot--original{background:linear-gradient(135deg,#e6e8e5 50%,#303a3b 50%)}
.palette-picker__dot--midnight{background:#53779d}
.palette-picker__dot--forest{background:#5d866a}
.palette-picker__dot--graphite{background:linear-gradient(135deg,#252321 45%,#c99a65 45%)}
@media(max-width:1100px){.palette-picker{position:relative;right:auto;flex:none;margin-left:auto}.theme-toggle{margin-left:0}}
@media(max-width:620px){.header-inner{grid-template-columns:minmax(0,1fr) repeat(4,36px)}.collections-cta{grid-column:2 / 6}.palette-picker{grid-column:4;grid-row:2;justify-self:center;margin:0}.theme-toggle{grid-column:5}.palette-picker__panel{right:-34px}}
@media(max-width:480px){.header-inner{grid-template-columns:minmax(0,1fr) repeat(4,30px)}.palette-picker__toggle{width:30px;height:30px}.palette-picker__mark{width:15px;height:15px}.palette-picker__panel{right:-31px}}
@media(prefers-reduced-motion:reduce){.palette-picker__toggle{transition:none}.palette-picker__toggle:hover,.palette-picker__option:hover{transform:none}}
html[data-palette] :is(.doctor-photo,.doctor-profile,.booking-dialog,.booking-dialog-head,.booking-form fieldset,.doctor-brief){border-color:var(--lab-border)}
html[data-palette] :is(.doctor-photo,.doctor-profile){background:var(--lab-glass)}
html[data-palette] .booking-dialog,html[data-palette] .booking-dialog-head{background:var(--paper)}
html[data-palette] :is(.apparel-branches-grid article,.apparel-branch-list a,.apparel-category-card,.apparel-product-description,.apparel-product-media){border-color:var(--lab-border)}
html[data-palette] .apparel-product-title{background:var(--lab-panel)}
html[data-palette] :is(.concept-card,.uk-size-chart,.uk-size-chart th,.uk-size-chart td){border-color:var(--lab-border)}
