.header-inner { column-gap: clamp(10px, 2vw, 24px); }
.theme-select, .archive-search button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--subtle);
  color: var(--ink);
  white-space: nowrap;
}
.theme-select { flex: none; font-size: 14px; cursor: pointer; }
.brand-mark { border-radius: 8px; }
.archive-search { margin: 0 0 18px; }
.archive-search label { display: block; margin-bottom: 8px; font-weight: 700; }
.archive-search-row { display: flex; gap: 8px; }
.archive-search input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
}
.archive-search input::placeholder { color: var(--muted); }
.archive-search-empty { margin-top: 0; }

@media (max-width: 650px) {
  .top-nav { order: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .theme-select { font-size: 16px; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151719;
  --subtle: #202327;
  --ink: #edf0f2;
  --muted: #b3bac0;
  --line: #383e44;
  --orange-dark: #ffab78;
  --red: #ff9e9d;
}
:is([data-theme="dark"], [data-theme="eye"]) :is(body, .site-header, .reading-toolbar) { background: var(--bg); }
:is([data-theme="dark"], [data-theme="eye"]) :is(.home-feature, .player) { border: 1px solid var(--line); }
:is([data-theme="dark"], [data-theme="eye"]) :is(.episode-card, .chapter-card, .listen-from, .back-top, .modal,
  .modal-close, .modal select, .modal input, .modal textarea, .archive-toolbar select) {
  background: var(--subtle);
  color: var(--ink);
  border-color: var(--line);
}
:is([data-theme="dark"], [data-theme="eye"]) :is(.top-nav a, .top-nav button, .eyebrow, .section-kicker, .text-link,
  .home-intro p, .home-footnote, .episode-card .episode-date, .episode-card p, .episode-bottom,
  .archive-head p, .archive-toolbar label, .archive-count span, .empty-notice p,
  .page-back, .page-back a, .lede, .meta, .chapter-heading span, .chapter-card .number,
  .chapter-card .start, .listening-note, .section-aside, .source-list a, .source-list p,
  .source-disclaimer, .footer-identity p, .footer-links a, .footer-links button, .site-footer small,
  .modal-description, .reading-hint) { color: var(--muted); }
:is([data-theme="dark"], [data-theme="eye"]) :is(.episode-bottom strong, .article-text p, .prologue-body,
  .prologue-body .prologue-closing, .transcript-subheading, .reading-label, .empty-notice) { color: var(--ink); }
[data-theme="dark"] :is(.pill-accent, .resume-bar button, .reading-toolbar .reading-follow[aria-pressed="true"]) {
  background: #422b20;
  border-color: #815437;
  color: var(--orange-dark);
}
[data-theme="dark"] :is(.top-nav a.active, .top-nav a:hover, .top-nav button:hover, .back-top:hover) {
  background: #30353b;
  color: var(--ink);
}
:is([data-theme="dark"], [data-theme="eye"]) :is(.reading-toolbar, .resume-bar, .empty-notice) { border-color: var(--line); }
:is([data-theme="dark"], [data-theme="eye"]) .reading-toolbar button:not(.reading-play):not([aria-pressed="true"]) {
  background: var(--subtle);
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] .chapter-card.active { background: #34251d; border-color: var(--orange); }
[data-theme="dark"] :is(.chapter-card.active .number, .reading-current, .paragraph-listen, .form-help) { color: var(--orange-dark); }
[data-theme="dark"] .transcript-fragment.is-reading { background: #694022; color: #fff0dc; }
[data-theme="dark"] .copy-result { color: #a1d9b0; }
[data-theme="dark"] .copy-submit { background: #393f45; }
:is([data-theme="dark"], [data-theme="eye"]) .analytics-notice { color: var(--muted) !important; }

.contact-choices { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.contact-choices legend { padding: 0 0 8px; font-size: 14px; font-weight: 700; }
.contact-choices-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.contact-choices button {
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--subtle);
  color: var(--ink);
  font-weight: 700;
}
.contact-choices button[aria-pressed="true"] { border-color: var(--orange-dark); color: var(--orange-dark); }

:root[data-theme="eye"] {
  color-scheme: light;
  --bg: #edf2e8;
  --subtle: #f5f7ee;
  --ink: #253223;
  --muted: #4b5a46;
  --line: #c8d5c1;
  --orange-dark: #934319;
  --red: #9f3030;
}
[data-theme="eye"] :is(.home-feature, .player) { background: #273329; }
[data-theme="eye"] :is(.top-nav a.active, .top-nav a:hover, .top-nav button:hover, .back-top:hover) {
  background: #dfe9d8;
  color: var(--ink);
}
[data-theme="eye"] :is(.pill-accent, .resume-bar button, .chapter-card.active, .reading-toolbar .reading-follow[aria-pressed="true"]) {
  background: #e1ebd9;
  border-color: #84967a;
  color: #364c30;
}
[data-theme="eye"] :is(.chapter-card.active .number, .reading-current, .paragraph-listen, .form-help) { color: #40583a; }
[data-theme="eye"] .transcript-fragment.is-reading { background: #d7e6c8; color: #2b4124; }
