    :root {
      --bg: var(--tg-theme-bg-color, #0f1117);
      --bg2: var(--tg-theme-secondary-bg-color, #171c27);
      --bg3: rgba(255, 255, 255, 0.04);
      --line: rgba(255, 255, 255, 0.09);
      --text: var(--tg-theme-text-color, #ffffff);
      --hint: var(--tg-theme-hint-color, #98a2b3);
      --btn: var(--tg-theme-button-color, #2196f3);
      --btnt: var(--tg-theme-button-text-color, #ffffff);
      --ok: #22c55e;
      --warn: #f59e0b;
      --err: #ef4444;
      --accent: #60a5fa;
      --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
      --app-bg:
        radial-gradient(circle at 50% 12%, rgba(96, 165, 250, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.52), rgba(2, 6, 23, 0.92));
    }

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    html, body {
      height: 100%;
      background: var(--app-bg);
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    body {
      overflow: hidden;
    }

    button {
      font: inherit;
      border: none;
      cursor: pointer;
      color: inherit;
      background: transparent;
    }

    #app {
      height: 100dvh;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 12px 14px 0;
      background: var(--app-bg);
    }

    .topbar {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .eyebrow {
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--hint);
    }

    .title {
      font-size: 24px;
      font-weight: 800;
      line-height: 1.1;
    }

    .subtitle {
      font-size: 13px;
      line-height: 1.45;
      color: var(--hint);
    }

    .section-nav {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: none;
    }

    .section-nav::-webkit-scrollbar {
      display: none;
    }

    .nav-btn {
      flex: none;
      white-space: nowrap;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid transparent;
      background: var(--bg2);
      color: var(--hint);
      font-size: 13px;
      font-weight: 800;
    }

    .nav-btn.active {
      color: var(--text);
      background: rgba(96, 165, 250, 0.12);
      border-color: rgba(96, 165, 250, 0.3);
    }

    .content {
      flex: 1;
      overflow: auto;
      padding-bottom: max(14px, env(safe-area-inset-bottom));
      scrollbar-width: none;
      background: transparent;
    }

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

    .map-unavailable {
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.9)),
        radial-gradient(circle at 50% 18%, rgba(96, 165, 250, 0.14), transparent 34%);
      border: 1px solid var(--line);
      border-radius: 18px;
    }

    .map-unavailable-note {
      min-height: 240px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 20px;
      color: var(--hint);
      font-size: 14px;
      line-height: 1.6;
    }

    .panel {
      display: none;
      flex-direction: column;
      gap: 10px;
    }

    .panel.active {
      display: flex;
      flex: 1;
      min-height: 0;
    }

    #panel-antenna.active {
      min-height: 0;
      flex: 1;
    }

    .home-screen,
    .flow-shell {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    #panel-antenna .flow-shell {
      min-height: 0;
      flex: 1;
    }

    .tile-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .tile-grid.single {
      grid-template-columns: 1fr;
    }

    .tile-span-2 {
      grid-column: 1 / -1;
    }

    .tile-button {
      width: 100%;
      min-height: 148px;
      padding: 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--bg2);
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      text-align: left;
    }

    .tile-button.active {
      border-color: rgba(96, 165, 250, 0.35);
      background: rgba(96, 165, 250, 0.12);
    }

    .tile-button.locked {
      opacity: 0.58;
    }

    .tile-kicker {
      display: none;
    }

    .tile-title {
      font-size: 16px;
      font-weight: 800;
      line-height: 1.25;
    }

    .tile-copy {
      font-size: 13px;
      line-height: 1.5;
      color: var(--hint);
    }

    .home-screen .tile-grid {
      gap: 8px;
    }

    .home-screen .tile-button {
      min-height: 108px;
      padding: 13px;
      gap: 8px;
      border-radius: 16px;
    }

    .home-screen .tile-title {
      font-size: 14px;
      line-height: 1.2;
    }

    .home-screen .tile-copy {
      font-size: 12px;
      line-height: 1.35;
    }

    .flow-header {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .flow-header .eyebrow {
      display: none;
    }

    .back-btn {
      align-self: flex-start;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--bg2);
      font-size: 13px;
      font-weight: 800;
    }

    .flow-title {
      font-size: 20px;
      font-weight: 800;
      line-height: 1.2;
    }

    .flow-copy {
      font-size: 13px;
      line-height: 1.5;
      color: var(--hint);
    }

    .step-rail {
      display: none;
    }

    .step-tile {
      min-height: 72px;
      padding: 10px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--bg2);
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-align: left;
    }

    .step-tile.current {
      border-color: rgba(96, 165, 250, 0.36);
      background: rgba(96, 165, 250, 0.12);
    }

    .step-tile.done {
      border-color: rgba(34, 197, 94, 0.26);
      background: rgba(34, 197, 94, 0.1);
    }

    .step-tile.locked {
      opacity: 0.45;
    }

    .step-num {
      display: none;
    }

    .step-name {
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
    }

    .flow-screen {
      display: none;
      flex-direction: column;
      gap: 10px;
    }

    .flow-screen.active {
      display: flex;
    }

    .footer-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .choice-stack {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .card {
      background: var(--bg2);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .card h2 {
      font-size: 16px;
      line-height: 1.25;
    }

    .card p,
    .card li {
      font-size: 13px;
      line-height: 1.55;
      color: var(--hint);
    }

    .card code {
      color: #d7e3ff;
    }

    #cable-diagram svg,
    #software-diagram svg {
      display: block;
      width: 100%;
      height: auto;
    }

    .mini-note {
      font-size: 12px;
      color: var(--hint);
      line-height: 1.5;
    }

    .status-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .status-box {
      background: var(--bg3);
      border-radius: 12px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-height: 78px;
    }

    .status-label {
      font-size: 11px;
      color: var(--hint);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .status-value {
      font-size: 15px;
      font-weight: 800;
      line-height: 1.3;
    }

    .status-help {
      font-size: 12px;
      color: var(--hint);
      line-height: 1.45;
    }

    .cta-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .btn-primary,
    .btn-secondary,
    .btn-ghost,
    .btn-danger {
      flex: 1 1 0;
      min-width: 140px;
      padding: 12px 14px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 800;
      text-align: center;
    }

    .btn-primary {
      background: var(--btn);
      color: var(--btnt);
    }

    .btn-secondary {
      background: var(--bg3);
      border: 1px solid var(--line);
    }

    .btn-ghost {
      background: transparent;
      border: 1px dashed var(--line);
    }

    .btn-danger {
      background: rgba(239, 68, 68, 0.12);
      border: 1px solid rgba(239, 68, 68, 0.18);
      color: #fda4af;
    }

    .btn-primary:disabled,
    .btn-secondary:disabled,
    .btn-ghost:disabled {
      opacity: 0.4;
      cursor: default;
    }

    .map-modal {
      position: fixed;
      inset: 0;
      background: rgba(2, 6, 23, 0.92);
      z-index: 35;
      display: none;
      overflow: hidden;
      isolation: isolate;
    }

    .map-modal.show {
      display: block;
    }

    .map-footer {
      position: absolute;
      bottom: 12px;
      left: 12px;
      right: 12px;
      z-index: 1200;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
      border-radius: 16px;
      background: rgba(15, 23, 42, 0.88);
      border: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      pointer-events: auto;
      box-shadow: 0 18px 40px rgba(2, 6, 23, 0.46);
    }

    .map-legend {
      position: absolute;
      top: 12px;
      left: 12px;
      right: 12px;
      z-index: 1100;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(15, 23, 42, 0.82);
      border: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      pointer-events: none;
      box-shadow: 0 14px 32px rgba(2, 6, 23, 0.36);
    }

    .map-legend-title {
      font-size: 14px;
      font-weight: 800;
      line-height: 1.2;
    }

    .map-legend-copy {
      font-size: 12px;
      line-height: 1.35;
      color: var(--hint);
    }

    .map-legend-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
    }

    .map-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: #e2e8f0;
      white-space: nowrap;
    }

    .map-legend-swatch {
      width: 18px;
      height: 10px;
      border-radius: 999px;
      border: 2px solid currentColor;
      background: rgba(255, 255, 255, 0.14);
      flex: 0 0 auto;
    }

    .map-legend-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #2196f3;
      border: 2px solid #ffffff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
      flex: 0 0 auto;
    }

    .map-footer-title {
      font-size: 15px;
      font-weight: 800;
      line-height: 1.3;
    }

    .map-footer-actions {
      display: flex;
      gap: 8px;
    }

    #coverage-map {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 132px;
      z-index: 1;
      background: #0b1220;
    }

    .leaflet-container {
      background: #0b1220;
      font: inherit;
    }

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

    .beam-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .beam-card {
      background: var(--bg3);
      border-radius: 14px;
      padding: 12px;
      border: 1px solid transparent;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .beam-card.active {
      border-color: rgba(96, 165, 250, 0.3);
      background: rgba(96, 165, 250, 0.12);
    }

    .beam-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .beam-name {
      font-size: 14px;
      font-weight: 800;
    }

    .badge {
      padding: 4px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
    }

    .badge.ok {
      background: rgba(34, 197, 94, 0.15);
      color: #86efac;
    }

    .badge.info {
      background: rgba(96, 165, 250, 0.15);
      color: #93c5fd;
    }

    .badge.err {
      background: rgba(239, 68, 68, 0.14);
      color: #fda4af;
    }

    .metric-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .metric {
      background: rgba(255, 255, 255, 0.04);
      border-radius: 10px;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .metric-label {
      font-size: 11px;
      color: var(--hint);
    }

    .metric-value {
      font-size: 14px;
      font-weight: 800;
    }

    .equipment-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .equipment-btn {
      background: var(--bg3);
      border: 1px solid transparent;
      border-radius: 14px;
      padding: 12px 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: flex-start;
      min-height: 92px;
    }

    .equipment-btn.active {
      border-color: rgba(96, 165, 250, 0.3);
      background: rgba(96, 165, 250, 0.12);
    }

    .equipment-title {
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
    }

    .equipment-desc {
      font-size: 12px;
      line-height: 1.4;
      color: var(--hint);
    }

    .tabs {
      display: flex;
      gap: 6px;
    }

    .tab {
      flex: 1;
      padding: 8px 4px;
      border-radius: 10px;
      background: var(--bg3);
      border: 1px solid transparent;
      color: var(--hint);
      font-size: 12px;
      font-weight: 800;
    }

    .tab.on {
      color: var(--text);
      border-color: rgba(96, 165, 250, 0.28);
    }

    .tab.off {
      opacity: 0.42;
      cursor: default;
    }

    .hold-hint {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--bg2);
      border-radius: 14px;
      border: 1px solid var(--line);
      padding: 12px;
    }

    .phone-svg {
      flex-shrink: 0;
    }

    .hold-txt {
      font-size: 12px;
      line-height: 1.5;
      color: var(--hint);
    }

    .hold-txt strong {
      color: var(--text);
    }

    .guidance {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .step {
      background: var(--bg2);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

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

    .step-label {
      font-size: 12px;
      color: var(--hint);
      font-weight: 700;
      line-height: 1.45;
    }

    .step-target {
      font-size: 12px;
      color: var(--hint);
      flex-shrink: 0;
    }

    .step-arrow {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 8px 0 4px;
    }

    .arrow-icon {
      font-size: 44px;
      line-height: 1;
    }

    .arrow-val {
      font-size: 48px;
      font-weight: 800;
      line-height: 1;
    }

    .arrow-unit {
      font-size: 14px;
      font-weight: 800;
      color: var(--hint);
      align-self: flex-end;
      padding-bottom: 6px;
    }

    .step-bar {
      position: relative;
      height: 6px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 3px;
      overflow: hidden;
    }

    .step-fill {
      width: 0;
      height: 100%;
      border-radius: 3px;
      transition: width 0.15s, background 0.3s;
    }

    .step-status {
      font-size: 13px;
      font-weight: 800;
      text-align: center;
      line-height: 1.45;
    }

    .status-row {
      display: flex;
      gap: 8px;
    }

    .status-chip {
      flex: 1;
      min-width: 0;
      background: var(--bg2);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 8px 10px;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
    }

    .status-chip span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--err);
      flex-shrink: 0;
    }

    .dot.ok {
      background: var(--ok);
    }

    .dot.warn {
      background: var(--warn);
    }

    .scene-card {
      background: linear-gradient(180deg, rgba(96, 165, 250, 0.12) 0%, rgba(11, 18, 32, 0.04) 100%);
      border-radius: 18px;
      border: 1px solid rgba(96, 165, 250, 0.12);
      overflow: hidden;
    }

    .scene {
      position: relative;
      min-height: 240px;
      padding: 16px 16px 18px;
      overflow: hidden;
      background:
        radial-gradient(circle at 50% 12%, rgba(96, 165, 250, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.9));
    }

    .scene-side {
      position: absolute;
      top: 22px;
      bottom: 34px;
      width: 22px;
      border-radius: 999px;
      opacity: 0.14;
      transition: opacity 0.2s, box-shadow 0.2s;
    }

    .scene-side.left {
      left: 12px;
    }

    .scene-side.right {
      right: 12px;
    }

    .scene-side.active {
      opacity: 0.9;
      box-shadow: 0 0 22px rgba(96, 165, 250, 0.45);
    }

    .scene-north {
      position: absolute;
      left: 50%;
      top: 10px;
      transform: translateX(-50%);
      font-size: 11px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.72);
    }

    .scene-floor {
      position: absolute;
      left: 50%;
      bottom: -18px;
      width: 240px;
      height: 110px;
      transform: translateX(-50%);
      border-radius: 50%;
      background: radial-gradient(circle at 50% 40%, rgba(34, 197, 94, 0.24), rgba(34, 197, 94, 0.04) 60%, transparent 72%);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .scene-ring {
      position: absolute;
      left: 50%;
      top: 24px;
      width: 180px;
      height: 180px;
      transform: translateX(-50%);
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: inset 0 0 40px rgba(96, 165, 250, 0.05);
    }

    .scene-direction {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 2px;
      height: 72px;
      transform-origin: bottom center;
      background: linear-gradient(180deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.9));
      border-radius: 999px;
      transition: transform 0.15s, height 0.25s, opacity 0.2s;
      opacity: 0.45;
    }

    .scene-direction::after {
      content: "";
      position: absolute;
      left: 50%;
      top: -9px;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 7px solid transparent;
      border-right: 7px solid transparent;
      border-bottom: 12px solid rgba(96, 165, 250, 0.95);
    }

    .scene-target {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 2px;
      height: 88px;
      transform-origin: bottom center;
      background: linear-gradient(180deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.85));
      border-radius: 999px;
      opacity: 0.65;
    }

    .scene-target::after {
      content: "";
      position: absolute;
      left: 50%;
      top: -10px;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 8px solid transparent;
      border-right: 8px solid transparent;
      border-bottom: 14px solid rgba(245, 158, 11, 0.9);
    }

    .scene-beam {
      position: absolute;
      left: 50%;
      bottom: 66px;
      width: 10px;
      height: 0;
      transform: translateX(-50%);
      border-radius: 999px 999px 0 0;
      background: linear-gradient(180deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.95));
      box-shadow: 0 0 24px rgba(96, 165, 250, 0.32);
      transition: height 0.2s, opacity 0.2s;
      opacity: 0.2;
    }

    .scene-beam.ok {
      background: linear-gradient(180deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.95));
      box-shadow: 0 0 24px rgba(34, 197, 94, 0.32);
      opacity: 0.9;
    }

    .scene-dish {
      position: absolute;
      left: 50%;
      bottom: 44px;
      width: 110px;
      height: 72px;
      transform: translateX(-50%);
    }

    .scene-hint {
      justify-self: center;
      font-size: 12px;
      color: var(--hint);
      line-height: 1.35;
      text-align: center;
      white-space: pre-line;
      max-width: 220px;
    }

    .scene-caption {
      text-align: center;
      font-size: 16px;
      line-height: 1.15;
      font-weight: 900;
      min-height: 18px;
    }

    .scene-caption.ok {
      color: var(--ok);
    }

    .scene-caption.warn {
      color: var(--warn);
    }

    .scene-caption.err {
      color: #fda4af;
    }

    .scene-degrees {
      text-align: center;
      font-size: 12px;
      line-height: 1.3;
      color: var(--hint);
      min-height: 16px;
      padding-bottom: 0;
    }

    #antenna-screen-2 {
      position: relative;
      padding: 0 0 0 10px;
      min-height: 0;
      flex: 1;
      gap: 0;
      overflow: hidden;
    }

    #antenna-screen-2.active {
      display: flex;
      flex: 1;
      min-height: 0;
    }

    .scene-rail {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 12px;
      border-radius: 999px;
      overflow: visible;
      opacity: 0;
      transition: opacity 0.18s;
      pointer-events: none;
      z-index: 4;
    }

    .scene-rail.active {
      opacity: 1;
    }

    .scene-rail-fill {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 0;
      border-radius: 999px;
      overflow: hidden;
      background: linear-gradient(
        180deg,
        rgba(34, 197, 94, 0.26) 0%,
        rgba(34, 197, 94, 0.18) 24%,
        rgba(34, 197, 94, 0.08) 72%,
        rgba(34, 197, 94, 0.03) 100%
      );
      box-shadow: 0 0 14px rgba(34, 197, 94, 0.28);
      transition: height 0.22s, opacity 0.22s;
      opacity: 0;
    }

    .scene-rail-step {
      position: absolute;
      left: 1px;
      right: 1px;
      height: 4px;
      border-radius: 999px;
      background: rgba(220, 252, 231, 0.12);
      opacity: 0;
      transform: scaleY(0.72);
      transition: opacity 0.12s, transform 0.12s, box-shadow 0.12s, background 0.12s;
    }

    .scene-rail.active .scene-rail-fill {
      height: 100%;
      opacity: 1;
    }

    .scene-rail-step.path {
      opacity: 0.003;
      background: rgba(220, 252, 231, 0.06);
    }

    .scene-rail-step.trail-1 {
      opacity: 0.52;
      transform: scaleY(3.1);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(187, 247, 208, 0.96));
      box-shadow:
        0 0 16px rgba(255, 255, 255, 0.72),
        0 0 26px rgba(34, 197, 94, 0.62);
    }

    .scene-rail-step.trail-2 {
      opacity: 0.28;
      transform: scaleY(2.35);
      background: linear-gradient(180deg, rgba(220, 252, 231, 0.72), rgba(134, 239, 172, 0.88));
      box-shadow:
        0 0 12px rgba(220, 252, 231, 0.46),
        0 0 20px rgba(34, 197, 94, 0.42);
    }

    .scene-rail-step.trail-3 {
      opacity: 0.15;
      transform: scaleY(1.75);
      background: linear-gradient(180deg, rgba(187, 247, 208, 0.56), rgba(74, 222, 128, 0.72));
      box-shadow:
        0 0 10px rgba(134, 239, 172, 0.34),
        0 0 16px rgba(34, 197, 94, 0.28);
    }

    .scene-rail-step.trail-4 {
      opacity: 0.07;
      transform: scaleY(1.3);
      background: linear-gradient(180deg, rgba(134, 239, 172, 0.3), rgba(34, 197, 94, 0.44));
    }

    .scene-rail-step.pulse {
      opacity: 1;
      transform: scaleY(4.4);
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 32%,
        rgba(240, 253, 244, 1) 54%,
        rgba(134, 239, 172, 1) 76%,
        rgba(34, 197, 94, 1) 100%
      );
      box-shadow:
        0 0 30px rgba(255, 255, 255, 1),
        0 0 52px rgba(255, 255, 255, 1),
        0 0 74px rgba(220, 252, 231, 1),
        0 0 108px rgba(34, 197, 94, 1);
      filter: brightness(2.3) saturate(1.7);
    }

    .scene-rail-label {
      position: absolute;
      left: 14px;
      top: 42px;
      width: 92px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.1em;
      color: #86efac;
      opacity: 0;
      transition: opacity 0.22s;
      pointer-events: none;
      z-index: 4;
    }

    .scene-rail.active .scene-rail-label {
      opacity: 1;
    }

    .scene-toggles {
      justify-self: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      margin-top: 10px;
      margin-bottom: 6px;
      z-index: 5;
    }

    .icon-toggle {
      width: 50px;
      height: 50px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 16px;
      background: rgba(15, 23, 42, 0.72);
      color: #f8fafc;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      line-height: 1;
      backdrop-filter: blur(10px);
      box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
    }

    .icon-toggle.off {
      opacity: 0.58;
      color: rgba(248, 250, 252, 0.82);
      border-color: rgba(248, 113, 113, 0.28);
    }

    .scene-card {
      position: relative;
      padding: 0;
      flex: 1;
      min-height: 0;
      width: 100%;
      background: transparent;
      border: none;
      border-radius: 0;
    }

    .scene {
      min-height: 0;
      height: 100%;
      padding: 12px 6px calc(84px + env(safe-area-inset-bottom)) 6px;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto auto;
      justify-items: center;
      align-items: start;
      gap: 6px;
      background: transparent;
    }

    .scene-ball {
      position: relative;
      width: min(100%, 300px);
      aspect-ratio: 1;
      margin: 0 auto;
      align-self: center;
      border-radius: 50%;
      overflow: hidden;
      background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.16), transparent 20%),
        radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.06), transparent 54%),
        linear-gradient(180deg, #1f2937 0%, #0b1220 62%, #04070d 100%);
      border: 1px solid rgba(255, 255, 255, 0.16);
      box-shadow:
        inset 0 -20px 26px rgba(0, 0, 0, 0.34),
        inset 0 18px 20px rgba(255, 255, 255, 0.04),
        0 18px 38px rgba(2, 6, 23, 0.4);
    }

    .scene-ball-face {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.06), transparent 42%),
        radial-gradient(ellipse at 50% 72%, rgba(0, 0, 0, 0.54), transparent 44%);
      pointer-events: none;
    }

    .scene-ball-shadow {
      position: absolute;
      left: 18%;
      right: 18%;
      bottom: 12px;
      height: 18px;
      border-radius: 50%;
      background: rgba(2, 6, 23, 0.45);
      filter: blur(10px);
    }

    .scene-ball-band {
      position: absolute;
      left: 9%;
      right: 9%;
      top: 48%;
      height: 18%;
      border-radius: 50%;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(2, 6, 23, 0.3)),
        linear-gradient(180deg, rgba(11, 17, 28, 0.82), rgba(2, 6, 23, 0.2));
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      border-bottom: 1px solid rgba(0, 0, 0, 0.36);
      box-shadow: inset 0 10px 14px rgba(255, 255, 255, 0.03);
      pointer-events: none;
    }

    .scene-az-dial {
      position: absolute;
      inset: 0;
      transition: transform 0.18s ease-out;
    }

    .scene-az-tick,
    .scene-az-label {
      position: absolute;
      left: 50%;
      top: 50%;
      transform-origin: 50% 50%;
      pointer-events: none;
    }

    .scene-az-tick::before {
      content: "";
      display: block;
      width: 2px;
      height: 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.22);
      transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    }

    .scene-az-tick.major::before {
      width: 3px;
      height: 24px;
      background: rgba(255, 255, 255, 0.42);
    }

    .scene-az-tick.runway::before {
      background: rgba(251, 191, 36, 0.42);
      box-shadow: 0 0 8px rgba(251, 191, 36, 0.14);
    }

    .scene-az-tick.pulse::before {
      background: rgba(251, 191, 36, 0.98);
      box-shadow: 0 0 12px rgba(251, 191, 36, 0.34);
      transform: scaleY(1.18);
    }

    .scene-az-tick.target::before {
      background: rgba(34, 197, 94, 1);
      box-shadow: 0 0 16px rgba(34, 197, 94, 0.54);
      transform: scaleY(1.2);
    }

    .scene-az-tick.target-near::before {
      background: rgba(134, 239, 172, 0.98);
      box-shadow: 0 0 10px rgba(34, 197, 94, 0.34);
    }

    .scene-az-label {
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.02em;
      color: rgba(255, 255, 255, 0.34);
      transition: color 0.18s, text-shadow 0.18s;
    }

    .scene-az-label.target {
      color: rgba(134, 239, 172, 1);
      text-shadow: 0 0 12px rgba(34, 197, 94, 0.38);
    }

    .scene-top-marker {
      position: absolute;
      left: 50%;
      top: 16px;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-top: 16px solid rgba(96, 165, 250, 0.96);
      filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.34));
      z-index: 3;
    }

    .scene-tilt-track {
      position: absolute;
      top: 20%;
      bottom: 28.333%;
      left: 50%;
      width: 4px;
      transform: translateX(-50%);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.14);
      z-index: 2;
    }

    .scene-tilt-scale {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 2;
    }

    .scene-tilt-tick,
    .scene-tilt-label {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }

    .scene-tilt-tick::before {
      content: "";
      display: block;
      width: 18px;
      height: 2px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.2);
      transform: translateX(8px);
      transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    }

    .scene-tilt-tick.major::before {
      width: 24px;
      background: rgba(255, 255, 255, 0.38);
    }

    .scene-tilt-tick.target::before {
      background: rgba(34, 197, 94, 1);
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.42);
    }

    .scene-tilt-tick.target-near::before {
      background: rgba(134, 239, 172, 0.98);
    }

    .scene-tilt-tick.runway::before {
      background: rgba(251, 191, 36, 0.42);
      box-shadow: 0 0 8px rgba(251, 191, 36, 0.14);
    }

    .scene-tilt-tick.pulse::before {
      background: rgba(251, 191, 36, 0.98);
      box-shadow: 0 0 10px rgba(251, 191, 36, 0.34);
      transform: translateX(8px) scaleX(1.08);
    }

    .scene-tilt-label {
      margin-left: -26px;
      font-size: 9px;
      font-weight: 800;
      color: rgba(255, 255, 255, 0.3);
      line-height: 1;
      transition: color 0.18s, text-shadow 0.18s;
    }

    .scene-tilt-label.target {
      color: rgba(134, 239, 172, 0.98);
      text-shadow: 0 0 8px rgba(34, 197, 94, 0.36);
    }

    .scene-tilt-fill {
      position: absolute;
      bottom: 28.333%;
      left: 50%;
      width: 4px;
      height: 0;
      transform: translateX(-50%);
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(96, 165, 250, 0.98), rgba(96, 165, 250, 0.24));
      box-shadow: 0 0 10px rgba(96, 165, 250, 0.34);
      transition: height 0.18s, background 0.18s, box-shadow 0.18s;
      z-index: 3;
    }

    .scene-tilt-fill.ok {
      background: linear-gradient(180deg, rgba(34, 197, 94, 0.98), rgba(34, 197, 94, 0.24));
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
    }

    .scene-tilt-target {
      position: absolute;
      left: 50%;
      width: 34px;
      height: 2px;
      border-radius: 999px;
      background: rgba(34, 197, 94, 0.98);
      box-shadow: 0 0 10px rgba(34, 197, 94, 0.34);
      transform: translateX(-50%);
      z-index: 3;
      transition: bottom 0.18s;
    }

    .scene-tilt-target-label {
      position: absolute;
      left: calc(50% + 24px);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.08em;
      color: rgba(134, 239, 172, 0.98);
      transform: translateY(50%);
      z-index: 3;
      transition: bottom 0.18s;
    }

    .compass-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: calc(12px + env(safe-area-inset-bottom));
      z-index: 5;
    }

    .compass-actions .btn-secondary {
      min-width: 0;
      padding: 10px 8px;
      font-size: 13px;
      background: rgba(15, 23, 42, 0.82);
      backdrop-filter: blur(12px);
    }

    .scene-stage {
      position: relative;
      width: min(100%, 244px);
      aspect-ratio: 1;
      margin: 4px auto 0;
    }

    .scene-globe {
      position: absolute;
      inset: 14px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.12), rgba(15, 23, 42, 0.88) 72%);
      border: 1px solid rgba(255, 255, 255, 0.16);
      box-shadow:
        inset 0 0 34px rgba(96, 165, 250, 0.18),
        0 18px 34px rgba(2, 6, 23, 0.32);
    }

    .scene-grid {
      position: absolute;
      inset: 36px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.08);
      pointer-events: none;
    }

    .scene-grid.grid-2 {
      inset: 54px;
      opacity: 0.76;
    }

    .scene-axis-h,
    .scene-axis-v {
      position: absolute;
      background: rgba(255, 255, 255, 0.16);
      pointer-events: none;
    }

    .scene-axis-h {
      left: 18px;
      right: 18px;
      top: 50%;
      height: 1px;
      transform: translateY(-50%);
    }

    .scene-axis-v {
      top: 18px;
      bottom: 18px;
      left: 50%;
      width: 1px;
      transform: translateX(-50%);
    }

    .scene-axis-label {
      position: absolute;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.02em;
      color: rgba(226, 232, 240, 0.82);
      pointer-events: none;
    }

    .scene-axis-label.top {
      top: 2px;
      left: 50%;
      transform: translateX(-50%);
    }

    .scene-axis-label.bottom {
      bottom: 2px;
      left: 50%;
      transform: translateX(-50%);
    }

    .scene-axis-label.left {
      left: 0;
      top: 50%;
      transform: translateY(-50%);
    }

    .scene-axis-label.right {
      right: 0;
      top: 50%;
      transform: translateY(-50%);
    }

    .scene-error-line {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 0;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0.94));
      transform-origin: left center;
      transform: translate(0, -50%) rotate(0deg);
      opacity: 0.35;
      transition: width 0.18s, transform 0.18s, opacity 0.18s, background 0.18s;
      pointer-events: none;
    }

    .scene-error-line.ok {
      background: linear-gradient(90deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.92));
      opacity: 0.9;
    }

    .scene-target-point,
    .scene-current-point {
      position: absolute;
      left: 50%;
      top: 50%;
      border-radius: 50%;
      transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s, border-color 0.18s;
      pointer-events: none;
    }

    .scene-target-point {
      width: 20px;
      height: 20px;
      transform: translate(-50%, -50%);
      border: 2px solid rgba(245, 158, 11, 0.98);
      box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12);
    }

    .scene-target-point::before,
    .scene-target-point::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      background: rgba(245, 158, 11, 0.98);
      transform: translate(-50%, -50%);
      border-radius: 999px;
    }

    .scene-target-point::before {
      width: 2px;
      height: 26px;
    }

    .scene-target-point::after {
      width: 26px;
      height: 2px;
    }

    .scene-current-point {
      width: 16px;
      height: 16px;
      transform: translate(-50%, -50%);
      background: #60a5fa;
      border: 2px solid #f8fafc;
      box-shadow: 0 0 16px rgba(96, 165, 250, 0.36);
    }

    .scene-current-point.ok {
      background: #22c55e;
      box-shadow: 0 0 18px rgba(34, 197, 94, 0.46);
    }

    .scene-delta-row,
    .scene-legend-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 12px;
    }

    .scene-delta,
    .scene-legend-item {
      min-width: 0;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.06);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.35;
      color: #e2e8f0;
    }

    .scene-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .scene-legend-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      flex: 0 0 auto;
    }

    .scene-legend-dot.target {
      border: 2px solid rgba(245, 158, 11, 0.98);
      background: rgba(245, 158, 11, 0.16);
    }

    .scene-legend-dot.current {
      background: #60a5fa;
      border: 2px solid #f8fafc;
    }

    .diagram {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 10px;
      overflow: hidden;
    }

    .diagram svg {
      display: block;
      width: 100%;
      height: auto;
    }

    .step-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .issues {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .issue {
      background: var(--bg2);
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
    }

    .issue summary {
      list-style: none;
      padding: 14px;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
    }

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

    .issue-body {
      padding: 0 14px 14px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      border-top: 1px solid var(--line);
    }

    .issue-body ol,
    .issue-body ul {
      margin-left: 18px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .ov {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.9);
      backdrop-filter: blur(8px);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 28px;
      text-align: center;
      z-index: 99;
    }

    .ov.show {
      display: flex;
    }

    .ov-icon {
      font-size: 56px;
      margin-bottom: 18px;
    }

    .ov-title {
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 10px;
    }

    .ov-body {
      font-size: 14px;
      line-height: 1.6;
      color: var(--hint);
      margin-bottom: 26px;
    }

    .ov-btn {
      width: 100%;
      padding: 14px;
      border-radius: 13px;
      background: var(--btn);
      color: var(--btnt);
      font-size: 16px;
      font-weight: 800;
      margin-bottom: 12px;
    }

    .ov-skip {
      font-size: 13px;
      color: var(--hint);
      text-decoration: underline;
      cursor: pointer;
    }

    .toast {
      position: fixed;
      left: 14px;
      right: 14px;
      bottom: calc(14px + env(safe-area-inset-bottom));
      padding: 12px 14px;
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: var(--shadow);
      font-size: 13px;
      line-height: 1.45;
      opacity: 0;
      transform: translateY(20px);
      pointer-events: none;
      transition: opacity 0.18s, transform 0.18s;
      z-index: 120;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .toast.ok {
      border-color: rgba(34, 197, 94, 0.24);
    }

    .toast.err {
      border-color: rgba(239, 68, 68, 0.24);
    }

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

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

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

    @media (max-width: 560px) {
      .map-legend {
        top: 10px;
        left: 10px;
        right: 10px;
      }

      .map-footer-actions {
        flex-direction: column;
      }

      #coverage-map {
        bottom: 188px;
      }
    }

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

      .tile-span-2 {
        grid-column: auto;
      }

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

      .home-screen .tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .home-screen .tile-span-2 {
        grid-column: 1 / -1;
      }

      .home-screen .tile-button {
        min-height: 92px;
        padding: 11px;
      }

      .home-screen .tile-title {
        font-size: 13px;
      }

      .home-screen .tile-copy {
        font-size: 11px;
      }
    }

    @media (max-width: 560px) {
      .home-screen .tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .home-screen .tile-span-2 {
        grid-column: 1 / -1;
      }

      .home-screen .tile-button {
        min-height: 96px;
        padding: 12px;
      }
    }
