:root {
  --bg: #05060b;
  --bg-2: #0b0d18;
  --ink: #eef0f8;
  --muted: #8b90a8;
  --line: rgba(255, 255, 255, 0.09);
  --panel: rgba(255, 255, 255, 0.035);
  --violet: #8b7bff;
  --cyan: #6fd7ff;
  --danger: #ff8f9b;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(120% 90% at 18% 0%, #141a34 0%, var(--bg-2) 46%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Landing ------------------------------------------------------------- */

.landing {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 24px
    max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
}

/* Two soft glows, moved with transform only. No canvas, no blur filter, no
   script: the compositor does all of it, which is what a phone needs. */
.landing::before,
.landing::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.landing::before {
  width: 80vmax;
  height: 80vmax;
  top: -34vmax;
  left: -22vmax;
  background: radial-gradient(
    circle at center,
    rgba(139, 123, 255, 0.26) 0%,
    rgba(139, 123, 255, 0.1) 34%,
    rgba(139, 123, 255, 0) 68%
  );
  animation: aurora-violet 32s ease-in-out infinite alternate;
}

.landing::after {
  width: 68vmax;
  height: 68vmax;
  right: -14vmax;
  bottom: -18vmax;
  background: radial-gradient(
    circle at center,
    rgba(111, 215, 255, 0.2) 0%,
    rgba(111, 215, 255, 0.07) 40%,
    rgba(111, 215, 255, 0) 70%
  );
  animation: aurora-cyan 41s ease-in-out infinite alternate;
}

@keyframes aurora-violet {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5vmax, 4vmax, 0) scale(1.08);
  }
}

@keyframes aurora-cyan {
  from {
    transform: translate3d(0, 0, 0) scale(1.04);
  }
  to {
    transform: translate3d(-4vmax, -3vmax, 0) scale(0.96);
  }
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 30px;
  text-align: center;
  padding-bottom: 4vh;
}

.wordmark {
  margin: 0;
  font-size: clamp(48px, 15vw, 116px);
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1;
  padding-left: 0.14em; /* balance the trailing letter-spacing */
  color: #f6f7ff;
  text-shadow: 0 0 42px rgba(139, 123, 255, 0.45), 0 0 120px rgba(111, 215, 255, 0.18);
  user-select: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.95), rgba(79, 167, 255, 0.9));
  color: #0a0b14;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(90, 120, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.button:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 40px rgba(90, 120, 255, 0.36);
}

.button:active {
  transform: translateY(1px);
}

.button-icon {
  flex: none;
  display: block;
}

.button.small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.button.tiny {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.button:focus-visible,
.link:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
}

.link:hover {
  color: var(--ink);
}

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

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

/* App shell ------------------------------------------------------------ */

.shell {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 18px
    max(28px, env(safe-area-inset-bottom));
  display: grid;
  /* An auto track takes a wide table's min-content width and widens the
     layout viewport on a phone. Let tracks shrink and the table scroll. */
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.shell.wide {
  width: min(860px, 100%);
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.identity-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 999px;
}

.identity-main:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
}

.avatar.small {
  width: 36px;
  height: 36px;
}

.avatar.initial {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.35), rgba(111, 215, 255, 0.25));
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.avatar.small.initial {
  font-size: 15px;
}

.avatar.xl {
  width: 96px;
  height: 96px;
}

.avatar.xl.initial {
  font-size: 38px;
}

.name {
  margin: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.tab.current {
  color: var(--ink);
  border-color: rgba(139, 123, 255, 0.5);
  background: rgba(139, 123, 255, 0.12);
}

.tab[title="Next"] {
  opacity: 0.55;
}

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* A wide table inside a grid item must scroll in its wrapper instead of
   widening the whole page on a phone. */
.cards > * {
  min-width: 0;
}

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

/* Profile -------------------------------------------------------------- */

.page-nav {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.page-head {
  display: grid;
  gap: 2px;
}

.page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.profile {
  justify-items: center;
  text-align: center;
  padding: 26px 18px;
}

.profile .status {
  font-size: 15px;
}

.signout {
  margin: 40px 0 0;
  display: flex;
  justify-content: center;
}

/* Outlined, muted ghost: clearly a button, but not the primary action and
   not a warning. Restored at the owner's request. */
.button.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.button.ghost:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
  filter: none;
}

.button.ghost:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Chat ----------------------------------------------------------------- */

.thread {
  min-height: 120px;
}

.messages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.messages li {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.messages li p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.messages li.user {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: rgba(139, 123, 255, 0.16);
}

.messages li.admin {
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: rgba(111, 215, 255, 0.12);
}

.messages.compact li {
  max-width: 100%;
}

.compose {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

textarea {
  flex: 1;
  min-height: 48px;
  max-height: 40vh;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

textarea::placeholder {
  color: #6b7186;
}

/* Owner queue ---------------------------------------------------------- */

.queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.entry {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  gap: 14px;
}

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

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.row-actions {
  margin: 0;
}

/* Invites -------------------------------------------------------------- */

.identity-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.link.strong {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.invite-new {
  border-color: rgba(111, 215, 255, 0.28);
  background: rgba(111, 215, 255, 0.06);
}

.invite-url {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1.4;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  color: var(--muted);
  font-size: 14px;
}

.field input {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  /* 16 px keeps iOS from zooming the page on focus. */
  font-size: 16px;
  width: 100%;
}

.field input::placeholder {
  color: #6b7186;
}

.field input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.field-actions {
  display: flex;
  justify-content: flex-end;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}

.invites {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.invites th,
.invites td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.invites th {
  color: var(--muted);
  font-weight: 500;
}

.invites .status {
  display: block;
  margin: 2px 0 0;
}

.cell-action {
  text-align: right;
}

.cell-action form {
  margin: 0;
}

.empty-hint {
  margin-top: 10px;
}

/* Console -------------------------------------------------------------- */

.shell.console {
  width: min(1120px, 100%);
  gap: 16px;
}

.small {
  font-size: 13px;
}

.console .page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 18px;
}

.console .page-head > div:first-child {
  min-width: 0;
}

.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.panel {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.panel h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.panel h3 {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error-panel {
  border-color: rgba(255, 143, 155, 0.34);
  background: rgba(255, 143, 155, 0.06);
}

.error-text {
  margin: 0;
  color: var(--danger);
  overflow-wrap: anywhere;
}

.warn-text {
  color: #ffd479;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
}

.badge.live {
  color: #8ff0c0;
  border-color: rgba(126, 240, 178, 0.32);
  background: rgba(126, 240, 178, 0.1);
}

.badge.stale,
.badge.warn {
  color: #ffd479;
  border-color: rgba(255, 212, 121, 0.32);
  background: rgba(255, 212, 121, 0.1);
}

.badge.offline,
.badge.muted {
  color: var(--muted);
}

.badge.info {
  color: #9fdcff;
  border-color: rgba(111, 215, 255, 0.3);
  background: rgba(111, 215, 255, 0.1);
}

.badge.error {
  color: var(--danger);
  border-color: rgba(255, 143, 155, 0.32);
  background: rgba(255, 143, 155, 0.1);
}

.alerts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.alert {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
}

.alert strong {
  font-weight: 600;
}

.alert.error {
  border-color: rgba(255, 143, 155, 0.3);
}

.alert.warn {
  border-color: rgba(255, 212, 121, 0.26);
}

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

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th,
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.data-table.compact th,
.data-table.compact td {
  padding: 6px 8px;
  font-size: 13px;
}

.cell-hp {
  white-space: nowrap;
}

.cell-pos,
.cell-payload,
.cell-accounts {
  overflow-wrap: anywhere;
}

.cell-pos {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-payload {
  max-width: 340px;
}

.cell-accounts {
  max-width: 280px;
}

.vitals {
  display: inline-block;
  width: 64px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  vertical-align: middle;
}

.vitals.big {
  display: block;
  width: 100%;
  height: 12px;
  margin: 0 0 4px;
}

.vitals-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4fd18b, #8ff0c0);
}

.vitals-fill.low {
  background: linear-gradient(90deg, #ff8f9b, #ffd479);
}

.kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  font-size: 14px;
}

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

.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.journal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  font-size: 13.5px;
}

.journal li {
  padding-left: 10px;
  border-left: 2px solid var(--line);
  overflow-wrap: anywhere;
}

.journal li.system {
  color: var(--muted);
  font-style: italic;
}

.orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}

.order-kind {
  font-weight: 600;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

/* Traffic catalog ------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.filter-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.filter-field.grow {
  flex: 1 1 220px;
}

.filters select,
.filters input {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.filters select:focus-visible,
.filters input:focus-visible {
  outline: 2px solid rgba(139, 123, 255, 0.55);
  outline-offset: 1px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}

.counts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.count-label {
  overflow-wrap: anywhere;
}

.count-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bars {
  display: grid;
  gap: 2px;
  font-size: 12.5px;
  max-height: 260px;
  overflow-y: auto;
}

.bar-row {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr) 3.5em;
  gap: 8px;
  align-items: center;
}

.bar-row.sub {
  margin-bottom: 4px;
}

.bar-label {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b7bff, #57d2e8);
}

.bar-fill.udp {
  background: linear-gradient(90deg, #4fd18b, #8ff0c0);
}

.bar-value {
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cell-nowrap {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.pager-links {
  display: flex;
  gap: 16px;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-head h2 {
  margin: 0;
}

.hexdump {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  overflow: auto;
  max-height: 72vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre;
}

/* Map ------------------------------------------------------------------ */

.map-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070b0f;
  overflow: hidden;
}

.map-canvas {
  display: block;
  width: 100%;
  height: min(64vh, 620px);
  min-height: 320px;
  cursor: grab;
  touch-action: none;
}

.map-canvas.dragging {
  cursor: grabbing;
}

.map-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.map-controls .tab {
  pointer-events: auto;
  min-height: 34px;
  padding: 4px 12px;
  background: rgba(5, 6, 11, 0.78);
  backdrop-filter: blur(6px);
}

button.tab {
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.map-spacer {
  flex: 1;
}

.map-readout {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 10px;
  background: rgba(5, 6, 11, 0.72);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* Map spikes (temporary, 2026-11-08) -------------------------------- */

.spike {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.spike-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}

.spike-title {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.spike-links {
  display: flex;
  gap: 14px;
}

.spike-map {
  position: relative;
  flex: 1;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070b0f;
  overflow: hidden;
}

.spike-map > canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Leaflet's own stylesheet loads after portal.css, so the size and background
   have to be more specific than `.leaflet-container` to win. */
.spike-map > .leaflet-container {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background: #070b0f;
}

.spike-status {
  position: absolute;
  left: 10px;
  bottom: 8px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 10px;
  background: rgba(5, 6, 11, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.leaflet-container {
  background: #070b0f;
  font: inherit;
}

.leaflet-tooltip {
  background: rgba(5, 6, 11, 0.92);
  border-color: var(--line);
  color: #cfe5f4;
}

@media (max-width: 560px) {
  .shell.console {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* All seven sections must be reachable without a hidden horizontal swipe. */
  .tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .console .page-head {
    align-items: flex-start;
  }

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

  .map-canvas {
    height: 56vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
