/* The classic palette reuses current module layouts and their functional states. */
:root[data-theme="classic"] {
  --navy: #152f43;
  --navy-dark: #102637;
  --ink: #203848;
  --muted: #576e7b;
  --bg: #f5f7f8;
  --line: #dce5eb;
  --teal: #087b75;
  --teal-dark: #06635d;
  --petrol: #18394c;
  --forest: #173849;
  --sage: #e6f2ef;
  --surface-muted: #edf2f5;
  --surface-hover: #e5edf2;
}
[data-theme="classic"] .sidebar { background: linear-gradient(170deg,#18394c,#122a3c 75%); border-color: #18394c; }
[data-theme="classic"] .sidebar :is(.nav-link:hover,.drawer-close:hover) { background: #21495e; }
[data-theme="classic"] .sidebar .nav-link.active,
[data-theme="classic"] .sidebar .helpdesk-nav .module-current { background: #255267; color: white; box-shadow: inset 3px 0 #6cddc6; }
[data-theme="classic"] .sidebar .helpdesk-subnav { border-color: #496271; }
[data-theme="classic"] .button { border-radius: 999px; }
[data-theme="classic"] .home-cards .module-icon { background: #e5f1ef; color: var(--teal); }
[data-theme="classic"] .helpdesk-overview .helpdesk-contact { background: white; color: var(--ink); border: 1px solid var(--line); }
[data-theme="classic"] .helpdesk-contact :is(h2,p,.option-kicker) { color: var(--navy); }
[data-theme="classic"] .helpdesk-contact .option-icon { background: var(--surface-muted); color: var(--navy); }
[data-theme="classic"] .helpdesk-contact .help-report-link { color: white; background: var(--teal); }
[data-theme="classic"] .helpdesk-contact .help-report-link:hover { background: var(--teal-dark); }

.appearance-welcome { max-width: 1020px; margin: auto; padding: clamp(20px,5vw,68px) clamp(16px,4vw,48px); }
.appearance-welcome .brand { width: fit-content; margin: 0 0 clamp(24px,5vw,56px); }
.appearance-welcome-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.appearance-form { max-width: 960px; }
.appearance-form h1 { color: var(--forest); margin: 0; font: 700 clamp(1.8rem,3vw,2.6rem)/1.15 var(--heading-font); }
.appearance-form > p { color: var(--muted); }
.appearance-form .form-error { color: #9c3029; }
.appearance-options { border: 0; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; min-width: 0; }
@media (min-width: 950px) {
  .appearance-welcome .appearance-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.appearance-card { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: white; display: flex; flex-direction: column; gap: 0; overflow: hidden; cursor: pointer; }
.appearance-card:has(:checked) { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.appearance-card:has(:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.appearance-card img { width: 100%; display: block; height: auto; border-bottom: 1px solid var(--line); }
.appearance-caption { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.appearance-caption input { width: 18px; height: 18px; min-height: 18px; flex: none; margin: 3px 0 0; accent-color: var(--teal); }
.appearance-caption strong { display: block; font-size: 1.08rem; }
.appearance-caption small { display: block; margin-top: 2px; color: var(--muted); font-size: .88rem; font-weight: 400; }
@media (max-width: 600px) {
  .appearance-options { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .appearance-caption { padding: 12px; }
}

:root[data-theme="light"] {
  --home-photo: url("/assets/home-light.webp");
  --home-photo-position: 53%;
  --bg: #f4f7fb;
  --ink: #1b304b;
  --muted: #485e74;
  --navy: #203b59;
  --petrol: #315b8b;
  --forest: #19385b;
  --teal: #215b95;
  --teal-dark: #184474;
  --line: #cbd7e3;
  --surface-muted: #e9f0f8;
  --surface-hover: #dde9f6;
  --sage: #e1edf9;
}
[data-theme="light"] .sidebar { background: #f9fbff; color: var(--ink); border-color: var(--line); }
[data-theme="light"] .sidebar :is(.brand,.brand-hub,.nav-link,.drawer-close,.sidebar-bottom,.sidebar-bottom small) { color: var(--ink); }
[data-theme="light"] .sidebar :is(.nav-link:hover,.drawer-close:hover,.nav-link.active,.helpdesk-nav .module-current) { background: var(--sage); box-shadow: inset 3px 0 #5481af; }
[data-theme="light"] .sidebar .helpdesk-subnav .nav-link.active { background: var(--sage); color: var(--forest); box-shadow: inset 2px 0 #5481af; }
[data-theme="light"] .sidebar :is(.helpdesk-subnav,.sidebar-bottom) { border-color: var(--line); }
[data-theme="light"] .sidebar :focus-visible { outline-color: var(--teal); }
[data-theme="light"] .service-directory .module-icon { color: var(--petrol); background: var(--sage); }

:root[data-theme="contrast"] {
  --home-photo: url("/assets/home-contrast.webp");
  --home-photo-position: 56%;
  --bg: #f8f6f0;
  --ink: #171717;
  --muted: #393939;
  --navy: #171717;
  --navy-dark: #101010;
  --petrol: #24221e;
  --forest: #161616;
  --teal: #141414;
  --teal-dark: #363636;
  --line: #958d7d;
  --surface-muted: #f1eadb;
  --surface-hover: #ebe7db;
  --sage: #ffedbe;
  font-size: 17px;
}
[data-theme="contrast"] .sidebar :is(.nav-link.active,.helpdesk-nav .module-current) { color: #171717; background: #ffe48b; box-shadow: inset 3px 0 #a26c00; }
[data-theme="contrast"] .sidebar .helpdesk-subnav .nav-link.active { background: #4b3d24; color: #fff7e5; box-shadow: inset 2px 0 #ffe48b; }
[data-theme="contrast"] .sidebar :is(.nav-link:hover,.drawer-close:hover) { background: #5a4729; color: #fff8e7; }
[data-theme="contrast"] .helpdesk-overview .helpdesk-contact .help-report-link { background: #ffe48b; }
[data-theme="contrast"] .helpdesk-overview .helpdesk-contact .help-report-link:hover { background: #ffdb68; }
[data-theme="contrast"] .sidebar .brand-hub { color: #ffe5a7; }

[data-theme="contrast"] .sidebar :focus-visible { outline-color: #ffe48b; }
[data-theme="contrast"] :is(.workspace,.appearance-welcome) :is(input,select,textarea,.button.secondary,.appearance-card) { border-color: #736956; }
[data-theme="contrast"] :is(.workspace,.appearance-welcome) :focus-visible { outline-color: #714700; }
[data-theme="contrast"] .service-directory .module-icon { color: var(--ink); background: var(--sage); }

:root[data-theme="plum"] {
  --home-photo: url("/assets/home-plum.webp");
  --home-photo-position: 58%;
  --bg: #f7f4f8;
  --ink: #38263e;
  --muted: #64536c;
  --navy: #42294a;
  --navy-dark: #321e38;
  --petrol: #4b3054;
  --forest: #4d3255;
  --teal: #754581;
  --teal-dark: #5d326a;
  --line: #dfd2e3;
  --surface-muted: #efe7f1;
  --surface-hover: #e7daec;
  --sage: #efe0f3;
}
[data-theme="plum"] .sidebar .brand-hub { color: #e9ccef; }
[data-theme="plum"] .sidebar :is(.nav-link:hover,.drawer-close:hover) { background: #63446e; }
[data-theme="plum"] .sidebar :is(.nav-link.active,.helpdesk-nav .module-current) { background: #efdcf2; color: #42294a; box-shadow: inset 3px 0 #b287bf; }
[data-theme="plum"] .sidebar .helpdesk-subnav .nav-link.active { background: #63446e; color: white; box-shadow: inset 2px 0 #dcbce4; }
[data-theme="plum"] .sidebar :is(.helpdesk-subnav,.sidebar-bottom) { border-color: #8b7294; }
[data-theme="plum"] .sidebar .sidebar-bottom small { color: #eadbef; }

:root[data-theme="sand"] {
  --home-photo: url("/assets/home-sand.webp");
  --home-photo-position: 56%;
  --bg: #f9f6ef;
  --ink: #3d302a;
  --muted: #665447;
  --navy: #56392c;
  --navy-dark: #423026;
  --petrol: #6b4331;
  --forest: #5d3b2b;
  --teal: #914b32;
  --teal-dark: #773a25;
  --line: #e2d5c8;
  --surface-muted: #f4eadd;
  --surface-hover: #eddfd1;
  --sage: #f3e2d6;
}
[data-theme="sand"] .sidebar { background: #f7ede1; color: var(--ink); border-color: var(--line); }
[data-theme="sand"] .sidebar :is(.brand,.brand-hub,.nav-link,.drawer-close,.sidebar-bottom,.sidebar-bottom small) { color: var(--ink); }
[data-theme="sand"] .sidebar :is(.nav-link:hover,.drawer-close:hover,.nav-link.active,.helpdesk-nav .module-current) { background: #ebd8c7; box-shadow: inset 3px 0 #a7694e; }
[data-theme="sand"] .sidebar .helpdesk-subnav .nav-link.active { background: #ead6c5; color: var(--forest); box-shadow: inset 2px 0 #a7694e; }
[data-theme="sand"] .sidebar :is(.helpdesk-subnav,.sidebar-bottom) { border-color: #cbb39e; }
[data-theme="sand"] .sidebar :focus-visible { outline-color: var(--teal); }

:is([data-theme="light"],[data-theme="plum"],[data-theme="sand"]) :is(.workspace,.appearance-welcome) :focus-visible { outline-color: var(--teal); }
:is([data-theme="plum"],[data-theme="sand"]) .service-directory .module-icon { background: var(--sage); color: var(--teal-dark); }

.settings-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.settings-tools:has(.feedback-disclosure[open]) { align-items: start; }
.settings-tool { display: flex; flex-direction: column; align-items: flex-start; }
.settings-tool > :is(.button, .feedback-disclosure) { margin-top: auto; }
.feedback-disclosure[open] { align-self: stretch; }
@media (min-width: 1180px) {
  .settings-tools:not(:has(.settings-management)) { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.settings-tool h2 { margin: 0; color: var(--forest); }
.settings-tool p { margin-block: 8px 14px; }
.feedback-disclosure > summary { display: flex; width: fit-content; cursor: pointer; list-style: none; }
.feedback-disclosure > summary::-webkit-details-marker { display: none; }
.feedback-disclosure form { margin-top: 18px; }
.welcome-tour { width: min(960px,calc(100% - 24px)); height: min(860px, calc(100dvh - 24px)); max-height: none; overflow: hidden; padding: clamp(12px,3vw,30px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); }
.welcome-tour.tour-text-only { width: min(560px,calc(100% - 24px)); height: min(320px,calc(100dvh - 24px)); }
.welcome-tour[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.tour-slide { overflow: auto; overscroll-behavior: contain; }
.welcome-tour::backdrop { background: #11212bb8; }
.welcome-tour h2 { margin: 0; color: var(--forest); font-size: clamp(1.35rem,4vw,1.8rem); }
.welcome-tour h2:focus { outline: none; }
.tour-progress { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.tour-progress progress { width: min(200px,32%); height: 8px; accent-color: var(--teal); }
.tour-counter { margin: 0; color: var(--muted); font-weight: 650; }
.tour-preview {
  display: block; width: min(100%, max(460px, calc((100dvh - 260px) * 1.6)));
  aspect-ratio: 16 / 10; height: auto; margin: 14px auto 0; padding: 0; overflow: hidden; object-fit: contain;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted);
}
button.tour-preview { cursor: pointer; }
.tour-video { display: block; width: 100%; height: auto; object-fit: contain; }
.tour-actions {
  display: grid; grid-template-columns: 1fr auto clamp(80px, 19vw, 110px);
  align-items: center; gap: 8px; padding-top: 10px;
}
.tour-actions button { min-height: 44px; padding-inline: clamp(7px,2vw,16px); }
.tour-actions .ghost { grid-column: 1; justify-self: start; }
.tour-actions .secondary { grid-column: 2; }
.tour-actions .primary { grid-column: 3; }
.tour-actions [hidden] { display: none; }
@media (max-width: 650px) {
  .settings-tools { grid-template-columns: minmax(0,1fr); }
}

.appearance-card[type="submit"] {
  width: 100%; font-size: .875rem; font-weight: 600; color: var(--ink); text-align: left; padding: 0;
}
.appearance-card[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.appearance-card:hover { border-color: var(--teal); }
.appearance-selected { display: grid; place-items: center; width: 18px; height: 18px; flex: none; margin-top: 3px; border: 1px solid var(--muted); border-radius: 50%; }
.appearance-card[aria-pressed="true"] .appearance-selected { border-color: var(--teal); }
.appearance-card[aria-pressed="true"] .appearance-selected::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

:root[data-theme="midnight"] {
  --home-photo: url("/assets/home-midnight.webp");
  --home-photo-position: 58%;
  --bg: #f3f5fa;
  --paper: #fff;
  --ink: #17243d;
  --muted: #4b566f;
  --navy: #172c50;
  --navy-dark: #101c32;
  --petrol: #233860;
  --forest: #172c50;
  --teal: #2a4270;
  --teal-dark: #192f54;
  --line: #d4dbe8;
  --surface-muted: #e9edf6;
  --surface-hover: #dee6f4;
  --sage: #f2ead6;
  --premium-accent: #bf9954;
  --premium-nav: #182846;
  --premium-nav-deep: #0e192c;
  --premium-nav-text: #f4eee3;
  --premium-nav-hover: #394564;
  --premium-selection: #f2dfab;
}
:root[data-theme="emerald"] {
  --home-photo: url("/assets/home-emerald.webp");
  --home-photo-position: 54%;
  --bg: #f1f6f2;
  --paper: #fff;
  --ink: #172e26;
  --muted: #425e51;
  --navy: #123e30;
  --navy-dark: #112e25;
  --petrol: #1e5c46;
  --forest: #183c2f;
  --teal: #22654d;
  --teal-dark: #174835;
  --line: #cedfd4;
  --surface-muted: #e5f0e8;
  --surface-hover: #d7e9dd;
  --sage: #dcece0;
  --premium-accent: #9a884f;
  --premium-nav: #174d3b;
  --premium-nav-deep: #0d2c22;
  --premium-nav-text: #edf6ed;
  --premium-nav-hover: #2a634e;
  --premium-selection: #cde7d2;
}
:root[data-theme="porcelain"] {
  --home-photo: url("/assets/home-porcelain.webp");
  --home-photo-position: 56%;
  --bg: #faf8f4;
  --paper: #fffefa;
  --ink: #382c28;
  --muted: #6a5045;
  --navy: #573724;
  --navy-dark: #40291d;
  --petrol: #734732;
  --forest: #5d3928;
  --teal: #88472f;
  --teal-dark: #6b3624;
  --line: #e5d8cd;
  --surface-muted: #f5eae2;
  --surface-hover: #efdfd4;
  --sage: #f1ded1;
  --premium-accent: #a56346;
  --premium-nav: #f8eee5;
  --premium-nav-deep: #ebd9ca;
  --premium-nav-text: #382c28;
  --premium-nav-hover: #e7cbb7;
  --premium-selection: #e8c5ab;
}
:is([data-theme="midnight"],[data-theme="emerald"],[data-theme="porcelain"],[data-theme="atelier"]) .sidebar {
  background: linear-gradient(155deg,var(--premium-nav),var(--premium-nav-deep));
  color: var(--premium-nav-text); border-color: var(--premium-accent);
}
:is([data-theme="midnight"],[data-theme="emerald"],[data-theme="porcelain"],[data-theme="atelier"]) .sidebar :is(.brand,.brand-hub,.nav-link,.drawer-close,.sidebar-bottom,.sidebar-bottom small) { color: var(--premium-nav-text); }
:is([data-theme="midnight"],[data-theme="emerald"],[data-theme="porcelain"],[data-theme="atelier"]) .sidebar :is(.nav-link:hover,.drawer-close:hover) { background: var(--premium-nav-hover); }
:is([data-theme="midnight"],[data-theme="emerald"],[data-theme="porcelain"],[data-theme="atelier"]) .sidebar :is(.nav-link.active,.helpdesk-nav .module-current) {
  color: var(--ink); background: var(--premium-selection); box-shadow: inset 3px 0 var(--premium-accent);
}
:is([data-theme="midnight"],[data-theme="emerald"],[data-theme="porcelain"],[data-theme="atelier"]) .sidebar :is(.helpdesk-subnav,.sidebar-bottom) { border-color: var(--premium-accent); }
:is([data-theme="midnight"],[data-theme="emerald"],[data-theme="porcelain"],[data-theme="atelier"]) .sidebar :focus-visible { outline-color: var(--premium-accent); }
:is([data-theme="midnight"],[data-theme="emerald"],[data-theme="porcelain"],[data-theme="atelier"]) .service-directory .module-icon { background: var(--sage); color: var(--forest); }
:is([data-theme="midnight"],[data-theme="emerald"],[data-theme="porcelain"],[data-theme="atelier"]) .home-cards .module-card { box-shadow: 0 4px 14px color-mix(in srgb,var(--forest) 6%,transparent); }
:is([data-theme="midnight"],[data-theme="emerald"],[data-theme="porcelain"],[data-theme="atelier"]) .home-cards .module-card:hover { background: var(--surface-muted); border-color: var(--premium-accent); }

:root[data-theme="atelier"] {
  --home-photo: url("/assets/home-atelier.webp");
  --home-photo-position: 60%;
  --bg: #f5f7f5;
  --paper: #fffef8;
  --ink: #233637;
  --muted: #4a605d;
  --navy: #1d4141;
  --navy-dark: #112b2f;
  --petrol: #245054;
  --forest: #193b3c;
  --teal: #275f61;
  --teal-dark: #16484b;
  --line: #d6e1dc;
  --surface-muted: #e5efeb;
  --surface-hover: #daeae5;
  --sage: #faeac4;
  --premium-accent: #b98645;
  --premium-nav: #255557;
  --premium-nav-deep: #142a36;
  --premium-nav-text: #faf3df;
  --premium-nav-hover: #3b6260;
  --premium-selection: #f5db9d;
}
:root:is([data-theme="atelier"],[data-theme="emerald"],[data-theme="midnight"],[data-theme="porcelain"]) .home-hero {
  min-height: clamp(178px,18vw,230px);
  border: 1px solid var(--line);
  background: var(--premium-hero-surface, var(--hero-surface));
}
:root:is([data-theme="atelier"],[data-theme="emerald"],[data-theme="midnight"],[data-theme="porcelain"]) .home-hero h1 {
  margin: 0;
  text-wrap: balance;
}
:root:is([data-theme="atelier"],[data-theme="emerald"],[data-theme="porcelain"]) .home-photo {
  margin: 0;
  mask-image: none;
}
[data-theme="atelier"] .home-hero {
  --premium-hero-surface: linear-gradient(130deg,#fff9ed,#faecd1);
  grid-template-columns: minmax(0,1fr) minmax(0,1.12fr);
}
[data-theme="atelier"] .home-hero h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 14px;
  background: var(--premium-accent);
}
[data-theme="emerald"] .home-hero {
  --premium-hero-surface: linear-gradient(115deg,#1a4537,#102d25);
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
}
[data-theme="emerald"] .home-intro { grid-area: 1 / 2; }
:root[data-theme="emerald"] .home-photo {
  grid-area: 1 / 1;
  margin: clamp(12px,1.5vw,22px) 0 clamp(12px,1.5vw,22px) clamp(12px,1.5vw,22px);
  border: 1px solid #b7a469;
  border-radius: 9px;
}
[data-theme="midnight"] .home-hero {
  --premium-hero-surface: #0b1729;
  grid-template-columns: minmax(0,1fr);
}
:root[data-theme="midnight"] .home-photo {
  grid-area: 1 / 1;
  margin: 0;
  mask-image: none;
  background-image: linear-gradient(90deg,#0b1729 0%,rgb(11 23 41 / 88%) 35%,rgb(11 23 41 / 22%) 78%),var(--home-photo);
  background-size: cover;
}
[data-theme="midnight"] .home-intro {
  grid-area: 1 / 1;
  max-width: min(70%,38rem);
}
:root[data-theme="midnight"] .home-date { color: #f3da9e; }
:root:is([data-theme="emerald"],[data-theme="midnight"]) .home-hero h1 { color: #fff9ee; }
:root[data-theme="emerald"] .home-date { color: #d5e6d8; }
[data-theme="porcelain"] .home-hero {
  --premium-hero-surface: linear-gradient(120deg,#fdf8ef,#f5e5d8);
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
}
:root[data-theme="porcelain"] .home-photo {
  margin: 12px clamp(12px,3.2vw,48px) 12px 0;
  border: 1px solid var(--premium-accent);
  border-radius: 48% 48% 8px 8px / 46% 46% 8px 8px;
}
[data-resolved-lighting="dark"]:is([data-theme="atelier"],[data-theme="porcelain"]) .home-hero {
  --premium-hero-surface: var(--hero-surface);
}
[data-theme="emerald"][data-resolved-lighting="dark"] .home-hero { --premium-hero-surface: #102d24; }

@media (max-width: 620px) {
  :root:is([data-theme="atelier"],[data-theme="emerald"],[data-theme="porcelain"]) .home-hero {
    min-height: 0;
    grid-template-columns: minmax(0,1fr);
  }
  [data-theme="emerald"] .home-intro { grid-area: 1 / 1; }
  :root[data-theme="emerald"] .home-photo {
    grid-area: 2 / 1;
    margin: 0 12px 12px;
  }
  :root:is([data-theme="atelier"],[data-theme="emerald"],[data-theme="porcelain"]) .home-photo {
    min-height: clamp(85px,26vw,130px);
  }
  :root[data-theme="porcelain"] .home-photo { margin: 0 18px 12px; }
  [data-theme="midnight"] .home-intro { max-width: none; }
  :root[data-theme="midnight"] .home-photo {
    background-position: center, 64% center;
    background-image: linear-gradient(0deg,rgb(11 23 41 / 40%),rgb(11 23 41 / 88%)),var(--home-photo);
  }
}
[data-theme="atelier"] .avatar { background: #f7e2b1; }

.appearance-premium {
  margin: 34px 0 24px; padding: clamp(12px, 2.3vw, 26px);
  border: 1px solid var(--line); border-top: 3px solid var(--teal);
  border-radius: 14px; background: var(--surface-muted);
}
.appearance-premium-heading { margin: 0 0 16px; }
.appearance-premium-heading h2 { margin: 0; font-size: 1.2rem; color: var(--forest); }
.appearance-premium-heading p { margin: 4px 0 0; color: var(--muted); }
.appearance-premium .appearance-options { margin: 0; }
.appearance-preview { position: relative; display: block; width: 100%; background: var(--surface-muted); }
.appearance-availability {
  position: absolute; inset: 10px 10px auto auto; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; color: var(--forest); background: var(--paper); border: 1px solid var(--teal);
  border-radius: 8px; font-size: .8rem; font-weight: 750;
}
.appearance-locked { cursor: default; background: var(--paper); }
.appearance-locked:hover { border-color: var(--line); }
.appearance-locked img { filter: grayscale(1); opacity: .68; }
.appearance-locked .appearance-availability { color: #fff; background: #26343b; border-color: #26343b; }
.appearance-unlock { display: block; margin-top: 8px; color: var(--ink); font-size: .85rem; }

.appearance-card.appearance-highlight { outline: 3px solid var(--teal); outline-offset: 4px; }


.appearance-effect {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 6px 14px;
 margin-block: 20px;
}
.appearance-effect .check-label { margin: 0; }
.appearance-effect input[role="switch"] {
 appearance: none;
 width: 38px;
 height: 22px;
 min-height: 0;
 flex: none;
 padding: 2px;
 border: 1px solid var(--focus-ring);
 border-radius: 20px;
 background: var(--surface-muted);
 cursor: pointer;
}
.appearance-effect input[role="switch"]::before {
 content: '';
 display: block;
 width: 16px;
 height: 16px;
 border-radius: 50%;
 background: var(--muted);
}
.appearance-effect input[role="switch"]:checked { background: var(--sage); }
.appearance-effect input[role="switch"]:checked::before { margin-left: 16px; background: var(--teal); }
.appearance-effect small { color: var(--muted); }
