:root {
  --bg: #07090d;
  --bg-elev: #0e121a;
  --bg-panel: #121722;
  --bg-hover: #182030;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --grid-dot: rgba(255, 255, 255, 0.045);
  --txt: #eef3f9;
  --mut: #94a3b8;
  --mut2: #64748b;
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --sky: #38bdf8;
  --sky-bg: rgba(56, 189, 248, 0.12);
  --rose: #f43f5e;
  --rose-bg: rgba(244, 63, 94, 0.1);
  --shadow: 0 22px 54px -20px rgba(0, 0, 0, 0.78);
  --radius: 13px;
}

[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-elev: #ffffff;
  --bg-panel: #ffffff;
  --bg-hover: #eef2f7;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.2);
  --grid-dot: rgba(15, 23, 42, 0.05);
  --txt: #0f172a;
  --mut: #475569;
  --mut2: #64748b;
  --emerald: #059669;
  --emerald-bg: rgba(5, 150, 105, 0.1);
  --amber: #d97706;
  --amber-bg: rgba(217, 119, 6, 0.1);
  --sky: #0284c7;
  --sky-bg: rgba(2, 132, 199, 0.1);
  --rose: #e11d48;
  --rose-bg: rgba(225, 29, 72, 0.08);
  --shadow: 0 14px 36px -16px rgba(15, 23, 42, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: rgba(16, 185, 129, 0.35) transparent; scrollbar-width: thin; }

/* Custom sleek scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.28); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.55); border: 2px solid transparent; background-clip: content-box; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(960px 440px at 8% -6%, rgba(16, 185, 129, 0.11), transparent 60%),
    radial-gradient(760px 380px at 95% -4%, rgba(56, 189, 248, 0.09), transparent 60%),
    radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  color: var(--txt);
  font: 14.5px/1.55 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; margin: 0; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace; }
code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.87em;
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { max-width: 1440px; margin: 0 auto; padding: 0 22px; }

/* Animations */
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
@keyframes rowEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dossierReveal {
  from { opacity: 0; transform: translateY(6px) scale(0.994); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 600 13px/1 "Inter", sans-serif;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  color: var(--txt);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  text-decoration: none;
}
.btn:hover { border-color: var(--emerald); color: var(--emerald); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  border-color: transparent;
  color: #031510;
  font-weight: 700;
  box-shadow: 0 6px 20px -8px rgba(16, 185, 129, 0.65);
}
.btn-primary:hover { filter: brightness(1.08); color: #031510; box-shadow: 0 10px 24px -8px rgba(16, 185, 129, 0.8); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--mut); }
.btn-ghost:hover { color: var(--txt); background: var(--bg-hover); border-color: var(--line-strong); }
.btn-sm { padding: 7px 11px; font-size: 12px; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand-wrap { display: flex; align-items: center; gap: 11px; }
.brand-badge {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald), var(--sky));
  color: #04130d;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 6px 18px -6px rgba(16, 185, 129, 0.6);
}
.brand-title { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.brand-sub { font-size: 11.5px; color: var(--mut); }
.top-links { display: flex; flex-wrap: wrap; gap: 4px; }
.top-links a {
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mut);
  transition: color 0.15s, background 0.15s;
}
.top-links a:hover { color: var(--txt); background: var(--bg-hover); text-decoration: none; }
.top-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Hero */
.hero { padding: 30px 0 22px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--emerald);
  font-weight: 700;
  margin-bottom: 10px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulseRing 2.4s infinite;
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.07; letter-spacing: -0.03em; }
.accent-text {
  background: linear-gradient(95deg, var(--emerald), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead { color: var(--mut); margin: 12px 0 0; max-width: 66ch; font-size: 14.5px; }
.hero-lead b { color: var(--txt); }

.telemetry-panel { display: flex; flex-direction: column; gap: 10px; }
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.metric-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.metric-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.metric-card.emerald { border-top-color: var(--emerald); }
.metric-card.amber { border-top-color: var(--amber); }
.metric-card.sky { border-top-color: var(--sky); }
.metric-label { font-size: 10.5px; letter-spacing: 0.08em; color: var(--mut); }
.metric-val { font-size: 24px; font-weight: 800; line-height: 1.1; }
.metric-foot { font-size: 11.5px; color: var(--mut2); }

.progress-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mut);
  margin-bottom: 7px;
}
.progress-track {
  height: 7px;
  background: var(--bg-hover);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--sky));
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.tier-legend {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--txt);
}
.legend-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.t-proven .dot { background: var(--emerald); }
.t-world .dot { background: var(--amber); }
.t-visa .dot { background: var(--sky); }
.legend-hint { margin-left: auto; font-size: 11.5px; color: var(--mut); }

/* Sticky Filter Rail */
.filter-bar {
  position: sticky;
  top: 57px;
  z-index: 45;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.filter-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.search-box {
  position: relative;
  flex: 1 1 230px;
  min-width: 190px;
}
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mut);
  pointer-events: none;
}
.filter-bar input,
.filter-bar select {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--txt);
  border-radius: 8px;
  padding: 8px 10px;
  font: 500 13px/1.2 "Inter", sans-serif;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-box input { width: 100%; padding-left: 30px; }
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}
.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mut);
  cursor: pointer;
  user-select: none;
}
.toggle-chip input { accent-color: var(--emerald); }

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.qpill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--mut);
  font: 600 11.5px/1.2 "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}
.qpill:hover { border-color: var(--emerald); color: var(--txt); }
.qpill.active {
  background: var(--emerald-bg);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--emerald);
}

/* Workbench Split Pane */
.workbench { padding-top: 18px; padding-bottom: 42px; }
.workbench-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 12px;
}
.muted { color: var(--mut); }

.split-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.role-list { display: flex; flex-direction: column; gap: 9px; }

.role-row {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 15px;
  cursor: pointer;
  animation: rowEnter 0.3s both;
  transition: border-color 0.16s, background 0.16s, transform 0.16s, box-shadow 0.16s, opacity 0.2s;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.role-row:hover {
  background: var(--bg-hover);
  border-color: var(--line-strong);
  transform: translateX(3px);
}
.role-row.tier-proven { border-left-color: var(--emerald); }
.role-row.tier-worldwide { border-left-color: var(--amber); }
.role-row.tier-visa { border-left-color: var(--sky); }
.role-row.selected {
  background: var(--bg-hover);
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--emerald) 45%, transparent), 0 12px 26px -18px rgba(16, 185, 129, 0.65);
}
.role-row.applied { opacity: 0.64; }

.row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.row-co { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mut); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--mut);
}
.pill-proven { color: var(--emerald); background: var(--emerald-bg); border-color: rgba(16, 185, 129, 0.3); }
.pill-worldwide { color: var(--amber); background: var(--amber-bg); border-color: rgba(245, 158, 11, 0.3); }
.pill-visa { color: var(--sky); background: var(--sky-bg); border-color: rgba(56, 189, 248, 0.3); }
.pill-fit { color: var(--txt); background: var(--bg-elev); font-family: "JetBrains Mono", monospace; }
.pill-applied { color: var(--emerald); border-color: var(--emerald); }

.row-title { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--txt); }
.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--mut);
}
.row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.row-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--mut);
}
.row-cv { font-size: 11px; color: var(--sky); }

/* Dossier Pane */
.dossier-pane {
  position: sticky;
  top: 146px;
  max-height: calc(100vh - 162px);
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}
#dossierContent.animate-reveal { animation: dossierReveal 0.22s ease; }
.dossier-mobile-bar { display: none; }

.dos-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dos-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dos-head h2 { font-size: 21px; line-height: 1.25; }
.dos-company { font-size: 13.5px; color: var(--mut); }
.dos-company strong { color: var(--txt); }
.dos-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.dos-box {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.dos-box h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 6px;
}
.dos-box p { margin: 0; font-size: 13.5px; line-height: 1.58; }

.dos-elig {
  border-color: rgba(16, 185, 129, 0.35);
  background: color-mix(in srgb, var(--emerald-bg) 55%, var(--bg-elev));
}
.dos-salary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-color: rgba(245, 158, 11, 0.35);
  background: color-mix(in srgb, var(--amber-bg) 45%, var(--bg-elev));
}
.salary-fig { font-size: 18px; font-weight: 800; color: var(--amber); margin-top: 2px; }

.dos-benefits { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.dos-benefits li { margin: 4px 0; }

.cv-box {
  border-color: rgba(56, 189, 248, 0.35);
  background: color-mix(in srgb, var(--sky-bg) 42%, var(--bg-elev));
}
.cv-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

.track-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: center;
  margin-top: 8px;
}
.track-grid select,
.dos-box textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.dos-box textarea { margin-top: 10px; min-height: 76px; resize: vertical; }
.dos-box textarea:focus,
.track-grid select:focus { border-color: var(--emerald); }

/* Sections below workbench */
.section-block { padding: 34px 0; border-top: 1px solid var(--line); }
.section-head h2 { font-size: 22px; margin-bottom: 6px; }
.section-sub { color: var(--mut); max-width: 78ch; margin: 0; font-size: 14px; }

.excluded-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.excl-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius);
  padding: 13px 15px;
}
.excl-card strong { display: block; font-size: 13.5px; margin-bottom: 4px; color: var(--txt); }
.excl-card p { margin: 0; font-size: 12.5px; color: var(--mut); }

/* Live Radar */
.live-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.live-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.live-filter-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.live-filter-row input {
  flex: 1 1 280px;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
}
.live-boards-strip {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.board-chip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--mut);
}
.board-chip.ok { border-color: rgba(16, 185, 129, 0.45); color: var(--emerald); }
.board-chip.err { border-color: rgba(244, 63, 94, 0.4); color: var(--rose); }

.live-results-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.live-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.16s, border-color 0.16s;
}
.live-card:hover { transform: translateY(-2px); border-color: var(--emerald); }
.live-card h4 { font-size: 14.5px; }
.live-card-meta { font-size: 12px; color: var(--mut); }

.directories-box {
  margin-top: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.directories-box h3 { font-size: 11.5px; color: var(--mut); letter-spacing: 0.1em; margin-bottom: 10px; }
.dir-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-links a {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 12.5px;
  font-weight: 600;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 20px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--mut); }
.modal-form input, .modal-form select, .modal-form textarea {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 22px 34px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--mut2);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--emerald);
  color: var(--txt);
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 12.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.18s;
  z-index: 150;
}
.toast.show { opacity: 1; transform: translateY(0); }

.empty-state {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--mut);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .split-layout { grid-template-columns: 1fr; }
  .filter-bar { position: static; }
  .dossier-pane {
    display: none;
    position: fixed;
    inset: 10px;
    top: 14px;
    max-height: none;
    z-index: 110;
  }
  .dossier-pane.mobile-open { display: block; }
  .dossier-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .legend-hint { margin-left: 0; }
}
@media (max-width: 580px) {
  .form-row { grid-template-columns: 1fr; }
  .telemetry-grid { grid-template-columns: 1fr 1fr; }
  .shell { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==================== RADAR SWITCHER ==================== */
.radar-switcher {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}
.radar-switcher-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.radar-switcher-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
}
.radar-switcher-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.radar-switcher-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  color: var(--txt);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.radar-switcher-links a:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  text-decoration: none;
}
.radar-switcher-links a.active {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  border-color: transparent;
  color: #031510;
  font-weight: 800;
}
