/* Only labelled appearance buttons participate. Preserve each product's typography and accent. */
html body button[data-ka-label] {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  gap:.42rem; width:max-content; max-width:100%; min-width:44px; min-height:44px; height:auto;
  padding:4px 8px; white-space:normal; text-align:start; font-family:inherit;
  font-size:0; line-height:1.15; cursor:pointer; text-transform:none; letter-spacing:normal;
}
html body button[data-ka-label] > :is(svg,span,img,i) { display:none; }
html body button[data-ka-label]::before {
  content:""; display:block; position:static; width:15px; height:15px; box-sizing:border-box;
  flex:none; margin:0; padding:0; border-radius:50%; border:1px solid currentColor;
  background:linear-gradient(90deg,#161814 0 50%,#fff 50% 100%); transform:none; opacity:1;
}
html body button[data-ka-current=dark]::before { background:linear-gradient(90deg,#fff 0 50%,#161814 50% 100%); }
html body button[data-ka-label]::after {
  content:attr(data-ka-label); display:inline; position:static; flex:0 1 auto; width:auto; height:auto;
  margin:0; padding:0; border:0; background:none; font-family:inherit;
  font-size:13px; font-weight:500; line-height:1.2; white-space:normal; max-width:10ch; opacity:1; transform:none;
}
html body button[data-ka-label]:hover::after { text-decoration:underline; text-underline-offset:3px; }
html body button[data-ka-label]:focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
html body button[data-ka-label]:active { opacity:.76; }
html body button[data-ka-label]:disabled { opacity:.5; cursor:default; }
.ka-appearance-row { box-sizing:border-box; display:flex; justify-content:flex-end; align-items:center;
  width:100%; flex:0 0 auto; min-height:44px; padding-inline:clamp(8px,2vw,28px); position:relative;
  background:var(--ka-bar); color:var(--ka-type); font-family:system-ui,sans-serif; }
.ka-appearance-button { background:transparent; color:inherit; border:0; border-radius:4px; }
html[data-ka-scheme=light] { color-scheme:light; --ka-bar:#faf9f6; --ka-type:#272921; }
html[data-ka-scheme=dark] { color-scheme:dark; --ka-bar:#222420; --ka-type:#f4f3ed; }
@media (forced-colors:active) {html body button[data-ka-label]::before {border-inline-start-width:7px; background:Canvas;}}

/* Alternate palettes complement each existing default palette and its photography. */
html[data-ka-profile=world][data-ka-scheme=dark] {
  --paper:#282128; --paper-deep:#302630; --ink:#f4eae5; --muted:#cbbbc3; --line:#604f5a;
  --accent-ink:#ffd1c0;
}
html[data-ka-profile=studio][data-ka-scheme=dark] { --paper:#28221e; --ink:#f5eae0; --button:#d3a38c; --button-ink:#281c16; }
html[data-ka-profile=steel][data-ka-scheme=dark] {
  --canvas:#25221f; --surface:#302b27; --elevated:#39332f; --ink:#f6eee6; --muted:#c6b8ad;
  --line:#554d46; --border-control:#a99586; --accent:#e99e82; --accent-hover:#f4b79d; --on-accent:#31221b;
  --hero-ink:#f3e8de; --hero-muted:#d0bdb0; --focus:#f4b59b;
}
html[data-ka-profile=steel-admin][data-ka-scheme=dark] {
  --workspace:#1e2122; --surface:#292c2d; --ink:#f6f4f1; --muted:#b4bbbd; --border:#535759;
  --auth-canvas:#1e2122; --auth-input:#292c2d; --auth-line:#515758; --auth-input-line:#868b8c;
  --auth-muted:#c1c4c3; --auth-accent:#ec8988;
}
html[data-ka-profile=commercial][data-ka-scheme=dark] {
  --color-canvas:#211f1a; --color-subtle:#2c2923; --color-surface:#322f29; --color-line:#514d44; --color-line-strong:#70695d;
  --color-ink:#f6f1e8; --color-ink-2:#d5caba; --color-ink-3:#b6ac9d; --color-accent:#eaa475; --color-accent-soft:#4a3528;
  --color-positive-soft:#243b2c; --color-positive:#abd4b8; --color-warning-soft:#443a21; --color-warning:#ebc974;
  --color-negative-soft:#482d28; --color-negative:#f0a899;
}
html[data-ka-profile=factory][data-ka-scheme=light] {
  --color-coal:#f9f5ed; --color-coal2:#efe7da; --color-ink:#2c251e; --color-dim:#64594b;
  --color-amber:#8b510a; --color-amber2:#7c4e15; --color-moss:#395c30; --color-brick:#9b472d;
}
html:is([data-ka-profile=funnel],[data-ka-profile=fox])[data-ka-scheme=light] {
  --bg-canvas:#f5f6f6; --bg-surface:#fff; --bg-elevated:#eef0ef; --bg-input:#fff; --bg-inset:#f0f1ef; --bg-hover:#e4e9e7;
  --text-primary:#232828; --text-secondary:#465252; --text-muted:#586360; --border-subtle:#d3dad7; --border-strong:#9fabaa;
  --danger:#943d31; --success:#266241; --warning:#795126;
}
html[data-ka-profile=funnel][data-ka-scheme=light] { --accent:#89561f; --accent-contrast:#fff; }
html[data-ka-profile=fox][data-ka-scheme=light] { --accent:#076984; --accent-hover:#064f63; --accent-contrast:#fff; }
html[data-ka-profile=boat][data-ka-scheme=light] {
  --deep:#f0f4f5; --navy-deep:#e2eaf0; --navy:#e1e9ed; --navy-surface:#fff; --surface:#f9fcfc; --surface-2:#dbe8ed;
  --ink:#182e3e; --muted:#435b6c; --line:#b4c5ce; --accent:#805f19; --gold:#815e12; --focus:#805f19;
}
html[data-ka-profile=cluch][data-ka-scheme=dark] { --paper:#272520; --white:#302d27; --ink:#f8f1e5; --muted:#c8bda9; --line:#585044; --orange:#dcac86; }
html[data-ka-profile=cluch][data-ka-scheme=dark] .hero-veil {
  background:linear-gradient(90deg,#272520 2%,rgba(39,37,32,.98) 28%,rgba(39,37,32,.9) 45%,rgba(39,37,32,.08) 80%),
    linear-gradient(0deg,#272520,rgba(39,37,32,0) 25%);
}
html[data-ka-profile=cluch][data-ka-scheme=dark] .hero-strip {background:var(--paper);color:var(--muted);}
html[data-ka-profile=cluch][data-ka-scheme=dark] :is(.experience,.light-toggle,.view-options) {background:var(--white);color:var(--ink);}
html[data-ka-profile=cluch][data-ka-scheme=dark] .button-orange {color:#302219;}
html[data-ka-profile=cluch][data-ka-scheme=dark] .button-orange:hover {background:#f0c4a0;}
@media(max-width:900px) {
  html[data-ka-profile=cluch][data-ka-scheme=dark] .hero-veil {background:linear-gradient(180deg,var(--paper),transparent 62%);}
}
html[data-ka-profile=metal][data-ka-scheme=dark] {
  --nm-canvas:#1b2022; --nm-surface:#252b2e; --nm-ink:#f1f3f3; --nm-muted:#c1c7c8; --nm-line:#4d5658;
  --nm-line-strong:#7e898b; --nm-accent:#f0a074; --nm-success-bg:#22372a; --nm-danger-bg:#422d30; --nm-info-bg:#2b3840;
  --canvas:var(--nm-canvas); --ink:var(--nm-ink); --line:var(--nm-line); --muted:var(--nm-muted);
  --receiver-canvas:var(--nm-canvas); --receiver-ink:var(--nm-ink); --receiver-surface:var(--nm-surface);
  --receiver-line:var(--nm-line); --receiver-accent:var(--nm-accent);
}
/* Older styles may use literal colors on the document itself. */
html[data-ka-scheme=dark]:is([data-ka-profile=world],[data-ka-profile=studio],[data-ka-profile=steel],[data-ka-profile=metal],[data-ka-profile=cluch]) body {
  background-color:var(--canvas,var(--paper)); color:var(--ink);
}
html[data-ka-profile=steel-admin][data-ka-scheme=dark] body { background-color:var(--workspace); color:var(--ink); }
html[data-ka-profile=commercial][data-ka-scheme=dark] body { background-color:var(--color-canvas); color:var(--color-ink); }
html[data-ka-profile=factory][data-ka-scheme=light] body { background-color:var(--color-coal); color:var(--color-ink); }
html:is([data-ka-profile=funnel],[data-ka-profile=fox])[data-ka-scheme=light] body { background-color:var(--bg-canvas); color:var(--text-primary); }
html[data-ka-profile=boat][data-ka-scheme=light] body { background-color:var(--deep); color:var(--ink); }
html[data-ka-profile=noise][data-ka-scheme=dark] {
  --paper:#24211d; --surface:#302b25; --ink:#f5eee5; --ink-soft:#dbd0c0; --muted:#c2b4a0;
  --line:#544b40; --line-strong:#7a6c57; --accent:#a3b1ff; --accent-deep:#bdc7ff; --paper-ink:#211c16;
}
html[data-ka-profile=noise][data-ka-scheme=dark] body {background-color:var(--paper);color:var(--ink);}
html:root body button[data-ka-label][data-ka-current] {
  flex:0 0 auto; flex-direction:row; flex-wrap:nowrap; width:max-content; height:auto; min-height:44px;
  max-width:none; padding-inline:7px; gap:6px;
}
html:root body button[data-ka-label]::after { max-width:none; white-space:nowrap; }
html:root .preferences:has(>button[data-ka-label]) { width:auto; flex:0 0 auto; max-width:none; }
html[data-ka-profile=world] .ka-appearance-row {position:sticky;top:0;z-index:101;}
html[data-ka-profile=world] .site-header {top:calc(44px + .65rem);}
html[data-ka-profile=search] .ka-appearance-row {justify-content:flex-start;}
@media(max-width:420px) {
  html:root body button[data-ka-label][data-ka-current] {gap:4px;padding-inline:4px;}
  html:root body button[data-ka-label]::after {font-size:12px;}
  .header.wrap:has(>.wordmark):has(>.menu-toggle):has(>.locale-controls) {width:calc(100% - 20px);gap:2px;}
  .header.wrap:has(>.locale-controls) > .wordmark {font-size:clamp(12px,3.7vw,15px);gap:4px;}
  .header.wrap:has(>.locale-controls) > .wordmark svg {width:20px;height:20px;}
  .header.wrap:has(>.menu-toggle) > .locale-controls {gap:0;}
}
