:root {
        color-scheme: dark;
        --bg: #02050b;
        --surface: rgba(10, 14, 24, 0.82);
        --card: rgba(16, 20, 34, 0.85);
        --muted: rgba(255, 255, 255, 0.72);
        --text: #f4f6ff;
        --accent: #9dc5ff;
        --warning: #ffd194;
        --danger: #ff8a8a;
        --radius-xl: 34px;
        --radius-lg: 26px;
        --radius-md: 18px;
        --gap: clamp(0.9rem, 2.6vw, 1.8rem);
        font-family: "SF Pro Display", "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
        background: var(--bg);
        color: var(--text);
      }
      .location-controls {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        align-items: flex-start;
      }
      .location-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.55rem 0.9rem;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text);
        font-size: 0.88rem;
        cursor: pointer;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
      }
      .location-toggle[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
      }
      .location-icon {
        font-size: 1rem;
      }
      .location-panel {
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-md);
        padding: 0.9rem;
        background: rgba(2, 5, 11, 0.78);
        width: clamp(220px, 30vw, 280px);
        box-shadow: 0 25px 65px rgba(0, 0, 0, 0.4);
        display: grid;
        gap: 0.65rem;
      }
      .location-panel[hidden] {
        display: none;
      }
      .location-panel label {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.6);
      }
      .location-panel input {
        width: 100%;
        padding: 0.35rem 0.6rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text);
      }
      .location-panel button {
        width: 100%;
        padding: 0.45rem 0.8rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: var(--text);
      }
      .location-panel .saved-locations {
        margin-top: 0.6rem;
      }
      .location-form {
        display: grid;
        gap: 0.35rem;
      }
      html {
        width: 100%;
        min-height: 100%;
        overflow-x: hidden;
      }
      *,
      *::before,
      *::after {
        box-sizing: border-box;
      }
      body {
        margin: 0;
        min-height: 100vh;
        padding: 0;
        overflow-x: hidden;
        background: radial-gradient(circle at 20% -10%, rgba(98, 162, 255, 0.35), transparent 45%),
          radial-gradient(circle at 85% 0%, rgba(255, 150, 120, 0.25), transparent 40%), var(--bg);
        transition: background 0.4s ease;
      }
      body[data-tone="alert"] {
        background: radial-gradient(circle at 20% -10%, rgba(255, 110, 110, 0.32), transparent 50%),
          radial-gradient(circle at 80% 0%, rgba(255, 195, 125, 0.25), transparent 45%), #07050a;
      }
      body[data-tone="active"] {
        background: radial-gradient(circle at 20% -10%, rgba(110, 180, 255, 0.35), transparent 45%),
          radial-gradient(circle at 85% 0%, rgba(125, 255, 205, 0.25), transparent 40%), var(--bg);
      }
      body[data-trust-state="low"] {
        filter: saturate(0.92);
      }
      body[data-trust-state="low"] .trust-chip {
        box-shadow: 0 0 18px rgba(255, 150, 150, 0.2);
      }
      body[data-trust-state="high"] .trust-chip {
        box-shadow: 0 0 18px rgba(131, 230, 199, 0.25);
      }
      main {
        width: 100%;
        max-width: min(1360px, 96vw);
        margin: 0 auto;
        padding: clamp(0.5rem, 1.4vw, 1.1rem) clamp(0.7rem, 1.8vw, 1.4rem) clamp(1.1rem, 3vw, 2rem);
        display: grid;
        gap: var(--gap);
        grid-template-columns: minmax(0, 1fr);
      }
      @media (min-width: 1500px) {
        main {
          max-width: min(1480px, 90vw);
        }
      }
      main > * {
        width: 100%;
        min-width: 0;
      }
      main > .hero {
        grid-column: 1 / -1;
      }
      @media (min-width: 1100px) {
        main {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          align-items: start;
          gap: clamp(0.9rem, 1.8vw, 2rem);
        }
        main > .hero {
          grid-column: 1 / -1;
        }
      main > section.card {
        min-height: 0;
      }
      }
      section {
        background: var(--surface);
        backdrop-filter: blur(32px);
        border-radius: clamp(20px, 3vw, 32px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: clamp(1rem, 2vw, 2.1rem);
        box-shadow: 0 35px 65px rgba(0, 0, 0, 0.45);
        animation: floatIn 0.7s ease forwards;
      }
      .hero {
        display: grid;
        gap: clamp(0.9rem, 2vw, 1.8rem);
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        border-radius: 0;
        width: 100%;
        min-width: 0;
      }
      .hero-stage {
        position: relative;
        overflow: hidden;
        border-radius: clamp(28px, 4.5vw, 44px);
        padding: clamp(1.1rem, 2.2vw, 2.2rem);
        min-height: clamp(260px, 44vh, 340px);
        background: linear-gradient(135deg, rgba(43, 58, 92, 0.95), rgba(18, 24, 44, 0.85));
        border: 1px solid rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(32px);
        transition: background 0.6s ease, border 0.4s ease, box-shadow 0.4s ease;
        width: 100%;
        min-width: 0;
      }
      .hero-stage::before,
      .hero-stage::after {
        content: "";
        position: absolute;
        inset: 0;
        width: 150%;
        height: 150%;
        left: -25%;
        top: -25%;
        pointer-events: none;
        transition: opacity 0.6s ease, transform 1.2s ease;
      }
      .hero-stage::before {
        background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
        opacity: 0.8;
        animation: heroGlow 18s ease-in-out infinite;
      }
      .hero-stage::after {
        background: radial-gradient(circle at 80% 10%, rgba(255, 200, 150, 0.25), transparent 50%);
        opacity: 0.7;
        animation: heroDrift 26s ease-in-out infinite;
      }
      .perspective-switch {
        display: inline-flex;
        gap: 0.45rem;
        padding: 0.4rem;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.4rem;
        flex-wrap: wrap;
      }
      .perspective-pill {
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.85rem;
        padding: 0.35rem 0.95rem;
        border-radius: 999px;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
      }
      .perspective-pill.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text);
        font-weight: 600;
      }
      .hero-stage[data-sky="rain"] {
        background: linear-gradient(145deg, rgba(25, 38, 58, 0.96), rgba(6, 10, 18, 0.92));
      }
      .hero-stage[data-sky="rain"]::after {
        background: radial-gradient(circle at 85% 15%, rgba(108, 162, 255, 0.35), transparent 45%);
      }
      .hero-stage[data-sky="calm"] {
        background: linear-gradient(145deg, rgba(48, 70, 120, 0.95), rgba(80, 112, 176, 0.85));
        box-shadow: 0 45px 80px rgba(56, 95, 170, 0.4);
      }
      .hero-stage[data-sky="active"] {
        background: linear-gradient(145deg, rgba(40, 60, 92, 0.95), rgba(28, 41, 67, 0.88));
        box-shadow: 0 35px 70px rgba(45, 80, 150, 0.35);
      }
      .hero-stage[data-sky="night"] {
        background: linear-gradient(165deg, rgba(10, 14, 28, 0.98), rgba(26, 20, 44, 0.9));
      }
      .hero-stage[data-phase="dawn"] {
        background: linear-gradient(145deg, rgba(42, 55, 92, 0.95), rgba(65, 86, 134, 0.9));
      }
      .hero-stage[data-phase="day"] {
        background: linear-gradient(140deg, rgba(47, 71, 126, 0.94), rgba(64, 92, 155, 0.9));
      }
      .hero-stage[data-phase="evening"] {
        background: linear-gradient(150deg, rgba(58, 37, 74, 0.94), rgba(28, 23, 46, 0.9));
      }
      .hero-stage[data-phase="night"] {
        background: linear-gradient(165deg, rgba(10, 14, 28, 0.98), rgba(26, 20, 44, 0.9));
      }
      .hero-stage[data-trust="medium"] {
        border-color: rgba(255, 207, 143, 0.3);
      }
      .hero-stage[data-trust="low"] {
        border-color: rgba(255, 138, 138, 0.35);
        box-shadow: 0 40px 70px rgba(255, 109, 109, 0.18);
      }
      .hero-stage.is-loading .hero-temp,
      .hero-stage.is-loading .hero-condition,
      .hero-stage.is-loading .hero-summary {
        position: relative;
        color: transparent;
      }
      .hero-stage.is-loading .hero-temp::after,
      .hero-stage.is-loading .hero-condition::after,
      .hero-stage.is-loading .hero-summary::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 16px;
        background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
        animation: shimmer 1.8s linear infinite;
      }
      .hero-stage-content {
        position: relative;
        z-index: 1;
        height: 100%;
        display: grid;
        gap: clamp(0.75rem, 1.6vw, 1.5rem);
        animation: heroContentFloat 22s ease-in-out infinite;
      }
      .hero-stage-header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: clamp(0.6rem, 1.4vw, 1.2rem);
      }
      .hero-chip {
        padding: 0.35rem 1rem;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        letter-spacing: 0.28em;
        font-size: 0.72rem;
        text-transform: uppercase;
        color: var(--muted);
      }
      .hero-location-block {
        display: flex;
        align-items: flex-start;
        gap: 0.9rem;
        flex-wrap: wrap;
      }
      .current-location-chip {
        padding: 0.65rem 0.95rem;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(0, 0, 0, 0.25);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex: 1 1 220px;
        min-width: 220px;
      }
      .current-location-chip small {
        display: block;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.6);
      }
      .current-location-chip strong {
        display: block;
        font-size: 1rem;
        color: var(--text);
      }
      .current-location-meta {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.82);
        text-align: right;
        min-width: 120px;
      }
      .location-preview {
        position: relative;
        width: clamp(200px, 32vw, 260px);
        height: 142px;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(135deg, rgba(17, 29, 53, 0.9), rgba(7, 10, 18, 0.8));
        overflow: hidden;
        flex-shrink: 0;
        transition: border 0.2s ease, box-shadow 0.2s ease;
      }
      .location-preview::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.4;
        background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
        background-size: 18px 18px;
      }
      .location-preview-canvas {
        position: absolute;
        inset: 12px 12px 42px;
        border-radius: 14px;
        background: linear-gradient(145deg, rgba(17, 34, 65, 0.95), rgba(8, 12, 24, 0.9));
        background-size: cover;
        background-position: center;
        filter: saturate(0.9) contrast(1.05);
        transition: background-image 0.3s ease;
      }
      .location-preview-marker {
        position: absolute;
        width: 16px;
        height: 16px;
        border-radius: 50% 50% 50% 0;
        transform: rotate(-45deg);
        background: linear-gradient(145deg, #ffb496, #ff6b6b);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
        left: var(--marker-left, 50%);
        top: var(--marker-top, 50%);
        margin-left: -8px;
        margin-top: -8px;
        transition: left 0.4s ease, top 0.4s ease;
      }
      .location-preview[data-state="placeholder"] .location-preview-marker {
        opacity: 0.4;
      }
      .location-preview-caption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0.45rem 0.8rem;
        font-size: 0.9rem;
        letter-spacing: 0.04em;
        text-transform: none;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 600;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(0, 0, 0, 0.35);
      }
      @media (max-width: 520px) {
        .hero-location-block {
          flex-direction: column;
        }
        .location-preview {
          width: 100%;
        }
      }
      .hero-stage-main {
        display: grid;
        gap: 0.5rem;
      }
      .hero-temp {
        font-size: clamp(3rem, 10vw, 4.6rem);
        font-weight: 600;
        margin: 0;
      }
      .hero-condition {
        font-size: clamp(1rem, 3vw, 1.4rem);
        color: var(--muted);
        margin-top: -0.4rem;
      }
      .hero-summary {
        margin: 0;
        color: rgba(255, 255, 255, 0.88);
        font-size: 0.95rem;
        max-width: 520px;
        line-height: 1.45;
      }
      .hero-insight-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        width: 100%;
      }
      .hero-insight-pill {
        padding: 0.55rem 1rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.15);
        color: var(--text);
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
      }
      .hero-insight-pill span {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.72);
      }
      .hero-insight-pill small {
        display: block;
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.78);
        letter-spacing: 0;
      }
      .hero-timeline {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.7rem;
        width: 100%;
        min-width: 0;
      }
      .hero-timeline-card {
        padding: 0.9rem 1.1rem;
        border-radius: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.07);
        backdrop-filter: blur(12px);
        display: grid;
        gap: 0.35rem;
        transition: transform 0.3s ease, border 0.3s ease;
      }
      .hero-timeline-card.active {
        border-color: rgba(157, 197, 255, 0.45);
        transform: translateY(-3px);
      }
      .hero-timeline-card span {
        font-size: 0.8rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.7);
      }
      .hero-timeline-card strong {
        font-size: 1.4rem;
        color: var(--text);
      }
      .hero-timeline-card small {
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.85rem;
      }
      .hero-timeline-card[data-stage="alert"] {
        border-color: rgba(255, 150, 150, 0.35);
      }
      .daily-timeline-card {
        margin-top: clamp(0.6rem, 1.2vw, 1.2rem);
        padding: clamp(0.8rem, 1.4vw, 1.3rem);
        border-radius: clamp(18px, 3vw, 26px);
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
      }
      .daily-timeline-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.82);
      }
      .daily-timeline-header small {
        color: rgba(255, 255, 255, 0.6);
      }
      .daily-timeline-chart-wrap {
        width: 100%;
        overflow: hidden;
      }
      .daily-timeline-chart {
        width: 100%;
        height: clamp(120px, 18vw, 150px);
        display: block;
      }
      .daily-timeline-rain {
        display: flex;
        gap: 0.35rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
      }
      .daily-rain-pill {
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
        background: rgba(108, 162, 255, 0.16);
        border: 1px solid rgba(108, 162, 255, 0.35);
        color: rgba(255, 255, 255, 0.86);
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
      }
      .daily-rain-pill::before {
        content: "☔";
        font-size: 0.85rem;
      }
      .daily-rain-pill.passive {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.7);
      }
      .daily-timeline-points {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.6rem;
      }
      .timeline-point {
        background: rgba(255, 255, 255, 0.04);
        border-radius: 14px;
        padding: 0.55rem 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
      }
      .timeline-point span {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.6);
      }
      .timeline-point strong {
        display: block;
        margin-top: 0.25rem;
        font-size: 1rem;
      }
      .timeline-point small {
        color: rgba(255, 255, 255, 0.55);
        display: block;
        margin-top: 0.1rem;
      }
      .hero-copy {
        padding: clamp(0.8rem, 2vw, 1.4rem) clamp(0.8rem, 2.2vw, 1.6rem);
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: grid;
        gap: 0.6rem;
        width: 100%;
        min-width: 0;
      }
      .hero-copy h1 {
        margin: 0;
        font-size: 25px;
        font-weight: 600;
      }
      .hero-copy p {
        margin: 0;
        color: var(--muted);
        line-height: 1.6;
      }
      .hero-grid {
        display: grid;
        gap: clamp(1rem, 2.4vw, 1.8rem);
        width: 100%;
        min-width: 0;
      }
      @media (min-width: 920px) {
        .hero-grid {
          grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
          align-items: stretch;
        }
      }
      @media (min-width: 1200px) {
        .hero-grid {
          grid-template-columns: 1fr 0.8fr;
        }
      }
      @media (max-width: 640px) {
        .hero-timeline {
          grid-template-columns: 1fr;
        }
      }
      .card {
        background: var(--card);
        border-radius: var(--radius-lg);
        padding: clamp(1rem, 1.9vw, 1.8rem);
        border: 1px solid rgba(255, 255, 255, 0.04);
        position: relative;
        width: 100%;
        min-width: 0;
      }
.insight-card {
  display: grid;
  gap: 1.2rem;
}
.insight-card .hourly-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.9rem;
}
.insight-card .hourly-card h2 {
  margin: 0;
}
      .insight-stack {
        display: grid;
        gap: 1rem;
      }
      .status-bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--muted);
        font-size: 0.92rem;
      }
      .alert-strip {
        margin-top: 0.6rem;
        padding: 0.55rem 0.85rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
        display: flex;
        gap: 0.4rem;
        align-items: center;
        font-size: 0.92rem;
        color: rgba(255, 255, 255, 0.9);
        transition: opacity 0.2s ease, transform 0.2s ease;
      }
      .alert-strip.hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-4px);
      }
      .alert-dot {
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 50%;
      }
      .alert-strip[data-type="rain"] .alert-dot {
        background: rgba(131, 180, 255, 0.95);
        box-shadow: 0 0 10px rgba(131, 180, 255, 0.65);
      }
      .alert-strip[data-type="wind"] .alert-dot {
        background: rgba(134, 213, 255, 0.95);
        box-shadow: 0 0 10px rgba(134, 213, 255, 0.65);
      }
      .alert-strip[data-type="temp"] .alert-dot {
        background: rgba(255, 189, 125, 0.95);
        box-shadow: 0 0 10px rgba(255, 189, 125, 0.65);
      }
      .alert-strip small {
        letter-spacing: 0.18em;
        text-transform: uppercase;
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.65);
      }
      .status-dot {
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 12px rgba(157, 197, 255, 0.8);
      }
      .action-card {
        margin-top: 0.9rem;
        padding: 1rem 1.2rem;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        display: grid;
        gap: 0.55rem;
      }
      .action-title {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        flex-wrap: wrap;
      }
      .action-title span {
        font-size: 0.95rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .action-title small {
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.65);
      }
      .action-text {
        margin: 0;
        font-size: 1.05rem;
        color: var(--text);
        line-height: 1.45;
      }
      .action-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.8rem;
      }
      .action-grid-item {
        padding: 0.8rem 1rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: grid;
        gap: 0.2rem;
        min-height: 90px;
      }
      .action-grid-item span {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.6);
      }
      .action-grid-item strong {
        font-size: 1.15rem;
        color: var(--text);
      }
      .action-grid-item small {
        color: rgba(255, 255, 255, 0.68);
        font-size: 0.88rem;
      }
      .dashboard-card {
        padding: clamp(1rem, 2vw, 1.6rem);
        display: grid;
        gap: 1.1rem;
      }
      .dashboard-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0.8rem;
        flex-wrap: wrap;
      }
      .dashboard-header h2 {
        margin: 0;
        font-size: clamp(1.6rem, 3.6vw, 2.2rem);
      }
      .dashboard-header .eyebrow {
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.3em;
        font-size: 0.78rem;
        color: var(--muted);
      }
      #dashboard-updated {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
      }
      .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
        width: 100%;
      }
      .dashboard-item {
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.02);
        padding: 0.9rem 1rem;
        display: grid;
        gap: 0.5rem;
        min-height: 150px;
      }
      .dashboard-item.hidden {
        display: none;
      }
      .dashboard-item-wide {
        grid-column: span 2;
      }
      @media (max-width: 720px) {
        .dashboard-item-wide {
          grid-column: span 1;
        }
      }
      .tile-title {
        font-size: 0.78rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.6);
      }
      .confidence-pill {
        border-radius: var(--radius-md);
        padding: 0.8rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        display: grid;
        gap: 0.25rem;
        background: rgba(10, 16, 28, 0.65);
      }
      .confidence-pill[data-level="high"] {
        border-color: rgba(131, 230, 199, 0.4);
        background: rgba(14, 32, 28, 0.75);
      }
      .confidence-pill[data-level="medium"] {
        border-color: rgba(255, 207, 143, 0.3);
        background: rgba(36, 28, 14, 0.65);
      }
      .confidence-pill[data-level="low"] {
        border-color: rgba(255, 138, 138, 0.35);
        background: rgba(44, 16, 18, 0.7);
      }
      .confidence-pill span {
        font-size: 0.74rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: rgba(255, 255, 255, 0.6);
      }
      .confidence-pill strong {
        font-size: 1.2rem;
        color: var(--text);
      }
      .confidence-detail {
        margin: 0;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.78);
      }
      .change-headline {
        font-size: 1.05rem;
        margin: 0;
        color: var(--text);
      }
      .change-detail {
        margin: 0;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.74);
      }
      .notification-strip {
        margin-top: 0.6rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
      }
      .dashboard-item-alert {
        min-height: 120px;
      }
      .notify-pill {
        display: inline-flex;
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.55rem 0.85rem;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.04);
        font-size: 0.85rem;
        color: var(--text);
      }
      .notify-pill[data-type="rain"] {
        border-color: rgba(157, 197, 255, 0.4);
        background: rgba(18, 32, 58, 0.6);
      }
      .notify-pill[data-type="wind"] {
        border-color: rgba(134, 213, 255, 0.35);
        background: rgba(8, 30, 44, 0.62);
      }
      .notify-pill[data-type="temp"] {
        border-color: rgba(255, 189, 125, 0.35);
        background: rgba(44, 24, 10, 0.58);
      }
      .notify-pill[data-type="neutral"] {
        border-color: rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
      }
      .notify-pill span {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.6);
      }
      .notify-pill strong {
        font-size: 0.94rem;
        font-weight: 600;
        color: var(--text);
      }
      .precip-window {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
        padding: 0.9rem 1rem;
        border-radius: var(--radius-md);
        background: rgba(18, 25, 40, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.05);
      }
      .precip-col {
        display: grid;
        gap: 0.15rem;
      }
      .precip-col span {
        font-size: 0.78rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.58);
      }
      .precip-col strong {
        font-size: 1.25rem;
        color: var(--text);
      }
      .precip-col small {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.65);
      }
      .precip-summary {
        margin: 0;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.82);
      }
      .hero-ai-summary {
        margin-top: -0.1rem;
        padding: 1.2rem 1.35rem;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(4, 9, 20, 0.55);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        display: grid;
        gap: 0.55rem;
        max-width: 580px;
      }
      .hero-ai-eyebrow {
        margin: 0;
        font-size: 0.7rem;
        letter-spacing: 0.28em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.65);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
      }
      .hero-ai-headline {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--text);
      }
      .hero-ai-body {
        margin: 0;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.55;
      }
      .hero-ai-body strong {
        color: var(--text);
        font-weight: 600;
      }
      .hero-ai-note {
        margin: 0;
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.7);
      }
      .hero-ai-meta {
        text-transform: none;
        letter-spacing: normal;
        font-size: 0.68rem;
        color: rgba(180, 207, 255, 0.88);
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-weight: 500;
      }
      .hero-ai-trust {
        margin: 0;
        margin-top: 0.2rem;
        font-size: 0.78rem;
        color: rgba(185, 213, 255, 0.85);
        letter-spacing: 0.04em;
      }
      .hero-ai-live-dot {
        width: 0.45rem;
        height: 0.45rem;
        border-radius: 50%;
        background: #6ef5b7;
        box-shadow: 0 0 10px rgba(110, 245, 183, 0.7);
        animation: heroLivePulse 1.4s ease-in-out infinite;
      }
      @keyframes heroLivePulse {
        0% {
          transform: scale(0.9);
          opacity: 0.85;
        }
        50% {
          transform: scale(1.35);
          opacity: 0.4;
        }
        100% {
          transform: scale(0.9);
          opacity: 0.85;
        }
      }
      .highlight-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        width: 100%;
        min-width: 0;
      }
      .rain-panel {
        margin-top: 0.75rem;
        padding: 1rem 1.2rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        display: grid;
        gap: 0.7rem;
        width: 100%;
      }
      .rain-panel-header {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
        justify-content: space-between;
      }
      .rain-panel-header strong {
        font-size: 0.92rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .rain-panel-header span {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.72);
      }
      .rain-panel[data-state="now"] {
        border-color: rgba(157, 197, 255, 0.35);
      }
      .rain-panel[data-state="soon"] {
        border-color: rgba(255, 207, 143, 0.35);
      }
      .rain-panel[data-state="low"] {
        border-color: rgba(255, 255, 255, 0.04);
      }
      .rain-timeline {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.65rem;
        width: 100%;
        min-width: 0;
      }
      .rain-pill {
        padding: 0.65rem 0.8rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.86);
        display: grid;
        gap: 0.3rem;
      }
      .rain-pill span {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: rgba(255, 255, 255, 0.6);
      }
      .rain-pill em {
        font-style: normal;
        font-size: 0.95rem;
        color: var(--text);
      }
      .rain-pill small {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.6);
      }
      .rain-pill[data-active="true"] {
        background: rgba(157, 197, 255, 0.12);
        border-color: rgba(157, 197, 255, 0.4);
      }
      .highlight {
        flex: 1 1 150px;
        min-width: 0;
        padding: 0.75rem 0.9rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.92rem;
      }
      .highlight span {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .highlight em {
        font-style: normal;
        font-size: 1rem;
        color: var(--text);
      }
      .alert-banner {
        margin-top: 0.9rem;
        padding: 0.85rem 1.1rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 138, 138, 0.15);
        color: var(--danger);
        font-size: 0.95rem;
        display: none;
      }
      .alert-banner.visible {
        display: block;
      }
      .decision-card {
        margin-top: 1rem;
        padding: 1rem 1.2rem;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        display: grid;
        gap: 0.7rem;
        width: 100%;
      }
      .decision-card h3 {
        margin: 0;
        font-size: 0.95rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .decision-subtitle {
        margin: 0;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.75);
      }
      .decision-list {
        display: grid;
        gap: 0.75rem;
      }
      .decision-note {
        margin: 0;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.85rem;
      }
      .decision-item {
        display: flex;
        gap: 0.85rem;
        align-items: flex-start;
        padding: 0.75rem 0.85rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.04);
        transition: border 0.2s ease;
      }
      .decision-item:hover {
        border-color: rgba(255, 255, 255, 0.12);
      }
      .decision-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        display: grid;
        place-items: center;
        font-size: 0.95rem;
      }
      .decision-item strong {
        font-size: 1rem;
        color: var(--text);
      }
      .decision-item small {
        display: block;
        color: var(--muted);
        font-size: 0.88rem;
        line-height: 1.45;
      }
      .summary-card {
        margin-top: 1rem;
        padding: 1rem 1.2rem;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        display: grid;
        gap: 0.75rem;
      }
      .summary-row {
        display: grid;
        gap: 0.35rem;
        padding: 0.75rem 0.8rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.03);
        background: rgba(255, 255, 255, 0.01);
      }
      .summary-row span {
        letter-spacing: 0.18em;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
      }
      .summary-row strong {
        font-size: 1.02rem;
        color: var(--text);
      }
      .summary-row p {
        margin: 0;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.82);
        line-height: 1.4;
      }
      .program-card {
        margin-top: 1rem;
        padding: 1.1rem 1.2rem;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        display: grid;
        gap: 0.8rem;
      }
      .program-card[data-state="rain"] {
        border-color: rgba(255, 170, 170, 0.35);
        background: rgba(255, 170, 170, 0.08);
      }
      .program-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.8rem;
      }
      .program-header h3 {
        margin: 0;
        font-size: 1.1rem;
      }
      .program-header .eyebrow {
        margin: 0;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.62);
      }
      .program-location {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.72);
        white-space: nowrap;
      }
      .program-summary {
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
        line-height: 1.45;
      }
      .program-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 0.65rem;
      }
      .program-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.65rem;
        padding: 0.75rem 0.9rem;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
      }
      .program-item span {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.6);
      }
      .program-item strong {
        display: block;
        margin-top: 0.2rem;
        font-size: 1rem;
      }
      .program-item small {
        color: rgba(255, 255, 255, 0.62);
        display: block;
        margin-top: 0.1rem;
      }
      .program-item em {
        font-style: normal;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.86);
        text-align: right;
        white-space: nowrap;
      }
      .seo-card {
        margin-top: 1rem;
        padding: 1.1rem 1.3rem;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.04);
        background: rgba(255, 255, 255, 0.015);
        display: grid;
        gap: 0.65rem;
      }
      .seo-card h3 {
        margin: 0;
        font-size: 0.85rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.62);
      }
      .seo-block {
        padding: 0.8rem 0.9rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.04);
        background: rgba(255, 255, 255, 0.02);
      }
      .seo-block strong {
        display: block;
        font-size: 1rem;
        margin-bottom: 0.3rem;
        color: var(--text);
      }
      .seo-block p {
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
        line-height: 1.45;
        font-size: 0.92rem;
      }
      .city-card {
        margin-top: 1.2rem;
        display: grid;
        gap: 1rem;
      }
      .city-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
      }
      .city-header h2 {
        margin: 0;
        font-size: 1.4rem;
      }
      .city-header .eyebrow {
        margin-bottom: 0.2rem;
      }
      .city-header span {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
      }
      .city-grid {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      }
      .city-tile {
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.02);
        padding: 1rem 1.1rem;
        display: grid;
        gap: 0.7rem;
      }
      .city-tile[data-state="rain"] {
        border-color: rgba(255, 170, 170, 0.35);
        background: rgba(255, 170, 170, 0.05);
      }
      .city-tile-header {
        display: flex;
        justify-content: space-between;
        gap: 0.6rem;
        align-items: flex-start;
      }
      .city-tile-header strong {
        font-size: 1.15rem;
        display: block;
      }
      .city-tile-header small {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.82rem;
      }
      .city-temp-large {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text);
        text-align: right;
      }
      .city-summary,
      .city-program,
      .city-seo p {
        margin: 0;
        font-size: 0.92rem;
        color: rgba(255, 255, 255, 0.82);
        line-height: 1.4;
      }
      .city-mini-forecast {
        display: grid;
        gap: 0.45rem;
      }
      .city-mini-forecast div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.88rem;
        color: rgba(255, 255, 255, 0.78);
      }
      .city-seo strong {
        display: block;
        font-size: 0.85rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        margin-bottom: 0.2rem;
        color: rgba(255, 255, 255, 0.6);
      }
      .action-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 0.8rem;
        width: 100%;
        min-width: 0;
      }
      .saved-locations {
        margin-top: 0.8rem;
        display: grid;
        gap: 0.75rem;
      }
      .saved-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        flex-wrap: wrap;
      }
      .saved-header span {
        font-size: 0.75rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .saved-header button {
        font-size: 0.85rem;
        padding: 0.4rem 0.9rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--text);
      }
      .saved-header button:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }
      @media (max-width: 640px) {
        .input-group {
          grid-template-columns: 1fr;
        }
        .action-row {
          flex-direction: column;
        }
        .action-row > * {
          width: 100%;
        }
        .action-row button {
          justify-content: center;
        }
      }
      .locations-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.7rem;
        width: 100%;
        min-width: 0;
      }
      .debug-panel {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: min(320px, 90vw);
        padding: 1.2rem 1.2rem 1rem;
        border-radius: 1.2rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(18px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
        color: var(--text);
        font-size: 0.85rem;
        z-index: 999;
        display: none;
        gap: 0.6rem;
      }
      .debug-close {
        position: absolute;
        top: 0.35rem;
        right: 0.55rem;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(0, 0, 0, 0.35);
        color: var(--text);
        font-size: 0.85rem;
        cursor: pointer;
      }
      body[data-debug="on"] .debug-panel {
        display: grid;
      }
      .debug-heading {
        font-size: 0.8rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.65);
      }
      .debug-item {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 0.35rem;
      }
      .debug-item strong {
        font-size: 0.85rem;
      }
      .debug-sources {
        display: grid;
        gap: 0.35rem;
      }
      .debug-source {
        display: grid;
        gap: 0.1rem;
        padding: 0.4rem 0.5rem;
        border-radius: 0.6rem;
        background: rgba(255, 255, 255, 0.04);
      }
      .debug-source span {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.55);
      }
      .debug-source strong {
        font-size: 0.88rem;
      }
      .debug-source small {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
      }
      .location-chip {
        padding: 0.6rem 1rem;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text);
        font-size: 0.92rem;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        cursor: pointer;
        transition: border 0.2s ease, background 0.2s ease;
      }
      .location-chip.active {
        border-color: rgba(157, 197, 255, 0.45);
        background: rgba(157, 197, 255, 0.12);
      }
      .location-chip.passive {
        cursor: default;
        opacity: 0.55;
      }
      .chip-remove {
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        font-size: 0.9rem;
      }
      .chip-remove:hover {
        color: rgba(255, 255, 255, 0.9);
      }
      button,
      input {
        font: inherit;
        border-radius: var(--radius-md);
        border: none;
      }
      button {
        background: linear-gradient(120deg, rgba(157, 197, 255, 0.45), rgba(103, 163, 255, 0.9));
        color: var(--text);
        padding: 0.78rem 1.2rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }
      button:hover {
        transform: translateY(-1px);
        box-shadow: 0 15px 32px rgba(120, 160, 255, 0.25);
      }
      .input-group {
        flex: 1;
        min-width: 170px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        width: 100%;
      }
      input {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.07);
        padding: 0.75rem 1rem;
        color: var(--text);
      }
      .current-block {
        display: grid;
        gap: 1rem;
        width: 100%;
      }
      .current-temp {
        font-size: clamp(3rem, 7vw, 4.2rem);
        font-weight: 600;
        transition: color 0.25s ease;
      }
      .current-block[data-trust="medium"] .current-temp {
        color: #ffe3c0;
      }
      .current-block[data-trust="low"] .current-temp {
        color: #ffcab3;
      }
      .metric-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.75rem;
        width: 100%;
      }
      .metric {
        padding: 0.85rem 1rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.04);
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
      }
      .metric span {
        font-size: 0.82rem;
        color: var(--muted);
        letter-spacing: 0.05em;
        text-transform: uppercase;
      }
      .metric strong {
        font-size: 1.35rem;
        color: var(--text);
        font-weight: 600;
      }
      .metric small {
        color: var(--muted);
        font-size: 0.85rem;
      }
      .clothing-card {
        margin: 0;
        padding: 1rem 1.1rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(7, 11, 22, 0.7);
        display: grid;
        gap: 0.35rem;
        transition: border 0.3s ease, background 0.3s ease;
      }
      .clothing-card[data-level="cold"] {
        border-color: rgba(157, 197, 255, 0.35);
        background: rgba(15, 24, 44, 0.78);
      }
      .clothing-card[data-level="cool"] {
        border-color: rgba(180, 210, 255, 0.3);
        background: rgba(18, 26, 44, 0.72);
      }
      .clothing-card[data-level="warm"] {
        border-color: rgba(255, 198, 148, 0.35);
        background: rgba(46, 26, 11, 0.68);
      }
      .clothing-card[data-level="hot"] {
        border-color: rgba(255, 150, 120, 0.35);
        background: rgba(56, 24, 6, 0.58);
      }
      .clothing-card[data-level="wet"] {
        border-color: rgba(131, 180, 255, 0.45);
        background: rgba(12, 22, 38, 0.82);
      }
      .clothing-card[data-level="neutral"] {
        border-color: rgba(255, 255, 255, 0.08);
        background: rgba(8, 12, 22, 0.68);
      }
      .clothing-header {
        display: flex;
        align-items: baseline;
        gap: 0.4rem;
        flex-wrap: wrap;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.65);
      }
      .clothing-card strong {
        font-size: 1.05rem;
        color: var(--text);
      }
      .clothing-detail {
        margin: 0;
        font-size: 0.92rem;
        color: rgba(255, 255, 255, 0.78);
      }
      .detail-strip {
        margin-top: 0.7rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.04);
        width: 100%;
      }
      .detail {
        min-width: 150px;
        display: flex;
        flex-direction: column;
        font-size: 0.9rem;
        color: var(--muted);
      }
      .detail strong {
        color: var(--text);
        font-size: 1.2rem;
        margin-top: 0.2rem;
      }
      .day-flow {
        margin-top: 0.8rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        padding: 1rem 1.2rem;
        display: grid;
        gap: 0.9rem;
        width: 100%;
      }
      .day-flow-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        flex-wrap: wrap;
      }
      .day-flow-header span {
        font-size: 0.8rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .day-flow-note {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.75);
      }
      .day-flow-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.6rem;
        width: 100%;
      }
      .flow-card {
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        padding: 0.85rem;
        display: grid;
        gap: 0.4rem;
      }
      .flow-card span {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .flow-card strong {
        font-size: 1rem;
        color: var(--text);
      }
      .flow-card small {
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.78);
      }
      .location-label {
        margin-top: 0.35rem;
        font-size: 0.95rem;
        color: var(--muted);
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }
      .insight-card {
        display: grid;
        gap: 1rem;
      }
      .eyebrow {
        margin: 0;
        font-size: 0.72rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .trust-lens {
        margin-top: 1rem;
        padding: 1.2rem 1.25rem 1.3rem;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: linear-gradient(140deg, rgba(17, 23, 38, 0.95), rgba(11, 15, 25, 0.85));
        display: grid;
        gap: 0.85rem;
      }
      .trust-lens-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
      }
      .trust-chip {
        padding: 0.45rem 1.15rem;
        border-radius: 999px;
        border: 1px solid rgba(157, 197, 255, 0.4);
        background: rgba(157, 197, 255, 0.18);
        font-size: 0.9rem;
        color: var(--text);
        transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
      }
      .trust-chip[data-state="high"] {
        border-color: rgba(131, 230, 199, 0.45);
        background: rgba(131, 230, 199, 0.18);
      }
      .trust-chip[data-state="medium"] {
        border-color: rgba(255, 207, 143, 0.45);
        background: rgba(255, 207, 143, 0.18);
      }
      .trust-chip[data-state="low"] {
        border-color: rgba(255, 150, 150, 0.45);
        background: rgba(255, 150, 150, 0.2);
        color: #ffe3e3;
      }
      .trust-context {
        font-size: 0.85rem;
        color: var(--muted);
      }
      .trust-subtext {
        margin: 0;
        font-size: 0.92rem;
        color: var(--muted);
      }
      .trust-source-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
        min-width: 0;
      }
      .trust-source-chip {
        flex: 1 1 160px;
        min-width: 0;
        padding: 0.75rem 0.95rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        display: flex;
        align-items: center;
        gap: 0.65rem;
        transition: transform 0.2s ease, border 0.2s ease;
      }
      .trust-source-chip:hover {
        transform: translateY(-1px);
        border-color: rgba(255, 255, 255, 0.12);
      }
      .chip-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        box-shadow: 0 0 15px currentColor;
      }
      .chip-observations {
        color: #9df7d4;
      }
      .chip-nowcast {
        color: #9dc5ff;
      }
      .chip-radar {
        color: #ffd294;
      }
      .chip-ai_model {
        color: #b7a1ff;
      }
      .trust-source-chip strong {
        display: block;
        font-size: 0.95rem;
        color: var(--text);
      }
      .trust-source-chip small {
        color: var(--muted);
        font-size: 0.8rem;
      }
      .trust-note {
        margin: 0;
        font-size: 0.85rem;
        color: var(--muted);
      }
      .trust-foot {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 0.8rem;
      }
      .trust-score {
        text-align: right;
        min-width: 140px;
      }
      .trust-score span {
        display: block;
        font-size: 0.75rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.5);
      }
      .trust-score strong {
        font-size: 1.2rem;
        color: var(--text);
      }
      .hourly-card h2 {
        margin: 0 0 1rem;
        font-weight: 600;
      }
      .chart-card {
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        padding: 1rem;
        display: grid;
        gap: 0.75rem;
        position: relative;
        overflow: hidden;
      }
      .chart-card svg {
        display: block;
      }
      .chart-canvas {
        position: relative;
        width: 100%;
        height: 180px;
        touch-action: pan-y;
      }
      .chart-hint {
        font-size: 0.82rem;
        color: var(--muted);
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
      }
      .chart-tooltip {
        position: absolute;
        padding: 0.4rem 0.65rem;
        background: rgba(5, 10, 20, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        font-size: 0.78rem;
        color: var(--text);
        pointer-events: none;
        transform: translate(-50%, -110%);
        transition: opacity 0.2s ease, transform 0.2s ease;
        opacity: 1;
        z-index: 2;
        white-space: nowrap;
      }
      .chart-tooltip.hidden {
        opacity: 0;
        transform: translate(-50%, -50%);
      }
      .chart-focus-line {
        stroke: rgba(255, 255, 255, 0.35);
        stroke-dasharray: 4 4;
        opacity: 0;
        transition: opacity 0.2s ease;
      }
      .chart-focus-line.visible {
        opacity: 0.5;
      }
      .chart-focus-dot {
        fill: #fff;
        stroke: rgba(157, 197, 255, 0.8);
        stroke-width: 2;
        opacity: 0;
        transition: opacity 0.2s ease, r 0.2s ease;
      }
      .chart-focus-dot.visible {
        opacity: 1;
        r: 6;
      }
      .hourly {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(130px, 1fr);
        gap: 0.7rem;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        width: 100%;
      }
      .hour-card {
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0.85rem;
        background: rgba(255, 255, 255, 0.02);
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        transition: border 0.2s ease, opacity 0.2s ease;
      }
      .hour-card[data-trust="high"] {
        border-color: rgba(131, 230, 199, 0.35);
      }
      .hour-card[data-trust="medium"] {
        border-color: rgba(255, 207, 143, 0.28);
        opacity: 0.92;
      }
      .hour-card[data-trust="low"] {
        border-color: rgba(255, 150, 150, 0.25);
        opacity: 0.85;
      }
      .hour-time {
        font-size: 0.9rem;
        color: var(--muted);
      }
      .hour-temp {
        font-size: 1.3rem;
        font-weight: 600;
      }
      .hour-rain {
        font-size: 0.85rem;
        color: var(--muted);
        display: flex;
        justify-content: space-between;
      }
      .hour-bar {
        margin-top: 0.2rem;
        width: 100%;
        height: 5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        overflow: hidden;
      }
      .hour-fill {
        height: 100%;
        background: linear-gradient(90deg, rgba(157, 197, 255, 0.8), rgba(102, 204, 255, 0.9));
        width: 0%;
      }
      .outlook-card {
        display: grid;
        gap: 1.2rem;
        width: 100%;
      }
      .outlook-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
      }
      .outlook-top h2 {
        margin: 0.3rem 0 0;
        font-size: clamp(1.4rem, 4vw, 2rem);
      }
      .outlook-context {
        font-size: 0.9rem;
        color: var(--muted);
      }
      .tomorrow-card {
        border-radius: clamp(20px, 4vw, 28px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
        padding: clamp(1.1rem, 3vw, 2rem);
        display: grid;
        gap: 1rem;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        width: 100%;
      }
      .tomorrow-card[data-state="rain"] {
        border-color: rgba(157, 197, 255, 0.35);
        background: linear-gradient(140deg, rgba(18, 27, 46, 0.6), rgba(9, 14, 24, 0.8));
      }
      .tomorrow-card[data-state="wind"] {
        border-color: rgba(255, 207, 143, 0.25);
      }
      .tomorrow-card[data-state="warm"] {
        border-color: rgba(255, 196, 120, 0.4);
      }
      .tomorrow-card[data-state="cold"] {
        border-color: rgba(173, 209, 255, 0.35);
      }
      .tomorrow-card[data-focus="evening"] {
        border-color: rgba(157, 197, 255, 0.45);
        box-shadow: 0 25px 40px rgba(50, 70, 120, 0.25);
      }
      .tomorrow-main {
        display: grid;
        gap: 0.4rem;
      }
      .tomorrow-day {
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 0.8rem;
        color: var(--muted);
      }
      .tomorrow-temp {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
        color: var(--text);
        line-height: 1.1;
      }
      .tomorrow-temp span {
        font-size: 1.1rem;
        color: var(--muted);
        margin-left: 0.4rem;
      }
      .tomorrow-detail {
        margin: 0;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1rem;
      }
      .tomorrow-extra {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        width: 100%;
        min-width: 0;
      }
      .tomorrow-pill {
        padding: 0.6rem 0.9rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.85);
      }
      .outlook-divider {
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.05);
      }
      .outlook-days-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0.8rem;
        flex-wrap: wrap;
      }
      .outlook-top > *,
      .outlook-days-header > *,
      .day-flow-header > *,
      .saved-header > * {
        min-width: 0;
      }
      .outlook-note {
        font-size: 0.85rem;
        color: var(--muted);
      }
      .outlook-days {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
        width: 100%;
      }
      .outlook-day-card {
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        background: rgba(255, 255, 255, 0.02);
        padding: 0.95rem;
        display: grid;
        gap: 0.5rem;
        text-align: left;
        transition: border 0.2s ease, transform 0.2s ease;
      }
      .outlook-day-card:hover {
        border-color: rgba(255, 255, 255, 0.14);
        transform: translateY(-2px);
      }
      .outlook-day-card[data-trust="medium"] {
        opacity: 0.95;
      }
      .outlook-day-card[data-trust="low"] {
        opacity: 0.88;
      }
      .outlook-day-card[data-focus="tomorrow"] {
        border-color: rgba(157, 197, 255, 0.35);
        background: rgba(255, 255, 255, 0.04);
      }
      .outlook-day-name {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--muted);
      }
      .outlook-day-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
      }
      .outlook-day-icon {
        font-size: 1.8rem;
        line-height: 1;
      }
      .outlook-day-temp {
        font-size: 1rem;
        color: var(--text);
      }
      .outlook-day-temp span {
        display: block;
        font-size: 0.82rem;
        color: var(--muted);
      }
      .outlook-day-detail {
        margin: 0;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.78);
        min-height: 2.2rem;
      }
      .outlook-day-extra {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        font-size: 0.78rem;
        color: var(--muted);
      }
      .outlook-day-extra span {
        flex: 1 1 120px;
      }
      .empty-state {
        border-radius: var(--radius-lg);
        border: 1px dashed rgba(255, 255, 255, 0.12);
        padding: 1.2rem;
        text-align: center;
        color: var(--muted);
      }
      @keyframes floatIn {
        from {
          opacity: 0;
          transform: translateY(15px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      @keyframes shimmer {
        0% {
          transform: translateX(-100%);
        }
        100% {
          transform: translateX(100%);
        }
      }
      @keyframes heroGlow {
        0% {
          transform: translateY(0);
          opacity: 0.75;
        }
        50% {
          transform: translateY(-6px);
          opacity: 0.9;
        }
        100% {
          transform: translateY(0);
          opacity: 0.75;
        }
      }
      @keyframes heroDrift {
        0% {
          transform: translate(-2%, -2%) scale(1);
          opacity: 0.65;
        }
        50% {
          transform: translate(3%, 1%) scale(1.05);
          opacity: 0.85;
        }
        100% {
          transform: translate(-2%, -2%) scale(1);
          opacity: 0.65;
        }
      }
      @keyframes heroContentFloat {
        0% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-4px);
        }
        100% {
          transform: translateY(0);
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .hero-stage::before,
        .hero-stage::after,
        .hero-stage-content {
          animation: none !important;
        }
      }
