/* Shared controls and final publication layout. */
:root { color-scheme: light; --muted: #586b63; }
.header-inner { gap: 24px; }
.header-controls { display: flex; align-items: center; gap: 8px; order: 3; }
nav { margin-left: auto; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--ink); font-size: 11px; white-space: nowrap; }
.theme-toggle:hover { background: var(--mint); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
.inline-link { text-decoration: underline; text-underline-offset: 3px; }
.contact-email { color: #e0f2e7; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.closing-actions { align-items: center; }
.closing-actions>span { font-size: 10px; max-width: 260px; }
.not-found { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 25px; padding-block: 48px; }
.not-found h1 { font-size: clamp(36px,5vw,64px); }
.not-found>p:not(.eyebrow) { max-width: 550px; color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Light mode: strengthen secondary copy while retaining the original palette. */
.eyebrow, .feature-grid .pain-label, .hero-footnote, .visual-caption, footer small { color: #536b60; }
.dash-top, .dash-greeting small, .dash-stats span, .dash-stats small, .calendar-heading>span, .week>span, .appointment time, .appointment-card small, .dash-caption { color: #566b5e; }
.now-line { color: #526d5b; }
.audience-tabs span, summary span { color: #416650; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf6f0;
  --green: #63d7c5;
  --muted: #b5c9bf;
  --line: #38544a;
  --cream: #101e1b;
  --mint: #243f34;
  --white: #192c26;
}
[data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .site-header { background: rgba(16,30,27,.97); border-color: var(--line); }
[data-theme="dark"] nav>a { color: #d3e5db; }
[data-theme="dark"] .button-outline { border-color: #718c7f; }
[data-theme="dark"] .button-outline:hover { background: #263f35; }
[data-theme="dark"] .button-primary { background: #a5d8b8; color: #102f24; box-shadow: none; }
[data-theme="dark"] .button-primary:hover { background: #bee8cd; }
[data-theme="dark"] .hero h1 em { color: #a5d8b8; }
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .feature-grid .pain-label,
[data-theme="dark"] .hero-footnote,
[data-theme="dark"] .visual-caption,
[data-theme="dark"] footer small { color: #adc7b8; }
[data-theme="dark"] .tiny-check { color: #a5d8b8; }
[data-theme="dark"] .line { background: #92b9a0; }
[data-theme="dark"] .hero-visual:before { background: radial-gradient(ellipse,#28493a 0%,#182f24 40%,transparent 72%); }
[data-theme="dark"] .orbit { border-color: #2f4a3e; }
[data-theme="dark"] .dashboard { background: #1a2d26; border-color: #486454; box-shadow: 0 24px 65px #0003; }
[data-theme="dark"] .dash-sidebar { background: #0b2822; color: #c3dece; }
[data-theme="dark"] .dash-user { background: #344d3b; color: #d4ead9; }
[data-theme="dark"] .dash-top,
[data-theme="dark"] .dash-greeting small,
[data-theme="dark"] .dash-stats span,
[data-theme="dark"] .dash-stats small,
[data-theme="dark"] .calendar-heading>span,
[data-theme="dark"] .week>span,
[data-theme="dark"] .appointment time,
[data-theme="dark"] .appointment-card small,
[data-theme="dark"] .dash-caption { color: #bacdbf; }
[data-theme="dark"] .sun { color: #c6d4a6; }
[data-theme="dark"] .dash-stats { border-color: #3a5142; }
[data-theme="dark"] .dash-stats>div { background: #263b2e; }
[data-theme="dark"] .calendar-heading b, [data-theme="dark"] .week b { color: #e3eee4; }
[data-theme="dark"] .week .selected { background: #a5d8b8; color: #244332; }
[data-theme="dark"] .week .selected b { color: #153225; }
[data-theme="dark"] .appointment-card { background: #2c3e2e; border-color: #afd096; }
[data-theme="dark"] .appointment-card.mint { background: #233d33; border-color: #8dc2ab; }
[data-theme="dark"] .appointment-card.sand { background: #3b3929; border-color: #cdbb87; }
[data-theme="dark"] .initials { background: #4b6040; color: #f1f5e6; }
[data-theme="dark"] .mint .initials { background: #3a6152; color: #e7fff0; }
[data-theme="dark"] .sand .initials { background: #605635; color: #fcf2d6; }
[data-theme="dark"] .status { background: #3b5942; color: #e1f4de; }
[data-theme="dark"] .status.pending { background: #5b502c; color: #f9edc7; }
[data-theme="dark"] .now-line { color: #adc7b8; }
[data-theme="dark"] .now-line i { background: #668873; }
[data-theme="dark"] .solution-link { color: #a5d8b8; }
[data-theme="dark"] .audience-section { background: #172b23; }
[data-theme="dark"] .audience-tabs button[aria-selected=true] { background: #294536; border-color: #6b9079; box-shadow: none; }
[data-theme="dark"] .audience-tabs button:hover { background: #263f33; }
[data-theme="dark"] .audience-tabs span { color: #b5d9be; }
[data-theme="dark"] .audience-panel { background: #1b3027; border-color: #42634f; }
[data-theme="dark"] .module-points { color: #d1e5d8; }
[data-theme="dark"] .module-points li:before, [data-theme="dark"] summary span { color: #a5d8b8; }
[data-theme="dark"] .closing { background: #1c4339; border: 1px solid #496e5b; }
[data-theme="dark"] .closing .eyebrow { color: #c5e0ce; }
[data-theme="dark"] .closing p:not(.eyebrow), [data-theme="dark"] .closing-actions>span { color: #c4ddcd; }
[data-theme="dark"] .button-light { color: #153b2d; }
[data-theme="dark"] .skip { background: #203b2f; color: #edf6f0; }
[data-theme="dark"] :is(a,button,summary,[tabindex]):focus-visible { outline-color: #83e7cf; }

@media(max-width:1100px) {
  .header-inner { gap: 16px; }
  .theme-label { display: none; }
}
@media(max-width:850px) {
  nav { gap: 14px; }
  .header-login { margin-left: 0; padding: 12px; }
  .header-inner { gap: 12px; }
  .closing-actions { max-width: 260px; }
}
@media(max-width:600px) {
  .header-inner { gap: 8px; }
  .header-controls { gap: 2px; margin-left: auto; }
  .theme-toggle { border: 0; padding: 10px; }
  .brand { font-size: 23px; gap: 7px; }
  .brand img { width: 32px; height: 32px; }
  .closing-actions { align-items: flex-start; max-width: 100%; }
  .contact-email { font-size: 11px; }
  .closing-actions>span { text-align: left; margin-left: 0; }
}
