:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0f0f10;
  --surface-2: #171718;
  --surface-3: #232325;
  --text: #f5f5f1;
  --muted: #a7a7a2;
  --faint: #6f6f6a;
  --line: #2b2b2d;
  --accent: #5d8cff;
  --accent-2: #b9cdfd;
  --success: #f5f5f1;
  --warning: #d7b46a;
  --danger: #ff7b72;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(93, 140, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #111112 0%, var(--bg) 34%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 540px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px 96px;
}

.topbar,
.brand,
.user-chip,
.command-center,
.progress-strip,
.panel-heading,
.recommendation-header,
.metrics,
.bottom-nav,
.segmented {
  display: flex;
  align-items: center;
}

.topbar,
.panel-heading,
.recommendation-header,
.bottom-nav {
  justify-content: space-between;
}

.brand {
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #3b3b3e;
  border-radius: 10px;
  object-fit: contain;
  background: #f5f5f1;
  box-shadow: 0 12px 32px var(--shadow);
}

.auth-logo {
  width: 58px;
  height: 58px;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px);
}

.auth-screen.hidden {
  display: none;
}

.auth-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #0d0d0e;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.auth-panel h1 {
  font-size: 1.7rem;
}

.auth-panel p,
.auth-panel small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.auth-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-panel input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.auth-link {
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #3b3b3e;
  border-radius: 8px;
  background: #f5f5f1;
  color: #050505;
  font-weight: 900;
  box-shadow: 0 12px 32px var(--shadow);
}

.user-chip {
  gap: 8px;
  max-width: 174px;
  border: 1px solid #3a3a3c;
  border-radius: 999px;
  padding: 6px 7px 6px 11px;
  background: rgba(255, 255, 255, 0.06);
}

.quota-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 4px;
  border: 1px solid rgba(245, 245, 241, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.quota-strip span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #050505;
  background: #f5f5f1;
  font-size: 0.74rem;
  font-weight: 900;
}

.quota-strip strong {
  flex: 1;
  color: var(--text);
  font-size: 0.84rem;
}

.quota-strip a,
.quota-strip button,
.link-button {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.inline-link {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.link-button.primary {
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 12px 15px;
  color: #050505;
  background: #f5f5f1;
}

.pro-panel {
  margin-top: 12px;
}

.pro-actions {
  margin-top: 10px;
}

.compact-button {
  min-height: 36px;
  padding: 8px 10px;
}

.user-chip span {
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 9px;
  color: #050505;
  background: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.15;
}

.status-pill,
.badge,
.freshness {
  border: 1px solid #3a3a3c;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
}

.command-center {
  gap: 10px;
  margin: 18px 0 12px;
}

.position-live-strip {
  display: block;
}

.position-live-card {
  min-height: auto;
}

.position-live-card strong {
  margin-bottom: 5px;
  font-size: 1.45rem;
}

.live-card,
.alert-card,
.progress-strip,
.hunter-panel,
.map-panel,
.recommendation-card,
.empty-state,
.utility-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 15, 16, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.live-card,
.alert-card {
  flex: 1;
  min-height: 112px;
  padding: 14px;
}

.live-card strong,
.alert-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.65rem;
  line-height: 1.05;
}

.alert-card strong {
  color: var(--warning);
  font-size: 1.2rem;
}

.live-card span,
.alert-card span,
.empty-state p,
.utility-grid p,
.metric span {
  color: var(--muted);
}

.warning-text {
  color: var(--warning);
}

.discovery-strip {
  border-color: rgba(255, 207, 112, 0.45);
  background: rgba(255, 207, 112, 0.08);
}

.progress-strip {
  gap: 12px;
  min-height: 76px;
  margin-bottom: 12px;
  padding: 13px 14px;
}

.progress-strip > div:first-child {
  min-width: 104px;
}

.progress-strip strong {
  font-size: 1rem;
}

.progress-track {
  position: relative;
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #232326;
}

.progress-track span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--text), var(--accent));
  transition: width 260ms ease;
}

.task-progress {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(93, 140, 255, 0.24);
  border-radius: 8px;
  padding: 11px;
  background: rgba(93, 140, 255, 0.065);
}

.task-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-progress-head strong {
  font-size: 0.86rem;
}

.task-progress-head span,
.task-progress small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.task-progress-head b {
  color: var(--text);
  font: inherit;
}

.task-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #232326;
}

.task-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--text), var(--accent));
  transition: width 280ms ease;
}

.shift-runtime {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.045);
}

.shift-runtime span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shift-runtime strong {
  color: var(--text);
  font-size: 0.9rem;
}

.shift-planner-note {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  line-height: 1.4;
}

.no-mission-card {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.18);
}

.watchlist-options {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.watchlist-options strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}

.watchlist-options span {
  color: var(--text);
  font-size: 0.9rem;
}

.gain-chip {
  min-width: 116px;
  border: 1px solid rgba(93, 140, 255, 0.38);
  border-radius: 999px;
  padding: 9px 10px;
  color: var(--accent-2);
  background: rgba(93, 140, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.hunter-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(23, 23, 24, 0.98), rgba(8, 8, 9, 0.98));
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.source-detail {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.segmented {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #050505;
}

.segment {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.segment.active {
  color: #050505;
  background: var(--text);
  font-weight: 900;
}

.profile-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.profile-panel label {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-panel label:last-child {
  grid-column: 1 / -1;
}

.profile-panel select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #3a3a3c;
  border-radius: 6px;
  padding: 0 8px;
  color: var(--text);
  background: #050505;
  font-weight: 800;
}

.profile-panel input[type="range"] {
  width: 100%;
  accent-color: var(--text);
}

.profile-panel span {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: none;
}

.hunter-button {
  position: relative;
  width: 100%;
  min-height: 112px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #050505;
  background: linear-gradient(180deg, #ffffff, #d9d9d4);
  box-shadow: 0 22px 56px rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.shift-button {
  width: 100%;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  background: #101114;
  cursor: pointer;
  text-align: left;
  padding: 14px 16px;
}

.shift-button:disabled {
  opacity: 0.68;
}

.shift-button span {
  display: block;
  font-size: 1.05rem;
  font-weight: 950;
}

.shift-button small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.hunter-button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #050505, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.hunter-button.loading::after {
  transform: scaleX(var(--loading-progress, 0.4));
}

.hunter-button:disabled {
  opacity: 0.72;
}

.hunter-button span {
  display: block;
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1.05;
}

.hunter-button small {
  display: block;
  margin-top: 8px;
  padding: 0 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.voice {
  min-height: 50px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgba(93, 140, 255, 0.28);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(93, 140, 255, 0.08);
  color: var(--accent-2);
  line-height: 1.35;
}

.llm-insight-card,
.shift-plan-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.045);
}

.llm-insight-card.hidden,
.shift-plan-card.hidden {
  display: none;
}

.llm-insight-card strong,
.shift-plan-card strong {
  color: var(--text);
  font-size: 0.95rem;
}

.llm-insight-card p,
.shift-plan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.shift-plan-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.recommendations {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.empty-state,
.recommendation-card {
  padding: 16px;
}

.empty-state {
  min-height: 126px;
  border-style: dashed;
}

.recommendation-card.best {
  border-color: rgba(245, 245, 241, 0.58);
  background: linear-gradient(180deg, rgba(30, 30, 32, 0.98), rgba(12, 12, 13, 0.98));
}

.recommendation-card h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.badge {
  min-width: 64px;
  color: #050505;
  background: var(--text);
  border-color: transparent;
  font-size: 0.78rem;
  text-align: center;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.insight-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}

.compare-row > div {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.032);
}

.compare-row > div:last-child {
  border-color: rgba(93, 140, 255, 0.35);
  background: rgba(93, 140, 255, 0.09);
}

.compare-row span,
.compare-row small {
  display: block;
  color: var(--muted);
}

.compare-row strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 1.25rem;
  line-height: 1;
}

.insight-row > div,
.alternative-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.insight-row span,
.insight-row small,
.alternative-card span,
.alternative-card small {
  display: block;
  color: var(--muted);
}

.insight-row strong,
.alternative-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.12rem;
  line-height: 1.1;
}

.alternative-card {
  margin: 0 0 12px;
  border-color: rgba(215, 180, 106, 0.38);
  background: rgba(215, 180, 106, 0.08);
}

.alternative-card strong {
  color: var(--warning);
}

.uplift-panel {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  border: 1px solid rgba(93, 140, 255, 0.28);
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, rgba(93, 140, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.uplift-panel span,
.uplift-panel small {
  color: var(--muted);
}

.uplift-panel strong {
  font-size: 1.55rem;
  line-height: 1.05;
}

.strategy-strip {
  display: grid;
  gap: 4px;
  margin: -2px 0 12px;
  border: 1px solid rgba(93, 140, 255, 0.22);
  border-radius: 8px;
  padding: 11px;
  background: rgba(93, 140, 255, 0.07);
}

.strategy-strip span {
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.strategy-strip strong {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.3;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 12px;
}

.signal-strip span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.74rem;
  font-weight: 900;
}

.metrics {
  gap: 8px;
  margin: 14px 0;
}

.metric {
  flex: 1;
  min-height: 78px;
  border: 1px solid rgba(45, 57, 69, 0.8);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.metric strong {
  display: block;
  margin-top: 7px;
  font-size: 1.15rem;
  line-height: 1.1;
}

.metric small {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.25;
}

.reason-list {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.35;
}

.proof-summary {
  margin: -2px 0 13px;
  color: var(--accent-2);
  font-size: 0.88rem;
  line-height: 1.35;
}

.why-zone-grid {
  display: grid;
  gap: 9px;
  margin: 0 12px 12px;
}

.why-zone-block {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.034);
}

.why-zone-block span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.why-zone-block strong,
.why-zone-block p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.35;
}

.why-zone-plan {
  border-color: rgba(31, 191, 117, 0.26);
  background: rgba(31, 191, 117, 0.055);
}

.why-zone-data {
  border-color: rgba(93, 140, 255, 0.22);
  background: rgba(93, 140, 255, 0.055);
}

.compact-reasons {
  margin-top: 0;
  font-size: 0.82rem;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feedback-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.feedback-actions button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.feedback-actions button:disabled {
  opacity: 0.72;
}

.post-mission-feedback {
  margin-top: 10px;
  border: 1px solid rgba(31, 191, 117, 0.26);
  border-radius: 8px;
  padding: 10px;
  background: rgba(31, 191, 117, 0.055);
}

.post-mission-feedback summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.post-mission-feedback label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.post-mission-feedback input,
.post-mission-feedback select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  background: #070708;
  font: inherit;
}

.post-mission-feedback button {
  width: 100%;
  margin-top: 10px;
}

.comparison-detail {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  border: 1px solid rgba(245, 245, 241, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.score-details {
  margin: 0 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.score-details summary {
  min-height: 42px;
  padding: 12px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  list-style: none;
}

.score-details summary::-webkit-details-marker {
  display: none;
}

.score-details summary::after {
  float: right;
  color: var(--muted);
  content: "+";
}

.score-details[open] summary::after {
  content: "-";
}

.score-details .reason-list,
.score-details .proof-summary,
.score-details .signal-strip,
.score-details .insight-row {
  margin-right: 12px;
  margin-left: 12px;
}

.comparison-detail span,
.comparison-detail small {
  color: var(--muted);
}

.comparison-detail strong {
  font-size: 0.96rem;
  line-height: 1.3;
}

.confidence-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.primary,
.secondary {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-3);
  cursor: pointer;
}

.primary {
  border: 0;
  color: #050505;
  background: var(--text);
  font-weight: 900;
}

.utility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.map-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
}

.mini-map {
  position: relative;
  height: 292px;
  min-height: 292px;
  max-height: 292px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(93, 140, 255, 0.22), transparent 28%),
    #070708;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.real-map {
  background: #070708;
}

.google-premium-map {
  background: #101114;
}

.google-premium-map::after {
  content: "Google Maps Premium";
  position: absolute;
  z-index: 5;
  right: 10px;
  top: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(245, 245, 241, 0.18);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.leaflet-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #111;
  font-family: inherit;
}

.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-map-pane {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  user-select: none;
}

.leaflet-pane > svg,
.leaflet-pane > canvas {
  pointer-events: none;
}

.leaflet-interactive {
  cursor: pointer;
  pointer-events: auto;
}

.mission-map-pin-shell {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}

.mission-map-pin {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(245, 245, 241, 0.96);
  border-radius: 50%;
  color: #03140b;
  background: rgba(31, 191, 117, var(--mission-alpha, 0.82));
  box-shadow:
    0 0 0 4px rgba(3, 20, 11, 0.38),
    0 0 0 9px rgba(31, 191, 117, 0.20),
    0 10px 22px rgba(0, 0, 0, 0.42);
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
  transform: scale(var(--mission-scale, 1));
}

.mission-map-pin.best {
  width: 38px;
  height: 38px;
  box-shadow:
    0 0 0 4px rgba(245, 245, 241, 0.38),
    0 0 0 10px rgba(31, 191, 117, 0.26),
    0 12px 28px rgba(0, 0, 0, 0.52);
}

.leaflet-control-container {
  display: none;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 8px;
}

.driver-dot,
.zone-pin {
  position: absolute;
  transform: translate(-50%, -50%);
}

.driver-dot {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(93, 140, 255, 0.8);
  border-radius: 50%;
  background: rgba(93, 140, 255, 0.15);
}

.driver-dot span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(93, 140, 255, 0.14);
  transform: translate(-50%, -50%);
}

.zone-pin {
  display: grid;
  scale: var(--pin-scale, 1);
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(31, 191, 117, var(--pin-alpha, 0.72));
  border-radius: 50%;
  color: #04120b;
  background: rgba(31, 191, 117, var(--pin-alpha, 0.72));
  font-weight: 900;
  cursor: pointer;
}

.zone-pin.best {
  box-shadow: 0 0 0 8px rgba(31, 191, 117, 0.16);
}

.map-list {
  display: grid;
  gap: 8px;
}

.map-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.map-list p {
  margin: 0;
  color: var(--muted);
}

.utility-grid article {
  min-height: 154px;
  padding: 14px;
}

.utility-grid h2 {
  font-size: 1rem;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.94);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  min-width: 68px;
  padding: 10px 6px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.bottom-nav a.active {
  color: #050505;
  background: var(--text);
  font-weight: 900;
}

@media (min-width: 760px) {
  .app-shell {
    padding-top: 28px;
  }
}

@media (max-width: 390px) {
  .command-center,
  .progress-strip,
  .profile-panel,
  .compare-row,
  .insight-row,
  .utility-grid,
  .actions,
  .feedback-actions {
    grid-template-columns: 1fr;
  }

  .command-center,
  .metrics {
    align-items: stretch;
    flex-direction: column;
  }

  .hunter-button span {
    font-size: 1.42rem;
  }
}

.admin-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 14px 80px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

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

.admin-login input,
.admin-fare-tools input,
.admin-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: #050505;
  font: inherit;
}

.admin-grid textarea {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.admin-log {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: #050505;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-fare-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-editor {
  margin-top: 12px;
}

.admin-editor summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 10px;
}

.admin-fare-list {
  max-height: 320px;
}

.admin-list {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow: auto;
}

.admin-list div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-list span,
.admin-grid small {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.82rem;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-table code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  margin-right: 6px;
  font-size: 0.72rem;
  font-weight: 950;
}

.plan-pill.pro {
  border-color: rgba(125, 162, 255, 0.72);
  color: #dce6ff;
  background: rgba(125, 162, 255, 0.14);
}

.plan-pill.free {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.muted-action {
  color: var(--muted);
  font-size: 0.78rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-fare-tools {
    grid-template-columns: 1fr;
  }
}

.main-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.tab-btn {
  flex: 1;
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.tab-btn .tab-label {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tab-btn small {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 750;
}

.tab-btn.active {
  border-color: rgba(245, 245, 241, 0.28);
  color: #050505;
  background: var(--text);
}

.tab-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.tab-content {
  display: none;
  animation: fadeIn 0.18s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.shift-plan-container {
  display: grid;
  gap: 14px;
}

.shift-header {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(15, 15, 16, 0.96);
}

.shift-header h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.shift-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.shift-controls {
  display: grid;
  gap: 10px;
}

.shift-plan-cta {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 74px;
  padding: 14px 16px;
  text-align: left;
}

.shift-plan-cta span {
  font-size: 1.05rem;
  font-weight: 950;
}

.shift-plan-cta small {
  font-size: 0.84rem;
  font-weight: 750;
}

.shift-timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(15, 15, 16, 0.96);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-time {
  font-weight: 700;
  color: var(--accent-2);
  font-size: 0.82rem;
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  margin: 0 0 4px 0;
  color: var(--text);
  font-size: 1rem;
}

.timeline-role {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.timeline-trigger {
  margin-top: 6px !important;
  color: var(--text) !important;
}

.timeline-kpi {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid rgba(93, 140, 255, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--accent-2);
  background: rgba(93, 140, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 850;
}

.shift-warning {
  border-color: rgba(255, 123, 114, 0.32);
  background: rgba(255, 123, 114, 0.06);
}

.shift-warning .timeline-time,
.shift-warning h3 {
  color: var(--danger);
}

.shift-checkpoints {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(15, 15, 16, 0.96);
}

.shift-checkpoints h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.shift-checkpoints div {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.shift-checkpoints strong {
  color: var(--accent-2);
  font-size: 0.78rem;
}

.shift-checkpoints p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.llm-brief-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(93, 140, 255, 0.24);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: rgba(93, 140, 255, 0.07);
  font-size: 0.88rem;
  line-height: 1.45;
}

.llm-brief-panel h3 {
  margin: 0;
  color: var(--text);
}

.llm-brief-panel:empty {
  display: none;
}

.llm-brief-panel details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.llm-brief-panel summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
}

.llm-brief-panel details > div {
  margin-top: 8px;
}
