  :root {
    --bg: #0a0f14;
    --surface: #111820;
    --border: #1e2d3d;
    --accent: #4ecdc4;
    --accent2: #f7c59f;
    --text: #e8edf2;
    --muted: #5a7a94;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { background: var(--bg); color: var(--text); font-family: 'DM Mono','Courier New',monospace; min-height: 100vh; }
  body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 60% at 15% 85%,rgba(78,205,196,.08) 0%,transparent 55%),
                radial-gradient(ellipse 50% 70% at 85% 15%,rgba(247,197,159,.06) 0%,transparent 55%);
  }
  .wrap { max-width: 680px; margin: 0 auto; padding: 44px 20px 80px; position: relative; z-index: 1; }

  /* Header */
  .eyebrow { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
  h1 { font-family: 'Playfair Display',Georgia,serif; font-size: clamp(2rem,5vw,2.8rem); font-weight: 400; line-height: 1.1; margin-bottom: 10px; }
  h1 em { font-style: italic; color: var(--accent2); }
  .subtitle { font-size: 11px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }

  /* City intro (used on city landing pages) */
  .city-intro {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 18px 22px; margin-bottom: 24px;
  }
  .city-intro p { font-size: 12px; color: var(--muted); line-height: 1.9; }

  /* Search */
  .search-row { display: flex; gap: 10px; margin-bottom: 0; }
  .input-wrap { flex: 1; position: relative; }
  input[type=text] {
    width: 100%; background: var(--surface); border: 1px solid var(--border);
    border-radius: 6px; padding: 13px 18px; color: var(--text);
    font-family: inherit; font-size: 16px; outline: none; transition: border-color .2s;
  }
  input[type=text]:focus { border-color: var(--accent); }
  input[type=text]::placeholder { color: var(--muted); }

  /* Autocomplete */
  .autocomplete-list {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--accent); border-radius: 8px;
    overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.5); z-index: 100; display: none;
  }
  .autocomplete-list.show { display: block; }
  .autocomplete-item {
    padding: 11px 16px; cursor: pointer; border-bottom: 1px solid var(--border);
    transition: background .1s; display: flex; align-items: baseline; gap: 10px;
  }
  .autocomplete-item:last-child { border-bottom: none; }
  .autocomplete-item:hover, .autocomplete-item.active { background: #1a2738; }
  .autocomplete-item.active { border-left: 2px solid var(--accent); }
  .ac-name { font-size: 13px; color: var(--text); }
  .ac-name strong { color: var(--accent); font-weight: 500; }
  .ac-detail { font-size: 10px; color: var(--muted); }
  .ac-loading { padding: 12px 16px; font-size: 11px; color: var(--muted); }

  .btn {
    background: var(--accent); color: var(--bg); border: none; border-radius: 6px;
    padding: 13px 24px; font-family: inherit; font-size: 12px; font-weight: 700;
    letter-spacing: .06em; cursor: pointer; transition: background .15s, transform .1s;
    white-space: nowrap; align-self: flex-start;
  }
  .btn:hover { background: #6be0d8; }
  .btn:active { transform: scale(.98); }
  .btn:disabled { background: #1e3040; color: var(--muted); cursor: not-allowed; transform: none; }
  .btn-loc {
    background: transparent; border: 1px solid var(--border); color: var(--muted);
    padding: 13px 15px; font-size: 16px; align-self: flex-start;
  }
  .btn-loc:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
  .btn-secondary {
    background: transparent; border: 1px solid var(--accent); color: var(--accent);
    font-size: 11px; padding: 10px 16px; align-self: center;
  }
  .btn-secondary:hover { background: var(--accent); color: var(--bg); }
  .btn-secondary:disabled { border-color: var(--border); color: var(--muted); background: transparent; }

  .status { font-size: 12px; color: var(--muted); min-height: 18px; margin-top: 10px; margin-bottom: 14px; }
  .status.err { color: #ef476f; }

  /* ── Comfort summary card ── */
  .summary-card {
    border-radius: 12px; padding: 24px 26px; margin-bottom: 20px;
    border: 1px solid; position: relative; overflow: hidden;
  }
  .summary-card::before {
    content: ''; position: absolute; inset: 0; opacity: .06;
    background: currentColor;
  }
  .summary-headline {
    font-family: 'Playfair Display',Georgia,serif;
    font-size: clamp(1.3rem,3vw,1.7rem); font-weight: 700; line-height: 1.2;
    margin-bottom: 10px; position: relative;
  }
  .summary-body { font-size: 12px; color: var(--text); line-height: 1.8; opacity: .85; position: relative; }

  /* Best time outside */
  .windows-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  .window-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 16px 18px;
  }
  .window-icon { font-size: 20px; margin-bottom: 8px; }
  .window-label { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .window-time { font-family: 'Playfair Display',Georgia,serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
  .window-detail { font-size: 10px; color: var(--muted); line-height: 1.5; }

  /* Current card */
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px; margin-bottom: 20px; }
  .card-title { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
  .metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
  .metric-label { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
  .metric-val { font-family: 'Playfair Display',Georgia,serif; font-size: 2.1rem; font-weight: 700; line-height: 1; }
  .metric-unit { font-family: inherit; font-size: 12px; color: var(--muted); margin-left: 2px; }
  .badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 500; letter-spacing: .1em; }
  .badge-dot { width: 6px; height: 6px; border-radius: 50%; }

  /* Meter */
  .meter-wrap { margin-top: 18px; }
  .meter-track {
    position: relative; height: 8px; border-radius: 4px;
    background: linear-gradient(to right,#4ecdc4 0%,#7dd8a0 16.67%,#ffd166 33.33%,#f4a261 50%,#ef476f 66.67%,#c1121f 83.33%);
  }
  .meter-tick {
    position: absolute; top: -3px; width: 2px; height: 14px;
    background: var(--bg); border-radius: 1px; transform: translateX(-50%);
    pointer-events: none;
  }
  .meter-labels-above {
    position: relative; height: 16px; margin-bottom: 4px;
  }
  .meter-label-above {
    position: absolute; bottom: 0; transform: translateX(-50%);
    font-size: 8px; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap;
  }
  .meter-labels-below {
    position: relative; height: 16px; margin-top: 4px;
  }
  .meter-label-below {
    position: absolute; top: 0; transform: translateX(-50%);
    font-size: 8px; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap;
  }
  .meter-thumb { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg); transform: translate(-50%,-50%); box-shadow: 0 0 0 2px currentColor; transition: left .5s ease; }

  /* Chart */
  .chart-wrap { position: relative; }
  canvas { display: block; width: 100%; cursor: crosshair; }
  .chart-tooltip { position: absolute; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; font-size: 11px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 10; white-space: nowrap; }
  .chart-tooltip.show { opacity: 1; }

  /* Day rows */
  .day-row {
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 14px; display: grid; grid-template-columns: 90px 1fr 72px 88px;
    align-items: center; gap: 8px; margin-bottom: 8px; transition: border-color .15s, background .15s;
  }
  .day-row:hover { border-color: rgba(78,205,196,.4); background: #141e28; }
  .day-name { font-size: 12px; }
  .bar-wrap { height: 6px; background: rgba(255,255,255,.04); border-radius: 3px; overflow: hidden; }
  .bar { height: 100%; border-radius: 3px; transition: width .9s cubic-bezier(.16,1,.3,1); }
  .bar-range { position: absolute; height: 100%; border-radius: 3px; transition: width .9s cubic-bezier(.16,1,.3,1), left .9s cubic-bezier(.16,1,.3,1); }
  .bar-wrap { position: relative; }
  .day-dew { font-family: 'Playfair Display',Georgia,serif; font-size: .9rem; font-weight: 700; text-align: right; white-space: nowrap; }
  .day-comfort { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; text-align: right; opacity: .85; white-space: nowrap; }

  /* Explainer */
  .explainer {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 20px; overflow: hidden;
  }
  .explainer-toggle {
    width: 100%; background: none; border: none; color: var(--text); font-family: inherit;
    font-size: 11px; padding: 16px 20px; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    letter-spacing: .05em;
  }
  .explainer-toggle:hover { background: #141e28; }
  .explainer-toggle .arrow { color: var(--accent); transition: transform .25s; font-size: 10px; }
  .explainer-toggle.open .arrow { transform: rotate(180deg); }
  .explainer-body { display: none; padding: 0 20px 20px; }
  .explainer-body.open { display: block; }
  .explainer-body p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
  .explainer-body p:last-child { margin-bottom: 0; }
  .explainer-body strong { color: var(--text); font-weight: 500; }
  .scale-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 11px; }
  .scale-table th { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); }
  .scale-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
  .scale-table tr:last-child td { border-bottom: none; }
  .scale-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

  /* Legend */
  .legend { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 8px; }
  .legend-item { display: flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

  /* Recents & Favorites */
  .saved-section { margin-bottom: 20px; }
  .saved-label { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
  .saved-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; padding: 6px 12px; font-size: 11px; color: var(--text);
    cursor: pointer; transition: border-color .15s, background .15s; white-space: nowrap;
  }
  .chip:hover { border-color: var(--accent); background: #141e28; }
  .chip.fav { border-color: #f7c59f44; }
  .chip.fav .chip-star { color: var(--accent2); }
  .chip-star { font-size: 10px; color: var(--muted); transition: color .15s; }
  .chip-remove { font-size: 10px; color: var(--muted); margin-left: 2px; line-height: 1; }
  .chip-remove:hover { color: #ef476f; }
  .fav-btn {
    background: none; border: none; cursor: pointer; font-size: 18px; padding: 0 4px;
    color: var(--muted); transition: color .2s; line-height: 1;
  }
  .fav-btn.active { color: var(--accent2); }
  .fav-btn-wrap { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--muted); }

  /* About section */
  .about-section {
    margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border);
  }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
  .about-block h3 { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
  .about-block p { font-size: 11px; color: var(--muted); line-height: 1.8; }
  .about-block a { color: var(--accent); text-decoration: none; }
  .about-block a:hover { text-decoration: underline; }
  .nws-badge {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 10px; color: var(--muted); text-decoration: none;
  }
  .nws-badge:hover { border-color: var(--accent); color: var(--accent); }

  /* Footer */
  .footer {
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  }
  .footer-left { font-size: 10px; color: var(--muted); line-height: 1.7; }
  .footer-left strong { color: var(--text); font-weight: 500; }
  .footer-right { font-size: 10px; color: var(--muted); text-align: right; line-height: 1.7; }
  .footer-tagline { font-family: 'Playfair Display',Georgia,serif; font-style: italic; color: var(--accent2); font-size: 13px; display: block; margin-top: 2px; }

  @media (max-width: 480px) {
    .about-grid { grid-template-columns: 1fr; }
    .footer { flex-direction: column; align-items: flex-start; }
    .footer-right { text-align: left; }
    .day-row { grid-template-columns: 72px 1fr 68px 76px; gap: 6px; padding: 10px 10px; }
    .chart-header { flex-wrap: nowrap; }
    .windows-row { grid-template-columns: 1fr; }
  }

  /* Day/Night toggle + chart */
  .chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .toggle-row { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; flex-shrink: 0; }
  .toggle-btn {
    background: transparent; border: none; padding: 6px 10px; font-family: inherit;
    font-size: 10px; letter-spacing: .05em; color: var(--muted); cursor: pointer;
    transition: background .15s, color .15s; white-space: nowrap;
  }
  .toggle-btn.active { background: var(--accent); color: var(--bg); font-weight: 700; }

  /* Collapsible about blocks */
  .about-accordion { margin-top: 20px; }
  .acc-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
  .acc-header {
    width: 100%; background: none; border: none; color: var(--text); font-family: inherit;
    font-size: 11px; padding: 15px 18px; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    letter-spacing: .04em; transition: background .1s;
  }
  .acc-header:hover { background: #141e28; }
  .acc-header .acc-arrow { color: var(--accent); transition: transform .25s; font-size: 10px; }
  .acc-header.open .acc-arrow { transform: rotate(180deg); }
  .acc-body { display: none; padding: 0 18px 16px; }
  .acc-body.open { display: block; }
  .acc-body p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 10px; }
  .acc-body p:last-child { margin-bottom: 0; }
  .acc-body strong { color: var(--text); font-weight: 500; }
  .acc-body a { color: var(--accent); text-decoration: none; }
  .acc-body a:hover { text-decoration: underline; }

  /* Site nav */
  .site-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
  }
  .site-nav-brand { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
  .site-nav-links { display: flex; gap: 4px; }
  .nav-link {
    font-size: 11px; letter-spacing: .08em; text-decoration: none;
    padding: 6px 14px; border-radius: 6px; color: var(--muted);
    transition: color .15s, background .15s;
  }
  .nav-link:hover { color: var(--text); background: var(--surface); }
  .nav-link.active { color: var(--accent); background: var(--surface); }
  .hidden { display: none; }
  @keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
  .fade-up { animation: fadeUp .5s ease both; }

  @media (max-width: 480px) {
    .windows-row { grid-template-columns: 1fr; }
    .day-row { grid-template-columns: 100px 1fr 48px 72px; gap: 10px; }
    .metric-grid { grid-template-columns: repeat(3,1fr); gap: 12px; }
    .metric-val { font-size: 1.6rem; }
  }
