.theme-bar { position:relative; z-index:2; background:var(--bg); border-bottom:1px solid var(--line); }
.theme-inner { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; }
.theme-options {
  display:flex; gap:5px; overflow-x:auto; scrollbar-width:none; overscroll-behavior-inline:contain;
  padding:10px 3px;
}
.theme-options::-webkit-scrollbar { display:none; }
.theme-option,.theme-picker summary,.theme-tile {
  color:var(--text); background:transparent; border:1px solid transparent;
  display:flex; align-items:center; justify-content:center; gap:9px;
}
.theme-option,.theme-picker summary {
  flex:none; white-space:nowrap; min-height:41px; padding:6px 11px; border-radius:var(--design-radius,8px);
}
.theme-option:is(:hover,[aria-pressed="true"]),.theme-picker[open] summary { background:var(--panel); border-color:var(--line); }
.theme-option[aria-pressed="true"],.theme-picker[open] summary { color:var(--accent); }
.theme-option:focus-visible,.theme-picker summary:focus-visible,.theme-tile:focus-visible { outline-offset:1px; }
.theme-picker summary { cursor:pointer; list-style:none; border-color:var(--line); }
.theme-picker summary::-webkit-details-marker { display:none; }
.theme-picker summary:hover { border-color:var(--accent); }
.theme-picker summary svg { width:15px; height:15px; }
.theme-swatch {
  --preview-art:initial; --decoration:initial;
  display:block; width:18px; height:18px; flex:none; border-radius:4px;
  border:1px solid var(--line); background:var(--decoration,none),var(--bg);
  box-shadow:inset 0 -4px 0 var(--accent);
}
.theme-gallery {
  position:absolute; top:calc(100% + 8px); right:0; z-index:4;
  width:min(100%,650px); max-height:min(60vh,465px); overflow:auto; overscroll-behavior:contain;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px;
  padding:12px; background:var(--panel); color:var(--text); border:1px solid var(--line);
  border-radius:var(--design-radius,12px); box-shadow:0 16px 45px #0007;
}
.theme-tile {
  flex-direction:column; justify-content:flex-start; gap:7px;
  min-width:0; padding:7px; text-align:center; line-height:1.2;
  border-radius:var(--design-radius,8px); border-color:var(--line);
}
.theme-tile:hover,.theme-tile[aria-pressed="true"] { border-color:var(--accent); }
.theme-tile[aria-pressed="true"] { color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
.theme-tile .theme-swatch { width:100%; height:42px; border-radius:3px; }
@media (max-width:600px) {
  .theme-inner { gap:6px; }
  .theme-options { padding-block:7px; }
  .theme-option,.theme-picker summary { min-height:37px; padding-inline:7px; gap:5px; }
  .theme-option .theme-swatch { width:13px; height:13px; box-shadow:inset 0 -3px 0 var(--accent); }
  .theme-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
:where(:root[data-theme]:not([data-theme="original"])) {
  --control-radius:var(--shape, 0px);
  --hero-bg:var(--panel);
  --picture-base:var(--panel);
  --image-filter:none;
  --decoration:none;
  --texture:none;
  --page-texture:none;
  --typecase:none;
  --headline-style:normal;
  --tracking:-.06em;
  --art-size:cover;
  --hero-columns:1fr 1fr;
  --frame:1px;
  --duotone-blend:normal;
}
:where(:root[data-theme]:not([data-theme="original"])) body { background-image:var(--page-texture); }
:where(:root[data-theme]:not([data-theme="original"])) :is(.top,dialog) { border-color:var(--line); }
:where(:root[data-theme]:not([data-theme="original"])) :is(nav,.hero-copy > p:not(.eyebrow)) { color:var(--muted); }
:where(:root[data-theme]:not([data-theme="original"])) .hero {
  display:grid; grid-template-columns:var(--hero-columns); align-items:stretch;
  min-height:clamp(370px,37vw,505px); background:var(--texture),var(--hero-bg);
  border:var(--frame) solid var(--line); border-radius:var(--shape, 0px);
  box-shadow:var(--hero-shadow, none);
}
:where(:root[data-theme]:not([data-theme="original"])) .hero::after {
  content:""; grid-column:2; grid-row:1;
  background:var(--decoration),url("assets/hero.webp") center / var(--art-size) no-repeat,var(--picture-base);
  background-blend-mode:normal,var(--duotone-blend),normal;
  border-inline-start:var(--frame) solid var(--line);
  filter:var(--image-filter);
}
:where(:root[data-theme]:not([data-theme="original"])) .hero-copy {
  grid-column:1; grid-row:1; align-self:center; width:auto;
  padding:clamp(25px,5.2vw,72px) clamp(20px,4vw,55px);
}
:where(:root[data-theme]:not([data-theme="original"])) :is(h1,h2) { font-family:Calibri,"Carlito","Segoe UI",sans-serif; }
:where(:root[data-theme]:not([data-theme="original"])) h1 {
  font-size:clamp(2.45rem,6.4vw,6rem); line-height:.94; letter-spacing:var(--tracking);
  text-transform:var(--typecase);
}
:where(:root[data-theme]:not([data-theme="original"])) h1 em { font-style:var(--headline-style); }
:where(:root[data-theme]:not([data-theme="original"])) :is(h1 em,.eyebrow,.work-meta,.detail-meta,.source-links a) { color:var(--accent); }
:where(:root[data-theme]:not([data-theme="original"])) :is(.search,.bookmark) { background:var(--panel); }
:where(:root[data-theme]:not([data-theme="original"])) .bookmark { color:var(--text); }
:where(:root[data-theme]:not([data-theme="original"])) .bookmark[aria-pressed="true"] { color:var(--accent); }
:where(:root[data-theme]:not([data-theme="original"])) :is(.search,.work,.story,.source-links a,.bookmark,dialog,.saved,.close,.empty,.primary,.filters button) {
  border-color:var(--line); border-radius:var(--shape, 0px);
}
:where(:root[data-theme]:not([data-theme="original"])) :is(.work,.story) {
  border-width:var(--frame); box-shadow:var(--card-shadow,none);
}
:where(:root[data-theme]:not([data-theme="original"])) :is(.work:hover,.work:focus-within,.story:hover,.search:focus-within,.source-links a:hover,.saved:hover,.saved[aria-pressed="true"],.close:hover,.bookmark[aria-pressed="true"],.filters button:hover) { border-color:var(--accent); }
:where(:root[data-theme]:not([data-theme="original"])) .cover {
  filter:var(--image-filter); border-bottom:var(--frame) solid var(--line);
  aspect-ratio:var(--cover-ratio,1.38); background:var(--picture-base);
}
:where(:root[data-theme]:not([data-theme="original"])) :is(.primary,.filters button[aria-pressed="true"]) {
  background:var(--accent); color:var(--ink); border-color:var(--accent);
}
:where(:root[data-theme]:not([data-theme="original"])) .primary:hover { text-decoration:underline; }

[data-theme="neon-punk"] {
  --bg:#120f26; --panel:#211739; --line:#754ac0; --text:#fff3fc; --muted:#e0c9eb;
  --accent:#ff8bd7; --ink:#270d29; --shape:5px; --picture-base:#501f72;
  --typecase:uppercase; --hero-columns:1.05fr 1fr; --hero-shadow:0 0 28px #ae4dff40;
  --image-filter:saturate(1.35) contrast(1.12);
  --decoration:repeating-linear-gradient(0deg,#18093a3d 0 2px,transparent 2px 6px),linear-gradient(145deg,#7c23a55e,#22efd060);
  --page-texture:radial-gradient(ellipse at 50% 0%,#412064,transparent 65%);
}
[data-theme="swiss-style"] {
  color-scheme:light;
  --bg:#f7f7f2; --panel:#fff; --line:#878782; --text:#1a1a18; --muted:#4a4a46;
  --accent:#b32722; --ink:#fff; --frame:1px; --hero-columns:1.1fr 1fr;
  --image-filter:grayscale(1) contrast(1.12); --cover-ratio:1.64;
  --decoration:linear-gradient(90deg,#b32722 0 10%,transparent 10%);
}
[data-theme="bauhaus"] {
  color-scheme:light;
  --bg:#f3ead3; --panel:#fff8e7; --line:#36312e; --text:#242326; --muted:#514944;
  --accent:#ac291b; --ink:#fff; --frame:2px; --shape:2px; --cover-ratio:1.22;
  --image-filter:saturate(1.15) contrast(1.06);
  --decoration:radial-gradient(circle at 80% 22%,#edb92a 0 13%,transparent 13.3%),linear-gradient(120deg,#174676 0 18%,transparent 18.3% 79%,#b93225 79.2%);
}
[data-theme="constructivism"] {
  color-scheme:light;
  --bg:#e8d9b7; --panel:#f4e7cb; --line:#38302a; --text:#231a16; --muted:#554136;
  --accent:#98261b; --ink:#fff7e2; --frame:2px; --typecase:uppercase; --hero-columns:1.16fr 1fr;
  --image-filter:grayscale(1) sepia(.35) contrast(1.3);
  --decoration:linear-gradient(160deg,#20201c 0 13%,transparent 13% 76%,#75160f 76%);
  --texture:linear-gradient(168deg,transparent 0 88%,#b3332580 88%);
  --card-shadow:4px 4px 0 #332922;
}
[data-theme="art-deco"] {
  --bg:#122321; --panel:#1b312b; --line:#aa8b52; --text:#fcf0d6; --muted:#dfd0ad;
  --accent:#f2cf79; --ink:#211b12; --frame:3px; --shape:4px; --tracking:.005em;
  --hero-columns:1.1fr 1fr; --hero-shadow:0 0 0 4px #122321,0 0 0 5px #aa8b52;
  --image-filter:sepia(.44) saturate(.82);
  --decoration:repeating-conic-gradient(from 256deg at 50% 110%,#2316143b 0 8deg,transparent 8deg 16deg);
}
[data-theme="psychedelic"] {
  --bg:#2d1346; --panel:#3f225b; --line:#9965ad; --text:#fff4d5; --muted:#f7d8f6;
  --accent:#ffbf70; --ink:#34132d; --shape:39px; --headline-style:italic; --cover-ratio:1.15;
  --image-filter:saturate(1.65) hue-rotate(29deg);
  --decoration:repeating-radial-gradient(ellipse at 90% 10%,#f5885cbb 0 7px,#ff83d857 7px 14px,transparent 14px 37px);
  --page-texture:radial-gradient(at 90% 7%,#662679,transparent 45%);
}
[data-theme="brutalism"] {
  color-scheme:light;
  --bg:#e6e3da; --panel:#fbf9ef; --line:#20201e; --text:#151515; --muted:#43433f;
  --accent:#244fad; --ink:#fff; --frame:3px; --typecase:uppercase;
  --image-filter:grayscale(1) contrast(1.32); --cover-ratio:1.65;
  --card-shadow:4px 4px 0 #20201e; --hero-shadow:6px 6px 0 #20201e;
  --decoration:linear-gradient(145deg,transparent 84%,#252525 84%);
}
[data-theme="risograph"] {
  color-scheme:light;
  --bg:#f6ead2; --panel:#fff3dd; --line:#8d4673; --text:#322842; --muted:#5d4958;
  --accent:#8c2f56; --ink:#fff4d9; --shape:3px; --picture-base:#a45063;
  --duotone-blend:luminosity; --image-filter:sepia(.18) contrast(1.16);
  --decoration:radial-gradient(circle,#3724728f 1px,transparent 1.6px) 0 0 / 5px 5px;
  --page-texture:radial-gradient(circle,#67508b32 .65px,transparent 1.3px) 0 0 / 6px 6px;
  --card-shadow:3px 3px 0 #c3676e;
}
[data-theme="op-art"] {
  color-scheme:light;
  --bg:#eeeeeb; --panel:#fff; --line:#222; --text:#141414; --muted:#454545;
  --accent:#202020; --ink:#fff; --frame:2px; --shape:0; --cover-ratio:1.65;
  --image-filter:grayscale(1) contrast(1.48);
  --decoration:repeating-radial-gradient(ellipse at 100% 100%,transparent 0 14px,#0e0e0ec9 14px 21px,#fff8 21px 27px,transparent 27px 36px);
}
[data-theme="mid-century"] {
  color-scheme:light;
  --bg:#efe7d0; --panel:#fffae8; --line:#967459; --text:#2f3530; --muted:#535446;
  --accent:#865019; --ink:#fff3df; --shape:18px; --headline-style:italic; --cover-ratio:1.45;
  --hero-columns:1fr .94fr; --image-filter:sepia(.48) saturate(.88);
  --decoration:radial-gradient(ellipse at top right,#b06d37d6 0 17%,transparent 17.3%),linear-gradient(125deg,#3b7164bd 0,transparent 62%);
}
[data-theme="grunge-collage"] {
  --bg:#24221d; --panel:#30302a; --line:#8d826b; --text:#f6eddc; --muted:#d9caac;
  --accent:#ebba68; --ink:#20170e; --frame:2px; --typecase:uppercase; --cover-ratio:1.3;
  --image-filter:sepia(.65) saturate(.62) contrast(1.29);
  --decoration:repeating-linear-gradient(178deg,transparent 0 19px,#19170b66 19px 22px,transparent 22px 47px),linear-gradient(13deg,#1b1911 0 11%,transparent 11% 92%,#312d24 92%);
  --page-texture:repeating-linear-gradient(35deg,#ffffff10 0 1px,transparent 1px 9px);
  --card-shadow:4px 4px 0 #141410;
}
[data-theme="pop-art"] {
  color-scheme:light;
  --bg:#ffde53; --panel:#fff5a9; --line:#262131; --text:#241d2e; --muted:#4d3c51;
  --accent:#942059; --ink:#fff; --frame:3px; --shape:12px; --typecase:uppercase;
  --image-filter:saturate(1.5) contrast(1.13);
  --decoration:radial-gradient(circle,#29153c7a 2px,transparent 2.6px) center / 9px 9px,linear-gradient(138deg,#f82f87b0,transparent 55%,#47bacd80);
  --card-shadow:4px 4px 0 #262131;
}
[data-theme="duotone"] {
  --bg:#1d163e; --panel:#2c2153; --line:#9373c7; --text:#faf3ff; --muted:#e0d2f8;
  --accent:#80f1db; --ink:#142f30; --shape:8px; --picture-base:#624cb6;
  --duotone-blend:luminosity; --image-filter:contrast(1.12);
  --decoration:linear-gradient(130deg,#3825719e,#22b49d7a);
}
[data-theme="vaporwave"] {
  --bg:#241b43; --panel:#332653; --line:#9375c4; --text:#fff1fb; --muted:#e9d5f7;
  --accent:#ffbade; --ink:#401b3e; --shape:23px; --headline-style:italic;
  --image-filter:saturate(1.03) hue-rotate(307deg);
  --decoration:repeating-linear-gradient(0deg,#2a145b75 0 2px,transparent 2px 22px),repeating-linear-gradient(90deg,#42257280 0 2px,transparent 2px 29px),linear-gradient(145deg,#f594d099,#6ddff44f);
  --page-texture:radial-gradient(ellipse at top,#603b83,transparent 70%);
}
[data-theme="japanese-minimalism"] {
  color-scheme:light;
  --bg:#f4f2e8; --panel:#fcfaf2; --line:#969084; --text:#242725; --muted:#54564e;
  --accent:#993127; --ink:#fff5e9; --shape:0; --cover-ratio:1.6; --tracking:-.035em;
  --image-filter:grayscale(.74) saturate(.65);
  --decoration:radial-gradient(circle at 82% 26%,#9f3e34bd 0 8%,transparent 8.3%);
  --hero-columns:1.1fr 1fr;
}
[data-theme="acid-graphics"] {
  --bg:#1b2119; --panel:#292e20; --line:#91a65f; --text:#f3f8dd; --muted:#d9e6c4;
  --accent:#d5ff79; --ink:#232d13; --shape:2px; --typecase:uppercase;
  --image-filter:grayscale(.5) hue-rotate(53deg) contrast(1.26);
  --decoration:repeating-radial-gradient(ellipse at 15% 120%,#a6f047a8 0 1px,transparent 1px 12px),linear-gradient(130deg,#8fee6348,#243b2f88);
  --page-texture:repeating-linear-gradient(90deg,#c6ff5915 0 1px,transparent 1px 30px);
}
[data-theme="polish-poster"] {
  --bg:#29201f; --panel:#392c26; --line:#aa7d70; --text:#fff0db; --muted:#e3c3ab;
  --accent:#ffab94; --ink:#3b1b18; --shape:8px; --headline-style:italic; --cover-ratio:1.07;
  --image-filter:saturate(.75) sepia(.2) contrast(1.26);
  --decoration:radial-gradient(ellipse at 58% 48%,transparent 28%,#231812d1 90%),linear-gradient(25deg,#a23d30ac,transparent 65%);
  --texture:linear-gradient(173deg,transparent 85%,#813b2f88 85%);
}
[data-theme="dada-collage"] {
  color-scheme:light;
  --bg:#e9dfc8; --panel:#fff6e3; --line:#393331; --text:#261f1c; --muted:#52463c;
  --accent:#98283a; --ink:#fff; --frame:2px; --headline-style:italic;
  --image-filter:grayscale(.78) sepia(.28) contrast(1.25);
  --decoration:linear-gradient(145deg,#b49364da 0 22%,transparent 22%),linear-gradient(24deg,#533530c4 0 21%,transparent 21% 72%,#b44742b8 72%);
  --card-shadow:4px 4px 0 #a89a83;
}
[data-theme="glitch-art"] {
  --bg:#151b29; --panel:#222c3e; --line:#7396ac; --text:#f2fbff; --muted:#d0e1ee;
  --accent:#89f6fa; --ink:#153038; --shape:0; --typecase:uppercase;
  --image-filter:hue-rotate(19deg) contrast(1.2);
  --decoration:linear-gradient(0deg,transparent 0 21%,#f55d9a8c 21% 23%,transparent 23% 56%,#56edfb9c 56% 60%,transparent 60% 76%,#4c39ae9c 76% 80%,transparent 80%),repeating-linear-gradient(#15232ab8 0 1px,transparent 1px 5px);
  --hero-shadow:-4px 3px 0 #e96a9a,4px -3px 0 #6bdadf;
}
[data-theme="retro-futurism"] {
  color-scheme:light;
  --bg:#f7e4bf; --panel:#fff2d4; --line:#327175; --text:#183d3d; --muted:#4d5343;
  --accent:#9a3a1f; --ink:#fff3db; --frame:2px; --shape:24px; --headline-style:italic;
  --image-filter:sepia(.28) saturate(1.32);
  --decoration:radial-gradient(ellipse at 100% 20%,#397d78ae 0 18%,transparent 18.4%),linear-gradient(165deg,transparent 0 72%,#c66d3a90 72% 74%,#f2c879bb 74% 79%,transparent 79%);
  --hero-shadow:5px 5px 0 #327175; --card-shadow:3px 3px 0 #c89454;
}

:is([data-theme="swiss-style"],[data-theme="japanese-minimalism"]) .work-copy { padding-block:17px; }
:is([data-theme="art-deco"],[data-theme="polish-poster"]) .hero-copy { text-align:center; }
:is([data-theme="art-deco"],[data-theme="polish-poster"]) .hero-copy > p { margin-inline:auto; }
:is([data-theme="art-deco"],[data-theme="polish-poster"]) .eyebrow { justify-content:center; }
[data-theme="art-deco"] .hero::after { border-inline-start-style:double; }
:is([data-theme="neon-punk"],[data-theme="glitch-art"],[data-theme="acid-graphics"]) h1 { overflow-wrap:anywhere; }
[data-theme="neon-punk"] h1 em { text-shadow:0 0 18px #f450ba9c; }
[data-theme="glitch-art"] h1 em { text-shadow:2px 0 #a33069; }
[data-theme="psychedelic"] .story { padding-inline:24px; }
[data-theme="dada-collage"] .work:nth-child(2n) .cover { object-position:72% 52%; }
[data-theme="duotone"] .work-detail { background:var(--picture-base); }
[data-theme="duotone"] .cover { mix-blend-mode:luminosity; }
[data-theme="duotone"] .work-copy { background:var(--panel); }

@media (max-width:850px) {
  :where(:root[data-theme]:not([data-theme="original"])) h1 { font-size:clamp(2.3rem,7.4vw,4rem); }
}
@media (max-width:600px) {
  :where(:root[data-theme]:not([data-theme="original"])) .hero { grid-template-columns:minmax(0,1fr); min-height:0; }
  :where(:root[data-theme]:not([data-theme="original"])) .hero-copy { padding:25px 18px 23px; }
  :where(:root[data-theme]:not([data-theme="original"])) h1 { font-size:clamp(2.35rem,10vw,3.5rem); }
  :where(:root[data-theme]:not([data-theme="original"])) .hero::after {
    grid-column:1; grid-row:2; min-height:clamp(110px,34vw,205px);
    border-inline-start:0; border-top:var(--frame) solid var(--line);
  }
}

[data-theme="original"] {
  --bg:#111923; --panel:#182430; --line:#394653; --accent:#ffcb8b; --design-radius:8px;
  --preview-art:url("assets/studio-hero.webp");
}
:where(:root[data-theme]:not([data-theme="original"])) .hero::after {
  background-image:var(--decoration),var(--hero-art,url("assets/hero.webp"));
}
.theme-swatch { background-size:cover; }
.theme-tile .theme-swatch {
  background:var(--preview-art,var(--decoration,none)),var(--bg);
  background-position:center; background-size:cover;
  box-shadow:inset 0 -4px 0 var(--accent);
}

[data-theme="bauhaus"] {
  --preview-art:url("assets/bauhaus-hero.webp");
  --hero-art:var(--preview-art); --hero-columns:.91fr 1.09fr; --design-radius:2px;
}
[data-theme="bauhaus"] .hero::after { --decoration:none; --image-filter:none; }
[data-theme="bauhaus"] :is(.work,.story) { border-top:4px solid var(--accent); }
[data-theme="bauhaus"] :is(.work,.story):nth-child(3n + 2) { border-top-color:#174676; }
[data-theme="bauhaus"] :is(.work,.story):nth-child(3n) { border-top-color:#b97d0e; }

[data-theme="retro-futurism"] {
  --preview-art:url("assets/retro-hero.webp"); --hero-art:var(--preview-art);
  --hero-columns:.92fr 1.08fr; --design-radius:22px;
}
[data-theme="retro-futurism"] .hero::after { --decoration:none; --image-filter:none; }
[data-theme="retro-futurism"] .work-copy { border-top:3px double var(--line); }

[data-theme="japanese-minimalism"] {
  --preview-art:url("assets/japanese-hero.webp"); --hero-art:var(--preview-art);
  --hero-columns:1fr 1.05fr; --design-radius:2px;
}
[data-theme="japanese-minimalism"] .hero::after { --decoration:none; --image-filter:none; border:0; }
[data-theme="japanese-minimalism"] .hero { --hero-bg:#f7f4e8; }
[data-theme="japanese-minimalism"] .work { background:transparent; }
[data-theme="japanese-minimalism"] .work-copy { padding-inline:12px; }

[data-theme="art-deco"] {
  --hero-columns:1fr 1.04fr; --design-radius:2px;
  --texture:linear-gradient(135deg,#f3cf7927,transparent 20% 80%,#f3cf7927);
}
[data-theme="art-deco"] .hero-copy { margin-inline:15px; border:3px double var(--line); }
[data-theme="art-deco"] .story { border-style:double; }

:is([data-theme="neon-punk"],[data-theme="duotone"],[data-theme="vaporwave"],[data-theme="glitch-art"]) {
  --hero-art:url("assets/studio-hero.webp"); --design-radius:var(--shape);
}
[data-theme="neon-punk"] .work { box-shadow:0 0 18px #a354f838; }

:is([data-theme="constructivism"],[data-theme="dada-collage"],[data-theme="op-art"]) .hero {
  grid-template-columns:.93fr 1.07fr;
}
:is([data-theme="constructivism"],[data-theme="dada-collage"],[data-theme="op-art"]) .hero-copy { grid-column:2; }
:is([data-theme="constructivism"],[data-theme="dada-collage"],[data-theme="op-art"]) .hero::after {
  grid-column:1; border-inline-start:0; border-inline-end:var(--frame) solid var(--line);
}
:is([data-theme="mid-century"],[data-theme="pop-art"]) { --hero-art:url("assets/retro-hero.webp"); }
:is([data-theme="risograph"],[data-theme="swiss-style"]) { --hero-art:url("assets/bauhaus-hero.webp"); }
[data-theme="swiss-style"] .hero-copy { border-top:3px solid var(--accent); }
[data-theme="swiss-style"] .catalog .section-lead { border-bottom:1px solid var(--line); padding-bottom:12px; }

@media (max-width:600px) {
  :is([data-theme="constructivism"],[data-theme="dada-collage"],[data-theme="op-art"]) .hero { grid-template-columns:minmax(0,1fr); }
  :is([data-theme="constructivism"],[data-theme="dada-collage"],[data-theme="op-art"]) .hero-copy { grid-column:1; }
  :is([data-theme="constructivism"],[data-theme="dada-collage"],[data-theme="op-art"]) .hero::after { border-inline-end:0; }
  [data-theme="art-deco"] .hero-copy { margin:14px; padding-inline:13px; }
}

/* Farbdarstellung ist unabhängig vom gewählten Design. */
.color-options { display:flex; gap:4px; white-space:nowrap; }
.color-options button { color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:var(--design-radius,8px); padding:8px 10px; cursor:pointer; }
.color-options button[aria-pressed="true"] { color:var(--ink); background:var(--accent); border-color:var(--accent); }
:root[data-color="hell"] { color-scheme:light; --bg:#faf7ef; --panel:#fff; --line:#777e7b; --text:#1c2928; --muted:#495753; --accent:#8a351d; --ink:#fff; }
:root[data-color="dunkel"] { color-scheme:dark; --bg:#111b21; --panel:#203037; --line:#8ba4a1; --text:#f6f5e9; --muted:#d1dfdb; --accent:#ffca87; --ink:#20251e; }
@media(max-width:850px) { .theme-inner { grid-template-columns:minmax(0,1fr) auto; } .color-options { grid-row:2; grid-column:1 / -1; padding-bottom:8px; } }
@media (min-width:851px) { .theme-inner { grid-template-columns:minmax(0,1fr) auto auto; } }
