:root {
  --bg: #070707;
  --bg-elevated: #101010;
  --bg-panel: #121212;
  --bg-hover: #1a1a1a;
  --line: #2a2a2a;
  --line-strong: #3d3d3d;
  --text: #f4f4f0;
  --muted: #9a9a90;
  --yellow: #ffd200;
  --yellow-dim: #c9a600;
  --yellow-glow: rgba(255, 210, 0, 0.18);
  --danger: #ff4d4d;
  --ok: #5dff9a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --font-display: "Oxanium", sans-serif;
  --font-body: "Figtree", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 210, 0, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 210, 0, 0.05), transparent 45%),
    linear-gradient(180deg, #0b0b0b 0%, #050505 100%);
  min-height: 100vh;
}

a {
  color: var(--yellow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  min-height: calc(100vh - var(--header-h, 320px));
  display: grid;
  grid-template-rows: 1fr;
}

.header-banner-band {
  background: #121212;
  border-bottom: 1px solid rgba(255, 210, 0, 0.35);
  /* Banner scrolls away; sticky nav lives in .site-header below. */
}

.site-header {
  --sky: #121212;
  --sky-deep: #0d0d0d;
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #050505;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.site-header[hidden] {
  display: none !important;
}

.header-brand {
  display: block;
  width: min(1030px, 100%);
  margin: 0 auto;
  line-height: 0;
  text-decoration: none;
}

.header-banner {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
  padding: 0.5rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 210, 0, 0.08), transparent 55%),
    linear-gradient(90deg, #101010, #0a0a0a 40%, #0a0a0a);
  border-bottom: 1px solid rgba(255, 210, 0, 0.2);
}

.header-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex-wrap: wrap;
}

.header-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  text-decoration: none;
  padding-right: 0.85rem;
  border-right: 1px solid var(--line-strong);
}

.header-wordmark:hover {
  color: #ffe566;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.nav a,
.nav .nav-current {
  color: var(--muted);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.nav a.active,
.nav .nav-current {
  color: #111;
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px rgba(255, 210, 0, 0.25), 0 8px 20px rgba(255, 210, 0, 0.18);
}

.session {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.session strong {
  color: var(--yellow);
  font-weight: 650;
}

.btn-compact {
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
  }

  .header-bar-left {
    width: 100%;
  }

  .header-wordmark {
    border-right: 0;
    padding-right: 0;
  }

  .session {
    width: 100%;
    justify-content: space-between;
  }
}

.btn,
button.btn {
  appearance: none;
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: #111;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn:hover,
button.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--yellow);
}

.btn.ghost:hover {
  background: var(--yellow-glow);
}

.btn.danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.page {
  padding: 1.25rem 1.4rem 2rem;
  width: min(1400px, 100%);
  margin: 0 auto;
}

.page.wide {
  width: min(1600px, 100%);
}

.flash {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 210, 0, 0.35);
  background: var(--yellow-glow);
  border-radius: 10px;
  color: var(--yellow);
}

.hero-line {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-line h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-line p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 48ch;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%), var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 1rem;
  min-height: 70vh;
}

@media (max-width: 980px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
}

#map {
  min-height: 65vh;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

body.map-mode {
  overflow: hidden;
}

body.map-mode .shell,
body.map-mode .page--map {
  padding: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: calc(100vh - var(--header-h, 300px));
}

.map-stage {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h, 300px));
  background: #050505;
}

.map-stage #map {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  z-index: 1;
}

.drawer-toggle {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1200;
  box-shadow: var(--shadow);
}

.units-drawer {
  position: absolute;
  top: 1rem;
  left: 1rem;
  bottom: 1rem;
  width: min(320px, calc(100vw - 2rem));
  z-index: 1100;
  display: flex;
  flex-direction: column;
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transform: translateX(calc(-105% - 1rem));
  transition: transform 0.2s ease;
  overflow: hidden;
  pointer-events: auto;
}

.units-drawer.open {
  transform: translateX(0);
}

.units-drawer .panel-head {
  padding: 0.85rem 1rem;
}

.units-drawer .side-list {
  max-height: none;
  flex: 1;
  overflow: auto;
}

body.map-mode .drawer-toggle {
  display: none;
}

body.map-mode .units-drawer:not(.open) ~ .drawer-toggle,
.map-stage:has(.units-drawer:not(.open)) .drawer-toggle {
  display: inline-flex;
}

.map-stage:has(.units-drawer:not(.open)) .drawer-toggle {
  display: inline-flex;
}

.map-stage:has(.units-drawer.open) .drawer-toggle {
  display: none;
}

.bot-sheet {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 2rem));
  z-index: 1300;
  pointer-events: auto;
}

.bot-sheet[hidden] {
  display: none !important;
}

.bot-sheet-inner {
  background: rgba(10, 10, 10, 0.94);
  border: 1px solid rgba(255, 210, 0, 0.35);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.bot-sheet-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.bot-sheet-top h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.sheet-kv {
  margin: 0.85rem 0;
}

.sheet-hint {
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

.cockpit-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.cockpit-bar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cockpit-bar p {
  margin: 0.25rem 0 0;
}

.cockpit-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cockpit-grid {
  grid-template-columns: 1.7fr 0.72fr;
  min-height: calc(100vh - var(--header-h, 300px) - 7rem);
}

.cockpit-grid .camera-stage {
  min-height: min(68vh, 720px);
  aspect-ratio: auto;
  height: min(68vh, 720px);
}

.hud-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.camera-hud .top {
  align-items: center;
}

.drawer-close {
  margin-left: auto;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.page--control {
  width: min(1600px, 100%);
}

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

  .cockpit-grid .camera-stage {
    height: min(55vh, 520px);
  }

  .bot-sheet {
    left: 1rem;
    right: 1rem;
    width: auto;
    transform: none;
  }
}

.weaver-leaflet-icon {
  background: transparent !important;
  border: none !important;
}

.weaver-pin {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid #111;
  box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.2), 0 0 18px rgba(255, 210, 0, 0.45);
}

.weaver-pin.selected {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 5px rgba(255, 210, 0, 0.28), 0 0 24px rgba(255, 210, 0, 0.55);
}

#map .leaflet-control-zoom a {
  background: #121212;
  color: var(--yellow);
  border-color: var(--line);
}

#map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.65);
  color: var(--muted);
}

#map .leaflet-control-attribution a {
  color: var(--yellow);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  max-height: 70vh;
  overflow: auto;
}

.bot-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: 0.15s ease;
}

.bot-card:hover,
.bot-card.active {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 0, 0.25);
}

.bot-card .row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.bot-card .name {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bot-card .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.badge.task {
  color: #111;
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 700;
}

.badge.claimed {
  color: var(--yellow);
  border-color: rgba(255, 210, 0, 0.45);
}

.badge.free {
  color: var(--ok);
  border-color: rgba(93, 255, 154, 0.35);
}

.table-wrap {
  overflow: auto;
}

table.fleet {
  width: 100%;
  border-collapse: collapse;
}

table.fleet th,
table.fleet td {
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.fleet th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

table.fleet tr:hover td {
  background: rgba(255, 210, 0, 0.03);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.login-wrap {
  min-height: calc(100vh - var(--header-h, 280px));
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: min(420px, 100%);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 210, 0, 0.08), transparent 40%),
    var(--bg-panel);
  box-shadow: var(--shadow);
}

.login-kicker {
  margin: 0 0 0.35rem;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 2rem;
}

.login-card .sub {
  color: var(--muted);
  margin: 0.4rem 0 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select {
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(255, 210, 0, 0.45);
  border-color: var(--yellow);
}

.error {
  color: var(--danger);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.control-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
}

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

.camera-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.camera-stage:focus {
  outline: 2px solid rgba(255, 210, 0, 0.55);
  outline-offset: 2px;
}

.legend-panel {
  overflow: hidden;
}

.legend-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  user-select: none;
}

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

.legend-panel[open] .legend-summary {
  border-bottom-color: var(--line);
}

.legend-toggle {
  color: var(--yellow);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend-body {
  padding: 1rem 1.1rem 1.15rem;
}

.legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.legend-body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

.legend-note {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.9rem;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  padding: 0.18rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #0a0a0a;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.2;
}

.legend-wiring {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.legend-wiring.armed {
  opacity: 1;
}

.wiring-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.wiring-actions.disabled {
  opacity: 0.45;
}

.btn.key-flash {
  filter: brightness(1.25);
  box-shadow: 0 0 0 1px rgba(255, 210, 0, 0.55);
}

.camera-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #050505;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.camera-stage canvas,
.camera-stage .camera-feed {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #050505;
}

.camera-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.9rem;
}

.camera-hud .top,
.camera-hud .bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--yellow);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  display: inline-block;
  box-shadow: 0 0 10px var(--danger);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

.pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 240px;
}

.pad .btn {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: var(--font-display);
}

.pad .spacer {
  visibility: hidden;
}

.detail-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.95rem;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
}

.gm-style .weaver-marker {
  /* reserved for Maps DOM markers */
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 1rem;
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: min(440px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.modal h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal p {
  color: var(--muted);
  margin-top: 0;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.enroll-panel {
  margin-bottom: 0;
}

.fleet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 1rem;
  align-items: start;
}

.fleet-main {
  min-width: 0;
}

.fleet-side {
  position: sticky;
  top: calc(var(--header-h, 7rem) + 0.75rem);
  max-height: calc(100vh - var(--header-h, 7rem) - 1.5rem);
  overflow: auto;
}

.fleet-side .pairing-lead,
.fleet-side .pairing-steps {
  font-size: 0.86rem;
}

.fleet-side .pairing-actions {
  margin: 0.75rem 0;
}

.code-block--side {
  max-height: 14rem;
  font-size: 0.7rem;
}

@media (max-width: 960px) {
  .fleet-layout {
    grid-template-columns: 1fr;
  }

  .fleet-side {
    position: static;
    max-height: none;
    order: 2;
  }

  .fleet-main {
    order: 1;
  }
}

.enroll-form {
  display: grid;
  gap: 0.35rem;
  max-width: 28rem;
}

.rename-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.rename-form .enroll-input {
  flex: 1 1 12rem;
  min-width: 10rem;
  margin: 0;
}

.enroll-input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a0a0a;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.enroll-input:focus {
  outline: 1px solid rgba(255, 210, 0, 0.55);
}

.fleet-row-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn.danger-text,
button.btn.danger-text {
  color: #ffb4b4;
  border-color: rgba(255, 120, 120, 0.35);
}

.fleet-empty td {
  text-align: center;
  padding: 1.5rem 1rem;
}

.pairing-panel .pairing-lead {
  color: var(--muted);
  margin: 0 0 1rem;
}

.pairing-token-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pairing-token-row .token-mask {
  display: inline-block;
  padding: 0.25rem 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 4px;
  word-break: break-all;
}

.pairing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0.85rem;
}

.pairing-steps {
  margin: 0 0 0.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.pairing-steps code {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 0.84em;
}

.pairing-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.code-block {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #ffd200;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 28rem;
}

body.auth-page .brand-mark {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}
body.auth-page .hayabusa-wheel-shell h1 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
}
body.auth-page .hayabusa-wheel-shell .lede {
  margin: 0.5rem 0 0;
  color: var(--muted);
}
body.auth-page .form-error {
  color: var(--danger);
  font-weight: 600;
}

/* wheel center on weaver dark chrome */
body.auth-page .hayabusa-wheel-shell .login-orb-center {
  border: 1px solid rgba(255, 210, 0, 0.45);
  background: rgba(8, 8, 8, 0.92);
  color: var(--yellow);
  box-shadow: var(--shadow);
}
