/* mostusefulmaps.css — the product's own layer.
   Site tokens from home.css, then everything here is namespaced .mm- so it can
   never leak into the catalogue's shared DOM (1,205 cards share one document). */

.mm-body {
  --mm-accent: #2dd4ff;
  --mm-accent-dim: rgba(45, 212, 255, 0.16);
  --mm-gold: #ffd400;
  --mm-bg: #070d14;
  --mm-bg-2: #0d151f;
  --mm-bg-3: #121c28;
  --mm-line: rgba(255, 255, 255, 0.09);
  --mm-text: #e6faff;
  --mm-dim: rgba(230, 250, 255, 0.68);
  --mm-dimmer: rgba(230, 250, 255, 0.45);
  --mm-danger: #ff6b6b;
  --mm-ok: #39ff14;
  --mm-radius: 14px;
  --mm-panel-w: 372px;
  margin: 0;
  padding: 0;
  background: var(--mm-bg);
  color: var(--mm-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.mm-body * { box-sizing: border-box; }
.mm-body a { color: var(--mm-accent); }

.mm-body.light {
  --mm-bg: #f3f6f9;
  --mm-bg-2: #ffffff;
  --mm-bg-3: #e9eef4;
  --mm-line: rgba(12, 32, 48, 0.12);
  --mm-text: #0d2233;
  --mm-dim: rgba(13, 34, 51, 0.72);
  --mm-dimmer: rgba(13, 34, 51, 0.5);
  --mm-accent: #0f6f95;
  --mm-accent-dim: rgba(15, 111, 149, 0.12);
}

/* Visually hidden, still read by screen readers and search engines. */
.mm-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------- topbar */

.mm-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--mm-bg-2);
  border-bottom: 1px solid var(--mm-line);
  z-index: 30;
  flex-wrap: wrap;
}

.mm-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  text-decoration: none;
  color: var(--mm-text);
  white-space: nowrap;
}
.mm-brand .mm-brand-dot {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mm-accent), #1d7fa8);
  color: #04121b; font-size: 15px;
}
.mm-brand small { display: block; font-weight: 600; font-size: 0.62rem; color: var(--mm-dimmer); letter-spacing: 0.06em; text-transform: uppercase; }

.mm-search { position: relative; flex: 1 1 320px; min-width: 220px; display: flex; }
.mm-search input {
  width: 100%;
  padding: 10px 12px 10px 34px;
  border-radius: 10px;
  border: 1px solid var(--mm-line);
  background: var(--mm-bg-3);
  color: var(--mm-text);
  font-size: 0.92rem;
  font-family: inherit;
}
.mm-search input:focus { outline: 2px solid var(--mm-accent); outline-offset: 1px; }
.mm-search .mm-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--mm-dimmer); font-size: 0.95rem; pointer-events: none;
}
.mm-search .mm-search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--mm-dimmer); font-size: 1.1rem;
  cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.mm-search .mm-search-clear:hover { color: var(--mm-text); background: var(--mm-accent-dim); }

.mm-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--mm-bg-2);
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  max-height: 60vh; overflow-y: auto; z-index: 40;
  margin: 0; padding: 4px; list-style: none;
}
.mm-suggest:empty { display: none; }
.mm-suggest li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.mm-suggest li[aria-selected="true"], .mm-suggest li:hover { background: var(--mm-accent-dim); }
.mm-suggest .mm-suggest-kind { font-size: 0.95rem; width: 20px; text-align: center; }
.mm-suggest .mm-suggest-name { font-weight: 650; font-size: 0.9rem; }
.mm-suggest .mm-suggest-detail { font-size: 0.76rem; color: var(--mm-dim); }
.mm-suggest .mm-suggest-where { margin-left: auto; font-size: 0.72rem; color: var(--mm-dimmer); white-space: nowrap; }

.mm-top-links { display: flex; gap: 8px; align-items: center; }
.mm-top-links a, .mm-top-links button {
  font-size: 0.82rem; font-weight: 600; color: var(--mm-dim); text-decoration: none;
  border: 1px solid var(--mm-line); background: transparent; padding: 7px 10px;
  border-radius: 9px; cursor: pointer; font-family: inherit;
}
.mm-top-links a:hover, .mm-top-links button:hover { color: var(--mm-text); border-color: var(--mm-accent); }

/* -------------------------------------------------------------------- stage */

.mm-stage { position: relative; flex: 1; display: flex; overflow: hidden; }
.mm-map-wrap { position: relative; flex: 1; min-width: 0; background: var(--mm-bg); }
.mm-map { position: absolute; inset: 0; }
.mm-live-layer { position: absolute; inset: 0; }

.mm-hud { position: absolute; inset: 0; pointer-events: none; }
.mm-hud > * { pointer-events: auto; }

.mm-coord {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(7, 13, 20, 0.78);
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  padding: 6px 10px;
  font: 0.76rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  max-width: min(60vw, 420px);
}
.mm-body.light .mm-coord { background: rgba(255, 255, 255, 0.88); }
.mm-coord b { font-weight: 700; }
.mm-coord .mm-coord-row { color: var(--mm-dim); }
.mm-coord .mm-coord-row + .mm-coord-row { margin-top: 2px; }

.mm-attrib {
  position: absolute; right: 12px; bottom: 12px; left: auto;
  font-size: 0.68rem; color: var(--mm-dimmer);
  background: rgba(7, 13, 20, 0.72);
  border-radius: 8px; padding: 4px 8px; max-width: 52%;
  text-align: right; line-height: 1.35;
}
.mm-body.light .mm-attrib { background: rgba(255, 255, 255, 0.85); }
.mm-attrib a { color: inherit; text-decoration: underline; }

.mm-tools-left {
  position: absolute; left: 12px; top: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.mm-tool {
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--mm-line); background: var(--mm-bg-2);
  color: var(--mm-text); font-size: 1.05rem; cursor: pointer;
  display: grid; place-items: center;
}
.mm-tool:hover { border-color: var(--mm-accent); background: var(--mm-bg-3); }
.mm-tool[aria-pressed="true"] { border-color: var(--mm-accent); background: var(--mm-accent-dim); }
.mm-tool[disabled] { opacity: 0.45; cursor: not-allowed; }

.mm-status {
  position: absolute; left: 12px; top: 12px; transform: translateX(50px);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  max-width: calc(100% - 120px);
}
.mm-chip {
  font-size: 0.72rem; font-weight: 650; padding: 5px 9px; border-radius: 100px;
  border: 1px solid var(--mm-line); background: rgba(7, 13, 20, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: 6px;
}
.mm-body.light .mm-chip { background: rgba(255, 255, 255, 0.85); }
.mm-chip .mm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mm-dimmer); }
.mm-chip[data-state="ok"] .mm-dot { background: var(--mm-ok); }
.mm-chip[data-state="warn"] .mm-dot { background: var(--mm-gold); }
.mm-chip[data-state="fail"] .mm-dot { background: var(--mm-danger); }
.mm-chip button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0 2px; }

/* ------------------------------------------------------------------- panels */

.mm-rail {
  width: var(--mm-panel-w);
  flex: 0 0 var(--mm-panel-w);
  background: var(--mm-bg-2);
  border-left: 1px solid var(--mm-line);
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 20;
}
.mm-body.rail-hidden .mm-rail { display: none; }

.mm-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--mm-line); overflow-x: auto; }
.mm-tab {
  border: 0; background: none; color: var(--mm-dim); font: inherit; font-size: 0.8rem; font-weight: 650;
  padding: 8px 10px; border-radius: 9px 9px 0 0; cursor: pointer; white-space: nowrap;
}
.mm-tab[aria-selected="true"] { color: var(--mm-text); background: var(--mm-bg-3); box-shadow: inset 0 -2px 0 var(--mm-accent); }
.mm-tab:hover { color: var(--mm-text); }

.mm-panes { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.mm-pane { padding: 14px; display: none; }
.mm-pane[data-active="true"] { display: block; }

.mm-pane h2 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--mm-dimmer); margin: 0 0 8px; font-weight: 800;
}
.mm-pane h3 { font-size: 1rem; margin: 0 0 4px; font-weight: 800; letter-spacing: -0.01em; }
.mm-pane p { margin: 0 0 10px; font-size: 0.85rem; color: var(--mm-dim); }
.mm-pane p.tight { margin-bottom: 6px; }
.mm-hr { height: 1px; background: var(--mm-line); margin: 14px 0; border: 0; }
.mm-muted { color: var(--mm-dimmer); font-size: 0.78rem; }
.mm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

.mm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mm-stat { background: var(--mm-bg-3); border: 1px solid var(--mm-line); border-radius: 11px; padding: 9px 10px; }
.mm-stat .mm-stat-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mm-dimmer); font-weight: 800; }
.mm-stat .mm-stat-value { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.mm-stat .mm-stat-sub { font-size: 0.72rem; color: var(--mm-dim); }

.mm-field { display: block; margin-bottom: 9px; }
.mm-field span { display: block; font-size: 0.72rem; font-weight: 700; color: var(--mm-dim); margin-bottom: 4px; }
.mm-field input, .mm-field select {
  width: 100%; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--mm-line);
  background: var(--mm-bg-3); color: var(--mm-text); font: inherit; font-size: 0.86rem;
}
.mm-field input:focus, .mm-field select:focus { outline: 2px solid var(--mm-accent); outline-offset: 0; }
.mm-field-row { display: flex; gap: 8px; }
.mm-field-row .mm-field { flex: 1; }

.mm-btn {
  border: 1px solid var(--mm-line); background: var(--mm-bg-3); color: var(--mm-text);
  font: inherit; font-size: 0.83rem; font-weight: 650; padding: 8px 11px; border-radius: 9px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.mm-btn:hover { border-color: var(--mm-accent); }
.mm-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.mm-btn.primary { background: var(--mm-accent); border-color: var(--mm-accent); color: #04121b; }
.mm-btn.primary:hover { filter: brightness(1.08); }
.mm-btn.ghost { background: transparent; }
.mm-btn.wide { width: 100%; }
.mm-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mm-tag {
  border: 1px solid var(--mm-line); background: transparent; color: var(--mm-dim);
  font: inherit; font-size: 0.78rem; padding: 6px 10px; border-radius: 100px; cursor: pointer;
}
.mm-tag[aria-pressed="true"] { border-color: var(--mm-accent); color: var(--mm-text); background: var(--mm-accent-dim); }
.mm-tag:hover { color: var(--mm-text); }

.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list li { border-bottom: 1px solid var(--mm-line); }
.mm-list li:last-child { border-bottom: 0; }
.mm-row {
  display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; color: inherit; font: inherit; padding: 9px 2px; cursor: pointer;
}
.mm-row:hover { background: var(--mm-accent-dim); }
.mm-row .mm-row-name { font-weight: 650; font-size: 0.87rem; }
.mm-row .mm-row-detail { font-size: 0.75rem; color: var(--mm-dim); }
.mm-row .mm-row-right { margin-left: auto; font-size: 0.75rem; color: var(--mm-dimmer); white-space: nowrap; }

.mm-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 0.84rem; margin: 0; }
.mm-kv dt { color: var(--mm-dimmer); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.mm-kv dd { margin: 0; }
.mm-kv dd .mm-copy { background: none; border: 0; color: var(--mm-dimmer); cursor: pointer; font-size: 0.72rem; padding: 0 0 0 6px; }
.mm-kv dd .mm-copy:hover { color: var(--mm-accent); }

.mm-steps { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.82rem; }
.mm-steps li { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--mm-line); }
.mm-steps li:last-child { border-bottom: 0; }
.mm-steps .mm-step-icon { flex: 0 0 22px; text-align: center; }
.mm-steps .mm-step-text { flex: 1; }
.mm-steps .mm-step-meta { color: var(--mm-dimmer); font-size: 0.74rem; white-space: nowrap; }

.mm-sun { display: flex; align-items: center; gap: 10px; font-size: 0.83rem; }
.mm-sun svg { flex: 0 0 auto; }

.mm-chart { width: 100%; height: 74px; display: block; border-radius: 9px; background: var(--mm-bg-3); }

.mm-note {
  border: 1px solid var(--mm-line); border-left: 3px solid var(--mm-accent);
  background: var(--mm-bg-3); border-radius: 9px; padding: 9px 10px;
  font-size: 0.79rem; color: var(--mm-dim); margin: 10px 0 0;
}
.mm-note.warn { border-left-color: var(--mm-gold); }
.mm-note.bad { border-left-color: var(--mm-danger); }
.mm-note a { color: var(--mm-accent); }

/* Place enrichment: deliberately compact so a useful snapshot does not hide
   the coordinates and route actions above it. */
.mm-place-enrichment { margin-top: 18px; border-top: 1px solid var(--mm-line); padding-top: 2px; }
.mm-place-enrichment > h2 { margin-top: 16px; }
.mm-place-context-grid { display: grid; gap: 10px; }
.mm-place-context-card { border: 1px solid var(--mm-line); border-radius: 11px; background: var(--mm-bg-3); padding: 10px; min-width: 0; }
.mm-place-context-card h3 { margin: 0 0 7px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mm-dimmer); }
.mm-place-context-card .mm-kv { font-size: 0.78rem; }
.mm-place-context-stat { display: flex; align-items: baseline; gap: 8px; margin: 1px 0 7px; }
.mm-place-context-stat b { font-size: 1.55rem; line-height: 1; color: var(--mm-accent); }
.mm-place-context-stat span { color: var(--mm-dim); font-size: 0.78rem; }
.mm-place-context-list { list-style: none; padding: 0; margin: 0; font-size: 0.79rem; }
.mm-place-context-list li { padding: 5px 0; border-bottom: 1px solid var(--mm-line); }
.mm-place-context-list li:last-child { border-bottom: 0; }
.mm-place-context-list a { font-weight: 650; }
.mm-source-line { margin: 8px 0 0; font-size: 0.7rem; color: var(--mm-dimmer); }
.mm-source-line a { color: var(--mm-dim); }
.mm-place-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.mm-place-gallery figure { margin: 0; min-width: 0; }
.mm-place-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; background: var(--mm-bg-2); }
.mm-place-gallery figcaption { min-width: 0; padding-top: 4px; font-size: 0.7rem; line-height: 1.35; }
.mm-place-gallery figcaption a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-place-gallery figcaption .mm-muted { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mm-sources { list-style: none; padding: 0; margin: 6px 0 0; font-size: 0.78rem; }
.mm-sources li { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--mm-line); }
.mm-sources li:last-child { border-bottom: 0; }
.mm-sources .mm-src-name { font-weight: 650; }
.mm-sources .mm-src-meta { margin-left: auto; color: var(--mm-dimmer); text-align: right; }

.mm-toast {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--mm-bg-2); border: 1px solid var(--mm-line); color: var(--mm-text);
  padding: 9px 14px; border-radius: 11px; font-size: 0.84rem; z-index: 60;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 180ms ease;
  pointer-events: none; max-width: min(80vw, 480px);
}
.mm-toast.show { opacity: 1; }

.mm-spinner {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--mm-line); border-top-color: var(--mm-accent);
  animation: mm-spin 700ms linear infinite; vertical-align: -2px;
}
@keyframes mm-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- about page */

.mm-doc { max-width: 760px; margin: 0 auto; padding: 26px 18px 60px; }
.mm-doc h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 10px; }
.mm-doc h2 { font-size: 1.12rem; margin: 26px 0 8px; }
.mm-doc p, .mm-doc li { font-size: 0.92rem; color: var(--mm-dim); }
.mm-doc a { color: var(--mm-accent); }
.mm-doc table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 10px 0; }
.mm-doc th, .mm-doc td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--mm-line); vertical-align: top; }
.mm-doc th { color: var(--mm-dimmer); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; }

/* --------------------------------------------------------------- responsive */

.mm-sheet-toggle { display: none; }

@media (max-width: 900px) {
  .mm-body { height: auto; min-height: 100vh; }
  .mm-stage { flex-direction: column; }
  .mm-map-wrap { height: 58vh; flex: 0 0 auto; }
  .mm-rail {
    width: 100%; flex: 1 1 auto; border-left: 0; border-top: 1px solid var(--mm-line);
    max-height: none;
  }
  .mm-body.rail-hidden .mm-rail { display: flex; }
  .mm-sheet-toggle { display: inline-flex; }
  .mm-coord { max-width: calc(100% - 24px); font-size: 0.72rem; }
  .mm-attrib { max-width: 45%; font-size: 0.62rem; }
  .mm-grid3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .mm-top { padding: 8px 10px; gap: 8px; }
  .mm-brand small { display: none; }
  .mm-search { flex-basis: 100%; order: 3; }
  .mm-top-links a span { display: none; }
  .mm-grid2, .mm-grid3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-toast, .mm-spinner, .mm-live-layer { transition: none !important; animation: none !important; }
}

/* Print: the one thing anyone prints from a map is the place details. */
@media print {
  .mm-top, .mm-tools-left, .mm-status, .mm-attrib, .mm-tabs { display: none !important; }
  .mm-body { background: #fff; color: #000; height: auto; }
  .mm-pane:not([data-active="true"]) { display: none; }
  .mm-rail { border: 0; }
}

/* ---------------------------------------------------------------- driving
   The Drive panel and the navigation overlay. Everything here is about one
   question: can the driver read the two numbers that matter — the limit and
   their own speed — at a glance, in sunlight, without taking their eyes off
   the road for longer than a glance. */

.mm-note.good { border-left-color: var(--mm-ok); }
.mm-btn.small { padding: 4px 9px; font-size: 0.76rem; }

.mm-details { margin: 12px 0 0; border-top: 1px solid var(--mm-line); padding-top: 10px; }
.mm-details summary { cursor: pointer; font-size: 0.8rem; color: var(--mm-dim); font-weight: 650; }
.mm-details[open] summary { margin-bottom: 8px; }

.mm-drive-section { margin: 14px 0 0; border-top: 1px solid var(--mm-line); padding-top: 10px; }
.mm-drive-section h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--mm-dimmer); margin: 0 0 6px; }
.mm-drive-alt { margin: 12px 0 0; }
.mm-drive-alt h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--mm-dimmer); margin: 0 0 6px; }
.mm-alt-row {
  display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left;
  background: var(--mm-bg-3); border: 1px solid var(--mm-line); border-radius: 9px;
  padding: 8px 10px; margin-bottom: 6px; color: inherit; font: inherit; cursor: pointer;
}
.mm-alt-row:hover { border-color: var(--mm-accent); }
.mm-alt-row b { font-size: 0.86rem; }

.mm-limit-list, .mm-event-list { list-style: none; padding: 0; margin: 0; font-size: 0.82rem; }
.mm-limit-row, .mm-event-row, .mm-weather-row {
  display: flex; align-items: baseline; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--mm-line);
}
.mm-limit-row:last-child, .mm-event-row:last-child, .mm-weather-row:last-child { border-bottom: 0; }
.mm-weather-row { flex-direction: column; align-items: flex-start; gap: 2px; }

.mm-limit-sign {
  flex: 0 0 auto; min-width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid #ef4757; color: #fff; background: #0d1117;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: 0.8rem; line-height: 1;
}
.mm-limit-profile { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 10px 0 4px; background: var(--mm-bg-3); }
.mm-limit-seg { display: block; height: 100%; }

/* The navigation overlay sits over the map, bottom-left on wide screens. */
.mm-nav {
  position: absolute; left: 14px; bottom: 14px; z-index: 6;
  width: min(420px, calc(100% - 28px));
  background: rgba(9, 14, 20, 0.94); border: 1px solid var(--mm-line);
  border-radius: 14px; padding: 12px 14px 10px; color: var(--mm-text, #e6faff);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.mm-nav-next { display: flex; gap: 11px; align-items: center; }
.mm-nav-icon { font-size: 1.7rem; line-height: 1; flex: 0 0 auto; }
.mm-nav-text { display: flex; flex-direction: column; min-width: 0; }
.mm-nav-text b { font-size: 1.32rem; font-weight: 750; letter-spacing: -0.01em; }
.mm-nav-text span { font-size: 0.92rem; color: var(--mm-dim); }
.mm-nav-signs { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; }
.mm-speed {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%; border: 4px solid #ef4757;
  background: #f8fafc; color: #0b1118;
}
.mm-speed .mm-speed-value { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.mm-speed .mm-speed-unit { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; color: #38424f; }
.mm-speed.current { background: #0d1117; color: #e6faff; border-color: var(--mm-line); }
.mm-speed.current .mm-speed-unit { color: var(--mm-dimmer); }
.mm-speed.current[data-over="true"] { border-color: #ef4757; }
.mm-speed.current[data-over="true"] .mm-speed-value { color: #ff6b78; }
.mm-nav-bar { height: 6px; border-radius: 4px; background: var(--mm-bg-3); overflow: hidden; }
.mm-nav-bar span { display: block; height: 100%; width: 0; background: var(--mm-accent); transition: width 0.4s ease; }
.mm-nav-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 0.8rem; color: var(--mm-dim); }
.mm-nav-meta span:first-child { font-weight: 650; color: var(--mm-text, #e6faff); }
.mm-nav-meta .mm-btn { margin-left: 0; }
.mm-nav-meta .mm-btn:first-of-type { margin-left: auto; }
.mm-nav-alert { margin-top: 8px; font-size: 0.82rem; color: #ffd400; }

@media (max-width: 900px) {
  .mm-nav { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 10px 12px 8px; }
  .mm-nav-text b { font-size: 1.15rem; }
  .mm-speed { width: 54px; height: 54px; }
  .mm-speed .mm-speed-value { font-size: 1.25rem; }
}

/* -------------------------------------------------------------------- polish
   The map should feel quiet before it feels clever. These refinements keep the
   dense feature set behind a clear first action, and make the same controls
   comfortable on a mouse, a keyboard and a phone. */

.mm-body {
  --mm-accent: #49d8ff;
  --mm-accent-strong: #16b9e6;
  --mm-accent-dim: rgba(73, 216, 255, 0.13);
  --mm-bg: #071018;
  --mm-bg-2: rgba(10, 20, 30, 0.96);
  --mm-bg-3: #111f2c;
  --mm-line: rgba(212, 239, 255, 0.12);
  --mm-line-strong: rgba(212, 239, 255, 0.22);
  --mm-text: #f0fbff;
  --mm-dim: rgba(226, 246, 255, 0.72);
  --mm-dimmer: rgba(226, 246, 255, 0.48);
  --mm-panel-w: 400px;
  letter-spacing: -0.005em;
}

.mm-body.light {
  --mm-bg-2: rgba(255, 255, 255, 0.96);
  --mm-bg-3: #eef3f7;
  --mm-line: rgba(14, 43, 62, 0.13);
  --mm-line-strong: rgba(14, 43, 62, 0.22);
  --mm-text: #102838;
  --mm-dim: rgba(16, 40, 56, 0.76);
  --mm-dimmer: rgba(16, 40, 56, 0.52);
}

.mm-top {
  min-height: 68px;
  padding: 10px 16px;
  gap: 14px;
  background: var(--mm-bg-2);
  border-bottom: 1px solid var(--mm-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mm-brand { gap: 10px; font-size: 1.08rem; }
.mm-brand .mm-brand-dot {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(145deg, #56e2ff 0%, #1494c2 100%);
  box-shadow: 0 5px 16px rgba(45, 212, 255, 0.2);
  color: #03131c; font-size: 18px;
}
.mm-brand small { margin-top: 1px; font-size: 0.58rem; letter-spacing: 0.085em; }

.mm-search {
  flex: 1 1 500px;
  max-width: 720px;
  min-width: 280px;
  margin: 0 auto;
}
.mm-search input {
  height: 44px;
  padding: 10px 74px 10px 42px;
  border-radius: 13px;
  border-color: var(--mm-line-strong);
  background: color-mix(in srgb, var(--mm-bg-3) 92%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 16px rgba(0,0,0,0.08);
  font-size: 0.94rem;
}
.mm-search input::placeholder { color: var(--mm-dimmer); }
.mm-search input:focus {
  outline: 3px solid rgba(73, 216, 255, 0.22);
  border-color: var(--mm-accent);
  box-shadow: 0 0 0 1px var(--mm-accent), 0 8px 22px rgba(0,0,0,0.16);
}
.mm-search .mm-search-icon { left: 15px; font-size: 1.38rem; line-height: 1; color: var(--mm-accent); }
.mm-search-shortcut {
  position: absolute; right: 36px; top: 50%; transform: translateY(-50%);
  color: var(--mm-dimmer); border: 1px solid var(--mm-line);
  background: rgba(255,255,255,0.035); border-radius: 6px;
  padding: 2px 5px; font: 600 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}
.mm-search .mm-search-clear { right: 7px; font-size: 1.2rem; }
.mm-suggest { top: calc(100% + 8px); border-radius: 14px; padding: 6px; }
.mm-suggest li { padding: 11px 12px; }
.mm-suggest .mm-suggest-kind { color: var(--mm-accent); }

.mm-top-links { gap: 7px; }
.mm-top-links a, .mm-top-links button {
  min-height: 38px;
  padding: 8px 11px;
  border-color: var(--mm-line);
  border-radius: 10px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.mm-top-links a:hover, .mm-top-links button:hover { background: var(--mm-accent-dim); transform: translateY(-1px); }
.mm-top-links .mm-sheet-toggle { color: var(--mm-text); }

.mm-stage { min-height: 0; }
.mm-map-wrap { isolation: isolate; }
.mm-map { background: #071018; }
.mm-hud { z-index: 10; }
.mm-tools-left, .mm-map-zoom { gap: 7px; }
.mm-tools-left { left: 14px; top: 16px; }
.mm-map-zoom { position: absolute; right: 14px; top: 16px; display: flex; flex-direction: column; }
.mm-tool {
  width: 42px; height: 42px; border-radius: 12px;
  border-color: rgba(236, 250, 255, 0.18);
  background: rgba(8, 18, 27, 0.84);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 1.15rem; font-weight: 650;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.mm-tool:hover { border-color: var(--mm-accent); background: rgba(14, 37, 51, 0.94); transform: translateY(-1px); }
.mm-tool:focus-visible, .mm-btn:focus-visible, .mm-tab:focus-visible, .mm-tag:focus-visible,
.mm-quick-action:focus-visible, .mm-recent-item:focus-visible {
  outline: 3px solid rgba(73, 216, 255, 0.42); outline-offset: 2px;
}
.mm-body.light .mm-tool { background: rgba(255,255,255,0.9); }
.mm-map-hint {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border: 1px solid var(--mm-line);
  border-radius: 999px; color: var(--mm-dimmer);
  background: rgba(7, 16, 24, 0.64); font-size: 0.72rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: none; transition: opacity 260ms ease;
}
.mm-map-hint-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mm-accent); box-shadow: 0 0 0 4px rgba(73,216,255,0.12); }
.mm-body.light .mm-map-hint { background: rgba(255,255,255,0.78); }
.mm-status {
  left: 68px; top: 17px; transform: none;
  max-width: calc(100% - 144px); gap: 6px;
}
.mm-chip { padding: 6px 10px; border-color: rgba(236,250,255,0.15); background: rgba(7,16,24,0.68); }
.mm-body.light .mm-chip { background: rgba(255,255,255,0.83); }
.mm-coord { left: 14px; bottom: 48px; border-radius: 11px; padding: 7px 11px; box-shadow: 0 8px 18px rgba(0,0,0,0.16); }
.mm-attrib { right: 14px; bottom: 14px; }

.mm-rail {
  width: var(--mm-panel-w); flex-basis: var(--mm-panel-w);
  background: var(--mm-bg-2);
  border-left-color: var(--mm-line);
  box-shadow: -12px 0 28px rgba(0,0,0,0.11);
}
.mm-tabs {
  gap: 3px; padding: 10px 10px 0; min-height: 60px;
  background: var(--mm-bg-2); border-bottom-color: var(--mm-line);
}
.mm-tab {
  flex: 1 1 auto;
  min-width: 0; min-height: 49px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 7px 6px 8px;
  border: 0; color: var(--mm-dimmer);
  font-size: 0.68rem; letter-spacing: 0.015em;
  transition: color 150ms ease, background 150ms ease;
}
.mm-tab-icon { display: block; color: currentColor; font-size: 1.05rem; font-weight: 750; line-height: 1; }
.mm-tab[aria-selected="true"] {
  color: var(--mm-text); background: var(--mm-accent-dim);
  box-shadow: inset 0 -2px 0 var(--mm-accent); border-radius: 10px 10px 0 0;
}
.mm-tab[aria-selected="true"] .mm-tab-icon { color: var(--mm-accent); }
.mm-tab:hover { color: var(--mm-text); background: var(--mm-accent-dim); }
.mm-panes { scrollbar-color: rgba(126,197,222,0.35) transparent; }
.mm-pane { padding: 18px 18px 22px; }
.mm-pane > h2 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 16px; color: var(--mm-text);
  font-size: 0.94rem; letter-spacing: -0.01em; text-transform: none;
}
.mm-pane > h2::before { content: ''; width: 4px; height: 17px; border-radius: 4px; background: var(--mm-accent); }
.mm-pane h3 { font-size: 1.12rem; }
.mm-pane p { line-height: 1.55; }
.mm-pane .mm-muted { line-height: 1.5; }
.mm-field { margin-bottom: 12px; }
.mm-field span { margin-bottom: 5px; font-size: 0.7rem; letter-spacing: 0.015em; }
.mm-field input, .mm-field select { min-height: 42px; padding: 10px 11px; border-radius: 10px; border-color: var(--mm-line-strong); }
.mm-btn { min-height: 40px; padding: 9px 12px; border-radius: 10px; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.mm-btn:hover { transform: translateY(-1px); }
.mm-btn.primary { background: linear-gradient(135deg, var(--mm-accent), var(--mm-accent-strong)); box-shadow: 0 7px 16px rgba(22,185,230,0.17); }
.mm-btn.ghost { border-color: var(--mm-line-strong); }
.mm-btn-row { gap: 7px; }
.mm-tag { padding: 7px 10px; border-color: var(--mm-line-strong); transition: background 150ms ease, border-color 150ms ease; }
.mm-stat { padding: 11px 12px; border-radius: 12px; }
.mm-stat .mm-stat-value { margin-top: 2px; font-size: 1.06rem; }
.mm-note { border-radius: 10px; padding: 10px 11px; line-height: 1.5; }
.mm-details { margin-top: 16px; padding-top: 12px; }

/* The first panel is a launchpad, not an empty state. */
.mm-welcome { padding: 2px 0 4px; }
.mm-eyebrow {
  display: inline-block; margin-bottom: 8px; color: var(--mm-accent);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.mm-welcome h3 { font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -0.035em; margin-bottom: 6px; }
.mm-welcome-copy { max-width: 34ch; color: var(--mm-dim); }
.mm-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 14px; }
.mm-quick-action {
  display: flex; align-items: center; gap: 9px; min-height: 66px; padding: 10px;
  border: 1px solid var(--mm-line); border-radius: 12px; background: var(--mm-bg-3);
  color: var(--mm-text); text-align: left; cursor: pointer; font: inherit;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.mm-quick-action:hover { border-color: var(--mm-accent); background: var(--mm-accent-dim); transform: translateY(-1px); }
.mm-quick-icon {
  flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 9px; background: var(--mm-accent-dim); color: var(--mm-accent); font-size: 1.15rem; font-weight: 750;
}
.mm-quick-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mm-quick-copy b { font-size: 0.79rem; }
.mm-quick-copy small { color: var(--mm-dimmer); font-size: 0.68rem; line-height: 1.25; }
.mm-welcome-tip {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 11px;
  border: 1px solid var(--mm-line); border-radius: 10px; color: var(--mm-dim); background: color-mix(in srgb, var(--mm-bg-3) 72%, transparent);
  font-size: 0.75rem;
}
.mm-welcome-tip b { color: var(--mm-text); font-weight: 750; }
.mm-tip-mark { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--mm-line-strong); border-radius: 6px; color: var(--mm-accent); font: 700 0.72rem ui-monospace, monospace; }
.mm-recent { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--mm-line); }
.mm-recent h2 { margin: 0 0 7px; color: var(--mm-dimmer); font-size: 0.69rem; letter-spacing: 0.1em; text-transform: uppercase; }
.mm-recent-list { display: flex; flex-direction: column; }
.mm-recent-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 3px; border: 0; border-bottom: 1px solid var(--mm-line);
  background: transparent; color: var(--mm-dim); text-align: left; cursor: pointer; font: inherit; font-size: 0.8rem;
}
.mm-recent-item:hover { color: var(--mm-text); }
.mm-recent-pin { color: var(--mm-accent); font-size: 1.2rem; line-height: 0.5; }

.mm-toast { bottom: 24px; border-radius: 12px; border-color: var(--mm-line-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Keep settings visually separate from the panel body. */
.mm-rail > .mm-panes:last-child { background: color-mix(in srgb, var(--mm-bg-3) 48%, transparent); }
.mm-rail > .mm-panes:last-child .mm-pane { padding: 13px 18px 16px !important; }
.mm-rail > .mm-panes:last-child .mm-field { margin-bottom: 9px !important; }
.mm-rail > .mm-panes:last-child .mm-field input,
.mm-rail > .mm-panes:last-child .mm-field select { min-height: 38px; padding: 8px 10px; }
.mm-sun { padding-top: 7px; }

/* On a phone, the rail is a sheet. The map stays usable while the sheet is
   open, and a single Menu button can give the map the whole screen. */
@media (max-width: 900px) {
  .mm-body { height: 100dvh; min-height: 100dvh; overflow: hidden; }
  .mm-top { min-height: 64px; }
  .mm-stage { flex: 1 1 auto; min-height: 0; }
  .mm-map-wrap { height: 57dvh; flex: 0 0 57dvh; }
  .mm-rail {
    min-height: 0; max-height: 43dvh; flex: 1 1 43dvh;
    border-top: 1px solid var(--mm-line-strong); border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 28px rgba(0,0,0,0.16);
  }
  .mm-rail::before { content: ''; display: block; width: 34px; height: 4px; margin: 7px auto 0; border-radius: 4px; background: var(--mm-line-strong); }
  .mm-tabs { padding-top: 4px; min-height: 56px; }
  .mm-pane { padding: 15px 16px 20px; }
  .mm-body.rail-hidden .mm-rail { display: none; }
  .mm-body.rail-hidden .mm-map-wrap { height: auto; flex: 1 1 auto; }
  .mm-map-hint { top: auto; bottom: 18px; font-size: 0.68rem; }
  .mm-coord { bottom: 50px; left: 10px; }
  .mm-attrib { right: 10px; bottom: 10px; max-width: 43%; }
  .mm-status { left: 62px; top: 12px; max-width: calc(100% - 118px); }
  .mm-chip { font-size: 0.66rem; padding: 5px 8px; }
  .mm-tools-left { left: 10px; top: 11px; }
  .mm-map-zoom { right: 10px; top: 11px; }
  .mm-tool { width: 38px; height: 38px; border-radius: 11px; }
  .mm-nav { bottom: 9px; }
}

@media (max-width: 560px) {
  .mm-top { min-height: 66px; padding: 8px 10px; gap: 7px; }
  .mm-brand { font-size: 0.96rem; }
  .mm-brand .mm-brand-dot { width: 30px; height: 30px; font-size: 16px; }
  .mm-brand small { display: none; }
  .mm-search { flex-basis: 100%; min-width: 0; max-width: none; order: 3; }
  .mm-search input { height: 40px; padding-left: 38px; font-size: 0.86rem; }
  .mm-search-shortcut { display: none; }
  .mm-top-links { margin-left: auto; }
  .mm-top-links a { display: none; }
  .mm-top-links a, .mm-top-links button { min-height: 34px; padding: 6px 8px; font-size: 0.75rem; }
  .mm-top-links .mm-sheet-toggle span:last-child { display: none; }
  .mm-map-wrap { height: 54dvh; flex-basis: 54dvh; }
  .mm-rail { max-height: 46dvh; flex-basis: 46dvh; }
  .mm-tabs { overflow-x: auto; }
  .mm-tab { min-width: 57px; font-size: 0.63rem; }
  .mm-pane > h2 { margin-bottom: 13px; }
  .mm-quick-actions { gap: 7px; }
  .mm-quick-action { min-height: 61px; padding: 8px; }
  .mm-quick-icon { flex-basis: 26px; width: 26px; height: 26px; font-size: 1rem; }
  .mm-quick-copy b { font-size: 0.75rem; }
  .mm-quick-copy small { font-size: 0.63rem; }
  .mm-attrib { font-size: 0.56rem; }
  .mm-coord { max-width: calc(100% - 20px); font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-top-links a, .mm-top-links button, .mm-tool, .mm-btn, .mm-quick-action { transition: none; }
}

@media print {
  .mm-map-hint, .mm-map-zoom, .mm-sheet-toggle { display: none !important; }
}
.mm-brand-dot svg { width: 21px; height: 21px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mm-brand-dot svg path { fill: currentColor; stroke: none; }
.mm-has-map-interaction .mm-map-hint { opacity: 0; }
.mm-settings-pane { display: block !important; }
.mm-recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mm-recent-clear { border: 0; padding: 3px 0; background: transparent; color: var(--mm-dimmer); cursor: pointer; font: 600 0.68rem inherit; }
.mm-recent-clear:hover { color: var(--mm-accent); }

/* Route choices stay visible without turning the panel into a settings wall. */
.mm-route-group { margin: 13px 0 10px; }
.mm-control-label { display: block; margin: 0 0 6px; color: var(--mm-dim); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.02em; }
.mm-route-group .mm-chips { margin-bottom: 0; }
.mm-route-hint, .mm-route-summary { margin: 8px 0 12px !important; color: var(--mm-dimmer) !important; font-size: 0.72rem !important; line-height: 1.45 !important; }
.mm-route-summary { color: var(--mm-accent) !important; font-weight: 700; }
.mm-route-alternatives { display: grid; gap: 7px; margin: 0 0 14px; }
.mm-route-alternative {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 11px;
  border: 1px solid var(--mm-line); border-radius: 10px; background: var(--mm-bg-3); color: var(--mm-text); cursor: pointer; text-align: left; font: inherit;
}
.mm-route-alternative:hover { border-color: var(--mm-accent); background: var(--mm-accent-dim); }
.mm-route-alternative-copy { display: flex; flex-direction: column; gap: 2px; }
.mm-route-alternative-copy b { font-size: 0.8rem; }
.mm-route-alternative-copy small { color: var(--mm-dim); font-size: 0.72rem; }
.mm-route-alternative-arrow { color: var(--mm-accent); font-size: 1.1rem; }
.mm-nav-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 8px; color: var(--mm-dimmer); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mm-nav-mode { color: var(--mm-accent); font-weight: 800; }
.mm-nav-offline { letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- cockpit
   Driving guidance is intentionally unlike the browsing UI: dark, bold,
   extremely high contrast and readable in one glance. The cyan edge and
   lime/amber lane states give it a futuristic instrument-panel feel without
   turning the actual instruction into decoration. */
.mm-nav {
  width: min(478px, calc(100% - 28px));
  padding: 14px 16px 13px;
  border: 1px solid rgba(73, 216, 255, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(11, 29, 42, 0.98), rgba(5, 12, 19, 0.97) 62%),
    var(--mm-bg-2);
  box-shadow: 0 0 0 1px rgba(73, 216, 255, 0.08), 0 20px 55px rgba(0, 0, 0, 0.58), 0 0 32px rgba(45, 212, 255, 0.1);
  overflow: hidden;
}
.mm-nav::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #49d8ff, #a3ff5c 48%, #49d8ff);
  box-shadow: 0 0 16px rgba(73, 216, 255, 0.65);
}
.mm-nav-topline { margin: 0 0 10px; padding-top: 1px; }
.mm-nav-mode { letter-spacing: 0.12em; text-shadow: 0 0 14px rgba(73, 216, 255, 0.5); }
.mm-nav-next { gap: 13px; align-items: stretch; }
.mm-nav-icon {
  display: grid; place-items: center; flex: 0 0 68px; width: 68px; height: 68px;
  border: 1px solid rgba(73, 216, 255, 0.38); border-radius: 15px;
  background: linear-gradient(145deg, rgba(73, 216, 255, 0.18), rgba(73, 216, 255, 0.04));
  color: #d9fbff; font-size: 2.35rem; font-family: system-ui, sans-serif;
  text-shadow: 0 0 18px rgba(73, 216, 255, 0.8);
}
.mm-nav-text { justify-content: center; gap: 3px; }
.mm-nav-text b { font-size: 2.08rem; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: #f5fdff; }
.mm-nav-text span { font-size: 1.02rem; line-height: 1.22; color: rgba(240, 251, 255, 0.86); }
.mm-nav-signs { gap: 12px; margin: 12px 0 9px; }
.mm-speed { width: 76px; height: 76px; border-width: 5px; box-shadow: 0 0 0 3px rgba(239, 71, 87, 0.1), 0 8px 22px rgba(0,0,0,0.26); }
.mm-speed .mm-speed-value { font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.mm-speed .mm-speed-unit { font-size: 0.61rem; font-weight: 800; }
.mm-speed.current { border-color: rgba(212, 239, 255, 0.24); background: rgba(3, 10, 16, 0.88); }
.mm-speed.current[data-over="true"] { border-color: #ff5368; box-shadow: 0 0 18px rgba(255, 83, 104, 0.42); }
.mm-nav-lanes {
  margin: 12px 0 2px; padding: 9px 10px 8px;
  border: 1px solid rgba(73, 216, 255, 0.2); border-radius: 12px;
  background: rgba(3, 12, 19, 0.72);
}
.mm-nav-lanes-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: rgba(226, 246, 255, 0.62); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.mm-nav-lanes-heading span:first-child { color: #a3ff5c; }
.mm-lane-strip { display: flex; align-items: stretch; gap: 4px; min-height: 59px; }
.mm-lane {
  position: relative; display: flex; flex: 1 1 0; min-width: 39px; min-height: 59px;
  align-items: center; justify-content: center; flex-direction: column; gap: 2px;
  border: 1px solid rgba(226, 246, 255, 0.15); border-radius: 8px;
  background: rgba(226, 246, 255, 0.06); color: rgba(226, 246, 255, 0.5);
}
.mm-lane::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 1px; height: 8px; background: currentColor; opacity: 0.45; }
.mm-lane-arrow { font-size: 1.65rem; line-height: 1; font-weight: 700; letter-spacing: -0.1em; white-space: nowrap; }
.mm-lane-number { font: 700 0.55rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; opacity: 0.65; }
.mm-lane[data-state="active"] { border-color: #a3ff5c; background: linear-gradient(180deg, rgba(163, 255, 92, 0.34), rgba(163, 255, 92, 0.1)); color: #dfffca; box-shadow: inset 0 0 18px rgba(163, 255, 92, 0.14), 0 0 13px rgba(163, 255, 92, 0.2); }
.mm-lane[data-state="valid"] { border-color: rgba(255, 212, 0, 0.72); background: rgba(255, 212, 0, 0.11); color: #ffe98a; }
.mm-lane[data-state="closed"] { opacity: 0.36; }
.mm-lane[data-state="unknown"] { border-style: dashed; }
.mm-nav-lane-note { min-height: 1.05em; margin-top: 7px; color: rgba(226, 246, 255, 0.68); font-size: 0.68rem; line-height: 1.3; }
.mm-nav-bar { height: 7px; margin-top: 10px; border: 1px solid rgba(73, 216, 255, 0.18); background: rgba(226, 246, 255, 0.08); }
.mm-nav-bar span { background: linear-gradient(90deg, #49d8ff, #a3ff5c); box-shadow: 0 0 12px rgba(73, 216, 255, 0.65); }
.mm-nav-meta { margin-top: 10px; color: rgba(226, 246, 255, 0.7); font-variant-numeric: tabular-nums; }
.mm-nav-meta span:first-child { color: #f0fbff; }
.mm-nav-alert { padding: 8px 10px; border: 1px solid rgba(255, 212, 0, 0.42); border-radius: 9px; background: rgba(255, 212, 0, 0.1); color: #ffe98a; font-weight: 700; }

@media (max-width: 900px) {
  .mm-nav { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 13px 13px 11px; }
  .mm-nav-icon { flex-basis: 58px; width: 58px; height: 58px; font-size: 2rem; }
  .mm-nav-text b { font-size: 1.78rem; }
  .mm-nav-text span { font-size: 0.94rem; }
  .mm-speed { width: 66px; height: 66px; }
  .mm-speed .mm-speed-value { font-size: 1.58rem; }
}

@media (max-width: 420px) {
  .mm-nav { border-radius: 15px; }
  .mm-lane-strip { gap: 3px; }
  .mm-lane { min-width: 30px; min-height: 54px; }
  .mm-lane-arrow { font-size: 1.4rem; }
  .mm-lane-number { font-size: 0.5rem; }
  .mm-speed { width: 59px; height: 59px; }
  .mm-speed .mm-speed-value { font-size: 1.4rem; }
}
