.rv-ctl { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; margin-top: 16px; }
.rv-ctl .field { display: flex; flex-direction: column; gap: 4px; }
.rv-ctl select { min-width: 280px; max-width: 100%; }
.rv-ctl .hint { flex-basis: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line, #d6dde6); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; color: inherit; }
.seg button[aria-pressed="true"] { background: #0f4c81; color: #fff; }
.rv-now { display: flex; gap: 20px; align-items: flex-start; margin-top: 16px; }
.rv-score { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rv-score b { font: 700 40px/1 var(--font-mono); }
.rv-score span { font-weight: 600; font-size: 14px; margin-top: 4px; }
.rv-now-body { flex: 1; min-width: 0; }
.rv-now-body h2 { margin: 0 0 10px; }
.rv-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.rv-facts > div { display: flex; flex-direction: column; }
.rv-facts label { font-size: 12px; color: var(--muted); }
.rv-facts b { font: 600 18px var(--font-mono); }
.rv-facts span { font-size: 12px; color: var(--muted); }
.rv-ded { list-style: none; padding: 0; margin: 0 0 8px; font-size: 14px; }
.rv-ded li { padding: 2px 0; }
.rv-ded .ded { display: inline-block; min-width: 40px; font-family: var(--font-mono); font-weight: 600; }
.rv-haz { margin: 4px 0; color: var(--r3); }
#ahead { margin-top: 18px; }
.rv-grid { display: grid; grid-template-columns: 90px repeat(5, minmax(0, 1fr)); gap: 6px; }
.rv-gh { font-size: 12px; color: var(--muted); text-align: center; }
.rv-day { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; justify-content: center; }
.rv-day span { font-weight: 400; font-size: 12px; color: var(--muted); }
.rv-cell { position: relative; border: 0; border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; font: inherit; cursor: pointer; }
.rv-cell b { font: 700 20px var(--font-mono); }
.rv-cell span { font-size: 12px; opacity: .85; }
.rv-cell.past { background: #f1f4f7; color: var(--muted); cursor: default; justify-content: center; }
.rv-tip { position: absolute; z-index: 5; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; width: 260px; max-width: 80vw; white-space: pre-line; text-align: left; background: #0b2540; color: #e6eef7; font-size: 12px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
#gauges { margin-top: 18px; }
.rv-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rv-g-head { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.rv-g-val { margin-left: auto; font: 600 15px var(--font-mono); }
.rv-spark { width: 100%; height: 70px; display: block; margin: 6px 0 2px; }
.rv-line { fill: none; stroke: #0f4c81; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rv-band { fill: var(--r5-bg); }
.rv-med { stroke: #8fa6bf; stroke-dasharray: 4 3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rv-leg .sw { display: inline-block; width: 12px; height: 8px; margin: 0 4px 0 0; vertical-align: middle; }
.rv-leg .sw.band { background: var(--r5-bg); border: 1px solid var(--r5); }
.rv-leg .sw.med { border-top: 2px dashed #8fa6bf; height: 0; margin-left: 8px; }
.rv-notes { margin-top: 18px; }
.rv-notes ul { padding-left: 18px; }
@media (max-width: 720px) {
  .rv-now { flex-direction: column; }
  .rv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-gauges { grid-template-columns: 1fr; }
  .rv-grid { grid-template-columns: 64px repeat(5, minmax(0, 1fr)); }
  .rv-ctl select { min-width: 0; width: 100%; }
  .rv-ctl .field { flex: 1 1 100%; }
  .top-meta { display: none; }
}
/* map + date (v2) */
.rv-ctl { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.rv-ctl-left { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.rv-ctl-left .hint { flex-basis: 100%; }
.rv-date { display: flex; gap: 6px; }
.rv-date input { width: 170px; }
.btn.ghost { background: transparent; color: #0f4c81; border: 1px solid var(--line); }
.rv-map { margin: 0; }
.rv-map svg { width: 100%; height: auto; max-height: 420px; display: block; }
.rv-map .base { fill: none; stroke: #b9d3e6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rv-map .sec { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; cursor: pointer; opacity: .55; }
.rv-map .sec.on { stroke-width: 8; opacity: 1; }
.rv-map .hit { fill: none; stroke: transparent; stroke-width: 18; cursor: pointer; }
.rv-map .sec.c5 { stroke: var(--r5); } .rv-map .sec.c4 { stroke: var(--r4); } .rv-map .sec.c3 { stroke: var(--r3); } .rv-map .sec.c2 { stroke: var(--r2); } .rv-map .sec.c1 { stroke: var(--r1); } .rv-map .sec.c0 { stroke: #0f4c81; }
.rv-map .halo { fill: none; stroke: #0b2540; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .18; }
.rv-map .town { font: 500 9px var(--font-sans, sans-serif); fill: #7a8799; }
.rv-map .gauge { cursor: pointer; }
.rv-map .gauge circle.dot { fill: #fff; stroke: #0f4c81; stroke-width: 2; }
.rv-map .gauge.on circle.dot { fill: #0f4c81; }
.rv-map .gauge.on circle.ring { fill: none; stroke: #0f4c81; stroke-width: 1.5; opacity: .5; animation: rvpulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rvpulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
.rv-map .glab { font: 600 9px var(--font-mono, monospace); fill: #0b2540; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.rv-map .glab .q { font-weight: 500; fill: #0f4c81; }
.rv-map .pt { fill: #fff; stroke: #0b2540; stroke-width: 1.5; }
.rv-map figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 2px; }
.rv-cell.typ { grid-column: span 5; cursor: default; flex-direction: row; gap: 10px; justify-content: flex-start; padding: 8px 12px; text-align: left; }
.rv-cell.typ span { font-size: 12px; }
@media (max-width: 720px) {
  .rv-ctl { grid-template-columns: 1fr; }
  .rv-map svg { max-height: 300px; }
  .rv-grid { grid-template-columns: 52px repeat(5, minmax(0, 1fr)); gap: 4px; }
  .rv-cell b { font-size: 17px; }
  .rv-cell span { font-size: 10px; }
  .rv-date input { width: auto; flex: 1; }
}
.rv-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-bottom: 3px; }
.rv-key i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 3px; }
.rv-key .k5 { background: var(--r5); } .rv-key .k4 { background: var(--r4); } .rv-key .k3 { background: var(--r3); } .rv-key .k2 { background: var(--r2); } .rv-key .k1 { background: var(--r1); }
