/* theme.css (loaded first) owns every token this page uses (--bg, --bg-card, --bd*,
   --tx*, --green, --gold, --purple, --blue, --mono) and switches them per
   html[data-theme]. Don't redeclare them here with literals or the chrome stops
   following the active theme. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { min-height: 100vh; padding: 1rem 1.2rem 2.5rem; background: radial-gradient(circle at 74% 8%, rgba(114,208,108,0.045), transparent 34rem), radial-gradient(circle at 18% 28%, rgba(208,108,255,0.025), transparent 28rem), var(--bg); color: var(--tx); font-family: var(--mono); font-size: 12px; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, .button-link { cursor: pointer; border: 0.5px solid var(--bd); border-radius: 6px; background: transparent; color: var(--tx-mute); padding: 4px 8px; display: inline-flex; align-items: center; }
button:hover, .button-link:hover { border-color: rgba(114,208,108,0.65); color: var(--green); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 1px solid var(--bd-bright); outline-offset: 2px; }
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 0.5px solid var(--bd); display: flex; align-items: center; gap: 14px; padding: 5px 14px; margin-bottom: 0.8rem; }
.site-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-link, .nr-nav-trigger { color: var(--green); text-decoration: none; font-size: 10px; letter-spacing: 0.04em; transition: color 0.12s ease; }
.nav-link:hover, .nav-link:active, .nr-nav-trigger:hover { color: var(--purple); }
.nav-home:hover, .nav-home:active { color: var(--gold); }
.top .nr-theme-switch { margin-left: auto; }
.net { margin-left: auto; font-size: 10px; color: var(--tx-mute); display: flex; align-items: center; gap: 6px; }
.net-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); flex: none; }
h1, h2 { color: var(--green); }
.wrap { max-width: 1120px; margin: 0 auto; }
.card { background: linear-gradient(180deg, rgba(114,208,108,0.018), transparent 40%), var(--bg-card); border: 0.5px solid rgba(114,208,108,0.18); border-radius: 9px; box-shadow: 0 14px 32px rgba(0,0,0,0.14); padding: 0.72rem 0.8rem 0.82rem; }
.intro { margin-bottom: 0.8rem; }
.intro p { margin: 0; color: var(--tx-mute); max-width: 84rem; }
/* tiled dashboard: World Focus is the dominant top-left tile; info tiles stack on the
   right, controls below. Sits entirely under the top nav — nothing at nav height. */
.dash {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 0.8rem;
  align-items: start;
}
.dash > .intro { grid-column: 1 / -1; }
.dash-side { display: grid; gap: 0.8rem; align-content: start; }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: 0.14em; }
h1 { font-size: 12px; }
h2 { font-size: 10px; margin-bottom: 0.55rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.7rem; margin-bottom: 0.45rem; }
.button-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.button-row.spaced { margin-top: 0.6rem; }
canvas { width: 100%; display: block; background: var(--bg-sunken); border: 0.5px solid var(--bd); border-radius: 7px; }
#world { cursor: grab; touch-action: none; max-height: 56vh; }
#world:active { cursor: grabbing; }
.sysmap { width: 100%; height: 122px; display: block; margin-top: 0.5rem; background: var(--bg-sunken); border: 0.5px solid var(--bd); border-radius: 7px; }
.canvas-note, .note { color: var(--tx-dim); font-size: 10px; margin-top: 0.4rem; }
label { display: grid; gap: 0.22rem; margin-bottom: 0.55rem; color: var(--tx-mute); font-size: 10px; }
input, select { width: 100%; background: var(--bg-sunken); border: 0.5px solid var(--bd); border-radius: 6px; padding: 5px 7px; }
select, .score-grid input { color: var(--green); }
.field-row, .score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.report { display: grid; gap: 0.08rem; }
.row { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.25rem 0; border-bottom: 0.5px solid rgba(58,53,46,0.65); }
.row:last-child { border-bottom: none; }
.k { color: var(--tx-mute); }
.v { color: var(--tx); text-align: right; font-variant-numeric: tabular-nums; max-width: 58%; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.5rem; }
.badge { font-size: 9px; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 5px; border: 0.5px solid var(--bd); color: var(--tx-dim); }
.badge.on { color: var(--bg); font-weight: 600; border-color: transparent; }
.badge.transit.on { background: var(--green); }
.badge.rv.on { background: var(--gold); }
.badge.astrometry.on { background: var(--blue); }
.badge.imaging.on { background: var(--purple); }
details summary { cursor: pointer; color: var(--green); letter-spacing: 0.1em; font-size: 10px; margin-bottom: 0.5rem; }
details:not([open]) { padding-bottom: 0.72rem; }
@media (max-width: 900px) { body { padding: 0.8rem; } .dash { grid-template-columns: 1fr; } .field-row, .score-grid { grid-template-columns: 1fr 1fr; } }
