    :root {
      color-scheme: dark;
      --bg: #06080f;
      --app-shell-bg: #050913;
      --panel: rgba(14, 20, 36, 0.82);
      --panel-strong: rgba(16, 24, 44, 0.92);
      --text: #e6edf6;
      --muted: #9aa7bc;
      --accent: #2ad1ff;
      --accent-2: #9b5cff;
      --accent-3: #17f1b1;
      --warning: #ffb452;
      --danger: #ff6b6b;
      --success: #6bffb2;
      --border: rgba(120, 140, 180, 0.2);
      --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    }

    * {
      box-sizing: border-box;
    }

    html {
      background-color: var(--app-shell-bg);
    }

    body {
      margin: 0;
      min-height: 100vh;
      min-height: 100dvh;
      padding:
        env(safe-area-inset-top, 0px)
        env(safe-area-inset-right, 0px)
        env(safe-area-inset-bottom, 0px)
        env(safe-area-inset-left, 0px);
      background: radial-gradient(circle at top, rgba(33, 49, 83, 0.6), transparent 45%),
        radial-gradient(circle at 20% 30%, rgba(43, 143, 187, 0.25), transparent 50%),
        linear-gradient(140deg, #05060a 0%, #0b1020 45%, #05060a 100%);
      background-color: var(--app-shell-bg);
      color: var(--text);
      font-family: "Space Grotesk", sans-serif;
      letter-spacing: 0.02em;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent 40%),
        radial-gradient(1px 1px at 120px 80px, rgba(255, 255, 255, 0.25), transparent 40%),
        radial-gradient(1.5px 1.5px at 250px 160px, rgba(255, 255, 255, 0.2), transparent 40%),
        radial-gradient(2px 2px at 70% 20%, rgba(255, 255, 255, 0.2), transparent 40%),
        radial-gradient(1px 1px at 80% 80%, rgba(255, 255, 255, 0.15), transparent 40%);
      opacity: 0.4;
      pointer-events: none;
      z-index: 0;
    }

    .app {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 24px;
      padding: 28px clamp(20px, 4vw, 48px) 48px;
      max-width: 1400px;
      margin: 0 auto;
    }

    .app.is-booting {
      filter: blur(7px) saturate(0.88);
      opacity: 0.58;
      pointer-events: none;
      user-select: none;
    }

    .app.is-boot-revealing > * {
      animation: bootReveal 360ms ease both;
    }

    .app.is-boot-revealing > *:nth-child(1) { animation-delay: 20ms; }
    .app.is-boot-revealing > *:nth-child(2) { animation-delay: 55ms; }
    .app.is-boot-revealing > *:nth-child(3) { animation-delay: 85ms; }
    .app.is-boot-revealing > *:nth-child(4) { animation-delay: 120ms; }
    .app.is-boot-revealing > *:nth-child(5) { animation-delay: 145ms; }
    .app.is-boot-revealing > *:nth-child(6) { animation-delay: 170ms; }
    .app.is-boot-revealing > *:nth-child(7) { animation-delay: 195ms; }
    .app.is-boot-revealing > *:nth-child(8) { animation-delay: 220ms; }

    .boot-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: grid;
      place-items: center;
      padding:
        calc(env(safe-area-inset-top, 0px) + 28px)
        calc(env(safe-area-inset-right, 0px) + 28px)
        calc(env(safe-area-inset-bottom, 0px) + 28px)
        calc(env(safe-area-inset-left, 0px) + 28px);
      transition: opacity 260ms ease, visibility 260ms ease;
    }

    .boot-overlay[hidden] {
      display: none !important;
    }

    .boot-overlay.is-ready {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .boot-overlay__scrim {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 50% 18%, rgba(36, 84, 154, 0.28), transparent 42%),
        radial-gradient(circle at 18% 28%, rgba(42, 209, 255, 0.1), transparent 44%),
        linear-gradient(180deg, rgba(3, 6, 14, 0.7), rgba(3, 8, 18, 0.88));
      backdrop-filter: blur(20px) saturate(1.08);
    }

    .boot-overlay__scrim::before,
    .boot-overlay__scrim::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .boot-overlay__scrim::before {
      background-image:
        radial-gradient(2px 2px at 18% 24%, rgba(255, 255, 255, 0.5), transparent 45%),
        radial-gradient(1px 1px at 44% 16%, rgba(255, 255, 255, 0.38), transparent 45%),
        radial-gradient(1.6px 1.6px at 72% 22%, rgba(255, 255, 255, 0.32), transparent 45%),
        radial-gradient(1px 1px at 64% 74%, rgba(255, 255, 255, 0.26), transparent 45%),
        radial-gradient(1.4px 1.4px at 32% 78%, rgba(255, 255, 255, 0.28), transparent 45%);
      opacity: 0.55;
      animation: bootTwinkle 2.4s ease-in-out infinite alternate;
    }

    .boot-overlay__scrim::after {
      background: radial-gradient(circle at 50% 48%, rgba(54, 98, 173, 0.14), transparent 54%);
      animation: bootPulse 2.8s ease-in-out infinite;
    }

    .boot-overlay__panel {
      position: relative;
      z-index: 1;
      width: min(460px, calc(100vw - 40px));
      padding: 28px 28px 24px;
      border-radius: 28px;
      border: 1px solid rgba(124, 155, 214, 0.34);
      background:
        radial-gradient(circle at 18% 0%, rgba(42, 209, 255, 0.12), transparent 52%),
        linear-gradient(165deg, rgba(11, 20, 40, 0.94), rgba(8, 14, 28, 0.95));
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 24px 64px rgba(1, 4, 14, 0.5);
      text-align: center;
    }

    .boot-loader {
      position: relative;
      width: 118px;
      height: 118px;
      margin: 0 auto 20px;
    }

    .boot-loader__halo,
    .boot-loader__orbit,
    .boot-loader__core,
    .boot-loader__dot {
      position: absolute;
      inset: 0;
      border-radius: 50%;
    }

    .boot-loader__halo {
      inset: 14px;
      background: radial-gradient(circle, rgba(42, 209, 255, 0.2), rgba(42, 209, 255, 0.03) 58%, transparent 72%);
      filter: blur(1px);
    }

    .boot-loader__orbit {
      border: 1px solid rgba(110, 145, 205, 0.24);
    }

    .boot-loader__orbit--outer {
      border-top-color: rgba(42, 209, 255, 0.72);
      animation: orbitSpin 2.4s linear infinite;
    }

    .boot-loader__orbit--inner {
      inset: 16px;
      border-color: rgba(155, 92, 255, 0.22);
      border-left-color: rgba(155, 92, 255, 0.72);
      animation: orbitSpinReverse 1.8s linear infinite;
    }

    .boot-loader__core {
      inset: 42px;
      background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.94), rgba(42, 209, 255, 0.68) 42%, rgba(14, 44, 88, 0.3) 78%, transparent 100%);
      box-shadow: 0 0 22px rgba(42, 209, 255, 0.34);
    }

    .boot-loader__dot {
      inset: 0;
      animation: orbitSpin 2.4s linear infinite;
    }

    .boot-loader__dot::before {
      content: "";
      position: absolute;
      top: 7px;
      left: 50%;
      width: 12px;
      height: 12px;
      margin-left: -6px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.96), rgba(42, 209, 255, 0.84) 46%, rgba(42, 209, 255, 0.18) 100%);
      box-shadow: 0 0 18px rgba(42, 209, 255, 0.72);
    }

    .boot-overlay__title {
      margin: 0;
      font-size: clamp(1.32rem, 1.1vw + 1rem, 1.64rem);
      font-weight: 600;
      color: #f1f6ff;
      letter-spacing: 0.03em;
    }

    .boot-overlay__stage {
      margin-top: 10px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.92rem;
      color: #c8dbf9;
      letter-spacing: 0.04em;
    }

    .boot-overlay__meta {
      margin-top: 10px;
      color: #93a9ca;
      font-size: 0.84rem;
      line-height: 1.45;
    }

    @keyframes orbitSpin {
      to { transform: rotate(360deg); }
    }

    @keyframes orbitSpinReverse {
      to { transform: rotate(-360deg); }
    }

    @keyframes bootPulse {
      0%, 100% { opacity: 0.52; }
      50% { opacity: 0.88; }
    }

    @keyframes bootTwinkle {
      0%, 100% { opacity: 0.42; }
      50% { opacity: 0.82; }
    }

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

    header {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .title-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    h1 {
      font-size: clamp(2rem, 2vw + 1.6rem, 3rem);
      margin: 0;
      letter-spacing: 0.04em;
    }

    .subtitle {
      color: var(--muted);
      font-size: 0.98rem;
      margin: 0;
      max-width: 700px;
    }

    .actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      max-width: min(100%, 520px);
    }

    .location-control {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      justify-content: flex-end;
    }

    .icon-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      padding: 0;
    }

    .location-refresh {
      flex: 0 0 auto;
      background: rgba(20, 32, 55, 0.82);
      border-color: rgba(104, 132, 180, 0.3);
      color: #b8c9e8;
      box-shadow: 0 8px 18px rgba(3, 12, 28, 0.16);
    }

    .location-refresh:hover {
      background: rgba(27, 42, 71, 0.92);
      border-color: rgba(148, 173, 219, 0.42);
    }

    .location-refresh.needs-location {
      background: linear-gradient(135deg, rgba(42, 209, 255, 0.3), rgba(155, 92, 255, 0.4));
      border-color: rgba(42, 209, 255, 0.6);
      color: #eff8ff;
    }

    .location-refresh__icon {
      font-size: 1rem;
      line-height: 1;
      transform-origin: 50% 50%;
      transition: transform 0.2s ease;
    }

    .location-refresh.loading .location-refresh__icon {
      animation: locate-spin 0.9s linear infinite;
    }

    @keyframes locate-spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

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

    .location-status {
      flex: 1 1 260px;
      min-width: 0;
      padding: 6px 0;
      border-radius: 0;
      border: 1px solid rgba(112, 139, 186, 0.24);
      background: none;
      border: none;
      box-shadow: none;
      text-align: right;
    }

    .location-status__label {
      font-size: 0.92rem;
      font-weight: 600;
      line-height: 1.2;
      color: #edf5ff;
      letter-spacing: 0.01em;
      text-wrap: balance;
    }

    .location-status__coords {
      margin-top: 2px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.69rem;
      line-height: 1.35;
      letter-spacing: 0.03em;
      color: #a8bbde;
      overflow-wrap: anywhere;
    }

    .location-status__meta {
      margin-top: 4px;
      font-size: 0.67rem;
      line-height: 1.3;
      letter-spacing: 0.03em;
      color: #7d97c4;
    }

    .location-status__meta[data-level="warning"] {
      color: #f2c98a;
    }

    .location-status__meta[data-level="danger"] {
      color: #ffc0c0;
    }

    .action-status {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 18px;
      border: 1px solid rgba(108, 132, 188, 0.24);
      background: rgba(12, 18, 34, 0.74);
      box-shadow: inset 0 1px 0 rgba(186, 206, 245, 0.04);
    }

    .action-status[hidden] {
      display: none !important;
    }

    .action-status[data-level="info"] {
      border-color: rgba(84, 194, 255, 0.34);
      background: linear-gradient(135deg, rgba(14, 24, 42, 0.86), rgba(8, 16, 30, 0.94));
    }

    .action-status[data-level="warning"] {
      border-color: rgba(255, 180, 82, 0.4);
      background: linear-gradient(135deg, rgba(34, 24, 12, 0.88), rgba(22, 16, 10, 0.95));
    }

    .action-status[data-level="danger"] {
      border-color: rgba(255, 107, 107, 0.46);
      background: linear-gradient(135deg, rgba(40, 16, 18, 0.92), rgba(22, 11, 12, 0.95));
    }

    .action-status__copy {
      min-width: 0;
      flex: 1;
      display: grid;
      gap: 4px;
    }

    .action-status__label {
      color: #eef5ff;
      font-size: 0.82rem;
      font-weight: 600;
      line-height: 1.25;
      letter-spacing: 0.02em;
    }

    .action-status__meta {
      color: #9eb1d0;
      font-size: 0.72rem;
      line-height: 1.35;
      letter-spacing: 0.03em;
    }

    .action-status__action {
      flex: 0 0 auto;
      white-space: nowrap;
    }

    button {
      background: rgba(40, 52, 80, 0.7);
      border: 1px solid rgba(120, 140, 180, 0.25);
      color: var(--text);
      padding: 10px 16px;
      border-radius: 999px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.85rem;
      letter-spacing: 0.04em;
      cursor: pointer;
      transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
    }

    button:hover {
      transform: translateY(-1px);
      border-color: rgba(42, 209, 255, 0.6);
      background: rgba(36, 56, 92, 0.9);
    }

    button.primary {
      background: linear-gradient(135deg, rgba(42, 209, 255, 0.3), rgba(155, 92, 255, 0.4));
      border-color: rgba(42, 209, 255, 0.6);
    }

    button.tertiary {
      background: rgba(28, 40, 66, 0.52);
      border-color: rgba(104, 132, 180, 0.35);
      color: #b6c8e8;
      padding: 8px 13px;
      font-size: 0.79rem;
    }

    button.active {
      background: linear-gradient(135deg, rgba(42, 209, 255, 0.4), rgba(23, 241, 177, 0.2));
      border-color: rgba(23, 241, 177, 0.7);
    }

    @media (max-width: 900px) {
      .title-row {
        gap: 20px;
      }

      .actions {
        max-width: 100%;
        justify-content: flex-start;
        width: 100%;
      }

      .location-control {
        align-items: center;
        justify-content: space-between;
      }

      .action-status {
        align-items: flex-start;
      }
    }

    @media (max-width: 560px) {
      .location-control {
        gap: 10px;
      }

      .location-control > .primary {
        width: 46px;
        height: 46px;
      }

      .location-status {
        padding: 4px 0;
      }

      .location-status__label {
        font-size: 0.86rem;
      }

      .location-status__coords {
        font-size: 0.65rem;
      }

      .location-status__meta {
        font-size: 0.63rem;
      }

      .action-status {
        flex-direction: column;
        align-items: stretch;
      }

      .action-status__action {
        width: 100%;
      }
    }

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

    .status-section {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

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

    .section-title {
      margin: 0;
      font-size: clamp(1.05rem, 1.2vw + 0.9rem, 1.35rem);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #cbd8ef;
    }

    .section-subtitle {
      margin: 0;
      color: var(--muted);
      font-size: 0.85rem;
      max-width: 760px;
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 16px 18px;
      box-shadow: var(--shadow);
      backdrop-filter: blur(10px);
    }

    .card h3 {
      margin: 0 0 10px;
      font-size: 0.95rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--muted);
    }

    .panel-card {
      position: relative;
      overflow: visible;
      border-color: rgba(104, 132, 184, 0.32);
      background: linear-gradient(165deg, rgba(11, 24, 46, 0.96), rgba(8, 16, 34, 0.95));
      box-shadow:
        inset 0 1px 0 rgba(186, 206, 245, 0.06),
        0 18px 38px rgba(4, 10, 24, 0.36);
    }

    .panel-inline-status {
      display: grid;
      gap: 4px;
      margin: 0 0 12px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(108, 132, 188, 0.22);
      background: rgba(9, 15, 28, 0.62);
    }

    .panel-inline-status[hidden] {
      display: none !important;
    }

    .panel-inline-status[data-level="info"] {
      border-color: rgba(84, 194, 255, 0.26);
    }

    .panel-inline-status[data-level="warning"] {
      border-color: rgba(255, 180, 82, 0.36);
      background: rgba(29, 20, 10, 0.56);
    }

    .panel-inline-status[data-level="danger"] {
      border-color: rgba(255, 107, 107, 0.42);
      background: rgba(35, 15, 17, 0.62);
    }

    .panel-inline-status__message {
      color: #eaf3ff;
      font-size: 0.76rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      font-family: "IBM Plex Mono", monospace;
    }

    .panel-inline-status__meta {
      color: #9aaac5;
      font-size: 0.74rem;
      line-height: 1.4;
    }

    .forecast-card {
      border-color: rgba(90, 166, 228, 0.38);
    }

    .sky-card {
      border-color: rgba(154, 122, 236, 0.4);
    }

    .panel-heading {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: -2px -2px 10px;
      padding: 2px 2px 12px;
      border-bottom: 1px solid rgba(114, 146, 204, 0.3);
    }

    .panel-heading::after {
      content: "";
      position: absolute;
      left: 2px;
      bottom: -1px;
      height: 2px;
      width: 168px;
      border-radius: 2px;
      background: linear-gradient(90deg, rgba(87, 230, 255, 0.88), rgba(87, 230, 255, 0.06));
    }

    .sky-card .panel-heading::after {
      background: linear-gradient(90deg, rgba(180, 140, 255, 0.88), rgba(180, 140, 255, 0.06));
    }

    .panel-title {
      margin: 0;
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.17em;
      color: #d9e8ff;
      text-shadow: 0 0 16px rgba(34, 122, 214, 0.2);
    }

    .panel-heading-copy {
      min-width: 0;
      flex: 1;
    }

    .panel-heading-sub {
      margin: 6px 0 0;
      color: #96a9c8;
      font-size: 0.82rem;
      line-height: 1.35;
      max-width: 42rem;
    }

    .sky-card .panel-title {
      color: #e8ddff;
      text-shadow: 0 0 16px rgba(155, 92, 255, 0.2);
    }

    .panel-info-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 30px;
      min-height: 30px;
    }

    .panel-info-btn {
      width: 22px;
      height: 22px;
      border-radius: 999px;
      border: 1px solid rgba(122, 156, 220, 0.64);
      background: rgba(20, 35, 62, 0.9);
      color: #cde3ff;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.78rem;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .panel-info-btn:hover {
      border-color: rgba(87, 230, 255, 0.88);
      background: rgba(25, 48, 86, 0.96);
      transform: translateY(-1px);
    }

    .panel-popover {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      z-index: 20;
      width: min(340px, 78vw);
      border: 1px solid rgba(121, 152, 213, 0.46);
      border-radius: 12px;
      background: linear-gradient(150deg, rgba(17, 30, 56, 0.98), rgba(11, 20, 36, 0.98));
      padding: 10px 12px;
      color: #bfcee9;
      font-size: 0.78rem;
      line-height: 1.4;
      box-shadow: 0 14px 32px rgba(4, 10, 24, 0.52);
    }

    .panel-popover[hidden] {
      display: none;
    }

    .stat-value {
      font-family: "IBM Plex Mono", monospace;
      font-size: 1.05rem;
      letter-spacing: 0.08em;
    }

    .stat-sub {
      color: var(--muted);
      font-size: 0.82rem;
      margin-top: 6px;
    }

    .tonight-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .tonight-card {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 15% 0%, rgba(42, 209, 255, 0.16), transparent 58%),
        linear-gradient(155deg, rgba(12, 20, 36, 0.96), rgba(10, 16, 30, 0.96));
      border-color: rgba(120, 150, 205, 0.3);
    }

    .tonight-card::before {
      content: "";
      position: absolute;
      left: 0;
      top: 14px;
      bottom: 14px;
      width: 3px;
      border-radius: 999px;
      background: rgba(87, 230, 255, 0.75);
    }

    .tonight-card.tonight-iss::before {
      background: rgba(87, 230, 255, 0.82);
    }

    .tonight-card.tonight-sky::before {
      background: rgba(155, 92, 255, 0.86);
    }

    .tonight-card.tonight-moon::before {
      background: rgba(23, 241, 177, 0.82);
    }

    .tonight-card.tonight-weather::before {
      background: rgba(138, 169, 255, 0.82);
    }

    .tonight-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .tonight-head h3 {
      margin: 0;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: #9fb2cf;
    }

    .tonight-value {
      font-family: "IBM Plex Mono", monospace;
      font-size: 1.06rem;
      letter-spacing: 0.04em;
      line-height: 1.3;
      color: #eef4ff;
    }

    .tonight-sub {
      margin-top: 6px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.8rem;
      line-height: 1.35;
      color: #a8bbd7;
    }

    .tonight-sub-line {
      display: block;
      margin-top: 4px;
      color: #c4d4ec;
    }

    .timeline-panel,
    .guide-panel,
    .conditions-panel {
      overflow: hidden;
    }

    .timeline-panel.is-collapsed {
      padding-bottom: 18px;
    }

    .timeline-panel.is-collapsed .panel-heading {
      margin-bottom: 0;
      border-bottom-color: rgba(114, 146, 204, 0.22);
    }

    .timeline-panel.is-collapsed .panel-heading::after {
      width: 132px;
      opacity: 0.76;
    }

    .timeline-content[hidden] {
      display: none !important;
    }

    .panel-toggle-btn {
      flex: 0 0 auto;
      min-width: 88px;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid rgba(95, 128, 184, 0.54);
      background: rgba(17, 30, 56, 0.88);
      color: #d2e3ff;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.74rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .panel-toggle-btn:hover {
      border-color: rgba(87, 230, 255, 0.72);
      background: rgba(22, 42, 76, 0.94);
      transform: translateY(-1px);
    }

    .timeline-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 12px;
      margin-top: 14px;
    }

    .timeline-item {
      position: relative;
      padding: 12px 12px 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(110, 138, 184, 0.24);
      background: linear-gradient(160deg, rgba(11, 18, 34, 0.92), rgba(7, 12, 24, 0.95));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
      animation: fadeRise 420ms ease both;
    }

    .timeline-item::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 10% 0%, rgba(42, 209, 255, 0.12), transparent 58%);
      pointer-events: none;
    }

    .timeline-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 5px rgba(42, 209, 255, 0.12);
      margin-bottom: 10px;
    }

    .timeline-item.weather .timeline-dot {
      background: #8aa9ff;
      box-shadow: 0 0 0 5px rgba(138, 169, 255, 0.12);
    }

    .timeline-item.sky .timeline-dot {
      background: var(--accent-2);
      box-shadow: 0 0 0 5px rgba(155, 92, 255, 0.12);
    }

    .timeline-item.iss .timeline-dot {
      background: var(--accent);
    }

    .timeline-item.moon .timeline-dot {
      background: var(--accent-3);
      box-shadow: 0 0 0 5px rgba(23, 241, 177, 0.12);
    }

    .timeline-item.rare .timeline-dot {
      background: var(--warning);
      box-shadow: 0 0 0 5px rgba(255, 180, 82, 0.12);
    }

    .timeline-time {
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.84rem;
      color: #d9e7ff;
      margin-bottom: 6px;
    }

    .timeline-label {
      font-weight: 600;
      color: #eef4ff;
      margin-bottom: 4px;
    }

    .timeline-sub {
      color: var(--muted);
      font-size: 0.8rem;
      line-height: 1.35;
    }

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

    .view-toggle {
      display: inline-flex;
      gap: 8px;
      padding: 6px;
      border-radius: 999px;
      background: rgba(10, 16, 30, 0.7);
      border: 1px solid var(--border);
      width: fit-content;
    }

    .viewer {
      position: relative;
      background: var(--panel-strong);
      border: 1px solid var(--border);
      border-radius: 26px;
      min-height: 460px;
      overflow: hidden;
      box-shadow: var(--shadow);
      overscroll-behavior: contain;
    }

    .viewer-track-status {
      margin-top: 12px;
    }

    .view-panel {
      position: absolute;
      inset: 0;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .view-panel.active {
      opacity: 1;
      pointer-events: auto;
    }

    #map {
      z-index: 1;
      background: var(--map-bg, #1a2940);
    }

    #map.leaflet-container,
    #map .leaflet-container {
      background: var(--map-bg, #1a2940);
      touch-action: none;
    }

    #map.map-theme-primary .leaflet-tile {
      filter: var(--map-tile-filter-primary, brightness(0.86) contrast(1.22) saturate(1.15));
    }

    #map.map-theme-fallback .leaflet-tile {
      filter: var(--map-tile-filter-fallback, brightness(1.12) contrast(1.1) saturate(1.06));
    }

    #map::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 300;
      background:
        radial-gradient(circle at 50% 52%, transparent 58%, rgba(8, 18, 34, 0.26) 100%),
        linear-gradient(90deg, rgba(9, 19, 36, 0.2), transparent 11%, transparent 89%, rgba(9, 19, 36, 0.2));
    }

    .map-status {
      position: absolute;
      right: 20px;
      top: 20px;
      padding: 10px 14px;
      background: rgba(6, 10, 18, 0.64);
      border: 1px solid rgba(84, 194, 255, 0.5);
      border-radius: 16px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.75rem;
      color: #b8d7eb;
      z-index: 700;
      pointer-events: none;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .map-status.fade {
      opacity: 0;
      transform: translateY(-4px);
    }

    #globe-view {
      z-index: 2;
      background: radial-gradient(circle at 50% 30%, rgba(34, 66, 118, 0.92), rgba(10, 18, 34, 0.92) 72%);
    }

    #globe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      touch-action: none;
    }

    #sky-view {
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at 50% 20%, rgba(10, 28, 60, 0.9), #04060c 70%);
      z-index: 3;
    }

    #sky {
      width: 100%;
      height: 100%;
      display: block;
      touch-action: none;
    }

    .sky-overlay {
      position: absolute;
      left: 20px;
      top: 20px;
      padding: 10px 14px;
      background: rgba(6, 10, 18, 0.6);
      border: 1px solid rgba(100, 140, 200, 0.3);
      border-radius: 16px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.75rem;
      color: var(--muted);
      max-width: 240px;
    }

    .globe-overlay {
      position: absolute;
      left: 20px;
      top: 20px;
      padding: 10px 14px;
      background: rgba(6, 10, 18, 0.6);
      border: 1px solid rgba(100, 140, 200, 0.3);
      border-radius: 16px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.75rem;
      color: var(--muted);
      max-width: 240px;
      pointer-events: none;
    }

    .panel-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.98fr);
      gap: 24px;
      align-items: start;
    }

    .pass-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .sky-event-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .sky-note {
      max-width: 32rem;
      margin: -2px 0 14px;
    }

    .guide-grid {
      align-items: start;
    }

    .guide-list,
    .conditions-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .guide-item,
    .condition-item {
      position: relative;
      overflow: hidden;
      padding: 14px;
      border-radius: 16px;
      border: 1px solid rgba(120, 140, 180, 0.24);
      background: linear-gradient(160deg, rgba(14, 20, 36, 0.92), rgba(8, 13, 24, 0.96));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
      animation: fadeRise 420ms ease both;
    }

    .guide-item::before,
    .condition-item::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 14% 0%, rgba(42, 209, 255, 0.08), transparent 58%);
      pointer-events: none;
    }

    .guide-head,
    .condition-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .guide-title {
      margin: 0;
      font-size: 1rem;
      color: #eef4ff;
    }

    .guide-kicker {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: #9fb2cf;
      margin-bottom: 6px;
    }

    .guide-meta,
    .condition-meta {
      color: #c4d6ef;
      font-family: "IBM Plex Mono", monospace;
      line-height: 1.4;
      font-size: 0.86rem;
    }

    .guide-hint,
    .condition-hint {
      color: var(--muted);
      font-size: 0.8rem;
      margin-top: 8px;
      line-height: 1.35;
    }

    .guide-tags,
    .condition-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .guide-note {
      margin-bottom: 12px;
    }

    .badge.tier-naked-eye {
      color: #b8f9ff;
      border-color: rgba(42, 209, 255, 0.46);
      background: rgba(42, 209, 255, 0.14);
    }

    .badge.tier-binoculars {
      color: #ffe0a6;
      border-color: rgba(255, 180, 82, 0.46);
      background: rgba(255, 180, 82, 0.14);
    }

    .badge.weather-clear {
      color: #b8f9ff;
      border-color: rgba(138, 169, 255, 0.42);
      background: rgba(138, 169, 255, 0.14);
    }

    .badge.weather-risk {
      color: #ffd3b0;
      border-color: rgba(255, 107, 107, 0.4);
      background: rgba(255, 107, 107, 0.12);
    }

    .badge.meteor {
      color: #ffd9b3;
      border-color: rgba(255, 152, 102, 0.52);
      background: rgba(255, 152, 102, 0.14);
    }

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

    .sky-event-item {
      position: relative;
      overflow: hidden;
      padding: 12px 14px;
      border-radius: 16px;
      background: linear-gradient(160deg, rgba(16, 24, 42, 0.94), rgba(10, 16, 28, 0.95));
      border: 1px solid rgba(120, 140, 180, 0.28);
      box-shadow:
        inset 0 1px 0 rgba(170, 190, 230, 0.08),
        0 10px 24px rgba(2, 6, 14, 0.35);
    }

    .sky-day-group {
      margin-top: 14px;
      padding: 15px 15px 14px;
      border-radius: 20px;
      border: 1px solid rgba(98, 121, 168, 0.24);
      background: linear-gradient(180deg, rgba(10, 16, 30, 0.82), rgba(7, 12, 24, 0.88));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    }

    .sky-day-group.best-night {
      border-color: rgba(255, 188, 105, 0.5);
      background: linear-gradient(180deg, rgba(255, 188, 105, 0.06), rgba(8, 14, 28, 0.92));
      box-shadow: 0 0 0 1px rgba(255, 188, 105, 0.1), 0 12px 28px rgba(26, 16, 8, 0.22);
    }

    .sky-day-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(104, 128, 170, 0.2);
    }

    .sky-day-heading {
      min-width: 0;
      flex: 1;
    }

    .sky-day-label {
      font-size: 0.95rem;
      font-weight: 700;
      color: #eef4ff;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .sky-day-meta {
      margin-top: 4px;
      font-size: 0.74rem;
      color: var(--muted);
      font-family: "IBM Plex Mono", monospace;
    }

    .sky-day-badges {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .sky-top-pick {
      position: relative;
      overflow: hidden;
      padding: 14px 15px;
      border-radius: 18px;
      border: 1px solid rgba(120, 140, 180, 0.28);
      background: linear-gradient(160deg, rgba(16, 24, 42, 0.94), rgba(10, 16, 28, 0.95));
      box-shadow:
        inset 0 1px 0 rgba(170, 190, 230, 0.08),
        0 10px 24px rgba(2, 6, 14, 0.26);
      transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .sky-top-pick.clickable {
      cursor: pointer;
    }

    .sky-top-pick.clickable:hover {
      transform: translateY(-1px);
      border-color: rgba(42, 209, 255, 0.46);
      background: linear-gradient(160deg, rgba(18, 28, 48, 0.98), rgba(12, 20, 36, 0.98));
    }

    .sky-top-pick.best-of-week {
      border-color: rgba(255, 188, 105, 0.62);
      background: linear-gradient(135deg, rgba(255, 188, 105, 0.13), rgba(12, 18, 32, 0.9));
      box-shadow: 0 0 0 1px rgba(255, 188, 105, 0.18), 0 12px 26px rgba(34, 22, 10, 0.34);
    }

    .sky-top-pick.selected {
      border-color: rgba(155, 92, 255, 0.72);
      background: linear-gradient(135deg, rgba(155, 92, 255, 0.2), rgba(14, 22, 40, 0.96));
      box-shadow:
        0 0 0 2px rgba(155, 92, 255, 0.56),
        0 0 0 5px rgba(155, 92, 255, 0.14),
        0 12px 26px rgba(18, 10, 38, 0.48);
      transform: translateY(-1px);
    }

    .sky-top-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .sky-top-copy {
      min-width: 0;
      flex: 1;
    }

    .sky-top-kicker {
      margin: 0;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: #8ea9cc;
    }

    .sky-top-title {
      margin-top: 6px;
      margin-bottom: 0;
      font-size: 1.12rem;
    }

    .sky-top-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
      flex: 0 0 auto;
      max-width: 40%;
    }

    .sky-top-badges,
    .sky-row-badges {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 6px;
      flex: 0 0 auto;
    }

    .sky-top-meta {
      margin-top: 10px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.84rem;
      line-height: 1.45;
      color: #9fd6f3;
    }

    .sky-top-detail {
      margin-top: 4px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.78rem;
      line-height: 1.4;
      color: var(--muted);
    }

    .sky-day-toggle {
      width: 100%;
      margin-top: 10px;
      padding: 11px 12px;
      border-radius: 14px;
      border: 1px solid rgba(98, 121, 168, 0.22);
      background: rgba(14, 20, 36, 0.55);
      color: #d4e7ff;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      cursor: pointer;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .sky-day-toggle:hover {
      border-color: rgba(122, 156, 220, 0.52);
      background: rgba(18, 28, 48, 0.78);
      transform: translateY(-1px);
    }

    .sky-day-toggle-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 1px solid rgba(122, 156, 220, 0.4);
      color: #c9dcfb;
      font-size: 0.92rem;
      line-height: 1;
    }

    .sky-day-secondary {
      margin-top: 10px;
      padding-top: 6px;
      border-top: 1px solid rgba(98, 121, 168, 0.16);
      display: grid;
    }

    .sky-secondary-row {
      width: 100%;
      padding: 12px 0;
      border: none;
      border-top: 1px solid rgba(98, 121, 168, 0.16);
      background: transparent;
      color: inherit;
      text-align: left;
      box-shadow: none;
      transition: background 0.18s ease, border-color 0.18s ease;
    }

    .sky-day-secondary .sky-secondary-row:first-child {
      border-top: none;
    }

    .sky-secondary-row:hover {
      background: rgba(17, 28, 48, 0.24);
    }

    .sky-secondary-row.selected {
      padding: 12px;
      border: 1px solid rgba(155, 92, 255, 0.5);
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(155, 92, 255, 0.12), rgba(14, 22, 40, 0.72));
      box-shadow: 0 10px 22px rgba(18, 10, 38, 0.22);
      margin-top: 8px;
    }

    .sky-secondary-main {
      min-width: 0;
    }

    .sky-secondary-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .sky-secondary-title {
      margin-bottom: 2px;
    }

    .pass-item::before,
    .pass-item.best::before,
    .pass-item.preview::before {
      content: none !important;
      display: none !important;
    }

    .forecast-note {
      margin: -4px 0 10px;
    }

    .pass-item {
      position: relative;
      overflow: hidden;
      padding: 12px 14px;
      border-radius: 16px;
      background: linear-gradient(160deg, rgba(16, 24, 42, 0.94), rgba(10, 16, 28, 0.95));
      border: 1px solid rgba(120, 140, 180, 0.28);
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      align-items: center;
      box-shadow:
        inset 0 1px 0 rgba(170, 190, 230, 0.08),
        0 10px 24px rgba(2, 6, 14, 0.35);
    }

    .pass-item.clickable {
      cursor: pointer;
      transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .pass-item.clickable:hover {
      transform: translateY(-1px);
      border-color: rgba(42, 209, 255, 0.5);
      background: linear-gradient(160deg, rgba(18, 28, 48, 0.98), rgba(12, 20, 36, 0.98));
    }

    .pass-item.best {
      border-color: rgba(23, 241, 177, 0.7);
      background: linear-gradient(135deg, rgba(23, 241, 177, 0.12), rgba(12, 18, 32, 0.9));
      box-shadow: 0 0 0 1px rgba(23, 241, 177, 0.25), 0 12px 30px rgba(6, 20, 18, 0.35);
    }

    .pass-item.preview {
      border-color: rgba(155, 92, 255, 0.7);
      background: linear-gradient(135deg, rgba(155, 92, 255, 0.2), rgba(14, 22, 40, 0.95));
      box-shadow:
        0 0 0 2px rgba(155, 92, 255, 0.65),
        0 0 0 5px rgba(155, 92, 255, 0.18),
        0 14px 28px rgba(18, 10, 38, 0.55);
      transform: translateY(-1px);
    }

    .pass-item.preview .pass-title {
      color: #f0d8ff;
    }

    .pass-title {
      font-size: 0.9rem;
      margin: 0;
    }

    .pass-meta {
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.78rem;
      color: var(--muted);
    }

    .pass-meta.sky-highlight {
      color: #9fd6f3;
      margin-top: 3px;
    }

    .pass-meta.moon-phase {
      color: #d7dfff;
      margin-top: 3px;
    }

    .pass-meta.alignment-highlight {
      color: #f8d9a1;
      margin-top: 3px;
    }

    .pass-meta.quality-hint {
      margin-top: 5px;
      color: #ffd8a6;
      letter-spacing: 0.04em;
      font-size: 0.74rem;
      text-transform: uppercase;
    }

    .badge-row {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
    }

    .badge {
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 0.7rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-family: "IBM Plex Mono", monospace;
    }

    .badge.visible {
      background: rgba(23, 241, 177, 0.15);
      color: var(--success);
      border: 1px solid rgba(23, 241, 177, 0.4);
    }

    .badge.best {
      background: rgba(42, 209, 255, 0.2);
      color: var(--accent);
      border: 1px solid rgba(42, 209, 255, 0.5);
    }

    .badge.preview {
      background: rgba(155, 92, 255, 0.2);
      color: var(--accent-2);
      border: 1px solid rgba(155, 92, 255, 0.6);
    }

    .badge.alignment {
      background: rgba(255, 188, 105, 0.2);
      color: #ffd09c;
      border: 1px solid rgba(255, 188, 105, 0.55);
    }

    .badge.eclipse {
      background: rgba(255, 114, 130, 0.2);
      color: #ffb8c2;
      border: 1px solid rgba(255, 114, 130, 0.6);
    }

    .badge.phase {
      background: rgba(194, 203, 255, 0.2);
      color: #dce2ff;
      border: 1px solid rgba(194, 203, 255, 0.5);
    }

    .badge.dark-sky {
      background: rgba(23, 241, 177, 0.18);
      color: #8effd0;
      border: 1px solid rgba(23, 241, 177, 0.5);
    }

    .badge.bright-moon {
      background: rgba(225, 232, 255, 0.2);
      color: #e8eeff;
      border: 1px solid rgba(196, 208, 255, 0.5);
    }

    .badge.multi {
      background: rgba(255, 207, 126, 0.18);
      color: #ffd7a3;
      border: 1px solid rgba(255, 207, 126, 0.5);
    }

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

    .compact-title {
      margin: 0;
      line-height: 1.15;
      letter-spacing: 0.01em;
    }

    .compact-title-pass {
      font-size: 1.26rem;
      font-weight: 700;
    }

    .compact-title-event {
      font-size: 1.15rem;
      font-weight: 700;
    }

    .compact-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      flex: 0 0 auto;
      max-width: 48%;
    }

    .compact-badges {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 6px;
      flex: 0 0 auto;
      max-width: 100%;
    }

    .compact-sub {
      margin-top: 4px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.79rem;
      color: var(--muted);
      line-height: 1.35;
    }

    .compact-time {
      margin-top: 6px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.98rem;
      line-height: 1.2;
      letter-spacing: 0.02em;
      color: #e8f0ff;
      font-weight: 600;
    }

    .pass-meta.event-time {
      margin-top: 4px;
      font-size: 0.9rem;
      color: #e4ecff;
      letter-spacing: 0.02em;
      font-weight: 600;
    }

    .compact-grid {
      margin-top: 10px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 7px;
    }

    .compact-cell {
      border: 1px solid rgba(120, 140, 180, 0.22);
      background: rgba(255, 255, 255, 0.03);
      border-radius: 10px;
      padding: 7px 8px;
      min-width: 0;
    }

    .compact-k {
      margin: 0;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.6rem;
      text-transform: uppercase;
      letter-spacing: 0.11em;
      color: #91a3c5;
    }

    .compact-v {
      margin: 3px 0 0;
      font-family: "Space Grotesk", sans-serif;
      font-size: 1.18rem;
      line-height: 1.15;
      font-weight: 700;
      color: #edf2ff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .compact-detail {
      margin-top: 9px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.88rem;
      line-height: 1.35;
      color: #9fdcff;
      word-break: break-word;
    }

    .compact-secondary {
      margin-top: 3px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.82rem;
      line-height: 1.3;
      color: #c8d6f2;
      word-break: break-word;
    }

    .compact-quality-hint {
      margin-top: 6px;
      font-family: "IBM Plex Mono", monospace;
      color: #ffd8a6;
      font-size: 0.7rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .share-chip {
      background: rgba(18, 36, 66, 0.68);
      color: #cce5ff;
      border: 1px solid rgba(88, 170, 235, 0.42);
      border-radius: 999px;
      padding: 6px 11px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.65rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      line-height: 1;
      transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .share-chip:hover {
      transform: translateY(-1px);
      border-color: rgba(42, 209, 255, 0.72);
      background: rgba(24, 52, 92, 0.84);
    }

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

    @media (min-width: 901px) {
      .sky-card .sky-event-list {
        gap: 24px;
      }

      .sky-day-group {
        margin-top: 0;
        padding: 18px 18px 16px;
      }

      .sky-day-group + .sky-day-group {
        margin-top: 24px;
      }

      .sky-day-group.best-night {
        box-shadow: 0 0 0 1px rgba(255, 188, 105, 0.08), 0 14px 28px rgba(26, 16, 8, 0.16);
      }

      .sky-day-header {
        padding: 0 2px 12px;
        margin-bottom: 12px;
      }

      .sky-day-label {
        font-size: 1rem;
      }

      .sky-day-meta {
        font-size: 0.78rem;
      }

      .sky-top-pick {
        padding: 16px 18px;
      }

      .sky-top-title {
        font-size: 1.18rem;
      }

      .sky-day-secondary {
        margin-top: 12px;
      }

      .sky-secondary-row {
        padding: 12px 2px;
      }

      .sky-secondary-row.selected {
        padding: 12px 14px;
      }

      .sky-secondary-row .pass-meta.event-time {
        margin-top: 0;
        font-size: 0.8rem;
        font-weight: 500;
      }

      .sky-secondary-row .pass-meta.sky-highlight {
        max-width: 42rem;
      }

      .sky-row-badges .badge {
        padding: 5px 8px;
        font-size: 0.62rem;
      }
    }

    .toast {
      position: fixed;
      right: 20px;
      bottom: 24px;
      z-index: 2000;
      max-width: min(420px, calc(100vw - 40px));
      padding: 10px 14px;
      border-radius: 12px;
      background: rgba(8, 14, 24, 0.92);
      border: 1px solid rgba(42, 209, 255, 0.55);
      color: #d7e8ff;
      box-shadow: 0 16px 36px rgba(2, 8, 18, 0.6);
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.77rem;
      letter-spacing: 0.03em;
      opacity: 0;
      transform: translateY(6px);
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

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

    #refresh.is-loading {
      position: relative;
      padding-left: 34px;
      pointer-events: none;
    }

    #refresh.is-loading::before {
      content: "";
      position: absolute;
      left: 13px;
      top: 50%;
      width: 12px;
      height: 12px;
      margin-top: -6px;
      border: 2px solid rgba(210, 226, 255, 0.35);
      border-top-color: rgba(87, 230, 255, 0.95);
      border-radius: 50%;
      animation: spin 0.72s linear infinite;
    }

    .tonight-grid.loading,
    .conditions-panel.loading,
    .panel-card.loading {
      position: relative;
    }

    .tonight-grid.loading {
      pointer-events: none;
    }

    .conditions-panel.loading,
    .panel-card.loading {
      pointer-events: none;
    }

    .tonight-grid.loading .tonight-card,
    .conditions-panel.loading .conditions-list,
    .panel-card.loading .pass-list,
    .panel-card.loading .sky-event-list {
      opacity: 0.7;
      filter: saturate(0.82);
      transition: opacity 0.18s ease;
    }

    .tonight-grid.loading::after,
    .conditions-panel.loading::after,
    .panel-card.loading::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(110deg, rgba(255, 255, 255, 0) 15%, rgba(170, 210, 255, 0.08) 35%, rgba(255, 255, 255, 0) 55%);
      transform: translateX(-100%);
      animation: shimmer 1.15s linear infinite;
      pointer-events: none;
    }

    .tonight-grid.loading::after {
      border-radius: 22px;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @keyframes shimmer {
      to { transform: translateX(100%); }
    }

    [aria-busy="true"] {
      cursor: progress;
    }

    .preview-banner {
      position: relative;
      margin: 0 0 0 auto;
      display: flex;
      gap: 10px;
      align-items: center;
      padding: 10px 14px;
      background: rgba(10, 14, 24, 0.75);
      border: 1px solid rgba(155, 92, 255, 0.45);
      border-radius: 16px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.75rem;
      color: var(--text);
      backdrop-filter: blur(6px);
      box-shadow: 0 10px 26px rgba(12, 10, 26, 0.5);
      max-width: 620px;
    }

    .preview-banner button {
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 0.7rem;
    }

    .preview-banner[hidden] {
      display: none !important;
    }

    .preview-banner span {
      flex: 1;
    }

    .badge.daylight {
      background: rgba(255, 180, 82, 0.15);
      color: var(--warning);
      border: 1px solid rgba(255, 180, 82, 0.4);
    }

    .badge.low {
      background: rgba(255, 107, 107, 0.15);
      color: var(--danger);
      border: 1px solid rgba(255, 107, 107, 0.4);
    }

    .controls {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .settings-section {
      margin-top: 6px;
    }

    .control-group label {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--muted);
      display: block;
      margin-bottom: 6px;
    }

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

    input[type="text"],
    input[type="number"] {
      background: rgba(6, 10, 18, 0.6);
      border: 1px solid rgba(120, 140, 180, 0.3);
      color: var(--text);
      border-radius: 12px;
      padding: 8px 10px;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.82rem;
      width: 100%;
      max-width: 140px;
    }

    input[type="range"] {
      width: 100%;
    }

    .footnote {
      font-size: 0.74rem;
      color: var(--muted);
      margin: 0;
    }

    .iss-marker .iss-dot {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--accent);
      border: 1.5px solid rgba(3, 27, 42, 0.9);
      box-shadow: 0 0 0 1px rgba(87, 230, 255, 0.35), 0 0 12px rgba(42, 209, 255, 0.9);
      position: relative;
    }

    .iss-marker .iss-dot::after {
      content: "";
      position: absolute;
      inset: -10px;
      border-radius: 50%;
      border: 1px solid rgba(42, 209, 255, 0.4);
      animation: pulse 2.6s infinite ease-out;
    }

    .user-marker {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--accent-3);
      border: 1px solid rgba(3, 27, 42, 0.78);
      box-shadow: 0 0 0 1px rgba(23, 241, 177, 0.25), 0 0 12px rgba(23, 241, 177, 0.8);
    }

    @keyframes pulse {
      0% { transform: scale(0.6); opacity: 0.8; }
      100% { transform: scale(1.6); opacity: 0; }
    }

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

      .panel-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .viewer {
        min-height: 380px;
        padding-bottom: 0;
      }

      .sky-overlay,
      .globe-overlay {
        display: none;
      }

      .preview-banner {
        margin: 8px 0 0;
        max-width: 100%;
        width: 100%;
      }

      .view-toolbar {
        display: block;
      }

      .forecast-note {
        margin: 0 0 10px;
        line-height: 1.35;
      }

      .sky-note {
        max-width: none;
      }

      .panel-heading {
        padding-bottom: 10px;
      }

      .panel-heading::after {
        width: 124px;
      }

      .panel-heading-sub {
        max-width: none;
      }

      .panel-popover {
        width: min(300px, 86vw);
      }

      .pass-item.compact-mobile {
        display: block;
        padding: 12px;
        gap: 0;
      }

      .sky-day-group {
        padding: 14px;
      }

      .sky-top-pick {
        padding: 13px;
      }

      .sky-top-head {
        gap: 10px;
      }

      .sky-top-actions {
        max-width: 44%;
      }

      .sky-top-title {
        font-size: 1.02rem;
      }

      .sky-top-meta {
        font-size: 0.8rem;
      }

      .sky-top-detail {
        font-size: 0.76rem;
      }

      .sky-day-toggle {
        padding: 10px 11px;
      }

      .sky-secondary-row {
        padding: 11px 0;
      }

      .compact-badges .badge {
        padding: 6px 9px;
        font-size: 0.64rem;
        letter-spacing: 0.12em;
      }

      .share-chip {
        padding: 6px 9px;
      }
    }

    @media (max-width: 560px) {
      .app {
        gap: 18px;
      }

      .panel-title {
        font-size: 0.88rem;
        letter-spacing: 0.14em;
      }

      .panel-heading-sub {
        font-size: 0.76rem;
      }

      .panel-toggle-btn {
        min-width: 78px;
        padding: 7px 10px;
        font-size: 0.68rem;
      }

      .panel-info-wrap {
        min-width: 28px;
        min-height: 28px;
      }

      .panel-info-btn {
        width: 20px;
        height: 20px;
        font-size: 0.72rem;
      }

      .panel-popover {
        right: -8px;
      }

      .compact-title-pass {
        font-size: 1.08rem;
      }

      .compact-title-event {
        font-size: 1.08rem;
      }

      .sky-day-label {
        font-size: 0.9rem;
      }

      .sky-day-meta {
        font-size: 0.7rem;
      }

      .sky-top-actions {
        max-width: 48%;
      }

      .sky-top-title {
        font-size: 0.98rem;
      }

      .sky-top-meta,
      .sky-top-detail,
      .sky-secondary-row .pass-meta {
        font-size: 0.75rem;
      }

      .sky-row-badges .badge,
      .sky-top-badges .badge {
        padding: 5px 8px;
        font-size: 0.6rem;
      }

      .sky-day-toggle {
        font-size: 0.68rem;
      }

      .compact-grid {
        gap: 6px;
      }

      .compact-cell {
        padding: 6px 7px;
      }

      .compact-k {
        font-size: 0.56rem;
      }

      .compact-v {
        font-size: 1.02rem;
      }

      .compact-detail {
        font-size: 0.81rem;
      }

      .compact-secondary {
        font-size: 0.77rem;
      }

      .toast {
        right: 12px;
        left: 12px;
        max-width: none;
      }
    }

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

      .boot-overlay,
      .app,
      .app > *,
      .panel-card.loading::after,
      .conditions-panel.loading::after,
      .tonight-grid.loading::after,
      #refresh.is-loading::before,
      .boot-overlay__scrim::before,
      .boot-overlay__scrim::after,
      .boot-loader__orbit--outer,
      .boot-loader__orbit--inner,
      .boot-loader__dot {
        animation: none !important;
        transition: none !important;
      }

      .app.is-booting {
        filter: saturate(0.9);
      }
    }
