/* AEON · Scene Views. Überträgt die „Heute“-Designsprache (dunkles Medizingerät-Glas, 1px Lichtkante,
   24px Radius, Amber #E9A35B, JetBrains Mono Etiketten, tabellarische Zahlen) auf ALLE Unteransichten
   (#plan, #koerper, #essen, #schlaf, #form, #verlauf, #mehr, Saison, Ironman, Dialoge). */

:root {
  --sc-bg: #050506;
  --sc-glass: rgba(17, 18, 17, .54);
  --sc-glass-hi: rgba(24, 25, 24, .68);
  --sc-tile: rgba(255, 255, 255, .055);
  --sc-tile-hover: rgba(255, 255, 255, .09);
  --sc-hairline: inset 0 0 0 1px rgba(255, 255, 255, .095), inset 0 1px 0 0 rgba(255, 255, 255, .14);
  --sc-tile-line: inset 0 0 0 1px rgba(255, 255, 255, .065);
  --sc-shadow: 0 22px 56px -22px rgba(0, 0, 0, .72);
  --sc-accent: var(--accent, #E9A35B);
  --sc-accent-soft: rgba(233, 163, 91, .16);
  --sc-ink: #1a1206;
  --sc-text: #F5F5F7;
  --sc-text-2: rgba(245, 245, 247, .60);
  --sc-text-3: rgba(245, 245, 247, .38);
  --sc-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sc-ease: cubic-bezier(.23, 1, .32, 1);
}

/* ── Ruhige atmosphärische Tiefe auf allen Tabs außerhalb der 3D-Bühne ── */
html.shell:not(.dash-on) body {
  background-color: var(--sc-bg) !important;
  background-image:
    radial-gradient(65vmax 42vmax at 82% -8%, rgba(233, 163, 91, .13), transparent 70%),
    radial-gradient(50vmax 38vmax at 12% 105%, rgba(233, 163, 91, .06), transparent 72%);
  background-attachment: fixed;
}

/* ── Alte doppelte Seitenköpfe beruhigen & Typografie vereinheitlichen ── */
html.shell main.app header.top h1,
html.shell .shell > h1 {
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: -.04em !important;
  font-size: clamp(28px, 4.4vw, 44px) !important;
  color: var(--sc-text) !important;
}

html.shell main.app :is(.eyebrow, .kicker, .cap, .sec-title, .group-title, th) {
  font-family: var(--sc-mono) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
  color: var(--sc-text-3) !important;
}

html.shell :is(.num, .big, .stat b, td, input[type="number"], time) {
  font-variant-numeric: tabular-nums;
}

/* ── Glas-Karten überall wie auf „Heute“ (.dg) ── */
html.shell main.app :is(
  .card,
  .panel,
  .weekboard,
  .aeon-cockpit,
  .ironman-card,
  .swim-hero,
  .diag-hero,
  .goal-coach-card,
  .rp-hero,
  .ss-glass,
  dialog.aeon-compose-dialog
) {
  background: var(--sc-glass) !important;
  -webkit-backdrop-filter: blur(26px) saturate(165%) !important;
  backdrop-filter: blur(26px) saturate(165%) !important;
  border: 0 !important;
  border-radius: 24px !important;
  box-shadow: var(--sc-hairline), var(--sc-shadow) !important;
  color: var(--sc-text);
}

/* ── Verschachtelte Kacheln flacher (.dgi), kein doppelter Blur ── */
html.shell main.app :is(
  .card .card,
  .panel .panel,
  .stat,
  .ftp-step,
  .blk-explain__item,
  .week-day,
  .day-col,
  .act,
  .vital
) {
  background: var(--sc-tile) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: var(--sc-tile-line) !important;
}

/* ── Knöpfe, Pillen & Segmente konsistent in Amber & Glas ── */
html.shell :is(.btn, button.action, a.action, .go-back, .back) {
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, .08) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09) !important;
  color: var(--sc-text) !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -.01em;
  transition: transform .16s var(--sc-ease), background-color .2s, box-shadow .2s !important;
}
html.shell :is(.btn, button.action, a.action, .go-back, .back):hover {
  background: rgba(255, 255, 255, .13) !important;
}
html.shell :is(.btn, button.action, a.action, .go-back, .back):active {
  transform: scale(.97);
}
html.shell :is(.btn.primary, button.primary, a.primary) {
  background: var(--sc-accent) !important;
  color: var(--sc-ink) !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 24px rgba(233, 163, 91, .30) !important;
}
html.shell :is(.btn.ghost, .btn.sm.ghost) {
  background: rgba(255, 255, 255, .05) !important;
}

/* ── Chips & Status-Badges ── */
html.shell :is(.chip, .tag) {
  border-radius: 999px !important;
  border: 0 !important;
  padding: 3px 9px !important;
  background: rgba(255, 255, 255, .08) !important;
  color: var(--sc-text-2) !important;
  font: 500 11px/1.3 Inter, system-ui, sans-serif !important;
}
html.shell :is(.chip.accent, .tag.accent) {
  background: var(--sc-accent-soft) !important;
  color: var(--sc-accent) !important;
}

/* ── Formularfelder & Dropdowns im Medizingerät-Stil ── */
html.shell :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background: rgba(255, 255, 255, .055) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10) !important;
  border-radius: 14px !important;
  color: var(--sc-text) !important;
  padding: 10px 13px;
  transition: box-shadow .2s var(--sc-ease), background-color .2s;
}
html.shell :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
  outline: none !important;
  background: rgba(255, 255, 255, .085) !important;
  box-shadow: inset 0 0 0 1.5px var(--sc-accent), 0 0 0 3px rgba(233, 163, 91, .16) !important;
}

/* ── Fortschrittsbalken in warmem Amber statt Alt-Blau/Türkis ── */
html.shell :is(.bar > i, .bd-bar > i, .track > i, progress::-webkit-progress-value) {
  background: linear-gradient(90deg, #F3C99A, var(--sc-accent)) !important;
  border-radius: 999px !important;
}

/* ── Dezenter Offline-Hinweis oben, wenn Cache aktiv ist ── */
html[data-offline="1"] .sh-top::after {
  content: "OFFLINE · CACHE";
  font: 500 10px/1 var(--sc-mono);
  letter-spacing: .08em;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(233, 163, 91, .16);
  color: var(--sc-accent);
  box-shadow: inset 0 0 0 1px rgba(233, 163, 91, .28);
  white-space: nowrap;
}
