/* ============================================================
   COSMIC ORIGINS — instrument-panel design system
   ------------------------------------------------------------
   Visual direction: astronomical telemetry cockpit.
   Two-accent system: cold ion-cyan for everything interactive,
   warm signal-amber for data readouts. Everything else stays
   quiet: hairline borders, glass panels, corner brackets.
   ============================================================ */

:root {
  /* ---- background layers (darkest → lightest) ---- */
  --void:        #05070d;                       /* page canvas */
  --deep:        #0a0f1c;                       /* content wells, image frames */
  --panel:       rgba(15, 22, 38, 0.72);        /* glass instrument panels */
  --panel-hi:    rgba(24, 34, 56, 0.85);        /* raised/hover panel state */

  /* ---- hairlines & bracket strokes ---- */
  --hairline:    rgba(148, 180, 220, 0.14);
  --hairline-hi: rgba(148, 180, 220, 0.32);

  /* ---- accents ---- */
  --ion:         #7dd3e8;                       /* interactive: nav, pills, focus */
  --ion-dim:     rgba(125, 211, 232, 0.14);     /* ion washes/fills */
  --signal:      #ffc46b;                       /* data readouts, coordinates, values */
  --signal-dim:  rgba(255, 196, 107, 0.12);

  /* ---- text hierarchy ---- */
  --text-hi:     #e8eff9;
  --text-lo:     #93a4be;
  --text-mute:   #5a6b85;

  /* ---- state colors ---- */
  --fav:         #f5c84c;                       /* favorite star */
  --ok:          #6be8a0;
  --danger:      #ff7a6b;

  /* ---- type ---- */
  --f-display: "Chakra Petch", sans-serif;      /* brand, headings, nav */
  --f-body:    "IBM Plex Sans", sans-serif;     /* prose, descriptions */
  --f-mono:    "IBM Plex Mono", monospace;      /* designations, coords, tags */

  /* ---- motion ---- */
  --ease-hud: cubic-bezier(0.22, 0.9, 0.3, 1);  /* every transition uses this */
  --t-fast: 160ms;
  --t-med:  320ms;
  --t-slow: 560ms;

  /* ---- geometry ---- */
  --r: 6px;                                     /* module corner radius */
  --sidebar-w: 248px;
  --sidebar-rail: 72px;

  /* ---- corner brackets (the signature system) ---- */
  --bk-size: 14px;
  --bk-color: var(--hairline-hi);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--text-hi);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
}

/* faint nebula tints behind everything — depth without noise */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(64, 96, 168, 0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(120, 72, 140, 0.10), transparent 55%),
    radial-gradient(700px 500px at 60% 60%, rgba(40, 80, 110, 0.06), transparent 60%);
}

#starfield {
  position: fixed; inset: 0;
  z-index: 0;
  display: block;
}
body.low-ambience #starfield { display: none; }
body.low-ambience::before { opacity: 0.4; }

::selection { background: var(--ion-dim); color: var(--text-hi); }

a { color: var(--ion); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 1px solid var(--ion);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   SIGNATURE: corner brackets
   Painted with 8 background gradients so they can grow and
   recolor on state changes. Any element with .brackets gets
   the treatment; --bk-size / --bk-color drive the state.
   ============================================================ */
.brackets {
  position: relative;
  background-color: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
}
.brackets::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: var(--r);
  pointer-events: none;
  background:
    linear-gradient(var(--bk-color) 0 0) top    left  / var(--bk-size) 1px,
    linear-gradient(var(--bk-color) 0 0) top    left  / 1px var(--bk-size),
    linear-gradient(var(--bk-color) 0 0) top    right / var(--bk-size) 1px,
    linear-gradient(var(--bk-color) 0 0) top    right / 1px var(--bk-size),
    linear-gradient(var(--bk-color) 0 0) bottom left  / var(--bk-size) 1px,
    linear-gradient(var(--bk-color) 0 0) bottom left  / 1px var(--bk-size),
    linear-gradient(var(--bk-color) 0 0) bottom right / var(--bk-size) 1px,
    linear-gradient(var(--bk-color) 0 0) bottom right / 1px var(--bk-size);
  background-repeat: no-repeat;
  transition: background-size var(--t-med) var(--ease-hud), filter var(--t-med);
}
.brackets.is-armed::after,
.brackets:hover::after {
  --bk-size: 22px;
  filter: drop-shadow(0 0 4px rgba(125, 211, 232, 0.35));
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* ---------------- sidebar ---------------- */
.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  width: var(--sidebar-w);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(13, 19, 33, 0.92), rgba(9, 13, 24, 0.92));
  border-right: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  transition: width var(--t-med) var(--ease-hud);
  z-index: 30;
}
.sidebar.is-collapsed { width: var(--sidebar-rail); }

.side-head {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-hi);
}
.brand:hover { text-decoration: none; }
.brand-mark { flex: 0 0 auto; }
.brand-text { overflow: hidden; white-space: nowrap; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.side-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--text-lo);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.side-link .bi { font-size: 16px; flex: 0 0 20px; text-align: center; }
.side-link span { white-space: nowrap; opacity: 1; transition: opacity var(--t-fast); }
.side-link:hover { color: var(--text-hi); background: var(--panel); }
.side-link.is-active {
  color: var(--ion);
  background: var(--ion-dim);
  border-color: rgba(125, 211, 232, 0.35);
}
.side-foot {
  padding: 12px 10px 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* collapsed state: hide labels, center icons */
.sidebar.is-collapsed .brand-text,
.sidebar.is-collapsed .side-link span { opacity: 0; pointer-events: none; }
.sidebar.is-collapsed .side-link { justify-content: center; padding: 10px 0; }
.sidebar.is-collapsed .side-link .bi { flex: 0 0 auto; }
.sidebar.is-collapsed .side-link span { display: none; }

/* Bug B fix: the collapse control is a tab docked ON the
   sidebar's own border — it visibly belongs to the thing
   it operates. */
.side-collapse {
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  width: 26px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-hi);
  border: 1px solid var(--hairline-hi);
  border-radius: var(--r);
  color: var(--ion);
  cursor: pointer;
  font-size: 13px;
  transition: background var(--t-fast), transform var(--t-med) var(--ease-hud);
  z-index: 31;
}
.side-collapse:hover { background: rgba(125, 211, 232, 0.18); }
.side-collapse .bi { transition: transform var(--t-med) var(--ease-hud); }
.sidebar.is-collapsed .side-collapse .bi { transform: rotate(180deg); }

/* ---------------- main content ---------------- */
.content {
  flex: 1;
  min-width: 0;
  --pad: clamp(16px, 3vw, 40px);
  padding: 0 var(--pad) 64px;
}

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 22px;
}
.topbar-eyebrow {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-hi);
}
.topbar-eyebrow em {
  font-style: normal;
  color: var(--ion);
}
.system-clock {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--signal);
  white-space: nowrap;
}

/* ---------------- search + filter pills ---------------- */
.search-row {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 18px;
}
.search-input {
  flex: 1;
  background: var(--deep);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  color: var(--text-hi);
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 10px 14px;
  transition: border-color var(--t-fast);
}
.search-input::placeholder { color: var(--text-mute); }
.search-input:focus {
  outline: none;
  border-color: var(--ion);
  box-shadow: 0 0 0 3px var(--ion-dim);
}
.search-btn {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--ion);
  border: none;
  border-radius: var(--r);
  padding: 10px 22px;
  cursor: pointer;
  transition: filter var(--t-fast);
}
.search-btn:hover { filter: brightness(1.12); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 26px;
}
.pill {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lo);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 3px;          /* squared: instrument toggle, not web chip */
  padding: 6px 14px;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.pill:hover { color: var(--text-hi); border-color: var(--hairline-hi); }
.pill[aria-pressed="true"] {
  color: var(--ion);
  border-color: rgba(125, 211, 232, 0.5);
  background: var(--ion-dim);
  box-shadow: inset 0 0 12px rgba(125, 211, 232, 0.08);
}
.pill[aria-pressed="true"]::before { content: "▣ "; }
.pill[aria-pressed="false"]::before { content: "▢ "; opacity: 0.5; }

/* ---------------- hero: full-bleed featured observation ----------------
   Edge-to-edge imagery with a slow Ken Burns drift — the "window
   onto space" the gallery opens with. */
.hero {
  position: relative;
  height: min(66vh, 640px);
  min-height: 360px;
  margin: 0 calc(var(--pad) * -1) 30px;
  overflow: hidden;
  background: var(--deep);
  border-bottom: 1px solid var(--hairline);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1100ms var(--ease-hud);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.09) translate(-1.2%, 1%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,7,13,0.55) 0%, transparent 26%, transparent 55%, rgba(5,7,13,0.92) 100%),
    linear-gradient(90deg, rgba(5,7,13,0.55), transparent 40%);
}
.hero-caption {
  position: absolute;
  left: var(--pad); bottom: 28px;
  max-width: 640px;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
}
.hero-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0 0 4px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.hero-desig {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--signal);
  margin-bottom: 16px;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 56px;
  background: rgba(5, 7, 13, 0.45);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  color: var(--text-hi);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.hero-nav:hover { background: rgba(125, 211, 232, 0.18); border-color: var(--hairline-hi); }
.hero-prev { left: var(--pad); }
.hero-next { right: var(--pad); }
.hero-dots {
  position: absolute;
  right: var(--pad); bottom: 32px;
  display: flex;
  gap: 6px;
}
.hero-dot {
  width: 26px; height: 3px;
  border: none;
  padding: 0;
  background: rgba(232, 239, 249, 0.28);
  cursor: pointer;
  transition: background var(--t-fast);
}
.hero-dot.is-active { background: var(--ion); }

/* ---------------- card grid ---------------- */
.uao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}

.uao-card {
  cursor: pointer;
  padding: 10px;
  transition: background var(--t-fast), transform var(--t-med) var(--ease-hud);
}
.uao-card:hover {
  background-color: var(--panel-hi);
  transform: translateY(-2px);
}

.uao-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--hairline);
}
/* placeholder treatment: each frame is designed to HOST real
   photography later — category-tinted well + crosshair + label */
.uao-ph {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 30% 20%, var(--ph-tint, rgba(80,110,180,0.22)), transparent 65%),
    radial-gradient(100% 80% at 75% 85%, rgba(255,255,255,0.04), transparent 60%),
    var(--deep);
}
.uao-ph::before, .uao-ph::after {   /* crosshair */
  content: "";
  position: absolute;
  background: var(--hairline);
}
.uao-ph::before { left: 50%; top: 12%; bottom: 12%; width: 1px; }
.uao-ph::after  { top: 50%; left: 12%; right: 12%; height: 1px; }
.uao-ph-label {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.uao-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--t-slow);
}
.uao-frame img.is-loaded { opacity: 1; }

.uao-fav {
  position: absolute;
  top: 8px; right: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-lo);
  background: rgba(5, 7, 13, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 3px 8px;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
  backdrop-filter: blur(4px);
}
.uao-fav:hover { border-color: var(--fav); }
.uao-fav.is-fav { color: var(--fav); border-color: rgba(245, 200, 76, 0.5); }

.uao-meta { padding: 10px 4px 4px; }
.uao-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  margin: 0 0 2px;
  color: var(--text-hi);
}
/* designation readout — types itself in on hover (signature) */
.uao-desig {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--signal);
  height: 16px;
  overflow: hidden;
  white-space: nowrap;
}
.uao-desig i {
  font-style: normal;
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
}
.uao-card:hover .uao-desig i,
.uao-card:focus-within .uao-desig i {
  animation: typein 480ms steps(24) forwards;
}
@keyframes typein { to { max-width: 100%; } }

.uao-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--hairline);
  color: var(--text-lo);
}
.tag--cat { color: var(--ion); border-color: rgba(125, 211, 232, 0.35); }

.empty-state {
  text-align: center;
  padding: 64px 16px;
  color: var(--text-mute);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.empty-state strong { color: var(--text-lo); display: block; margin-bottom: 6px; }

/* ---------------- detail viewer: full-screen observation ----------------
   Opening an object takes over the viewport — the image IS the
   interface, telemetry floats over/below it. */
.detail-overlay {
  position: fixed; inset: 0;
  z-index: 50;
  overflow-y: auto;
  background: var(--void);
}
.detail-overlay.is-active { display: block; animation: viewin var(--t-med) var(--ease-hud); }
body.detail-open { overflow: hidden; }

/* scan sweep fired once when the observation opens */
.detail-overlay.is-scanning::before {
  content: "";
  position: fixed; left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ion), transparent);
  animation: scan 900ms var(--ease-hud) forwards;
  z-index: 60;
}
@keyframes scan { from { top: 0; opacity: 1; } to { top: 100%; opacity: 0; } }

.detail-hero {
  position: relative;
  height: 76vh;
  min-height: 420px;
  overflow: hidden;
  background: var(--deep);
}
.detail-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}
.detail-hero .hero-scrim {
  background:
    linear-gradient(180deg, rgba(5,7,13,0.6) 0%, transparent 22%, transparent 52%, var(--void) 100%);
}
.detail-back {
  position: absolute;
  top: 20px; left: var(--pad, 32px);
  z-index: 2;
  background: rgba(5, 7, 13, 0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  color: var(--ion);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.detail-back:hover { border-color: var(--hairline-hi); background: rgba(125, 211, 232, 0.16); }
.detail-live {
  position: absolute;
  top: 28px; right: var(--pad, 32px);
  z-index: 2;
}

.detail-caption {
  position: absolute;
  left: var(--pad, 32px); bottom: 26px;
  z-index: 2;
  max-width: 760px;
}
.detail-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0 0 4px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}
.detail-desig {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--signal);
}

.detail-content {
  padding: 26px var(--pad, 32px) 72px;
  max-width: 1080px;
}

/* telemetry readout table */
.telemetry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  margin: 14px 0 18px;
}
.telemetry > div { background: var(--deep); padding: 10px 12px; }
.telemetry dt {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 3px;
}
.telemetry dd {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--signal);
  margin: 0;
}

.detail-desc {
  color: var(--text-lo);
  font-size: 14.5px;
  max-width: 68ch;
}

.related-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 20px 0 10px;
}
.related-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.related-item {
  flex: 0 0 130px;
  cursor: pointer;
  padding: 6px;
}
.related-item .uao-frame { aspect-ratio: 1 / 1; }
.related-item .uao-name { font-size: 11.5px; padding: 6px 2px 2px; margin: 0; }

/* ---------------- auth panels ---------------- */
.auth-wrap {
  max-width: 420px;
  margin: 6vh auto 0;
  padding: 28px;
}
.auth-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.auth-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-lo);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  background: var(--deep);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  color: var(--text-hi);
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 10px 12px;
  transition: border-color var(--t-fast);
}
.field input:focus {
  outline: none;
  border-color: var(--ion);
  box-shadow: 0 0 0 3px var(--ion-dim);
}
.auth-submit {
  width: 100%;
  margin-top: 6px;
}
.auth-alt {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-mute);
  text-align: center;
}
.auth-note {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed var(--hairline-hi);
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

/* ---------------- views / routing ---------------- */
.view { display: none; }
.view.is-active { display: block; animation: viewin var(--t-med) var(--ease-hud); }
@keyframes viewin {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .sidebar { position: fixed; left: 0; }
  .content { margin-left: var(--sidebar-rail); }
  .topbar { flex-direction: column; gap: 4px; align-items: flex-start; }
}
@media (max-width: 576px) {
  .search-row { flex-direction: column; }
  .uao-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #starfield { display: none; }
}
