/* AstroCEO - night-sky theme for the app, matching the landing page. Loaded after app.css. */
:root, html[lang] {
  --bg: #070A18; --surface: #121833; --surface-2: #0D1228; --line: #262E52;
  --fg: #F1EDE2; --muted: #A4A9BF; --faint: #6F7693;
  --accent: #E0B15A; --accent-soft: #2E2718; --teal: #5FC0B8; --on-accent: #1A1405;
  --great: #5BD19A; --good: #9BCB6C; --mixed: #E7AE45; --bad: #F0806A;
  --great-bg: #14342A; --good-bg: #233420; --mixed-bg: #3A2F18; --bad-bg: #3C211C;
  color-scheme: dark;
}
html { background: #070A18 }
body {
  font-size: 16px; min-height: 100vh; background-color: #070A18; background-attachment: fixed;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #DDE3FF 50%, transparent 51%), radial-gradient(1px 1px at 31% 64%, #DDE3FF 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 47% 9%, #F4D58A 50%, transparent 51%), radial-gradient(1px 1px at 58% 41%, #DDE3FF 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 69% 77%, #DDE3FF 50%, transparent 51%), radial-gradient(1px 1px at 83% 23%, #DDE3FF 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 91% 58%, #F4D58A 50%, transparent 51%), radial-gradient(1px 1px at 22% 88%, #DDE3FF 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 49%, #DDE3FF 50%, transparent 51%), radial-gradient(1.1px 1.1px at 76% 94%, #DDE3FF 50%, transparent 51%),
    radial-gradient(60% 40% at 80% 0%, rgba(224, 177, 90, .10), transparent 70%), radial-gradient(50% 40% at 0% 30%, rgba(74, 92, 190, .14), transparent 70%);
}
header.bar { background: rgba(9, 12, 28, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px) }
.panel, .authbox .panel { background: linear-gradient(180deg, rgba(22, 29, 62, .92), rgba(14, 19, 42, .92)); border-radius: 18px; padding: 20px }
.panel h2, .hero h2, .monthhead h2 { font-family: var(--display); font-weight: 400 }
.btn, .datenav button, .datenav input, select, .field input, .field select { border-radius: 10px; background: #0D1228 }
.btn.primary { background: linear-gradient(135deg, #E0B15A, #F4D58A); border-color: transparent; color: #1A1405; box-shadow: 0 8px 28px rgba(224, 177, 90, .25); transition: transform .15s, box-shadow .15s }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(224, 177, 90, .38) }
.btn.big { border-radius: 12px; padding: 13px 22px }
nav.tabs a[aria-current="page"] { color: #F4D58A }
.eyebrow { color: #E0B15A; letter-spacing: .18em }
.chip.pro, .chip.gold { background: linear-gradient(135deg, #E0B15A, #F4D58A); color: #1A1405; border-color: transparent }
.callout.gold, .plans .panel.pro { border-color: rgba(224, 177, 90, .55) }
.land h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem) }
.house, .wday, .cell, .act { border-radius: 12px }
.citylist { background: #121833 }
a { color: #E0B15A }
/* iPhone: date and time fields must not overflow their box; checkbox drawn to match the theme */
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 48px; text-align: left } input::-webkit-date-and-time-value { text-align: left; min-height: 1.4em } [dir=rtl] input[type=time] { direction: ltr; text-align: right } [dir=rtl] input[type=time]::-webkit-date-and-time-value { text-align: right } .field, .field > * { min-width: 0 } input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 6px; border: 1px solid #4A5488; background: #0D1228; display: inline-grid; place-content: center; cursor: pointer } input[type=checkbox]:checked { background: #E0B15A; border-color: #E0B15A } input[type=checkbox]:checked::after { content: ""; width: 6px; height: 11px; border: solid #1A1405; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px) }
/* Phones: every tab visible at once (no hidden sideways scroll), header scrolls away, admin list stacks */
@media (max-width: 700px) {
  header.bar { position: static }
  nav.tabs { flex-wrap: wrap; overflow: visible; gap: 6px; padding-bottom: 10px }
  nav.tabs a { flex: 1 1 auto; text-align: center; font-size: .82rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #0D1228 }
  nav.tabs a[aria-current="page"] { color: #1A1405; background: linear-gradient(135deg, #E0B15A, #F4D58A); border-color: transparent }
  #app .panel.hero { grid-template-columns: 1fr; justify-items: center; text-align: center } #app .panel.hero .chips { justify-content: center } #app .panel.hero p { margin-inline: auto }
  .panel.hero .mini-chart { justify-self: stretch; width: 100% }
  table.members, table.members tbody, table.members tr, table.members td { display: block; width: 100% }
  table.members tr { padding: 12px 0; border-bottom: 1px solid var(--line) } table.members tr:last-child { border-bottom: 0 }
  table.members td { border: 0; padding: 3px 0 } table.members td br { display: none } table.members td .muted { margin-inline-start: 8px }
  table.members .seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px }
}
@media (prefers-reduced-motion: reduce) { .btn.primary { transition: none } }
@media print { body { background: #fff; color: #171B2B } .panel { background: #fff; border-color: #DCE0EA } :root, html[lang] { --fg: #171B2B; --muted: #5E6578; --line: #DCE0EA; --surface: #fff; --surface-2: #F6F7FA; --bg: #fff } }
