/* ORION WX - new page layout and look ("ui2"), WP42, 2026-11-08. Goes with wx-ui2.js.
   Every rule is scoped to html.ui2 except the layout-switch link at the end of the page, which
   shows in both layouts. Classic layout for one device: ?ui=classic (or that link). */

/* ── Layout switch link (both layouts) ─────────────────────────────────────────────────── */
.ui2-switch-row { text-align: center; padding: 4px 12px 18px; }
.ui2-switch-row a {
  color: rgba(150,190,218,0.62); font-size: 11px; text-decoration: underline;
  text-underline-offset: 2px; display: inline-block; padding: 8px 6px;
}
.ui2-switch-row a:hover, .ui2-switch-row a:focus { color: #fff; }

/* ── Look: tokens ─────────────────────────────────────────────────────────────────────── */
html.ui2 {
  --u-card: linear-gradient(180deg, rgba(17,31,64,0.84) 0%, rgba(9,18,40,0.90) 100%);
  --u-line: rgba(120,190,255,0.13);
  --u-line-2: rgba(120,190,255,0.26);
  --u-title: #93dcf7;
  --u-radius: 16px;
  --u-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --u-mono: "JetBrains Mono", "Consolas", ui-monospace, monospace;
}

/* ── 1. Start screen: none for returning visitors, ~1 s on a first visit ──────────────── */
html.ui2-skipboot #bootOverlay { display: none !important; }
html.ui2 #bootOverlay { transition: opacity 0.35s ease; }
#ui2BootLines {
  font-family: "JetBrains Mono", "Consolas", ui-monospace, monospace;
  font-size: 14px; line-height: 2; color: var(--cyan);
  text-shadow: 0 0 10px rgba(58,197,232,0.75); min-width: min(360px, 90vw);
}

/* ── 2. Layout: two columns on desktop ─────────────────────────────────────────────────── */
html.ui2 .wx-main-grid.ui2-grid {
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr);
  column-gap: 14px; row-gap: 12px; padding: 14px 16px 6px; align-items: start;
}
html.ui2 .ui2-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html.ui2 .ui2-col > * { margin: 0; }
html.ui2 #wxSevereModeBanner { grid-column: 1 / -1; order: -1; margin-bottom: 0; border-radius: 12px; }
html.ui2 #wxTrafficMini, html.ui2 #wxBriefing, html.ui2 #wxDataHealth { display: none !important; }
html.ui2 .ui2-calm-hide, html.ui2 .ui2-hidden { display: none !important; }
/* Cards take the room they need (no boxes that scroll inside the page). */
html.ui2 .wx-forecast-card, html.ui2 .wx-commute-card, html.ui2 .wx-storm-timing { max-height: none; overflow: visible; align-self: auto; }
html.ui2 .wx-forecast-body { max-height: none; overflow: visible; }
html.ui2 .ui2-flash { animation: ui2flash 1.4s ease; }
@keyframes ui2flash {
  0%, 30% { box-shadow: 0 0 0 2px rgba(58,197,232,0.85), 0 12px 32px rgba(0,0,0,0.34); }
  100% { box-shadow: 0 0 0 0 rgba(58,197,232,0), 0 12px 32px rgba(0,0,0,0.34); }
}

/* ── Look: cards, titles, badges ──────────────────────────────────────────────────────── */
html.ui2 .wx-card-base {
  border-radius: var(--u-radius); border: 1px solid var(--u-line); background: var(--u-card);
  box-shadow: 0 12px 32px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 15px 17px; font-size: 12.5px;
}
html.ui2 .wx-card-title, html.ui2 .cph-title {
  font-family: var(--u-sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--u-title); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
html.ui2 .cph-title { margin-bottom: 0; display: inline-flex; }
html.ui2 .wx-card-title::before, html.ui2 .cph-title::before {
  content: ""; flex: 0 0 auto; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, #62e2ff, #2d7dd2); box-shadow: 0 0 8px rgba(58,197,232,0.55);
}
html.ui2 .wx-card-badge {
  font-family: var(--u-sans); font-size: 9px; font-weight: 700; letter-spacing: 0.07em;
  border-radius: 999px; padding: 2px 8px;
}
html.ui2 .wx-card-meta {
  font-size: 10px; color: rgba(150,190,218,0.58); word-break: normal; overflow-wrap: break-word;
  margin-top: 12px;
}
html.ui2 .wx-unavailable { font-size: 12.5px; color: rgba(160,195,225,0.6); }

/* ── Look: Current Conditions ─────────────────────────────────────────────────────────── */
html.ui2 #wxCurrent.wx-hero {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(46,110,210,0.28) 0%, transparent 55%),
    linear-gradient(160deg, rgba(16,36,84,0.93) 0%, rgba(10,22,56,0.95) 55%, rgba(26,14,60,0.90) 100%);
  border-color: rgba(120,200,255,0.20);
}
html.ui2 #wxCurrent > .wx-card-title + div:not([class]) { font-size: 12px !important; color: rgba(150,215,245,0.75) !important; }
html.ui2 .wx-temp { font-size: 66px; letter-spacing: -0.02em; margin: 8px 0 4px; text-shadow: 0 0 34px rgba(58,197,232,0.38), 0 2px 8px rgba(0,0,0,0.5); }
html.ui2 .wx-condition { font-size: 19px; font-weight: 500; color: #e6f4ff; margin: 2px 0 10px; }
html.ui2 .wx-hero-summary-row { display: none; }   /* traffic and commute have their own card */
html.ui2 .ui2-summary { color: rgba(214,234,248,0.92); font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; }
html.ui2 .ui2-summary b { color: rgba(140,220,255,0.96); font-weight: 600; }
html.ui2 .ui2-summary .ui2-watch { display: block; color: var(--amber); margin-top: 3px; }
/* Details as small tiles: label on top, value below. */
html.ui2 .wx-detail-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
html.ui2 .wx-detail-row {
  flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px;
  padding: 9px 11px; border: 1px solid rgba(120,190,255,0.10); border-radius: 11px;
  background: rgba(255,255,255,0.035);
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(170,205,235,0.72);
}
html.ui2 .wx-detail-value { font-size: 17px; font-weight: 700; color: #fff; text-transform: none; letter-spacing: 0; text-align: left; }
html.ui2 .wx-supplemental-tag { font-size: 8.5px; }
/* Wide screens: temperature on the left, the tiles on the right, so the radar under this card,
   buttons included, fits on the first screen. */
@media (min-width: 1100px) {
  html.ui2 #wxCurrent { display: grid; grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.45fr); column-gap: 24px; align-items: start; }
  html.ui2 #wxCurrent > * { grid-column: 1; }
  html.ui2 #wxCurrent > .wx-card-title, html.ui2 #wxCurrent > .wx-card-meta,
  html.ui2 #wxCurrent > .wx-unavailable { grid-column: 1 / -1; }
  html.ui2 #wxCurrent > .wx-detail-grid { grid-column: 2; grid-row: 2 / 6; align-self: center; margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); }
  html.ui2 #wxCurrent > .ui2-summary { margin-bottom: 4px; }
  html.ui2 #wxCurrent > .wx-card-meta { margin-top: 10px; }
}

/* ── 5. ALERTS & OUTLOOK card ──────────────────────────────────────────────────────────── */
html.ui2 .ui2-status-card .wx-card-title { margin-bottom: 4px; }
html.ui2 .ui2-status-lines { display: flex; flex-direction: column; }
html.ui2 .ui2-line {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-size: 13.5px; line-height: 1.4; color: rgba(214,234,248,0.92);
  border-bottom: 1px solid rgba(120,190,255,0.08);
}
html.ui2 .ui2-line:last-child { border-bottom: 0; }
html.ui2 .ui2-line-text { flex: 1 1 auto; min-width: 0; }
html.ui2 .ui2-dot {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 12px/1 -apple-system, "Segoe UI", system-ui, sans-serif;
  background: rgba(140,180,210,0.14); color: rgba(180,215,245,0.75);
}
html.ui2 .ui2-dot::before { content: "\2026"; }
html.ui2 .ui2-line[data-level="ok"] .ui2-dot { background: rgba(64,201,119,0.17); color: #8fffc1; box-shadow: 0 0 10px rgba(64,201,119,0.18); }
html.ui2 .ui2-line[data-level="ok"] .ui2-dot::before { content: "\2713"; }
html.ui2 .ui2-line[data-level="info"] .ui2-dot { background: rgba(58,197,232,0.18); color: #8ddcff; }
html.ui2 .ui2-line[data-level="info"] .ui2-dot::before { content: "i"; }
html.ui2 .ui2-line[data-level="adv"] .ui2-dot { background: rgba(241,210,85,0.18); color: #f1d255; }
html.ui2 .ui2-line[data-level="watch"] .ui2-dot { background: rgba(240,168,50,0.20); color: var(--amber); }
html.ui2 .ui2-line[data-level="warn"] .ui2-dot { background: rgba(240,90,78,0.26); color: #ff8a80; box-shadow: 0 0 12px rgba(240,90,78,0.35); }
html.ui2 .ui2-line[data-level="adv"] .ui2-dot::before,
html.ui2 .ui2-line[data-level="watch"] .ui2-dot::before,
html.ui2 .ui2-line[data-level="warn"] .ui2-dot::before { content: "!"; }
html.ui2 .ui2-line[data-level="na"] .ui2-dot::before { content: "\2013"; }
html.ui2 .ui2-line[data-level="na"] .ui2-line-text { color: rgba(180,215,245,0.62); }
html.ui2 .ui2-line[data-level="warn"] .ui2-line-text { color: #ffd6d2; font-weight: 600; }
html.ui2 .ui2-line[data-level="watch"] .ui2-line-text { color: #ffe2b8; }
html.ui2 .ui2-more {
  flex: 0 0 auto; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; cursor: pointer;
  color: #cfeeff; background: rgba(58,197,232,0.12); border: 1px solid rgba(58,197,232,0.34);
  border-radius: 14px; padding: 6px 11px;
}
html.ui2 .ui2-more:hover { background: rgba(58,197,232,0.24); color: #fff; }
html.ui2 .ui2-status-meta { margin-top: 6px; }

/* ── Look: alerts, storm timing, SPC (shown when they matter) ──────────────────────────── */
html.ui2 .wx-alert-item {
  margin: 8px 0; padding: 10px 12px; border-radius: 10px; font-size: 12.5px;
  background: rgba(240,90,78,0.08); border: 1px solid rgba(240,100,80,0.22); border-left: 3px solid rgba(255,110,90,0.85);
}
html.ui2 .wx-alert-item:last-child { border-bottom: 1px solid rgba(240,100,80,0.22); }
html.ui2 .wx-alert-nearby { background: rgba(240,168,50,0.07); border-color: rgba(240,168,50,0.24); border-left-color: rgba(240,168,50,0.9); }
html.ui2 .wx-alert-type { font-size: 12px; }
html.ui2 .wx-alert-scope { font-size: 9.5px; }
html.ui2 .wx-alert-facts { font-size: 11px; }
html.ui2 .wx-alert-note { font-style: normal; font-size: 10.5px; color: rgba(240,168,50,0.72); }
html.ui2 .wx-timing-summary { font-size: 12.5px; font-style: normal; }
html.ui2 .wx-timing { font-size: 12.5px; }
html.ui2 .wx-spc-day-block { padding: 10px 12px; margin: 6px 0; border: 1px solid rgba(120,190,255,0.09); border-radius: 10px; background: rgba(255,255,255,0.025); }
html.ui2 .wx-spc-day-block:last-of-type { border-bottom: 1px solid rgba(120,190,255,0.09); }
html.ui2 .wx-spc-badge { border-radius: 999px; }
html.ui2 .wx-spc-day-label { font-size: 11px; color: rgba(180,215,245,0.72); }
html.ui2 .wx-spc-severe, html.ui2 .wx-spc-meaning { font-size: 12px; }
html.ui2 .wx-spc-hazards, html.ui2 .wx-spc-attribution, html.ui2 .wx-spc-risks { font-size: 10.5px; }
html.ui2 .wx-spc-explain summary { font-size: 10.5px; }

/* ── 8. Forecast: next 24 hours + 7 days ───────────────────────────────────────────────── */
html.ui2 .ui2-sub {
  font-family: var(--u-sans); font-size: 10.5px; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.12em; color: rgba(147,220,247,0.72); margin: 4px 0 8px;
}
html.ui2 .ui2-hourly {
  display: flex; gap: 3px; overflow-x: auto; padding: 0 0 10px; margin-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(120,190,255,0.28) transparent;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
}
html.ui2 .ui2-hourly::after { content: ""; flex: 0 0 22px; }
html.ui2 .ui2-hourly::-webkit-scrollbar { height: 5px; }
html.ui2 .ui2-hourly::-webkit-scrollbar-thumb { background: rgba(120,190,255,0.28); border-radius: 3px; }
html.ui2 .ui2-h {
  flex: 0 0 auto; width: 56px; text-align: center; padding: 7px 2px 5px; border-radius: 12px;
  border: 1px solid transparent;
}
html.ui2 .ui2-h-now { background: rgba(58,197,232,0.10); border-color: rgba(120,200,255,0.24); }
html.ui2 .ui2-h-t { font-size: 11px; color: rgba(180,215,245,0.74); white-space: nowrap; }
html.ui2 .ui2-h-now .ui2-h-t { color: #fff; font-weight: 700; }
html.ui2 .ui2-h-i .ui2-ic { width: 26px; height: 26px; margin: 4px auto 2px; display: block; }
html.ui2 .ui2-h-temp { font-size: 15px; font-weight: 700; color: #fff; }
html.ui2 .ui2-h-pop { font-size: 10.5px; color: #7fd6f5; min-height: 15px; }
html.ui2 .ui2-h-sep {
  flex: 0 0 auto; width: 16px; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(120,190,255,0.24); margin: 8px 2px;
}
html.ui2 .ui2-h-sep span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--u-sans); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: rgba(147,220,247,0.7);
}
html.ui2 .ui2-week { display: flex; flex-direction: column; }
html.ui2 .ui2-day {
  display: grid; align-items: center; gap: 10px; padding: 8px 2px; font-size: 13.5px;
  grid-template-columns: 64px 28px minmax(0, 1fr) 40px 34px minmax(70px, 150px) 34px;
  border-bottom: 1px solid rgba(120,190,255,0.08);
}
html.ui2 .ui2-day:last-child { border-bottom: 0; }
html.ui2 .ui2-day-name { color: #9fe0ff; font-weight: 600; white-space: nowrap; }
html.ui2 .ui2-day-sub { display: none; }
html.ui2 .ui2-day-i .ui2-ic { width: 26px; height: 26px; display: block; }
html.ui2 .ui2-day-cond { color: rgba(214,234,248,0.82); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ui2 .ui2-day-pop { color: #7fd6f5; font-size: 11.5px; text-align: right; }
html.ui2 .ui2-day-lo { color: rgba(180,215,245,0.72); text-align: right; }
html.ui2 .ui2-day-hi { color: #fff; font-weight: 700; }
html.ui2 .ui2-day-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(58,197,232,0.10); }
html.ui2 .ui2-day-bar i {
  position: absolute; top: 0; bottom: 0; border-radius: 3px;
  background: linear-gradient(90deg, #3ac5e8, #f2b33d);
}
@media (max-width: 500px) {
  html.ui2 .ui2-day { grid-template-columns: 86px 26px 30px 30px minmax(36px, 1fr) 30px; gap: 6px; }
  html.ui2 .ui2-day-cond { display: none; }
  html.ui2 .ui2-day-sub {
    display: block; font-size: 10.5px; font-weight: 400; color: rgba(180,215,245,0.62);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html.ui2 .ui2-h { width: 52px; }
}

/* ── Look: forecast list (the page's own rows) ────────────────────────────────────────── */
html.ui2 .wx-forecast-row { padding: 10px 2px; font-size: 13.5px; border-bottom-color: rgba(120,190,255,0.08); }
html.ui2 .wx-forecast-label { color: #9fe0ff; font-weight: 600; min-width: 120px; }
html.ui2 .wx-forecast-cond { color: rgba(214,234,248,0.85); font-size: 13px; }
html.ui2 .wx-forecast-pop { color: #7fd6f5; font-size: 11.5px; }
html.ui2 .wx-forecast-temps { font-size: 14px; }

/* ── Look: traffic & commute ──────────────────────────────────────────────────────────── */
html.ui2 .impact-badge { border-radius: 999px; padding: 6px 14px; font-size: 12px; letter-spacing: 0.06em; }
html.ui2 .wx-traffic-section { border-top-color: rgba(120,190,255,0.09); padding-top: 12px; margin-top: 12px; }
html.ui2 .wx-traffic-header { font-size: 10.5px; color: rgba(147,220,247,0.8); font-family: var(--u-sans); letter-spacing: 0.1em; }
html.ui2 .wx-traffic-status-ok, html.ui2 .wx-traffic-status-warn { font-size: 12.5px; }
html.ui2 .wx-traffic-meta { font-size: 10.5px; color: rgba(180,215,245,0.64); }
html.ui2 .wx-traffic-flow-row { font-size: 12.5px; padding: 6px 0; border-bottom-color: rgba(120,190,255,0.07); }
html.ui2 .wx-traffic-flow-speed { font-size: 12.5px; }

/* ── 3. Ask ORION: beside the radar on desktop; bubbles; question chips ────────────────── */
html.ui2 .chat-panel {
  border-radius: var(--u-radius); border: 1px solid var(--u-line); overflow: hidden;
  background: linear-gradient(180deg, rgba(14,26,56,0.92) 0%, rgba(7,14,32,0.96) 100%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
}
html.ui2 .ui2-col-side .chat-panel { grid-column: auto; grid-row: auto; min-height: 0; height: clamp(400px, 56vh, 580px); }
html.ui2 .ui2-col-side .chat-panel #chat { flex: 1 1 auto; min-height: 0; max-height: none; }
html.ui2 body.chat-expanded .ui2-col-side .chat-panel { height: auto; min-height: 78vh; }
html.ui2 body.chat-expanded .ui2-col-side .chat-panel #chat { min-height: 60vh; max-height: 80vh; }
html.ui2 .chat-panel-hdr { padding: 11px 14px; border-bottom-color: rgba(120,190,255,0.08); }
html.ui2 .cp-btn {
  border-radius: 999px; padding: 5px 11px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: rgba(200,230,250,0.82); border-color: rgba(120,190,255,0.22);
}
html.ui2 #chat { padding: 10px 14px; }
html.ui2 .msg { border-bottom: 0; font-size: 13.5px; line-height: 1.6; }
html.ui2 .msg.bot {
  margin: 6px 0; padding: 10px 13px; border-radius: 4px 14px 14px 14px;
  background: rgba(58,197,232,0.06); border: 1px solid rgba(120,190,255,0.10);
}
html.ui2 .msg.bot::before { font-size: 10.5px; letter-spacing: 0.06em; }
html.ui2 .msg.user {
  width: fit-content; max-width: 86%; margin: 12px 0 6px auto; padding: 9px 13px;
  border-radius: 14px 4px 14px 14px; color: #fff;
  background: linear-gradient(135deg, rgba(45,125,210,0.62), rgba(28,82,168,0.62));
  border: 1px solid rgba(120,200,255,0.26);
}
html.ui2 .msg.user::before { content: none; }
html.ui2 .msg.error { background: rgba(240,90,78,0.10); border-color: rgba(240,90,78,0.32); }
html.ui2 .chat-input-row { gap: 8px; padding: 10px 12px; background: rgba(4,10,24,0.55); border-top-color: rgba(120,190,255,0.08); }
html.ui2 .chat-prompt { display: none; }
html.ui2 .chat-input-row textarea {
  height: 40px; min-height: 40px; padding: 9px 14px; line-height: 20px; font-size: 14px;
  border: 1px solid rgba(120,190,255,0.24); border-radius: 20px; background: rgba(255,255,255,0.045);
}
html.ui2 .chat-input-row textarea:focus { border-color: rgba(120,210,255,0.6); background: rgba(255,255,255,0.065); }
html.ui2 #sendBtn { margin-left: 0; border-radius: 20px; padding: 10px 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
html.ui2 .wx-quota-bar { font-size: 10.5px; color: rgba(58,197,232,0.58); }
html.ui2 .ui2-chips {
  display: flex; flex-wrap: wrap; gap: 7px; padding: 9px 14px 7px; flex-shrink: 0;
  border-top: 1px solid rgba(120,190,255,0.07);
}
html.ui2 .ui2-chip {
  font: inherit; font-size: 12.5px; line-height: 1.2; color: #d9efff; cursor: pointer;
  background: rgba(58,197,232,0.10); border: 1px solid rgba(58,197,232,0.32);
  border-radius: 16px; padding: 7px 12px; transition: background 0.15s, color 0.15s;
}
html.ui2 .ui2-chip:hover, html.ui2 .ui2-chip:focus-visible { background: rgba(58,197,232,0.22); color: #fff; }
html.ui2 body.thinking .ui2-chip { opacity: 0.45; pointer-events: none; }
html.ui2 .chat-panel:not(.ui2-fresh) .ui2-chips { display: none; }

/* ── 9. Radar card and its buttons (a player group + a feature group) ──────────────────── */
html.ui2 #wxRadarMap { height: clamp(300px, 42vh, 470px); border-radius: 12px; border: 1px solid rgba(120,190,255,0.14); }
html.ui2 .wx-radar-progress { margin-top: 5px; height: 3px; border-radius: 2px; }
html.ui2 .wx-radar-ts { font-size: 11px; color: rgba(140,220,255,0.85); font-family: var(--u-sans); letter-spacing: 0.04em; }
html.ui2 .wx-radar-attribution { font-size: 10px; color: rgba(150,190,218,0.66); }
html.ui2 .wx-radar-controls.ui2-rbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0 4px; }
html.ui2 .ui2-rbar-play, html.ui2 .ui2-rbar-feat { display: flex; align-items: center; gap: 5px; }
html.ui2 .ui2-rbar-feat { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
html.ui2 .ui2-rbar .wx-radar-btn {
  flex: 0 0 auto; min-height: 36px; padding: 7px 10px; border-radius: 10px; white-space: nowrap;
  font-family: var(--u-sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em;
  color: #cdeeff; background: rgba(58,197,232,0.08); border: 1px solid rgba(120,190,255,0.24);
}
html.ui2 .ui2-rbar .wx-radar-btn:hover { background: rgba(58,197,232,0.20); border-color: rgba(120,210,255,0.5); color: #fff; }
html.ui2 .ui2-rbar-play .wx-radar-btn { min-width: 44px; }
html.ui2 #wxRadarPlay {
  min-width: 88px; color: #fff; border-color: rgba(120,210,255,0.5);
  background: linear-gradient(135deg, rgba(45,125,210,0.85), rgba(28,82,168,0.85));
}

/* ── Look: live map ───────────────────────────────────────────────────────────────────── */
html.ui2 #wxLiveMapEl { border-radius: 12px; border: 1px solid rgba(120,190,255,0.14); }
html.ui2 .wx-livemap-btn, html.ui2 .wx-livemap-cam {
  font-family: var(--u-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 10px; padding: 8px 12px;
}
html.ui2 .wx-livemap-src { font-size: 10px; color: rgba(180,215,245,0.62); }

/* ── 6. Sidebar ───────────────────────────────────────────────────────────────────────── */
html.ui2 .sidebar { background: linear-gradient(180deg, rgba(10,22,50,0.98) 0%, rgba(6,13,32,0.99) 100%); border-right-color: rgba(120,190,255,0.10); }
html.ui2 .sidebar-footer { display: none; }
html.ui2 .brand-logo { font-size: 18px; letter-spacing: 0.08em; }
html.ui2 .brand-sub { font-family: var(--u-sans); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; color: rgba(147,220,247,0.62); }
html.ui2 .loc-label { font-family: var(--u-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; }
html.ui2 #wxLocation {
  border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600;
  background: rgba(24,46,100,0.55); border-color: rgba(120,190,255,0.26);
}
html.ui2 .nav-btn { font-size: 13px; padding: 10px 12px; border-radius: 10px; color: rgba(200,225,245,0.80); }
html.ui2 .nav-btn:hover { background: rgba(58,197,232,0.12); color: #fff; }
html.ui2 .nav-icon { color: #62d6f5; opacity: 0.9; }

/* ── Look: top bar ────────────────────────────────────────────────────────────────────── */
html.ui2 .top-bar { background: linear-gradient(180deg, rgba(8,16,36,0.97), rgba(6,12,28,0.94)); border-bottom-color: rgba(120,190,255,0.10); }
html.ui2 .top-clock { font-family: var(--u-sans); font-size: 12px; color: rgba(190,225,250,0.78); letter-spacing: 0.02em; }
html.ui2 .top-refresh-btn { border-radius: 10px; border-color: rgba(120,190,255,0.30); color: #9fe0ff; padding: 4px 9px; }
html.ui2 #status {
  font-family: var(--u-sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 999px; padding: 4px 11px 4px 9px; display: inline-flex; align-items: center; gap: 6px;
}
html.ui2 #status.ui2-status-ok { border-color: rgba(64,201,119,0.36); background: rgba(64,201,119,0.08); }
html.ui2 #status.ui2-status-ok::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #40c977;
  box-shadow: 0 0 8px #40c977; animation: ui2pulse 2.4s ease-in-out infinite;
}
@keyframes ui2pulse { 50% { opacity: 0.35; } }

/* ── 5. Bulletin bar: one slim line while there are no alerts ──────────────────────────── */
html.ui2 .wx-bulletin-kicker, html.ui2 .wx-bulletin-updated { font-size: 9.5px; }
html.ui2 #wxBulletinToggleBtn { border-radius: 999px; font-family: var(--u-sans); font-weight: 700; font-size: 9.5px; padding: 4px 10px; }
html.ui2 #wxBulletinBar.wx-ticker-wrap { padding-right: 76px; }   /* the HIDE button no longer covers the time */
html.ui2.ui2-calm { --bulletin-h: 38px; }
html.ui2 .wx-ticker-wrap.bulletin-calm {
  display: flex; align-items: center; gap: 14px; min-height: var(--bulletin-h);
  padding: 6px 72px 6px 16px;
}
html.ui2 .wx-ticker-wrap.bulletin-calm .wx-bulletin-identity { display: none; }
html.ui2 .wx-ticker-wrap.bulletin-calm .wx-ticker { flex: 1 1 auto; min-width: 0; display: flex; }
html.ui2 .wx-ticker-wrap.bulletin-calm .wx-bulletin-provider,
html.ui2 .wx-ticker-wrap.bulletin-calm .wx-bulletin-message { display: none; }
html.ui2 .wx-ticker-wrap.bulletin-calm .wx-ticker::before {
  content: attr(data-calm); min-width: 0; color: rgba(190,242,212,0.94);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.ui2 .wx-ticker-wrap.bulletin-calm .wx-bulletin-updated { flex: 0 0 auto; }

/* ── Look: scrollbars ─────────────────────────────────────────────────────────────────── */
html.ui2 .wx-scroll, html.ui2 #chat { scrollbar-width: thin; scrollbar-color: rgba(120,190,255,0.28) transparent; }
html.ui2 .wx-scroll::-webkit-scrollbar, html.ui2 #chat::-webkit-scrollbar { width: 8px; }
html.ui2 .wx-scroll::-webkit-scrollbar-thumb, html.ui2 #chat::-webkit-scrollbar-thumb { background: rgba(120,190,255,0.24); border-radius: 4px; }

/* ── Phones and narrow windows: one column ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  html.ui2 .wx-main-grid.ui2-grid { grid-template-columns: minmax(0, 1fr); padding: 10px 10px 6px; row-gap: 10px; }
  html.ui2 .ui2-col { display: contents; }
  /* Order: conditions, alerts (when there are any), radar, chat, forecast, ...; on an all-clear
     day the ALERTS & OUTLOOK card moves below the chat so the radar comes first. */
  html.ui2 #wxSevereModeBanner { order: 0; }
  html.ui2 #wxCurrent { order: 1; }
  html.ui2 #ui2Status { order: 2; }
  html.ui2 #wxAlerts { order: 3; }
  html.ui2 #wxRadar { order: 4; }
  html.ui2 .ui2-grid .chat-panel { order: 5; }
  html.ui2 #ui2Status.ui2-all-clear { order: 6; }
  html.ui2 #wxForecast { order: 7; }
  html.ui2 #wxStormTiming { order: 8; }
  html.ui2 #wxSpcCard { order: 9; }
  html.ui2 #wxCommuteImpact { order: 10; }
  html.ui2 #wxLiveMap { order: 11; }
  html.ui2 .wx-card-base { padding: 14px 15px; }
  html.ui2 #wxRadarMap { height: 300px; }
  html.ui2 .wx-temp { font-size: 54px; }
  html.ui2 .wx-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Ask ORION: short until the first question, then as tall as before. */
  html.ui2 .ui2-col-side .chat-panel { height: auto; min-height: 0; }
  html.ui2 .ui2-col-side .chat-panel.ui2-fresh #chat { flex: 0 0 auto; min-height: 0; max-height: none; }
  html.ui2 .ui2-col-side .chat-panel:not(.ui2-fresh) { min-height: 420px; }
  html.ui2 .ui2-col-side .chat-panel:not(.ui2-fresh) #chat { min-height: 300px; max-height: 55vh; }
  html.ui2 body.chat-expanded .ui2-col-side .chat-panel { min-height: 70vh; }
  html.ui2 .chat-input-row textarea { font-size: 16px; }   /* no zoom-in on iPhone */
  html.ui2 .chat-panel-hdr { flex-wrap: wrap; row-gap: 8px; }
  html.ui2 .cph-title { white-space: nowrap; }
  html.ui2 .cph-btns { flex-wrap: nowrap; }
  html.ui2 .cp-btn { white-space: nowrap; padding: 5px 10px; font-size: 10px; }

  /* One header row: ORION WX, location, refresh. */
  html.ui2 .sidebar { display: none; }
  html.ui2 .top-bar { gap: 10px; min-height: 54px; padding-top: calc(7px + env(safe-area-inset-top)); }
  html.ui2 .top-brand-mob { font-size: 15px; letter-spacing: 0.06em; text-shadow: 0 0 18px rgba(58,197,232,0.55); }
  html.ui2 .top-right { margin-left: 0; gap: 8px; }
  html.ui2 .ui2-loc-slot { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
  html.ui2 .ui2-loc-slot #wxLocation { width: 100%; max-width: 240px; min-width: 0; padding: 9px 11px; font-size: 14px; }
  html.ui2 #topClock { display: none; }
  html.ui2 #status.ui2-status-ok { display: none; }
  html.ui2 .top-refresh-btn { min-width: 42px; min-height: 40px; font-size: 18px; }

  /* Radar buttons: the player row, then a row of features that slides sideways if needed. */
  html.ui2 .wx-radar-controls.ui2-rbar { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  html.ui2 .ui2-rbar-play .wx-radar-btn { flex: 1 1 0; min-height: 44px; font-size: 12.5px; }
  html.ui2 .ui2-rbar-feat {
    margin-left: 0; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px;
  }
  html.ui2 .ui2-rbar-feat::-webkit-scrollbar { display: none; }
  html.ui2 .ui2-rbar-feat .wx-radar-btn { min-height: 40px; }
  html.ui2 .wx-forecast-label { min-width: 0; }
}
@media (min-width: 721px) {
  html.ui2 .ui2-loc-slot { display: none; }
}
@media (max-width: 500px) {
  html.ui2 .wx-card-meta { font-size: 9.5px; }
  html.ui2.ui2-calm { --bulletin-h: 40px; }
  html.ui2 .wx-ticker-wrap.bulletin-calm { padding: 6px 64px calc(6px + env(safe-area-inset-bottom)) 12px; }
  html.ui2 .wx-ticker-wrap.bulletin-calm .wx-bulletin-updated { display: none; }
  html.ui2 .wx-ticker-wrap.bulletin-calm .wx-ticker::before { font-size: 12px; }
  html.ui2 .ui2-chip { font-size: 12.5px; padding: 8px 12px; }
  html.ui2 .wx-detail-row { padding: 8px 10px; }
  html.ui2 .wx-detail-value { font-size: 16px; }
}

/* ── Map buttons (zoom +/-, full screen) in the new look: dark glass instead of Leaflet's white ── */
html.ui2 .leaflet-bar,
html.ui2 .leaflet-touch .leaflet-bar {
  border: 1px solid rgba(120,190,255,0.32); border-radius: 12px; overflow: hidden;
  background: rgba(9,18,42,0.80); background-clip: padding-box;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html.ui2 .leaflet-bar a,
html.ui2 .leaflet-touch .leaflet-bar a {
  width: 36px; height: 36px; line-height: 36px; border-radius: 0;
  background: transparent; color: #d6f1ff; border-bottom: 1px solid rgba(120,190,255,0.18);
  font-family: var(--u-sans); font-size: 20px; font-weight: 600; text-indent: 0;
  transition: background 0.15s, color 0.15s;
}
html.ui2 .leaflet-bar a:last-child { border-bottom: 0; }
html.ui2 .leaflet-bar a:hover, html.ui2 .leaflet-bar a:focus { background: rgba(58,197,232,0.22); color: #fff; }
html.ui2 .leaflet-bar a.leaflet-disabled, html.ui2 .leaflet-bar a.leaflet-disabled:hover { background: transparent; color: rgba(214,241,255,0.32); }
html.ui2 .leaflet-bar a.wx-map-expand { font-size: 17px; }
html.ui2 .leaflet-control-attribution { background: rgba(8,16,36,0.72) !important; color: rgba(190,215,240,0.72); border-radius: 8px 0 0 0; }
html.ui2 .leaflet-control-attribution a { color: #8fd8f5; }
@media (max-width: 720px) {
  /* the feature row slides sideways: fade its right edge so that shows */
  html.ui2 .ui2-rbar-feat {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  }
  html.ui2 .ui2-rbar-feat::after { content: ""; flex: 0 0 22px; }
}

/* ══ NEXT LOOK - preview only: open the page with ?look=next on a device (sticky); ?look=current
      leaves it. Everything below is scoped to html.ui2.look-next, so nobody else sees it. ══════ */

/* Background: a soft aurora behind the cards */
html.ui2.look-next body::before {
  background:
    radial-gradient(60% 42% at 12% 0%, rgba(40,120,230,0.30) 0%, transparent 70%),
    radial-gradient(50% 38% at 88% 6%, rgba(130,80,230,0.24) 0%, transparent 70%),
    radial-gradient(70% 45% at 50% 100%, rgba(10,70,130,0.34) 0%, transparent 70%);
}

/* Cards: glass with a soft gradient edge */
html.ui2.look-next .wx-card-base,
html.ui2.look-next .chat-panel {
  border: 1px solid transparent; border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(20,36,74,0.72) 0%, rgba(10,19,42,0.84) 100%) padding-box,
    linear-gradient(145deg, rgba(140,215,255,0.46) 0%, rgba(140,215,255,0.07) 34%, rgba(150,120,255,0.10) 70%, rgba(140,215,255,0.30) 100%) border-box;
  box-shadow: 0 18px 40px rgba(0,0,0,0.38);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
html.ui2.look-next .wx-main-grid.ui2-grid { column-gap: 16px; row-gap: 14px; }
html.ui2.look-next .ui2-col { gap: 14px; }

/* Card titles: an icon tile instead of the bar */
html.ui2.look-next .wx-card-title::before,
html.ui2.look-next .cph-title::before {
  width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(120,200,255,0.24);
  background: rgba(58,197,232,0.14) var(--ic, none) center / 15px 15px no-repeat;
}
html.ui2.look-next .wx-card-title, html.ui2.look-next .cph-title { font-size: 12px; letter-spacing: 0.13em; color: #a9e6ff; gap: 10px; }
html.ui2.look-next .wx-card-meta { font-family: var(--u-sans); font-size: 10.5px; letter-spacing: 0.01em; }

/* Current Conditions: sky by weather, a big icon, a light modern number */
html.ui2.look-next #wxCurrent.wx-hero {
  --sky: radial-gradient(90% 130% at 100% 0%, rgba(255,190,90,0.20) 0%, transparent 55%),
         linear-gradient(160deg, #143470 0%, #0c1e4a 55%, #191452 100%);
  background: var(--sky); border: 1px solid rgba(150,215,255,0.30);
}
html.ui2.look-next #wxCurrent[data-sky="clear-night"], html.ui2.look-next #wxCurrent[data-sky="partly-night"] {
  --sky: radial-gradient(90% 130% at 100% 0%, rgba(150,170,255,0.20) 0%, transparent 55%), linear-gradient(160deg, #0d1844 0%, #0a1132 60%, #170e3c 100%);
}
html.ui2.look-next #wxCurrent[data-sky="cloud"], html.ui2.look-next #wxCurrent[data-sky="fog"] {
  --sky: radial-gradient(90% 130% at 100% 0%, rgba(170,190,215,0.18) 0%, transparent 55%), linear-gradient(160deg, #1c2a48 0%, #121c36 60%, #1a1c38 100%);
}
html.ui2.look-next #wxCurrent[data-sky="rain"] {
  --sky: radial-gradient(90% 130% at 100% 0%, rgba(58,197,232,0.22) 0%, transparent 55%), linear-gradient(160deg, #0f2a4a 0%, #0b1c36 60%, #10203c 100%);
}
html.ui2.look-next #wxCurrent[data-sky="storm"] {
  --sky: radial-gradient(90% 130% at 100% 0%, rgba(255,90,110,0.20) 0%, transparent 55%), linear-gradient(160deg, #24143f 0%, #150d2c 60%, #200c26 100%);
}
html.ui2.look-next #wxCurrent[data-sky="snow"] {
  --sky: radial-gradient(90% 130% at 100% 0%, rgba(230,245,255,0.22) 0%, transparent 55%), linear-gradient(160deg, #1d3560 0%, #142648 60%, #1c2552 100%);
}
html.ui2.look-next .ui2-temp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html.ui2.look-next .wx-temp {
  font-size: 80px; font-weight: 300; letter-spacing: -0.045em; line-height: 0.95; margin: 10px 0 4px;
  color: transparent; text-shadow: none;
  background: linear-gradient(180deg, #ffffff 35%, #a9e6ff 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 24px rgba(58,197,232,0.30));
}
html.ui2.look-next .ui2-hero-icon .ui2-ic {
  display: block; width: 78px; height: 78px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.40)) drop-shadow(0 0 18px rgba(255,200,90,0.18));
  animation: ui2float 6s ease-in-out infinite;
}
@keyframes ui2float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
html.ui2.look-next .wx-condition { font-size: 20px; font-weight: 500; }
html.ui2.look-next .wx-detail-row { background: rgba(255,255,255,0.05); border-color: rgba(150,215,255,0.13); border-radius: 12px; }

/* Radar: dark base map (only the OpenStreetMap tiles; radar and traffic colors untouched),
   a LIVE badge, a joined player bar, pill feature buttons */
html.ui2.look-next img.leaflet-tile[src*="tile.openstreetmap.org"] {
  filter: invert(1) hue-rotate(185deg) brightness(0.95) contrast(0.86) saturate(0.55);
}
html.ui2.look-next #wxRadarMap, html.ui2.look-next #wxLiveMapEl {
  border-color: rgba(150,215,255,0.22); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3), 0 10px 26px rgba(0,0,0,0.35);
}
html.ui2.look-next .ui2-live-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 10px;
  border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  color: #ffb4bd; background: rgba(255,60,90,0.12); box-shadow: inset 0 0 0 1px rgba(255,90,110,0.35);
}
html.ui2.look-next .ui2-live-pill i {
  width: 7px; height: 7px; border-radius: 50%; background: #ff4f6a; box-shadow: 0 0 8px #ff4f6a;
  animation: ui2pulse 1.6s ease-in-out infinite;
}
html.ui2.look-next .ui2-live-pill.loop { color: #a9e6ff; background: rgba(58,197,232,0.12); box-shadow: inset 0 0 0 1px rgba(120,200,255,0.35); }
html.ui2.look-next .ui2-live-pill.loop i { background: #3ac5e8; box-shadow: 0 0 8px #3ac5e8; }
html.ui2.look-next .ui2-rbar-play {
  gap: 0; border-radius: 12px; overflow: hidden; background: rgba(9,18,42,0.62);
  box-shadow: inset 0 0 0 1px rgba(120,190,255,0.30);
}
html.ui2.look-next .ui2-rbar-play .wx-radar-btn {
  border: 0; border-radius: 0; background: transparent; box-shadow: inset -1px 0 0 rgba(120,190,255,0.16);
}
html.ui2.look-next .ui2-rbar-play .wx-radar-btn:last-child { box-shadow: none; }
html.ui2.look-next .ui2-rbar-play .wx-radar-btn:hover { background: rgba(58,197,232,0.16); }
html.ui2.look-next #wxRadarPlay { background: linear-gradient(135deg, #2e8fe2 0%, #1d5cbc 100%); box-shadow: none; }
html.ui2.look-next .ui2-rbar-feat .wx-radar-btn { border-radius: 999px; padding: 7px 13px; }

/* Header and sidebar: the ORION orb */
html.ui2.look-next .brand-logo { display: flex; align-items: center; gap: 10px; }
html.ui2.look-next .brand-logo::before {
  content: ""; flex: 0 0 auto; width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #ffffff 0%, #9cecff 26%, #2d8ce0 62%, #1a2a7a 100%);
  box-shadow: 0 0 12px rgba(90,200,255,0.85), 0 0 30px rgba(60,140,255,0.45);
}
html.ui2.look-next .top-bar { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: rgba(6,13,30,0.80); }
html.ui2.look-next .nav-btn:hover { box-shadow: inset 0 0 0 1px rgba(120,200,255,0.20); }

/* Ask ORION: an orb next to ORION's name */
html.ui2.look-next .msg.bot::before {
  content: "ORION  "; padding-left: 15px; color: #8fe3ff; font-family: var(--u-sans);
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  background: radial-gradient(circle at 5px 50%, #b8f3ff 0, #3ac5e8 3px, rgba(58,197,232,0) 6px) no-repeat;
}
html.ui2.look-next .msg.bot { background: rgba(58,197,232,0.07); border-color: rgba(140,215,255,0.16); }
html.ui2.look-next .ui2-chip { background: rgba(58,197,232,0.12); border-color: rgba(140,215,255,0.36); }

/* All-clear glow and a glass bottom bar */
html.ui2.look-next #ui2Status.ui2-all-clear { box-shadow: 0 0 0 1px rgba(64,201,119,0.16) inset, 0 18px 40px rgba(0,0,0,0.38); }
html.ui2.look-next .wx-ticker-wrap.bulletin-calm {
  background: rgba(6,14,32,0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top-color: rgba(64,201,119,0.45);
}

/* Preview switch link */
.ui2-switch-row .ui2-look-link { margin-left: 14px; }

@media (max-width: 720px) {
  html.ui2.look-next .top-brand-mob { display: flex; align-items: center; gap: 9px; }
  html.ui2.look-next .top-brand-mob::before {
    content: ""; flex: 0 0 auto; width: 13px; height: 13px; border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #ffffff 0%, #9cecff 26%, #2d8ce0 62%, #1a2a7a 100%);
    box-shadow: 0 0 10px rgba(90,200,255,0.85), 0 0 24px rgba(60,140,255,0.45);
  }
  html.ui2.look-next .wx-temp { font-size: 74px; }
  html.ui2.look-next .ui2-hero-icon .ui2-ic { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html.ui2.look-next .ui2-hero-icon .ui2-ic, html.ui2.look-next .ui2-live-pill i { animation: none; }
}
html.ui2.look-next #wxCurrent > .wx-card-title::before { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z'/%3E%3C/svg%3E"); }
html.ui2.look-next #wxRadar > .wx-card-title::before { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cpath d='M12 12l6.4-6.4'/%3E%3C/svg%3E"); }
html.ui2.look-next #ui2Status > .wx-card-title::before { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
html.ui2.look-next #wxAlerts > .wx-card-title::before { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E"); }
html.ui2.look-next #wxStormTiming > .wx-card-title::before { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); }
html.ui2.look-next #wxSpcCard > .wx-card-title::before { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
html.ui2.look-next #wxForecast > .wx-card-title::before { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
html.ui2.look-next #wxCommuteImpact > .wx-card-title::before { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13l2.2-6h13.6L21 13v5H3z'/%3E%3Ccircle cx='7.5' cy='18' r='1.8'/%3E%3Ccircle cx='16.5' cy='18' r='1.8'/%3E%3C/svg%3E"); }
html.ui2.look-next #wxLiveMap > .wx-card-title::before { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
html.ui2.look-next .cph-title::before { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E"); }

/* Chat header on any width: the title and each button stay on one line; the buttons drop to a
   second row when the side column is narrow. */
html.ui2 .chat-panel-hdr { flex-wrap: wrap; row-gap: 8px; column-gap: 10px; }
html.ui2 .cph-title, html.ui2 .cp-btn { white-space: nowrap; }
html.ui2 .cph-btns { flex-wrap: nowrap; }

/* No 3D sandbox on this server (the public server): hide the dive buttons (also in the 3D radar view);
   the warning outlines stay visible but can't be clicked into a dive. Both layouts. */
html.no-dives #wxTorBtn, html.no-dives #wxFloodBtn, html.no-dives #wx3dTor { display: none !important; }
html.no-dives .wx-tor-poly, html.no-dives .wx-tor-pin, html.no-dives .wx-fld-poly,
html.no-dives .wx-fld-replay-watch { pointer-events: none !important; }

/* "Install ORION WX" card in the new look */
html.ui2 .pwa-install-card {
  border-radius: 18px; border: 1px solid rgba(140,215,255,0.32);
  background: rgba(10,20,46,0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5); font-family: var(--u-sans);
}
html.ui2 .pwa-install-title { font-family: var(--u-sans); font-weight: 700; letter-spacing: 0.02em; }
html.ui2 .pwa-install-actions button {
  font-family: var(--u-sans); font-weight: 700; letter-spacing: 0.06em; border-radius: 999px; padding: 9px 16px;
}
html.ui2 #pwaInstallBtn { color: #fff; border-color: rgba(120,210,255,0.5); background: linear-gradient(135deg, #2e8fe2 0%, #1d5cbc 100%); }

/* Mega light: the live map stays folded (no tiles) until it's needed, on every width.
   Phones: OPEN LIVE MAP; desktop: it opens by itself when scrolled into view (wx-ui2.js). */
html.ui2 .wx-livemap-card:not(.livemap-expanded) #wxLiveMapEl { height: 0; }
html.ui2 .wx-livemap-card .wx-livemap-open { display: inline-block; margin-top: 4px; }
html.ui2 .wx-livemap-card.livemap-expanded .wx-livemap-open { display: none; }
html.ui2 .wx-livemap-card:not(.livemap-expanded) .wx-livemap-controls,
html.ui2 .wx-livemap-card:not(.livemap-expanded) .wx-livemap-src { display: none; }

/* ── 11. Anywhere in the US (WP46): My location / Search buttons, search panel, short messages ── */
html.ui2 .ui2-anywhere-btns { display: flex; gap: 8px; padding: 2px 20px 14px; }
html.ui2 .ui2-anywhere-btns button,
html.ui2 .ui2-anywhere-hint button {
  flex: 1 1 auto; font: 600 12.5px/1 var(--u-sans); letter-spacing: 0.02em; color: #dff4ff; white-space: nowrap;
  background: rgba(58,197,232,0.10); border: 1px solid var(--u-line-2); border-radius: 999px; padding: 8px 10px; cursor: pointer;
}
html.ui2 .ui2-anywhere-btns button:hover,
html.ui2 .ui2-anywhere-hint button:hover { background: rgba(58,197,232,0.20); }
html.ui2 .ui2-anywhere-hint { display: none; }
@media (max-width: 720px) {
  html.ui2 .ui2-anywhere-hint {
    display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 8px 6px 8px 14px;
    border-radius: 14px; border: 1px solid var(--u-line-2); background: var(--u-card);
    font: 600 13px/1.3 var(--u-sans); color: #cfe9fb;
  }
  html.ui2 .ui2-anywhere-hint span { flex: 1 1 auto; min-width: 0; }
  html.ui2 .ui2-anywhere-hint button { flex: 0 0 auto; padding: 9px 11px; }
  html.ui2 .ui2-anywhere-hint .ui2-anywhere-x { background: none; border: 0; padding: 6px 8px; color: rgba(200,225,248,0.7); font-size: 14px; }
}
html.ui2 .ui2-finder {
  position: fixed; inset: 0; z-index: 4000; display: flex; align-items: flex-start; justify-content: center;
  padding: max(9vh, calc(env(safe-area-inset-top) + 16px)) 16px 16px;
  background: rgba(2,6,16,0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
html.ui2 .ui2-finder[hidden] { display: none; }
html.ui2 .ui2-finder-card {
  width: min(460px, 100%); max-height: 82vh; overflow: auto; padding: 14px; border-radius: 18px;
  border: 1px solid var(--u-line-2); background: linear-gradient(180deg, rgba(17,31,64,0.98), rgba(9,18,40,0.99));
  box-shadow: 0 24px 60px rgba(0,0,0,0.55); color: #e8f4ff; font-family: var(--u-sans);
}
html.ui2 .ui2-finder-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; letter-spacing: 0.14em; color: var(--u-title); }
html.ui2 .ui2-finder-x { background: none; border: 0; color: rgba(200,225,248,0.8); font-size: 18px; line-height: 1; padding: 4px 6px; cursor: pointer; }
html.ui2 .ui2-finder input {
  width: 100%; font: 500 16px/1.2 var(--u-sans); color: #fff; background: rgba(4,10,24,0.72);
  border: 1px solid var(--u-line-2); border-radius: 12px; padding: 12px 14px; outline: none;
}
html.ui2 .ui2-finder input:focus { border-color: rgba(58,197,232,0.70); box-shadow: 0 0 0 3px rgba(58,197,232,0.18); }
html.ui2 .ui2-finder-geo {
  width: 100%; margin-top: 10px; text-align: left; font: 600 14px/1 var(--u-sans); color: #dff4ff;
  background: rgba(58,197,232,0.12); border: 1px solid var(--u-line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer;
}
html.ui2 .ui2-finder-geo:hover { background: rgba(58,197,232,0.20); }
html.ui2 .ui2-finder-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
html.ui2 .ui2-finder-list button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid var(--u-line); border-radius: 12px; padding: 10px 14px;
  color: #e8f4ff; font-family: var(--u-sans);
}
html.ui2 .ui2-finder-list button:hover,
html.ui2 .ui2-finder-list button:focus-visible { background: rgba(58,197,232,0.12); border-color: var(--u-line-2); outline: none; }
html.ui2 .ui2-finder-list b { font-size: 15px; font-weight: 650; }
html.ui2 .ui2-finder-list span { font-size: 12.5px; color: rgba(170,205,235,0.72); }
html.ui2 .ui2-finder-empty { padding: 10px 4px; color: rgba(190,215,240,0.75); font-size: 14px; }
html.ui2 .ui2-finder-note { margin-top: 12px; font-size: 12px; line-height: 1.4; color: rgba(170,205,235,0.62); }
html.ui2 .ui2-toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 4100; transform: translate(-50%, 16px);
  max-width: min(92vw, 440px); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--u-line-2);
  background: rgba(8,18,40,0.96); color: #e8f4ff; font: 600 13.5px/1.3 var(--u-sans); text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
html.ui2 .ui2-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { html.ui2 .ui2-toast { transition: none; } }

/* Desktop sidebar: just the brand and the place picker (Phillip 2026-11-08: the side buttons "dont do anything").
   The same questions are the tap-to-ask chips in Ask ORION; Radar and Alerts are on the page itself. */
html.ui2 .sidebar-nav { display: none; }

/* No sidebar on computers either (Phillip 2026-11-08: "get rid of the side bar on desktop since its useless").
   The header row carries ORION WX, the place list with My location / Search, then the clock and status. */
html.ui2 .sidebar { display: none; }
html.ui2 .top-brand-mob { display: block; }
@media (min-width: 721px) {
  html.ui2 .top-bar { gap: 14px; }
  html.ui2 .top-brand-mob { font-size: 17px; letter-spacing: 0.08em; text-shadow: 0 0 18px rgba(58,197,232,0.55); }
  html.ui2 .ui2-loc-slot { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; margin-left: 8px; }
  html.ui2 .ui2-loc-slot #wxLocation { width: 250px; max-width: 30vw; min-width: 150px; padding: 8px 11px; font-size: 14px; }
  html.ui2 .ui2-loc-slot .ui2-anywhere-btns { padding: 0; flex: 0 0 auto; }
  html.ui2 .ui2-loc-slot .ui2-anywhere-btns button { flex: 0 0 auto; }
}
@media (max-width: 720px) {
  html.ui2 .ui2-loc-slot .ui2-anywhere-btns { display: none; }   /* phones: the one-time hint and the list's own actions */
}
