:root {
  --bg: #edf4f2;
  --bg-strong: #0d2333;
  --panel: rgba(255, 251, 242, 0.8);
  --panel-strong: rgba(10, 25, 36, 0.92);
  --text: #0f2232;
  --muted: #4c6678;
  --line: rgba(15, 34, 50, 0.1);
  --accent: #eb6b3b;
  --accent-2: #1bb3a6;
  --accent-soft: rgba(27, 179, 166, 0.12);
  --warning: #d49a22;
  --success: #0f8e69;
  --danger: #b7494d;
  --shadow: 0 24px 70px rgba(13, 35, 51, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --display: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Avenir Next", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-site-state="coming-soon"][data-page-kind="site"] .site-nav {
  display: none;
}

html[data-site-state="coming-soon"][data-page-kind="site"] .site-header {
  display: none;
}

html[data-site-state="coming-soon"][data-page-kind="site"] .site-footer {
  display: none;
}

html[data-site-state="coming-soon"][data-page-kind="site"] .page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(circle at top left, rgba(27, 179, 166, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(235, 107, 59, 0.16), transparent 24%),
    linear-gradient(180deg, #edf4f2 0%, #dfe9e5 42%, #edf4f2 100%);
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(13, 35, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 35, 51, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(246, 242, 233, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(13, 35, 51, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--bg-strong), #0d4453);
  color: #f6f2e9;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: rgba(15, 34, 50, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.app-view {
  display: grid;
  gap: 1rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.coming-soon-panel {
  display: grid;
  place-items: center;
  width: min(calc(100vw - 2rem), 1180px);
  min-height: min(78vh, 52rem);
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(27, 179, 166, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(12, 36, 51, 0.95), rgba(13, 41, 53, 0.93));
}

.coming-soon-title {
  margin: 0;
  color: #f6f2e9;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-align: center;
}

.view-grid {
  display: grid;
  gap: 1rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.hero-copy,
.hero-visual,
.section-body,
.site-footer {
  padding: clamp(1.35rem, 2vw, 2rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  color: #0f665e;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title,
.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-title {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6rem);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.body-copy,
.section-copy,
.detail-copy,
.stat-subtitle,
.list-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.env-strip,
.page-toolbar,
.card-toolbar,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.env-pill,
.chip,
.status-pill,
.timeline-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.env-pill,
.chip {
  background: rgba(15, 34, 50, 0.08);
}

.cache-chip {
  background: rgba(235, 107, 59, 0.12);
  color: #8a3a20;
}

.live-chip {
  background: rgba(27, 179, 166, 0.14);
  color: #0b5f56;
}

.feeder-cache-actions {
  justify-content: flex-end;
}

.env-note {
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.ghost-button:hover,
.button:focus-visible,
.ghost-button:focus-visible {
  transform: translateY(-1px);
}

.button {
  background: linear-gradient(135deg, var(--accent), #f19647);
  color: #fff;
  font-weight: 700;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost-button.is-active {
  background: var(--accent-soft);
  border-color: rgba(27, 179, 166, 0.42);
  color: #0b5f56;
  box-shadow: inset 0 0 0 1px rgba(27, 179, 166, 0.16);
}

.button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.danger-button {
  color: var(--danger);
}

.hero-stats,
.stats-grid,
.card-grid,
.two-up,
.list-grid,
.dashboard-grid,
.map-grid {
  display: grid;
  gap: 1rem;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat,
.stat-card,
.info-card,
.list-card,
.auth-card,
.map-panel,
.dashboard-panel {
  padding: 1.15rem;
  border: 1px solid rgba(15, 34, 50, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
}

.hero-stat dt,
.stat-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-stat dd,
.stat-value {
  margin: 0.4rem 0 0;
  font-size: 1.1rem;
  font-weight: 780;
}

.detail-grid .stat-value {
  overflow-wrap: anywhere;
}

.vhf-health-grid {
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.vhf-health-grid .stat-card {
  padding: 0.95rem;
}

.vhf-health-grid .stat-value {
  font-size: 1rem;
  line-height: 1.2;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 32rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(27, 179, 166, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(12, 36, 51, 0.95), rgba(13, 41, 53, 0.93));
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.72;
}

.radar {
  position: relative;
  width: min(78vw, 26rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(240, 246, 241, 0.18);
  background:
    radial-gradient(circle, rgba(27, 179, 166, 0.16) 0 38%, rgba(6, 14, 24, 0.72) 65%, rgba(6, 14, 24, 0.95) 100%);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.38),
    0 0 120px rgba(27, 179, 166, 0.18);
}

.radar::before,
.radar::after {
  position: absolute;
  inset: 50%;
  content: "";
  background: rgba(240, 246, 241, 0.13);
}

.radar::before {
  width: 1px;
  transform: translateX(-0.5px) translateY(-50%);
}

.radar::after {
  height: 1px;
  transform: translateX(-50%) translateY(-0.5px);
}

.radar-ring,
.radar-core {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(240, 246, 241, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring-a { width: 42%; height: 42%; }
.radar-ring-b { width: 68%; height: 68%; }
.radar-ring-c { width: 88%; height: 88%; }

.radar-core {
  width: 1rem;
  height: 1rem;
  background: #e5b24d;
  box-shadow: 0 0 25px rgba(229, 178, 77, 0.65);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(27, 179, 166, 0.65), rgba(27, 179, 166, 0.08) 18%, transparent 26%);
  mix-blend-mode: screen;
  animation: sweep 8s linear infinite;
}

.blip {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #f6f2e9;
  box-shadow: 0 0 16px rgba(246, 242, 233, 0.75);
  animation: pulse 2.4s ease-in-out infinite;
}

.blip-a { top: 22%; right: 24%; }
.blip-b { left: 18%; bottom: 26%; animation-delay: 0.8s; }
.blip-c { top: 55%; left: 30%; animation-delay: 1.6s; }

.signal-card {
  position: absolute;
  display: grid;
  gap: 0.3rem;
  max-width: 17rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(246, 242, 233, 0.12);
  border-radius: var(--radius-md);
  background: rgba(8, 18, 27, 0.72);
  color: rgba(246, 242, 233, 0.92);
  backdrop-filter: blur(10px);
}

.signal-card .label {
  color: rgba(246, 242, 233, 0.62);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.signal-card strong {
  font-family: var(--mono);
  font-size: 0.96rem;
}

.signal-card-primary { top: 10%; left: 8%; }
.signal-card-secondary { right: 7%; bottom: 11%; }

.section-body {
  display: grid;
  gap: 1.2rem;
}

.section-header {
  display: grid;
  gap: 0.8rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.dashboard-grid {
  grid-template-columns: 1.25fr 0.75fr;
}

.map-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.map-scope-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.map-scope-actions .ghost-button {
  min-height: 2.25rem;
  padding: 0 0.85rem;
}

.section-subtitle,
.card-title,
.list-title {
  margin: 0;
  font-size: 1.15rem;
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.feed-list,
.activity-list,
.aircraft-list,
.map-legend {
  display: grid;
  gap: 0.75rem;
}

.feed-row,
.activity-row,
.aircraft-row,
.legend-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid rgba(15, 34, 50, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.44);
}

.feed-row-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.feed-row-button.selected {
  border-color: rgba(235, 107, 59, 0.38);
  background: rgba(235, 107, 59, 0.1);
  box-shadow: inset 0 0 0 1px rgba(235, 107, 59, 0.18);
}

.feed-row-top,
.activity-row-top,
.aircraft-row-top,
.legend-row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.status-pill.online { background: rgba(15, 142, 105, 0.14); color: var(--success); }
.status-pill.warning { background: rgba(212, 154, 34, 0.18); color: #946700; }
.status-pill.offline { background: rgba(183, 73, 77, 0.14); color: var(--danger); }
.warning-chip { background: rgba(212, 154, 34, 0.18); color: #946700; }

.inline-link {
  font-weight: 800;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.aircraft-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 34, 50, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
}

.aircraft-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.aircraft-table th,
.aircraft-table td {
  padding: 0.82rem 0.9rem;
  border-bottom: 1px solid rgba(15, 34, 50, 0.08);
  text-align: left;
  white-space: nowrap;
}

.aircraft-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.aircraft-table th.numeric-column,
.aircraft-table td.numeric-column {
  text-align: center;
}

.aircraft-table td:first-child {
  display: grid;
  gap: 0.15rem;
}

.aircraft-table td:first-child span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.admin-table select {
  min-height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(15, 34, 50, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
}

.table-link-button {
  display: grid;
  gap: 0.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.table-link-button:hover strong,
.table-link-button:focus-visible strong {
  color: var(--accent);
}

.selected-table-row {
  background: rgba(235, 107, 59, 0.08);
}

.user-feeder-table {
  min-width: 920px;
}

.user-feeder-table .table-row-button {
  cursor: pointer;
}

.user-feeder-table .table-row-button:hover,
.user-feeder-table .table-row-button:focus-visible {
  background: rgba(41, 111, 132, 0.08);
  outline: none;
}

.user-feeder-table .selected-table-row:hover,
.user-feeder-table .selected-table-row:focus-visible {
  background: rgba(235, 107, 59, 0.12);
}

.analytics-panel {
  gap: 1.1rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1rem;
}

.analytics-card {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}

.analytics-card-full {
  grid-column: 1 / -1;
}

.analytics-card-copy {
  max-width: 48rem;
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.analytics-bar-list {
  display: grid;
  gap: 0.58rem;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.8fr) minmax(7rem, 1.5fr) minmax(2.8rem, auto) minmax(3.5rem, auto);
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.analytics-bar-row strong {
  color: var(--ink);
  font-size: 0.92rem;
  text-align: right;
}

.analytics-bar-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.analytics-bar-track {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(41, 111, 132, 0.12);
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #eb6b3b);
}

.hourly-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 0.28rem;
  min-height: 190px;
  padding-top: 0.25rem;
}

.hourly-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 0.35rem;
  min-width: 0;
  height: 100%;
}

.hourly-bar-fill {
  width: 100%;
  min-height: 3px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #eb6b3b, var(--accent));
}

.hourly-bar span {
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.polar-plot-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(14rem, 1fr);
  gap: 1rem;
  align-items: center;
}

.polar-plot {
  width: min(100%, 22rem);
  aspect-ratio: 1;
  overflow: visible;
}

.polar-grid circle,
.polar-grid line {
  fill: none;
  stroke: rgba(41, 111, 132, 0.16);
  stroke-width: 1;
}

.polar-range-fill {
  fill: rgba(64, 154, 215, 0.2);
  stroke: none;
}

.polar-range-line {
  fill: none;
  stroke: var(--accent);
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.polar-marker line {
  stroke: #eb6b3b;
  stroke-opacity: var(--direction-strength);
  stroke-width: 2;
}

.polar-marker circle {
  fill: #eb6b3b;
  fill-opacity: var(--direction-strength);
  stroke: #fff;
  stroke-width: 2;
}

.polar-plot text {
  fill: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
}

.polar-plot .polar-range-label {
  fill: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.polar-summary {
  display: grid;
  gap: 0.55rem;
}

.polar-summary span {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(41, 111, 132, 0.14);
  border-radius: 6px;
  background: rgba(41, 111, 132, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
}

.polar-summary strong {
  color: var(--ink);
}

.direction-bin-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.direction-bin-list span {
  display: grid;
  gap: 0.08rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
}

.direction-bin-list strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.direction-bin-list em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.direction-tile {
  display: grid;
  gap: 0.15rem;
  min-height: 5.2rem;
  padding: 0.7rem;
  border: 1px solid rgba(41, 111, 132, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(41, 111, 132, 0.1), rgba(235, 107, 59, 0.08)),
    rgba(255, 255, 255, 0.68);
}

.direction-tile strong {
  font-size: 1.15rem;
}

.direction-tile span,
.direction-tile small {
  color: var(--muted);
}

.analytics-table {
  min-width: 520px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.auth-card {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  min-height: 3rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(15, 34, 50, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.field textarea {
  min-height: 6rem;
  padding: 0.85rem 0.95rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid rgba(27, 179, 166, 0.28);
  outline-offset: 1px;
}

.feeder-edit-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 34, 50, 0.1);
}

.feeder-edit-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.field-wide {
  grid-column: 1 / -1;
}

.admin-vhf-panel,
.vhf-control-form,
.vhf-control-group {
  display: grid;
  gap: 1rem;
}

.admin-vhf-panel {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(15, 34, 50, 0.1);
  border-bottom: 1px solid rgba(15, 34, 50, 0.1);
}

.vhf-control-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.vhf-control-group {
  padding: 1rem;
  border: 1px solid rgba(15, 34, 50, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
}

.compact-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-section-title {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 3rem;
  height: 1.6rem;
  border: 1px solid rgba(15, 34, 50, 0.16);
  border-radius: 999px;
  background: rgba(15, 34, 50, 0.12);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.toggle-switch-track::after {
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 1.12rem;
  height: 1.12rem;
  content: "";
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 34, 50, 0.22);
  transform: translateY(-50%);
  transition: transform 0.18s ease;
}

.toggle-switch input:checked + .toggle-switch-track {
  border-color: rgba(27, 179, 166, 0.52);
  background: var(--accent-2);
}

.toggle-switch input:checked + .toggle-switch-track::after {
  transform: translate(1.38rem, -50%);
}

.toggle-switch input:focus-visible + .toggle-switch-track {
  outline: 2px solid rgba(27, 179, 166, 0.32);
  outline-offset: 2px;
}

.toggle-switch input:disabled + .toggle-switch-track,
.toggle-switch input:disabled ~ .toggle-switch-label {
  cursor: not-allowed;
  opacity: 0.58;
}

.vhf-channel-form {
  display: grid;
  gap: 1rem;
}

.vhf-channel-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 0.8fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) minmax(220px, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(15, 34, 50, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
}

.vhf-toggle-row {
  display: grid;
  gap: 0.35rem;
  align-self: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.vhf-toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.vhf-clip-card {
  display: grid;
  gap: 0.8rem;
}

.vhf-recording-grid {
  display: grid;
  gap: 1rem;
}

.vhf-channel-archive {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(15, 34, 50, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.vhf-channel-archive-header,
.vhf-recording-hour-header,
.vhf-recording-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.vhf-channel-archive-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vhf-recording-list {
  display: grid;
  gap: 0.55rem;
}

.vhf-recording-row {
  grid-template-columns: minmax(8rem, 0.42fr) minmax(12rem, 1fr);
  padding: 0.65rem;
  border: 1px solid rgba(15, 34, 50, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
}

.vhf-recording-time {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.vhf-recording-clock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.vhf-recording-time strong {
  color: var(--ink);
}

.vhf-recording-utc {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.vhf-recording-time span,
.vhf-recording-hour-header span {
  color: var(--muted);
  font-size: 0.86rem;
}

.vhf-recording-time .vhf-recording-utc {
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.vhf-recording-player {
  width: 100%;
  accent-color: #1bb3a6;
}

.vhf-recording-older {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.2rem;
}

.vhf-recording-older summary {
  cursor: pointer;
  width: fit-content;
  color: var(--ink);
  font-weight: 800;
}

.vhf-recording-hour {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem 0 0;
}

.vhf-recording-hour + .vhf-recording-hour {
  border-top: 1px solid rgba(15, 34, 50, 0.08);
}

.vhf-live-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(27, 179, 166, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(9, 25, 38, 0.96), rgba(15, 34, 50, 0.9));
  color: #f8fbf6;
}

.vhf-live-section .section-copy,
.vhf-live-section .detail-copy,
.vhf-live-section .eyebrow {
  color: rgba(248, 251, 246, 0.72);
}

.vhf-live-grid {
  display: grid;
  gap: 1rem;
}

.vhf-live-card,
.vhf-live-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(248, 251, 246, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
}

.vhf-live-empty {
  grid-template-columns: 1fr;
}

.vhf-live-meter {
  display: flex;
  align-items: end;
  gap: 0.22rem;
  min-width: 3.2rem;
  height: 4rem;
  padding: 0.7rem;
  border-radius: 1.25rem;
  background: rgba(5, 15, 24, 0.42);
}

.vhf-live-meter span {
  display: block;
  width: 0.32rem;
  min-height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7d36a, #1bb3a6);
  animation: vhf-meter 1.35s ease-in-out infinite;
}

.vhf-live-meter span:nth-child(2) {
  animation-delay: 0.12s;
}

.vhf-live-meter span:nth-child(3) {
  animation-delay: 0.24s;
}

.vhf-live-meter span:nth-child(4) {
  animation-delay: 0.36s;
}

.vhf-live-meter span:nth-child(5) {
  animation-delay: 0.48s;
}

.vhf-live-main {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.vhf-live-player {
  width: 100%;
  accent-color: #1bb3a6;
}

@keyframes vhf-meter {
  0%,
  100% {
    height: 0.9rem;
    opacity: 0.55;
  }
  45% {
    height: 3rem;
    opacity: 1;
  }
}

.auth-note {
  padding: 0.95rem;
  border: 1px dashed rgba(15, 34, 50, 0.18);
  border-radius: var(--radius-md);
  background: rgba(27, 179, 166, 0.08);
  color: var(--muted);
}

.chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 34, 50, 0.12);
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.62);
}

.chip-link.is-active {
  background: rgba(15, 34, 50, 0.86);
  color: #f6f2e9;
}

.feed-card {
  display: grid;
  gap: 1rem;
}

.telemetry-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.telemetry-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid .telemetry-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card .detail-copy {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.danger-button {
  border-color: rgba(183, 73, 77, 0.24);
  color: var(--danger);
}

.transcript-audio-player {
  width: 100%;
}

.transcript-text {
  white-space: pre-wrap;
}

.kpi-number {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.kpi-label {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 0.4rem;
  min-height: 10rem;
  padding-top: 1rem;
}

.mini-chart span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(27, 179, 166, 0.84), rgba(13, 35, 51, 0.88));
}

.map-canvas {
  position: relative;
  min-height: 34rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 34, 50, 0.08);
  background:
    linear-gradient(rgba(15, 34, 50, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 34, 50, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 20% 18%, rgba(27, 179, 166, 0.14), transparent 22%),
    radial-gradient(circle at 80% 72%, rgba(235, 107, 59, 0.14), transparent 24%),
    linear-gradient(180deg, #d9e8e3 0%, #f4f7f4 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.map-badge {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.map-badge-body {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.6rem 0.32rem 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 34, 50, 0.88);
  color: #f6f2e9;
  box-shadow: 0 12px 24px rgba(13, 35, 51, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.map-badge-body::after {
  position: absolute;
  inset: auto 50% -0.28rem auto;
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  transform: translateX(50%) rotate(45deg);
  background: rgba(15, 34, 50, 0.88);
}

.map-badge:hover .map-badge-body,
.map-badge:focus-visible .map-badge-body {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(13, 35, 51, 0.24);
}

.map-badge:focus-visible {
  outline: none;
}

.map-marker-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(246, 242, 233, 0.14);
  color: #fff4e4;
  flex: 0 0 auto;
}

.map-marker-svg {
  width: 1.38rem;
  height: 1.38rem;
  fill: currentColor;
  transform: rotate(var(--marker-rotation, 0deg));
  transform-origin: center;
}

.map-marker-label {
  max-width: 8rem;
  overflow: hidden;
  color: #f6f2e9;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-badge.selected .map-badge-body {
  background: linear-gradient(135deg, var(--accent), #f19647);
}

.map-badge.selected .map-badge-body::after {
  background: #f19647;
}

.map-badge.selected .map-marker-icon {
  background: rgba(255, 255, 255, 0.22);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

html[data-site-env="development"] .env-pill {
  background: rgba(212, 154, 34, 0.22);
  color: #835300;
}

html[data-site-env="production"] .env-pill {
  background: rgba(27, 179, 166, 0.18);
  color: #0f665e;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

@media (max-width: 1080px) {
  .hero-layout,
  .card-grid,
  .stats-grid,
  .two-up,
  .dashboard-grid,
  .map-grid,
  .list-grid,
  .auth-grid,
  .telemetry-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vhf-channel-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vhf-control-grid {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 1.4rem;
  }

  .hero-layout,
  .card-grid,
  .stats-grid,
  .two-up,
  .dashboard-grid,
  .map-grid,
  .list-grid,
  .auth-grid,
  .telemetry-grid,
  .detail-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-form-grid {
    grid-template-columns: 1fr;
  }

  .polar-plot-wrap {
    grid-template-columns: 1fr;
  }

  .polar-plot {
    justify-self: center;
    max-width: 18rem;
  }

  .direction-bin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-bar-row {
    grid-template-columns: minmax(4.5rem, 0.8fr) minmax(6rem, 1.4fr) minmax(2.5rem, auto);
  }

  .analytics-bar-row em {
    display: none;
  }

  .hero-title {
    max-width: 12ch;
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .hero-visual {
    min-height: 27rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }

  .signal-card {
    position: static;
    max-width: none;
    width: 100%;
  }

  .radar {
    width: min(88vw, 22rem);
  }

  .env-strip,
  .page-toolbar,
  .card-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }

  .vhf-channel-row {
    grid-template-columns: 1fr;
  }

  .vhf-channel-archive-header,
  .vhf-recording-hour-header,
  .vhf-recording-row {
    grid-template-columns: 1fr;
  }

  .vhf-recording-row {
    gap: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

html[data-page-kind="app"] {
  --bg: #071326;
  --bg-strong: #071326;
  --panel: #ffffff;
  --text: #142033;
  --muted: #627386;
  --line: rgba(20, 32, 51, 0.12);
  --accent: #089fdf;
  --accent-2: #96e51e;
  --accent-soft: rgba(8, 159, 223, 0.11);
  --shadow: none;
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 6px;
  --max-width: 1440px;
}

html[data-page-kind="app"] body {
  background:
    radial-gradient(circle at 18% 0%, rgba(16, 188, 244, 0.15), transparent 24rem),
    linear-gradient(135deg, #071326 0%, #10223d 48%, #f4f7f9 48%, #f4f7f9 100%);
  overflow-x: hidden;
}

html[data-page-kind="app"] body::before {
  display: none;
}

html[data-page-kind="app"] .page-shell {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html[data-page-kind="app"][data-auth-state="signed-out"] .page-shell {
  grid-template-columns: minmax(0, 1fr);
}

html[data-page-kind="app"][data-auth-state="signed-out"] .site-header {
  display: none;
}

html[data-page-kind="app"] .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  align-self: start;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1.25rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(12, 183, 235, 0.2), transparent 9rem),
    linear-gradient(180deg, #071326 0%, #0c1f3d 100%);
  box-shadow: none;
}

html[data-page-kind="app"] .brand {
  color: #f7f7f2;
  align-items: center;
}

html[data-page-kind="app"] .brand-mark {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 50%;
  background: rgba(7, 19, 38, 0.72);
  color: #f7f7f2;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(20, 202, 255, 0.28), 0 12px 26px rgba(0, 0, 0, 0.22);
}

html[data-page-kind="app"] .brand-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html[data-page-kind="app"] .brand-copy span {
  color: rgba(247, 247, 242, 0.68);
}

html[data-page-kind="app"] .brand-copy {
  align-content: center;
}

html[data-page-kind="app"] .site-nav {
  display: grid;
  gap: 0.25rem;
}

html[data-page-kind="app"] .site-nav a,
html[data-page-kind="app"] .site-nav button {
  border-radius: 6px;
  border: 0;
  color: rgba(247, 247, 242, 0.72);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 0.75rem 0.85rem;
}

html[data-page-kind="app"] .site-nav a:hover,
html[data-page-kind="app"] .site-nav a:focus-visible,
html[data-page-kind="app"] .site-nav a.is-active,
html[data-page-kind="app"] .site-nav button:hover,
html[data-page-kind="app"] .site-nav button:focus-visible {
  background: rgba(16, 188, 244, 0.14);
  color: #ffffff;
  transform: none;
}

html[data-page-kind="app"] #app-root {
  min-width: 0;
  max-width: 100%;
  padding: 0;
}

html[data-page-kind="app"] .site-footer {
  display: none;
}

html[data-page-kind="app"] .app-view {
  gap: 0.75rem;
  padding: 1rem;
  min-width: 0;
  max-width: 100%;
}

html[data-page-kind="app"] .panel {
  min-width: 0;
  max-width: 100%;
  border-color: var(--line);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

html[data-page-kind="app"] .section-body,
html[data-page-kind="app"] .hero-copy,
html[data-page-kind="app"] .hero-visual {
  padding: 1rem;
}

html[data-page-kind="app"] .section-title {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  letter-spacing: 0;
  line-height: 1.05;
}

html[data-page-kind="app"] .eyebrow,
html[data-page-kind="app"] .kpi-label,
html[data-page-kind="app"] .stat-label {
  color: #047db6;
  letter-spacing: 0.1em;
}

html[data-page-kind="app"] .stats-grid,
html[data-page-kind="app"] .dashboard-grid,
html[data-page-kind="app"] .list-grid,
html[data-page-kind="app"] .card-grid {
  gap: 0.75rem;
}

html[data-page-kind="app"] .stat-card,
html[data-page-kind="app"] .info-card,
html[data-page-kind="app"] .list-card,
html[data-page-kind="app"] .auth-card,
html[data-page-kind="app"] .dashboard-panel {
  border-color: var(--line);
  border-radius: 6px;
  background: #fbfcf8;
  box-shadow: none;
}

html[data-page-kind="app"] .auth-grid {
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(18rem, 1fr);
}

html[data-page-kind="app"] .auth-card {
  align-content: start;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

html[data-page-kind="app"] .button,
html[data-page-kind="app"] .ghost-button {
  min-height: 2.55rem;
  border-radius: 6px;
}

html[data-page-kind="app"] .button {
  background: #296f84;
}

html[data-page-kind="app"] .ghost-button {
  background: #ffffff;
}

html[data-page-kind="app"] .button:hover,
html[data-page-kind="app"] .ghost-button:hover,
html[data-page-kind="app"] .button:focus-visible,
html[data-page-kind="app"] .ghost-button:focus-visible {
  transform: none;
}

html[data-page-kind="app"] .field input,
html[data-page-kind="app"] .field select,
html[data-page-kind="app"] .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 6px;
  background: #ffffff;
}

html[data-page-kind="app"] .auth-note {
  border-radius: 6px;
  background: rgba(41, 111, 132, 0.08);
}

html[data-page-kind="app"] .feed-row-button,
html[data-page-kind="app"] .table-row-button {
  border-radius: 6px;
}

html[data-page-kind="app"] .aircraft-table-wrap,
html[data-page-kind="app"] .admin-table-wrap {
  border-radius: 6px;
  border: 1px solid var(--line);
  overflow: auto;
}

html[data-page-kind="app"] .aircraft-table,
html[data-page-kind="app"] .admin-table {
  border-collapse: collapse;
}

html[data-page-kind="app"] .aircraft-table th,
html[data-page-kind="app"] .admin-table th {
  background: #eaf5fb;
}

html[data-page-kind="app"] .button-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

html[data-page-kind="app"] .subtle-actions {
  gap: 1rem;
}

html[data-page-kind="app"] .auth-view {
  min-height: 100vh;
  grid-template-columns: minmax(20rem, 30rem);
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 6vh, 4rem);
  background:
    radial-gradient(circle at 24% 20%, rgba(22, 206, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 64% 62%, rgba(150, 229, 30, 0.08), transparent 18rem),
    linear-gradient(145deg, #071326 0%, #0a1b34 44%, #f4f7f9 44%, #f4f7f9 100%);
}

html[data-page-kind="app"] .auth-grid-simple {
  width: min(calc(100vw - 2rem), 30rem);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(8, 159, 223, 0.18);
  box-shadow: 0 24px 70px rgba(7, 19, 38, 0.18);
}

html[data-page-kind="app"] .auth-brand {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin: -0.15rem 0 0.25rem;
}

html[data-page-kind="app"] .auth-brand-logo {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(7, 19, 38, 0.22));
}

html[data-page-kind="app"] .auth-brand-title {
  color: #071326;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-page-kind="app"] .auth-card-simple {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

html[data-page-kind="app"] .auth-card-simple .form-grid,
html[data-page-kind="app"] .auth-card-simple .field {
  min-width: 0;
  max-width: 100%;
}

html[data-page-kind="app"] .auth-card-simple .section-title {
  margin-bottom: 0;
}

html[data-page-kind="app"] .auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

html[data-page-kind="app"] .vhf-live-section {
  border-color: rgba(11, 34, 55, 0.92);
  background:
    radial-gradient(circle at 12% 10%, rgba(16, 188, 244, 0.28), transparent 24rem),
    linear-gradient(135deg, #071326 0%, #0c213b 58%, #102f3e 100%);
  color: #f8fbf6;
}

html[data-page-kind="app"] .vhf-live-section .section-subtitle,
html[data-page-kind="app"] .vhf-live-section .card-title {
  color: #ffffff;
}

html[data-page-kind="app"] .vhf-live-section .section-copy,
html[data-page-kind="app"] .vhf-live-section .detail-copy,
html[data-page-kind="app"] .vhf-live-section .eyebrow {
  color: rgba(248, 251, 246, 0.78);
}

html[data-page-kind="app"] .vhf-live-card,
html[data-page-kind="app"] .vhf-live-empty {
  border-color: rgba(248, 251, 246, 0.18);
  background: rgba(5, 15, 24, 0.74);
  box-shadow: none;
}

html[data-page-kind="app"] .vhf-live-meter {
  background: rgba(248, 251, 246, 0.16);
}

html[data-page-kind="app"] .vhf-live-section .chip {
  color: #f8fbf6;
  background: rgba(248, 251, 246, 0.12);
}

html[data-page-kind="app"] .vhf-live-section .status-pill.online {
  color: #ccfff3;
  background: rgba(15, 142, 105, 0.34);
}

html[data-page-kind="app"] .vhf-live-player {
  min-height: 2.45rem;
  border-radius: 6px;
  background: rgba(248, 251, 246, 0.18);
  accent-color: #14cafb;
}

html[data-page-kind="app"] .user-feeder-table-panel {
  width: 100%;
}

html[data-page-kind="app"] .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 19, 38, 0.48);
  backdrop-filter: blur(8px);
}

html[data-page-kind="app"] .modal-panel {
  width: min(100%, 32rem);
  max-height: min(90vh, 42rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(7, 19, 38, 0.24);
}

html[data-page-kind="app"] .claim-feeder-modal {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

html[data-page-kind="app"] .claim-feeder-modal .card-toolbar {
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
}

html[data-page-kind="app"] .claim-feeder-modal .icon-button {
  margin-left: auto;
}

html[data-page-kind="app"] .icon-button {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  justify-content: center;
  font-size: 0.95rem;
}

html[data-page-kind="app"] .command-log-card {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf8;
}

html[data-page-kind="app"] .command-log-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

html[data-page-kind="app"] .command-log-header > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

html[data-page-kind="app"] .command-log-header strong {
  font-size: 1rem;
}

html[data-page-kind="app"] .command-log-header span:not(.status-pill),
html[data-page-kind="app"] .command-log-meta,
html[data-page-kind="app"] .command-log-lines {
  color: var(--muted);
  line-height: 1.45;
}

html[data-page-kind="app"] .command-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-size: 0.88rem;
}

html[data-page-kind="app"] .command-log-lines {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  html[data-page-kind="app"] .page-shell {
    grid-template-columns: 1fr;
  }

  html[data-page-kind="app"] .auth-view {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.25rem 0.75rem 2rem;
    background:
      linear-gradient(180deg, #071326 0, #0b1d38 14rem, #f4f7f9 14rem, #f4f7f9 100%);
  }

  html[data-page-kind="app"] .auth-grid-simple {
    width: min(calc(100vw - 2rem), 24rem);
    justify-self: center;
  }

  html[data-page-kind="app"] .site-header {
    position: sticky;
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    border-right: 0;
    border-bottom: 1px solid rgba(247, 247, 242, 0.12);
  }

  html[data-page-kind="app"] .site-nav {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  html[data-page-kind="app"] .site-nav a,
  html[data-page-kind="app"] .site-nav button {
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    padding-inline: 0.5rem;
  }

  html[data-page-kind="app"] .auth-grid,
  html[data-page-kind="app"] .dashboard-grid,
  html[data-page-kind="app"] .stats-grid,
  html[data-page-kind="app"] .list-grid,
  html[data-page-kind="app"] .card-grid,
  html[data-page-kind="app"] .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
