/* Collection 01: complete themes layered over the shared components. */
:root[data-theme="cupertino"] {
  color-scheme: light;
  --bg: #f5f5f7; --surface: #fff; --surface-2: #eeeef2; --surface-3: #dddde3;
  --text: #1d1d1f; --text-2: #515158; --muted: #67676e; --invert: #fff;
  --border: #dedee3; --border-strong: #a7a7b0;
  --brand: #0066cc; --brand-ink: #fff; --brand-soft: #e5effa;
  --good: #237344; --warn: #865c0b; --serious: #a34421; --signal: #bb2e28;
  --good-soft: #e5f2e9; --warn-soft: #f5ecd6; --serious-soft: #f7e8df; --crit-soft: #fbe8e6;
  --radius: 22px; --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --serif: var(--font);
}
:root[data-theme="keynote"] {
  color-scheme: dark;
  --bg: #08090b; --surface: #15171b; --surface-2: #1d2026; --surface-3: #30343c;
  --text: #f5f5f7; --text-2: #bfc2cb; --muted: #a0a6b2; --invert: #08090b;
  --border: #30343c; --border-strong: #626b7b;
  --brand: #80bfff; --brand-ink: #071d36; --brand-soft: #162b42;
  --good: #85d7a4; --warn: #e6bd70; --serious: #ffb08a; --signal: #ff928d;
  --good-soft: #152e23; --warn-soft: #322a1a; --serious-soft: #39271e; --crit-soft: #381e22;
  --radius: 22px; --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --serif: var(--font);
}
:root[data-theme="atelier"] {
  color-scheme: light;
  --bg: #f3efe5; --surface: #faf7f0; --surface-2: #e9e2d4; --surface-3: #d5cbb9;
  --text: #28251f; --text-2: #5f574b; --muted: #716658; --invert: #faf7f0;
  --border: #c9bfad; --border-strong: #8a7c65;
  --brand: #ad3723; --brand-ink: #fffaf0; --brand-soft: #f3dfd2;
  --good: #416235; --warn: #815b16; --serious: #9d4120; --signal: #a32922;
  --good-soft: #e2e8d7; --warn-soft: #f0e6c9; --serious-soft: #f2dfcd; --crit-soft: #f2dcd5;
  --radius: 2px; --radius-sm: 2px;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
}
:root:is([data-theme="cupertino"], [data-theme="keynote"], [data-theme="atelier"]) {
  --accent: var(--brand); --accent-2: var(--brand); --accent-soft: var(--brand-soft);
  --crit: var(--signal); --grain-opacity: 0;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .brand__name {
  font-family: var(--font); font-style: normal; font-size: 24px; font-weight: 600; letter-spacing: -.07em;
}
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .brand__mark { width: 25px; height: 25px; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .sidebar { background: var(--bg); }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .nav a { border-radius: 12px; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero {
  display: block; text-align: center; padding: 54px 24px 42px;
}
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero__eyebrow { justify-content: center; letter-spacing: .12em; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero h1 {
  max-width: 1000px; margin: 0 auto; font: 600 clamp(40px, 5.5vw, 78px)/1.05 var(--font); letter-spacing: -.065em; text-wrap: balance;
}
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero .grad { font-style: normal; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero p { margin: 24px auto 0; max-width: 590px; font-size: 15px; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero__actions { justify-content: center; margin-top: 28px; gap: 12px; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero__side { display: none; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .btn { border-radius: 99px; padding-inline: 20px; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .icon-btn { border-radius: 50%; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .grid--kpi { gap: 18px; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .kpi { padding: 24px; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .kpi__value { font-size: 40px; letter-spacing: -.06em; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .card--pad { padding: 28px; }
:root[data-theme="cupertino"] .card { border-color: transparent; box-shadow: 0 3px 18px #1d1d1f06; }
:root[data-theme="cupertino"] .grid--kpi > .card { border-color: transparent; }
:root[data-theme="cupertino"] .topbar { background: #f5f5f7; }
:root[data-theme="keynote"] .hero .grad { color: var(--brand); }
:root[data-theme="keynote"] .topbar { background: #08090b; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .section-title h2 { font-size: 21px; font-weight: 600; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .callout { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
:root[data-theme="atelier"] .hero { padding: 32px 0; border-bottom: 1px solid var(--border-strong); }
:root[data-theme="atelier"] .hero h1 { font-size: clamp(48px, 6.8vw, 92px); letter-spacing: -.045em; }
:root[data-theme="atelier"] .hero__side, :root[data-theme="atelier"] .hero__side .ring { display: flex; }
:root[data-theme="atelier"] .hero__side .ring__value { stroke: var(--brand); }
:root[data-theme="atelier"] .brand__name { font-size: 34px; }
:root[data-theme="atelier"] .btn, :root[data-theme="atelier"] .nav a, :root[data-theme="atelier"] .callout { border-radius: 2px; }
:root[data-theme="atelier"] .nav a.is-active { color: var(--brand-ink); background: var(--brand); }
:root[data-theme="atelier"] .section-title h2 { font: 400 30px var(--serif); }
:root[data-theme="atelier"] .kpi__value { font-family: var(--serif); font-weight: 400; font-size: 48px; }
:root[data-theme="atelier"] .workspace-link { border-color: var(--border-strong); }
:root:is([data-theme="cupertino"], [data-theme="keynote"], [data-theme="atelier"]) .connect__art {
  background: var(--bg); color: var(--text); --text: inherit; --muted: inherit; --border: inherit;
  border-color: var(--border);
}
:root:is([data-theme="cupertino"], [data-theme="keynote"], [data-theme="atelier"]) .connect__art .brand__name { color: var(--text) !important; }
:root:is([data-theme="cupertino"], [data-theme="keynote"], [data-theme="atelier"]) .connect__art h1 .grad,
:root:is([data-theme="cupertino"], [data-theme="keynote"], [data-theme="atelier"]) .connect__art .brand__mark,
:root:is([data-theme="cupertino"], [data-theme="keynote"], [data-theme="atelier"]) .feature b { color: var(--brand); }
:root:is([data-theme="cupertino"], [data-theme="keynote"], [data-theme="atelier"]) .connect__art p,
:root:is([data-theme="cupertino"], [data-theme="keynote"], [data-theme="atelier"]) .feature span,
:root:is([data-theme="cupertino"], [data-theme="keynote"], [data-theme="atelier"]) .connect__top { color: var(--text-2); }
:root:is([data-theme="cupertino"], [data-theme="keynote"], [data-theme="atelier"]) .features { background: var(--bg); border-color: var(--border); }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .connect__art h1 { font-weight: 600; font-size: clamp(50px, 5.4vw, 82px); line-height: 1.02; letter-spacing: -.06em; }
:root:is([data-theme="cupertino"], [data-theme="keynote"]) .connect__art h1 .grad { font-style: normal; }
.theme-studio { padding: 16px 0 28px; }
.theme-studio h1 { font: 600 clamp(42px, 5.5vw, 72px)/1.05 var(--font); letter-spacing: -.065em; }
.theme-studio h1 em { font-style: normal; color: var(--brand); }
:root[data-theme="atelier"] .theme-studio h1 { font: 400 clamp(50px, 6vw, 82px)/1 var(--serif); }
:root[data-theme="atelier"] .theme-studio h1 em { font-style: italic; }
.theme-studio > p { max-width: 540px; margin: 22px 0 32px; color: var(--text-2); line-height: 1.7; }
.theme-grid--signature { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.theme-grid--signature .theme-card { border-radius: 16px; border: 1px solid var(--border); }
.theme-grid--signature .theme-card__art { aspect-ratio: 1.5; }
.theme-card__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.theme-card__selection { color: var(--muted); font-size: 11px; font-weight: 400; }
.theme-card.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.theme-card.is-on .theme-card__selection { color: var(--brand); font-weight: 600; }
.theme-grid--signature .theme-card__meta { padding: 20px; gap: 10px; }
.theme-grid--signature .theme-card__meta b { font-size: 17px; letter-spacing: -.03em; }
.theme-grid--signature .theme-card__meta small { display: block; font-size: 12px; line-height: 1.7; }
.theme-card:is([data-theme-id="cupertino"], [data-theme-id="keynote"]) .tc-title { font: 600 clamp(16px, 1.7vw, 25px)/1.05 -apple-system, BlinkMacSystemFont, 'Inter', sans-serif; letter-spacing: -.055em; text-align: center; }
.theme-card:is([data-theme-id="cupertino"], [data-theme-id="keynote"]) .tc-main { align-items: stretch; padding: 20px 12px 12px; gap: 16px; }
.theme-card:is([data-theme-id="cupertino"], [data-theme-id="keynote"]) .tc-row { border: 0; border-radius: 9px; }
.theme-card:is([data-theme-id="cupertino"], [data-theme-id="keynote"]) .tc-ring { border-color: var(--t-signal); border-left-color: var(--t-bg); }
.theme-card[data-theme-id="atelier"] .tc-title { font: italic 400 27px/1 'Instrument Serif', serif; color: var(--t-signal); }
.theme-card[data-theme-id="atelier"] .tc-row { border-radius: 0; }
.classic-themes { margin-top: 28px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.classic-themes > summary { cursor: pointer; color: var(--text-2); font-size: 13px; min-height: 44px; padding: 12px 0; }
.classic-themes .theme-grid { margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .theme-card { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
  .theme-card:hover { transform: translateY(-4px); }
  :root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero h1 { animation: rise .65s var(--ease) both; }
}
@media (max-width: 1100px) {
  .theme-grid--signature { gap: 12px; }
  .theme-grid--signature .theme-card__meta { padding: 14px; }
}
@media (max-width: 860px) {
  :root:is([data-theme="cupertino"], [data-theme="keynote"]) .sidebar { background: var(--surface); }
  :root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero { padding: 32px 0 24px; }
  :root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero h1 { font-size: clamp(38px, 7vw, 58px); }
  :root:is([data-theme="cupertino"], [data-theme="keynote"]) .hero p { font-size: 14px; margin-top: 20px; }
  :root:is([data-theme="cupertino"], [data-theme="keynote"]) .kpi { padding: 18px; }
  :root:is([data-theme="cupertino"], [data-theme="keynote"]) .kpi__value { font-size: 32px; }
  :root:is([data-theme="cupertino"], [data-theme="keynote"]) .grid--kpi { gap: 12px; }
  :root:is([data-theme="cupertino"], [data-theme="keynote"]) .card--pad { padding: 20px; }
  :root[data-theme="atelier"] .hero__side { display: none; }
  :root[data-theme="atelier"] .hero h1 { font-size: 58px; }
  .theme-grid--signature { grid-template-columns: 1fr; gap: 20px; }
  .theme-grid--signature .theme-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .theme-grid--signature .theme-card__art { height: 100%; min-height: 160px; aspect-ratio: auto; border-bottom: 0; }
  .theme-grid--signature .theme-card__meta { justify-content: center; padding: 16px; }
  .theme-grid--signature .tc-main { padding: 18px 8px; gap: 14px; }
  .theme-grid--signature .tc-side { padding: 14px 5px; }
  .theme-grid--signature .tc-title { font-size: 18px; }
  .theme-grid--signature .tc-row { padding: 5px; }
  .theme-studio h1 { font-size: 48px; }
}
