/* ==========================================================================
   Mekhfon — pages: overview · map layer · forecast · risk · sounding ·
   radar · water · alerts · reports · stations · settings
   ========================================================================== */

/* zone colour helper: any element can opt in with .rb-z-a … .rb-z-d */
.rb-z-a { --z: var(--rb-za); --z-soft: var(--rb-za-soft); --z-chip: var(--rb-za-chip); }
.rb-z-b { --z: var(--rb-zb); --z-soft: var(--rb-zb-soft); --z-chip: var(--rb-zb-chip); }
.rb-z-c { --z: var(--rb-zc); --z-soft: var(--rb-zc-soft); --z-chip: var(--rb-zc-chip); }
.rb-z-d { --z: var(--rb-zd); --z-soft: var(--rb-zd-soft); --z-chip: var(--rb-zd-chip); }

/* ---- status pill ------------------------------------------------------------- */
.rb-status { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 5.4rem; padding: .3rem .95rem; border-radius: 999px; font: 700 .95rem/1.25 var(--rb-font-display); border: 1px solid; white-space: nowrap; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset; }
.rb-status .rb-i { width: 1.05rem; height: 1.05rem; stroke-width: 2.1; }
.rb-status--normal { color: var(--rb-normal-ink); background: linear-gradient(180deg, #E1F5EA, #C6EBD8); border-color: #9DD6B9; }
.rb-status--watch { color: #6A3F00; background: linear-gradient(180deg, #FFEBAE, #FFD66E); border-color: #E3B54A; }
.rb-status--warning { color: var(--rb-warning-ink); background: linear-gradient(180deg, #FDE3E0, #F8C4C0); border-color: #E59A9C; }
.rb-status--unknown, .rb-status--offline { color: var(--rb-unknown-ink); background: linear-gradient(180deg, #F1F3F5, #E2E6EA); border-color: var(--rb-unknown-line); }
.rb-status i { width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   OVERVIEW
   ========================================================================== */
.rb-ov-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: .9rem; margin-bottom: .9rem; align-items: stretch; }
.rb-ov-map { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.rb-ov-map > .rb-card-head { padding: .9rem 1.1rem 0; margin-bottom: .6rem; }
.rb-ov-map .rb-map-stage { flex: 1; min-height: 26rem; margin: 0 .8rem .8rem; }
.rb-ov-side { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.rb-ov-forecast { flex: 1; }
.rb-ov-note .rb-card-head { margin-bottom: .45rem; }
.rb-link { border: 0; background: none; padding: .1rem .3rem; font: 600 .82rem var(--rb-font-text); color: var(--rb-teal-600); display: inline-flex; align-items: center; gap: .25rem; }
.rb-link:hover { text-decoration: underline; }
.rb-link .rb-i { width: .9rem; height: .9rem; }

/* zone forecast table */
.rb-fctable td { padding: .32rem .6rem; }
.rb-fctable th { font-size: .82rem; }
.rb-fctable td + td, .rb-fctable th + th { border-left: 1px solid var(--rb-line-2); }
.rb-fctable td:first-child { width: 3.4rem; padding-right: .3rem; border-left: 0; }
.rb-fctable td:nth-child(2) { font-weight: 600; font-size: .88rem; line-height: 1.3; min-width: 10rem; border-left: 0; }
.rb-fctable tbody tr.is-watch td:nth-child(4) { background: linear-gradient(180deg, rgba(255, 244, 205, .5), transparent); }
.rb-wx3 { display: flex; justify-content: center; gap: .55rem; }
.rb-wx3 > div { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 2.8rem; font-size: .74rem; line-height: 1.2; color: var(--rb-muted); }
.rb-wx { width: 2rem; height: 2rem; display: block; filter: drop-shadow(0 2px 2px rgba(60, 90, 120, .18)); }
.rb-wx--lg { width: 2.8rem; height: 2.8rem; }
.rb-wx--sm { width: 1.7rem; height: 1.7rem; }
.rb-detail-cell { font-size: .82rem; line-height: 1.38; color: var(--rb-ink-2); min-width: 9.5rem; }
.rb-zone-cards { display: none; }

.rb-note { display: flex; align-items: center; gap: 1rem; padding: .55rem .85rem; border-radius: 12px; background: #FFFDF6; border: 1px solid var(--rb-gold-200); }
.rb-note-text { flex: 1; font-size: .93rem; line-height: 1.55; color: var(--rb-ink); white-space: pre-line; }

/* bottom strip */
.rb-ov-bottom { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1.02fr) minmax(0, .92fr); gap: .9rem; align-items: stretch; }
.rb-ov-bottom .rb-card-title { font-size: 1.04rem; }

.rb-film-top { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem 1.2rem; flex-wrap: wrap; margin-bottom: .55rem; }
.rb-timeline-key { position: relative; flex: 1 1 18rem; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 0 .62rem; font-size: .74rem; font-weight: 600; color: var(--rb-muted); }
.rb-timeline-key::after { content: ""; position: absolute; left: 0; right: .35rem; bottom: .2rem; border-top: 1.5px dashed #C9BFA3; }
.rb-timeline-key::before { content: ""; position: absolute; right: 0; bottom: -.05rem; border: .32rem solid transparent; border-left-color: #B9AE90; border-right-width: 0; }
.rb-timeline-key b { position: relative; color: #D13B3B; font: 800 .8rem var(--rb-font-display); letter-spacing: .03em; }
.rb-timeline-key b::after { content: ""; position: absolute; left: 50%; top: 105%; transform: translateX(-50%); border: .3rem solid transparent; border-top-color: #D13B3B; border-bottom-width: 0; }
.rb-timeline-key .is-fc { color: var(--rb-gold-600); }
.rb-film-row { display: flex; align-items: center; gap: .7rem; }
.rb-thumbs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .45rem; }
.rb-thumb { display: flex; flex-direction: column; align-items: center; gap: .08rem; padding: .18rem; border: 2px solid transparent; border-radius: 11px; background: transparent; font: 600 .78rem/1.2 var(--rb-font-text); color: var(--rb-ink-2); transition: transform .2s var(--rb-ease), border-color .2s, box-shadow .2s; }
.rb-thumb-frame { position: relative; display: block; width: 100%; }
.rb-thumb canvas { width: 100%; aspect-ratio: 1.3; border-radius: 8px; display: block; background: #EAF1F3; box-shadow: 0 2px 5px -2px rgba(20, 40, 58, .5), 0 0 0 1px rgba(20, 40, 58, .12); }
.rb-thumb-tag { position: absolute; left: .3rem; top: .3rem; padding: .02rem .4rem; border-radius: 999px; font: 800 .62rem/1.35 var(--rb-font-display); font-style: normal; letter-spacing: .02em; background: rgba(255, 255, 255, .92); color: var(--rb-ink-2); box-shadow: 0 2px 4px -2px rgba(20, 40, 58, .5); }
.rb-thumb-tag.is-now { background: #D13B3B; color: #fff; }
@media (max-width: 1500px) { .rb-thumb-tag { font-size: .56rem; } }
.rb-thumb-rain { margin-top: .12rem; padding: .02rem .55rem; max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 999px; font: 700 .62rem/1.35 var(--rb-font-text); font-style: normal; background: rgba(255, 255, 255, .92); color: var(--rb-muted); }
.rb-thumb-rain.is-some { background: #FFE7A8; color: #7A4A00; }
.rb-thumb-rain.is-cloud { background: #DCE6F2; color: #2A4A6E; }
.rb-thumb-rain.is-heavy { background: #FBDAD7; color: #A02A31; }
.rb-thumb.is-fc canvas { outline: 2px dashed rgba(210, 166, 74, .75); outline-offset: -2px; }
.rb-thumb.is-now:not(.is-sel) canvas { box-shadow: 0 0 0 2px #D13B3B66; }
.rb-thumb small { display: block; min-height: 2.3em; font-size: .66rem; font-weight: 500; line-height: 1.15; color: var(--rb-muted); text-align: center; white-space: normal; }
.rb-thumb:hover { transform: translateY(-2px); }
.rb-thumb.is-sel { border-color: var(--rb-gold-400); box-shadow: 0 0 0 3px rgba(225, 190, 111, .28); }
.rb-thumb.is-sel b { color: var(--rb-ink); font-weight: 700; }
.rb-thumb.is-fc small { color: var(--rb-gold-600); }
.rb-film-bar { display: flex; align-items: center; gap: .7rem; margin-top: .55rem; }
.rb-film-bar .rb-range { flex: 1; }

.rb-river { display: flex; flex-direction: column; }
.rb-river-body { flex: 1; display: flex; flex-direction: column; gap: .7rem; }
.rb-river-chart { flex: 1; display: flex; flex-direction: column; margin: 0; padding: .5rem .55rem .3rem; border: 1px solid var(--rb-line-2); border-radius: 12px; background: linear-gradient(180deg, #FBFDFD, #F3F9F9); }
.rb-river-chart figcaption { font-size: .74rem; color: var(--rb-muted); margin-bottom: .1rem; }
.rb-river-chart canvas { flex: 1 1 0; min-height: 7.2rem; width: 100%; display: block; } /* the chart takes whatever height the row gives it */
.rb-river-stat { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; grid-auto-flow: column; column-gap: 1rem; align-content: center; padding: .6rem .8rem; border: 1px solid var(--rb-line-2); border-radius: 12px; background: #fff; }
.rb-river-stat .rb-stat-foot { grid-column: 1 / -1; grid-row: 3; }
.rb-stat-label { font-size: .76rem; color: var(--rb-muted); }
.rb-stat-big { font: 800 1.85rem/1.12 var(--rb-font-display); color: var(--rb-ink); margin-bottom: .35rem; white-space: nowrap; }
.rb-stat-big small { font: 600 .95rem var(--rb-font-text); }
.rb-stat-trend { display: inline-flex; align-items: center; gap: .3rem; font: 700 1.02rem var(--rb-font-display); color: var(--rb-teal-600); }
.rb-stat-trend.is-down { color: #B3611B; }
.rb-stat-foot { margin-top: .3rem; font-size: .7rem; color: var(--rb-faint); line-height: 1.35; }
.rb-sources { display: flex; flex-direction: column; }
.rb-sources .rb-src-list { flex: 1; justify-content: space-between; }

.rb-src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .32rem; }
.rb-src { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 8.6rem); align-items: center; gap: .55rem; padding: .3rem .6rem; border: 1px solid var(--rb-line-2); border-radius: 12px; background: #fff; }
.rb-src-ico { width: 1.95rem; height: 1.95rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #2FB7A6, #0E8F7E); box-shadow: 0 3px 6px -3px rgba(14, 143, 126, .8); }
.rb-src-ico .rb-i { width: 1.15rem; height: 1.15rem; stroke-width: 1.9; }
.rb-src-ico--sat { background: linear-gradient(180deg, #5C8BE0, #2F5FB8); box-shadow: 0 3px 6px -3px rgba(47, 95, 184, .8); }
.rb-src-ico--bolt { background: linear-gradient(180deg, #F6C444, #E39A0E); box-shadow: 0 3px 6px -3px rgba(227, 154, 14, .8); }
.rb-src-ico--bolt.is-off { background: linear-gradient(180deg, #C5CCD3, #98A3AD); box-shadow: none; }
.rb-src-ico--water { background: linear-gradient(180deg, #38B6C4, #0E7F8E); }
.rb-src-ico--nwp { background: linear-gradient(180deg, #8F78DD, #6048B8); box-shadow: 0 3px 6px -3px rgba(96, 72, 184, .8); }
.rb-src-ico--snd { background: linear-gradient(180deg, #E88A5B, #C4592B); box-shadow: 0 3px 6px -3px rgba(196, 89, 43, .8); }
.rb-src-name { font: 600 .88rem/1.25 var(--rb-font-text); color: var(--rb-ink); min-width: 0; }
.rb-src-note { font-size: .68rem; line-height: 1.28; color: var(--rb-muted); text-align: left; }
.rb-src-list--sm .rb-src { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico name tag" "ico note tag"; column-gap: .6rem; row-gap: 0; padding: .4rem .6rem; }
.rb-src-list--sm .rb-src-ico { grid-area: ico; }
.rb-src-list--sm .rb-src-name { grid-area: name; align-self: end; }
.rb-src-list--sm .rb-tag { grid-area: tag; }
.rb-src-list--sm .rb-src-note { grid-area: note; align-self: start; }

/* ==========================================================================
   MAP LAYER (shared by every map)
   ========================================================================== */
.rb-map-stage { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--rb-line); background: #F2EEE2; isolation: isolate; min-height: 16rem; }
.rb-map-stage--tall { min-height: 31rem; }
.rb-map-stage--radar { min-height: 38rem; height: 100%; border: 0; border-radius: 0; }
.rb-map-stage--water { min-height: 24rem; }
.rb-map { position: absolute; inset: 0; background: #F5F2EA; font-family: var(--rb-font-text); z-index: 0; }
.rb-map.leaflet-container { font-family: var(--rb-font-text); outline: 0; }
.rb-map .leaflet-control-attribution { font-size: .62rem; padding: .1rem .5rem; background: rgba(255, 255, 255, .78); border-radius: 8px 0 0 0; color: var(--rb-muted); }
.rb-map .leaflet-control-attribution a { color: var(--rb-teal-600); }
.rb-map .leaflet-bar { border: 0; box-shadow: 0 6px 16px -6px rgba(20, 40, 58, .4); border-radius: 12px; overflow: hidden; }
.rb-map .leaflet-bar a { width: 2.2rem; height: 2.2rem; line-height: 2.2rem; color: var(--rb-ink); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--rb-line-2); }
.rb-map .leaflet-bar a:hover { background: var(--rb-gold-50); }
.rb-map .leaflet-control-scale-line { border-color: var(--rb-faint); background: rgba(255, 255, 255, .7); color: var(--rb-ink-2); font-size: .62rem; }
.rb-map .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--rb-shadow-2); border: 1px solid var(--rb-line); font-size: .86rem; }
.rb-map .leaflet-popup-content { margin: .7rem .9rem; line-height: 1.5; }
.rb-map .leaflet-tooltip { background: rgba(255, 255, 255, .96); border: 1px solid var(--rb-line-strong); border-radius: 9px; color: var(--rb-ink); font: 600 .78rem var(--rb-font-text); box-shadow: 0 6px 14px -6px rgba(20, 40, 58, .4); }

/* toolbar (layers / fit / fullscreen) injected by royal-barge-map.js */
.rb-map-toolbar { position: relative; display: flex; flex-direction: column; gap: .35rem; }
.rb-map-toolbar--h { flex-direction: row; }
.rb-map-btn { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; padding: 0; border: 1px solid rgba(233, 223, 198, .9); border-radius: 12px; background: rgba(255, 255, 255, .96); color: var(--rb-ink-2); box-shadow: 0 6px 16px -8px rgba(20, 40, 58, .55); transition: background .15s, transform .15s; }
.rb-map-btn:hover, .rb-map-btn.is-active { background: var(--rb-gold-50); border-color: var(--rb-gold-300); }
.rb-map-btn svg { width: 1.1rem; height: 1.1rem; }
.rb-map-layer-menu { position: absolute; top: calc(100% + .4rem); right: 0; z-index: 1200; width: 13.5rem; padding: .35rem; display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid var(--rb-line-strong); border-radius: 14px; box-shadow: var(--rb-shadow-2); }
.rb-map-toolbar--h .rb-map-layer-menu { right: auto; left: 0; }
.rb-map-layer-choice { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; border: 0; border-radius: 10px; background: transparent; text-align: left; font: 600 .85rem var(--rb-font-text); }
.rb-map-layer-choice:hover { background: var(--rb-gold-50); }
.rb-map-layer-choice.is-active { background: var(--rb-gold-50); box-shadow: inset 0 0 0 1px var(--rb-gold-300); }
.rb-map-swatch { width: 1.5rem; height: 1.5rem; border-radius: 7px; border: 1px solid rgba(20, 40, 58, .2); flex: none; background: #ddd; }
.rb-map-swatch--pastel { background: linear-gradient(135deg, #F5F2EA 40%, #B6DDE8 40% 62%, #D8EACB 62%); }
.rb-map-swatch--light { background: linear-gradient(135deg, #f1f1f1 55%, #cfd0d6 55%); }
.rb-map-swatch--osm { background: linear-gradient(135deg, #f2efe9 50%, #aad3df 50%); }
.rb-map-swatch--satellite { background: linear-gradient(135deg, #3e5b3a, #6d6a4a); }
.rb-map-swatch--topo { background: linear-gradient(135deg, #eee6d3, #b9d3c2); }
.rb-map-swatch--maptiler { background: linear-gradient(135deg, #e8f0e4, #9cc5e8); }

/* overlays on top of a map stage */
.rb-compass { position: absolute; left: .8rem; top: .8rem; z-index: 520; width: 3rem; height: 3rem; filter: drop-shadow(0 5px 8px rgba(20, 40, 58, .3)); pointer-events: none; }
.rb-legend { position: absolute; left: .8rem; top: 4.4rem; z-index: 520; display: flex; flex-direction: column; gap: .55rem; width: 12.4rem; padding: .7rem .8rem; background: rgba(255, 255, 255, .95); border: 1px solid var(--rb-gold-200); border-radius: 14px; box-shadow: 0 12px 24px -14px rgba(20, 40, 58, .55); font-size: .78rem; line-height: 1.25; color: var(--rb-ink-2); }
.rb-legend > div { display: flex; align-items: center; gap: .55rem; }
.rb-legend svg { width: 2.1rem; height: 1rem; flex: none; }
.rb-legend em { font-style: normal; color: var(--rb-muted); font-size: .72rem; }
.rb-legend .rb-pin-ico { width: 1.5rem; height: 1.5rem; margin: 0 .3rem 0 .15rem; }
.rb-legend .rb-wxm-sw { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; margin: 0 .3rem 0 .3rem; border-radius: 50%; background: #E1F1F5; border: 1.5px solid #12808C; }
.rb-legend .rb-wxm-sw svg { width: .95rem; height: .95rem; fill: #0D6B76; }
.rb-legend .rb-wxm-sw--cur { background: #D3EBEA; border-color: #0D6B76; }
.rb-legend .rb-wxm-sw--cur svg { fill: none; stroke: #0D6B76; stroke-width: 1.8; stroke-linecap: round; }
.rb-sw { display: inline-block; width: 2.1rem; height: 1rem; border-radius: 4px; flex: none; }
.rb-sw--river { background: #B6DDE8; border: 1px solid #9ACBD9; }
.rb-sw--zone { background: rgba(224, 160, 32, .12); border: 1.5px dashed #D9A23A; }
.rb-dbz { position: absolute; right: .8rem; top: .8rem; z-index: 520; display: flex; align-items: center; gap: .5rem; padding: .3rem .75rem; background: rgba(255, 255, 255, .95); border: 1px solid var(--rb-line); border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--rb-ink-2); box-shadow: 0 6px 14px -8px rgba(20, 40, 58, .5); }
.rb-dbz-ramp { display: inline-block; width: 7.2rem; height: .55rem; border-radius: 999px; background: linear-gradient(90deg, #4BC0F0 0%, #2FCB72 22%, #A8E04A 38%, #FFD93D 52%, #FF9A2E 66%, #F0443A 80%, #D1359A 92%, #7A2FC8 100%); box-shadow: 0 0 0 1px rgba(20, 40, 58, .12) inset; }
.rb-dbz-ramp--wide { display: block; width: 100%; height: .75rem; }
.rb-map-tag { position: absolute; left: .8rem; bottom: .7rem; z-index: 520; padding: .22rem .7rem; border-radius: 8px; background: rgba(255, 255, 255, .88); border: 1px solid var(--rb-line); font: 600 .64rem/1.4 var(--rb-font-text); letter-spacing: .04em; color: var(--rb-ink-2); pointer-events: none; text-transform: uppercase; }
/* satellite layer status: the cloud picture is transparent where the sky is clear, so say so instead of looking broken */
.rb-map-note { position: absolute; left: 50%; top: .8rem; transform: translateX(-50%); z-index: 530; display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .6rem; justify-content: center; max-width: min(30rem, calc(100% - 25rem)); padding: .4rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .95); border: 1px solid #BCD0EA; box-shadow: 0 6px 14px -8px rgba(20, 40, 58, .5); font-size: .76rem; line-height: 1.35; color: var(--rb-ink-2); text-align: center; }
.rb-map-note b { color: #1F4E8C; }
.rb-map-note button { border: 1px solid #9DBBE3; background: #EAF2FD; color: #1F4E8C; border-radius: 999px; padding: .1rem .65rem; font: 700 .72rem var(--rb-font-text); cursor: pointer; }
.rb-map-note button:hover { background: #DCEAFB; }
@media (max-width: 1100px) { .rb-map-note { top: 4.2rem; max-width: calc(100% - 1.6rem); } }
.rb-map-key { position: absolute; left: .8rem; bottom: .7rem; z-index: 520; display: flex; gap: .8rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .94); border: 1px solid var(--rb-line); font-size: .76rem; font-weight: 600; }
.rb-map-key span { display: inline-flex; align-items: center; gap: .35rem; }
.rb-map-key i { width: .8rem; height: .8rem; border-radius: 50%; }
.rb-pin-badge { position: absolute; right: .8rem; bottom: .7rem; z-index: 520; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--rb-line); font-size: .76rem; color: var(--rb-ink-2); }
.rb-pin-badge .rb-i { width: .95rem; height: .95rem; color: var(--rb-gold-500); }

/* zone cards over the map */
.rb-zone-stack { position: absolute; right: .7rem; top: 3.3rem; bottom: .7rem; z-index: 510; width: min(15.4rem, 33%); display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.rb-zcard { pointer-events: auto; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: .1rem; padding: .45rem .7rem .5rem .85rem; text-align: left; border: 1.5px solid var(--z); border-left-width: 5px; border-radius: 13px; background: linear-gradient(180deg, #fff 0%, var(--z-soft) 100%); box-shadow: 0 10px 20px -12px rgba(20, 40, 58, .55); transition: transform .2s var(--rb-ease), box-shadow .2s; font: inherit; color: inherit; }
.rb-zcard:hover { transform: translateX(-3px); box-shadow: 0 14px 26px -12px rgba(20, 40, 58, .6); }
.rb-zcard-name { font: 700 1.12rem/1.2 var(--rb-font-display); color: var(--rb-ink); }
.rb-zcard-seg { font: 600 .74rem/1.25 var(--rb-font-text); color: var(--rb-ink-2); }
.rb-zcard-status { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .22rem; padding: .16rem .5rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--z); font: 700 .82rem/1.3 var(--rb-font-display); color: var(--rb-ink); }
.rb-zcard-status i { width: .6rem; height: .6rem; border-radius: 50%; background: #1FA971; }
.rb-zcard-status .rb-i { width: .95rem; height: .95rem; color: #C78512; stroke-width: 2.2; }
.rb-zcard.is-watch .rb-zcard-status { background: #FFF3CC; border-color: #E3B54A; }
.rb-zcard.is-warning .rb-zcard-status { background: #FDE3E0; border-color: #E59A9C; }
.rb-zcard.is-warning .rb-zcard-status i { background: #D64550; }
.rb-zcard.is-unknown .rb-zcard-status i { background: #8B97A1; }

/* Leaflet markers drawn by JS */
.rb-lm { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem .2rem .4rem; background: rgba(255, 255, 255, .97); border: 1.5px solid var(--rb-gold-400); border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(20, 40, 58, .5); font: 700 .78rem/1.2 var(--rb-font-text); color: var(--rb-ink); white-space: nowrap; transform: translate(0, -50%); }
.rb-lm svg { width: 1.7rem; height: 1.3rem; flex: none; }
.rb-lm--start, .rb-lm--end { font-family: var(--rb-font-display); font-size: .86rem; padding: .28rem .8rem .28rem .5rem; }
.rb-lm--minor { opacity: .96; font-size: .72rem; }
.rb-hide-minor-labels .rb-lm--minor { display: none; }
.rb-pinmark { width: 2rem; height: 2.6rem; filter: drop-shadow(0 4px 4px rgba(20, 40, 58, .4)); }
.rb-hosp { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #E03B3B; border: 2px solid #fff; box-shadow: 0 4px 8px -2px rgba(20, 40, 58, .55); color: #fff; font: 800 1.1rem/1 var(--rb-font-display); }
.rb-district { font: 600 .78rem/1 var(--rb-font-text); color: #7E8A95; text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 8px #fff; white-space: nowrap; pointer-events: none; letter-spacing: .01em; }
.rb-district--bank { font: 700 .88rem var(--rb-font-display); color: #3F5266; }
.rb-zmark { transition: transform .3s var(--rb-ease, ease); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: .5rem; font: 800 .95rem/1 var(--rb-font-display); color: var(--rb-ink); border: 2px solid #fff; box-shadow: 0 4px 8px -3px rgba(20, 40, 58, .5); }
.rb-zmark.rb-zchip--a { background: var(--rb-za-chip); } .rb-zmark.rb-zchip--b { background: var(--rb-zb-chip); } .rb-zmark.rb-zchip--c { background: var(--rb-zc-chip); } .rb-zmark.rb-zchip--d { background: var(--rb-zd-chip); }
.rb-route-arrow { color: #fff; font-size: .75rem; text-shadow: 0 0 2px #8A5A14, 0 0 4px #8A5A14; line-height: 1; }
.rb-wm { position: relative; width: 0; height: 0; font-family: var(--rb-font-text); }
.rb-wm-dot { position: absolute; z-index: 2; left: -.36rem; top: -.36rem; box-sizing: border-box; width: .72rem; height: .72rem; border-radius: 50%; background: #fff; border: 2px solid var(--rb-teal-500); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 2px 6px -1px rgba(20, 40, 58, .45); transition: transform .18s var(--rb-ease); }
.rb-wm--obs .rb-wm-dot { background: #0F9D8F; border-color: #fff; box-shadow: 0 0 0 2px #0F9D8F, 0 2px 6px -1px rgba(20, 40, 58, .45); }
.rb-wm-lab { position: absolute; z-index: 1; top: 0; transform: translateY(-50%); display: inline-flex; align-items: baseline; gap: .32rem; padding: .1rem .46rem .12rem; border-radius: 7px; white-space: nowrap; font: 600 .68rem/1.3 var(--rb-font-text); color: var(--rb-ink-2); background: rgba(255, 255, 255, .95); border: 1px solid #C9DDE1; box-shadow: 0 3px 8px -5px rgba(20, 40, 58, .5); }
.rb-wm-lab b { font-weight: 700; color: var(--rb-ink); }
.rb-wm-lab em { font-style: normal; font-weight: 700; color: var(--rb-teal-700); }
.rb-wm--r .rb-wm-lab { left: .66rem; }
.rb-wm--l .rb-wm-lab { right: .66rem; }
.rb-wm--obs .rb-wm-lab { border: 1.5px solid #0F9D8F; }
.rb-wm.is-sel .rb-wm-lab { background: var(--rb-teal-600); border-color: var(--rb-teal-600); }
.rb-wm.is-sel .rb-wm-lab b, .rb-wm.is-sel .rb-wm-lab em { color: #fff; }
.rb-wm.is-sel .rb-wm-dot { transform: scale(1.25); border-color: var(--rb-teal-600); }
.rb-wm.is-late .rb-wm-lab { color: var(--rb-muted); border-color: #D5DCE1; } .rb-wm.is-late .rb-wm-dot { opacity: .7; }
.rb-wm.is-hide .rb-wm-lab, .rb-far .rb-wm-lab { display: none; }
.rb-wm-wrap:hover .rb-wm-dot { transform: scale(1.2); }
.rb-district-wrap.is-hide { visibility: hidden; }
/* loading placeholder (RB.loading) */
.rb-loading { display: grid; gap: .7rem; }
.rb-loading-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: .7rem; }
.rb-loading i { display: block; border-radius: 12px; }
.rb-loading-msg { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--rb-muted); }
.rb-loading-msg .rb-spin { width: 1rem; height: 1rem; border-width: 2px; border-style: solid; border-color: rgba(18, 128, 140, .25); border-top-color: var(--rb-teal-500); }
@media (max-width: 720px) { .rb-loading-row { grid-template-columns: 1fr; } }
.rb-srcsel .rb-select { width: 100%; }
.rb-stn-mark { display: inline-flex; align-items: center; gap: .35rem; transform: translate(-.4rem, -50%); padding: .12rem .55rem .12rem .3rem; border-radius: 999px; background: rgba(255, 255, 255, .95); border: 1.5px solid #1F4E8C; box-shadow: 0 3px 8px -3px rgba(20, 40, 58, .5); font: 700 .7rem/1.3 var(--rb-font-text); color: #1F4E8C; white-space: nowrap; }
.rb-stn-mark i { width: .6rem; height: .6rem; border-radius: 50%; background: #1F4E8C; box-shadow: 0 0 0 3px rgba(31, 78, 140, .2); }
.rb-srcsel .rb-block-title small { font-weight: 500; color: var(--rb-muted); }
.rb-srcsel-info { margin-top: .45rem; font-size: .76rem; line-height: 1.45; color: var(--rb-ink-2); }
.rb-srcsel-info b { color: var(--rb-ink); }
.rb-srcsel-info .is-warn { color: #7A4A00; }
.rb-srcsel-act { margin-top: .5rem; }
.rb-srcsel-act .rb-btn { width: 100%; justify-content: center; }
.rb-srcpick { display: inline-flex; align-items: center; gap: .4rem; font: 600 .78rem/1.2 var(--rb-font-text); color: var(--rb-ink-2); min-width: 0; max-width: 100%; }
.rb-srcpick .rb-select select { max-width: 14.5rem; text-overflow: ellipsis; }
.rb-rng-label, .rb-rng-tick { transform: translate(-50%, -50%); white-space: nowrap; font: 700 .68rem/1.2 var(--rb-font-text); color: #1F4E8C; background: rgba(255, 255, 255, .88); border: 1px solid rgba(31, 78, 140, .45); border-radius: 999px; padding: .1rem .5rem; box-shadow: 0 2px 6px -3px rgba(20, 40, 58, .45); }
.rb-rng-tick { font-weight: 600; font-size: .62rem; padding: 0 .35rem; border-color: rgba(31, 78, 140, .25); background: rgba(255, 255, 255, .72); }
@media (max-width: 720px) { .rb-srcpick .rb-select select { max-width: 12rem; } }
.rb-wm-keyrow { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; padding: 0 1.1rem .65rem; font-size: .74rem; color: var(--rb-ink-2); }
.rb-wm-keyrow > span, .rb-wm-keyrow > button { display: inline-flex; align-items: center; gap: .4rem; }
.rb-wm-keyrow .rb-wm-hint { color: var(--rb-muted); }
.rb-wm-sw { width: .7rem; height: .7rem; box-sizing: border-box; border-radius: 50%; background: #fff; border: 2px solid var(--rb-teal-500); }
.rb-wm-sw--obs { background: #0F9D8F; border-color: #0F9D8F; }
.rb-wm-out { margin-left: auto; padding: .12rem .6rem; border-radius: 999px; border: 1px solid var(--rb-line); background: var(--rb-surface-2); font: 600 .72rem var(--rb-font-text); color: var(--rb-ink-2); cursor: pointer; }
.rb-wm-out + .rb-wm-out { margin-left: 0; }
.rb-wm-out:hover { border-color: var(--rb-gold-300); background: #FFF8E4; }

/* ==========================================================================
   FORECAST
   ========================================================================== */
.rb-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-bottom: .9rem; }
.rb-strip-item { display: flex; align-items: center; gap: .9rem; padding: .8rem 1.1rem; background: #fff; border: 1px solid var(--rb-line); border-radius: 14px; box-shadow: var(--rb-shadow-1); }
/* the three facts now sit inside the matrix card, above its table: they used to be three wide cards that were 60% empty and left the
   matrix card ~85px shorter than the detail panel beside it */
.rb-strip--in { gap: .6rem; margin: 0 0 .8rem; }
.rb-strip--in .rb-strip-item { padding: .5rem .8rem; gap: .7rem; background: var(--rb-surface-2); border-color: var(--rb-line-2); box-shadow: none; }
.rb-strip--in .rb-strip-ico { width: 2.3rem; height: 2.3rem; }
.rb-strip--in .rb-strip-ico .rb-i { width: 1.3rem; height: 1.3rem; }
.rb-strip--in .rb-strip-big { font-size: 1.3rem; }
.rb-strip-ico { width: 2.9rem; height: 2.9rem; border-radius: .9rem; display: grid; place-items: center; background: var(--rb-gold-50); color: var(--rb-gold-500); flex: none; }
.rb-strip-ico .rb-i { width: 1.6rem; height: 1.6rem; }
.rb-strip-ico.is-watch { background: #FFF3CF; color: #D08A12; }
.rb-strip-big { font: 800 1.55rem/1.15 var(--rb-font-display); }
.rb-strip-big small { font: 600 .9rem var(--rb-font-text); margin-left: .25rem; }
.rb-strip-label { font-size: .82rem; color: var(--rb-muted); line-height: 1.35; }

.rb-fc-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: .9rem; margin-bottom: .9rem; align-items: start; }
.rb-fc-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: .9rem; }
.rb-matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .85rem; }
.rb-matrix th { position: sticky; top: 0; padding: .55rem .5rem; font: 700 .86rem var(--rb-font-display); text-align: center; background: linear-gradient(180deg, #FBF7EA, #F6F0DE); border-bottom: 1px solid var(--rb-line); color: var(--rb-ink-2); white-space: nowrap; }
.rb-matrix th:first-child, .rb-matrix td:first-child { position: sticky; left: 0; z-index: 2; text-align: left; background: #fff; border-right: 1px solid var(--rb-line-2); min-width: 11rem; }
.rb-matrix th:first-child { background: linear-gradient(180deg, #FBF7EA, #F6F0DE); z-index: 3; padding-left: .8rem; }
.rb-matrix td { padding: .35rem .3rem; text-align: center; border-bottom: 1px solid var(--rb-line-2); border-right: 1px solid var(--rb-line-2); min-width: 4.6rem; transition: background .15s; }
.rb-matrix tbody tr:last-child td { border-bottom: 0; }
.rb-matrix td:last-child { border-right: 0; }
.rb-matrix td.is-watch { background: #FFF1CC; }
.rb-matrix td.is-warning { background: #FCDCD9; }
.rb-matrix td.is-now { box-shadow: inset 2px 0 0 rgba(209, 59, 59, .5), inset -2px 0 0 rgba(209, 59, 59, .5); }
.rb-matrix tr.is-sel td:first-child { background: #FFFAEA; box-shadow: inset 4px 0 0 var(--z, var(--rb-gold-400)); }
.rb-matrix tr[data-row] { cursor: pointer; }
.rb-matrix tr[data-row]:hover td:not(.is-watch):not(.is-warning) { background: #FFFDF5; }
.rb-mx-zone { display: flex; align-items: center; gap: .65rem; padding: .35rem .6rem; }
.rb-mx-zone b { display: block; font: 600 .86rem/1.25 var(--rb-font-text); }
.rb-mx-zone small { display: block; font-size: .7rem; color: var(--rb-muted); }
.rb-mx-cell { display: flex; flex-direction: column; align-items: center; gap: 0; }
.rb-mx-cell .rb-wx { width: 2.15rem; height: 2.15rem; }
.rb-mx-cell small { font-size: .66rem; line-height: 1.25; color: var(--rb-muted); }
.rb-mx-cell b { font: 700 .72rem var(--rb-font-text); }
.rb-mx-cell.is-watch small { color: #8A5400; }

.rb-fc-inspector { position: sticky; top: 9.5rem; }
.rb-insp-head { display: flex; align-items: center; gap: .85rem; padding-bottom: .8rem; margin-bottom: .6rem; border-bottom: 1px solid var(--rb-line-2); }
.rb-insp-head .rb-zchip { width: 3.3rem; height: 3.3rem; font-size: 1.8rem; border-radius: .85rem; }
.rb-insp-head h3 { font: 700 1.28rem/1.2 var(--rb-font-display); }
.rb-insp-head small { color: var(--rb-muted); font-size: .84rem; }
.rb-insp-row { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--rb-line-2); }
.rb-insp-row:last-of-type { border-bottom: 0; }
.rb-insp-row .rb-wx { width: 2.6rem; height: 2.6rem; }
.rb-insp-ico { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; color: var(--rb-gold-500); }
.rb-insp-ico .rb-i { width: 1.9rem; height: 1.9rem; stroke-width: 1.5; }
.rb-insp-k { font-size: .78rem; color: var(--rb-muted); }
.rb-insp-v { font: 700 1.05rem/1.3 var(--rb-font-display); }
.rb-insp-v small { font: 500 .78rem var(--rb-font-text); color: var(--rb-muted); }
.rb-insp-side { text-align: right; }
.rb-insp-foot { margin-top: .5rem; padding: .6rem .8rem; border-radius: 10px; background: var(--rb-surface-3); font-size: .78rem; line-height: 1.5; color: var(--rb-ink-2); word-break: break-word; }
.rb-legend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem .6rem; }
.rb-lg { display: flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--rb-ink-2); line-height: 1.25; }
.rb-lg .rb-wx { width: 1.8rem; height: 1.8rem; flex: none; }
.rb-lg i { width: 1.8rem; height: 1rem; border-radius: 4px; flex: none; }
.rb-lg i.is-watch { background: #FFE9AE; border: 1px solid #E8BD55; }
.rb-lg i.is-warning { background: #FBD3CF; border: 1px solid #E59A9C; }
.rb-lg i.is-now { border-left: 2px solid rgba(209, 59, 59, .6); border-right: 2px solid rgba(209, 59, 59, .6); }

/* ==========================================================================
   RISK / SAFE WINDOW
   ========================================================================== */
.rb-safehero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem; align-items: center; margin-bottom: .9rem; }
.rb-safehero-h { font: 800 1.65rem/1.3 var(--rb-font-display); margin: .25rem 0 .4rem; }
.rb-safehero-sub { font-size: .9rem; line-height: 1.55; color: var(--rb-ink-2); }
.rb-windows { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin-bottom: .9rem; }
.rb-window { display: flex; flex-direction: column; gap: .3rem; text-align: left; padding: .8rem .9rem .9rem; border: 1px solid var(--rb-line); border-radius: 14px; background: #fff; box-shadow: var(--rb-shadow-1); transition: transform .22s var(--rb-ease), box-shadow .22s; font: inherit; color: inherit; }
.rb-window:hover { transform: translateY(-3px); box-shadow: var(--rb-shadow-2); }
.rb-window.is-rank-1 { border-color: var(--rb-gold-300); background: linear-gradient(180deg, #FFFEFA, #FFF6DC); box-shadow: 0 0 0 1px rgba(225, 190, 111, .4), 0 16px 30px -16px rgba(185, 138, 51, .6); }
.rb-window-top { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font: 700 .78rem var(--rb-font-text); color: var(--rb-teal-600); }
.rb-window-time { font: 800 1.3rem/1.15 var(--rb-font-display); }
.rb-window-label { font: 600 .82rem/1.35 var(--rb-font-text); color: var(--rb-ink); min-height: 2.2em; }
.rb-meter { height: .5rem; border-radius: 999px; background: #EAE4D2; overflow: hidden; }
.rb-meter > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5BC59B, #17A673); }
.rb-meter > i.is-watch { background: linear-gradient(90deg, #F5C65B, #E0A020); }
.rb-meter > i.is-warning { background: linear-gradient(90deg, #F08A8A, #D64550); }
.rb-window-score { font: 700 .84rem var(--rb-font-text); }
.rb-window-sum { font-size: .74rem; line-height: 1.45; color: var(--rb-muted); }
.rb-slots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(3.5rem, 1fr); gap: .3rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.rb-slot { display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .35rem .15rem; border: 1.5px solid transparent; border-radius: 11px; background: #F5FBF8; font: inherit; color: inherit; transition: transform .18s var(--rb-ease), border-color .18s; }
.rb-slot.is-watch { background: #FFF6DB; }
.rb-slot.is-warning { background: #FDE8E6; }
.rb-slot b { font: 700 .74rem var(--rb-font-text); }
.rb-slot small { font-size: .64rem; color: var(--rb-muted); }
.rb-slot:hover { transform: translateY(-2px); }
.rb-slot.is-sel { border-color: var(--rb-ink); box-shadow: 0 6px 14px -8px rgba(20, 40, 58, .7); background: #fff; }
@media (min-width: 1101px) {
  /* 31 half-hour slots: show all of them in two rows on desktop. */
  .rb-slots { grid-auto-flow: row; grid-template-columns: repeat(16, minmax(0, 1fr)); }
}
.rb-factors { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .8rem; }
.rb-factor-top { display: flex; justify-content: space-between; font: 600 .8rem var(--rb-font-text); margin-bottom: .15rem; }
.rb-factor .rb-meter > i { background: var(--fc, var(--rb-teal-500)); }
.rb-rows { display: flex; flex-direction: column; gap: .45rem; }
.rb-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .5rem .7rem; background: var(--rb-surface-2); border: 1px solid var(--rb-line-2); border-radius: 11px; }
.rb-row-l { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.rb-row b { display: block; font: 700 .86rem/1.3 var(--rb-font-text); }
.rb-row small { display: block; font-size: .74rem; color: var(--rb-muted); }
.rb-roles { display: flex; flex-direction: column; gap: .55rem; }
.rb-role { padding: .6rem .8rem; border-radius: 11px; background: var(--rb-surface-2); border-left: 4px solid var(--rb-gold-400); }
.rb-role b { display: block; font: 700 .86rem var(--rb-font-text); margin-bottom: .1rem; }
.rb-role span { font-size: .82rem; line-height: 1.5; color: var(--rb-ink-2); }

/* ==========================================================================
   SOUNDING
   ========================================================================== */
.rb-snd-controls { margin-bottom: .9rem; display: flex; flex-direction: column; gap: .7rem; }
.rb-snd-badges { display: flex; gap: .45rem; flex-wrap: wrap; }
.rb-snd-row { display: flex; align-items: center; gap: .9rem 1.1rem; flex-wrap: wrap; }
.rb-snd-row .rb-range { flex: 1 1 14rem; min-width: 10rem; }
.rb-readout { margin-top: .6rem; padding: .55rem .85rem; border-radius: 10px; background: var(--rb-surface-3); font-size: .82rem; line-height: 1.5; }
.rb-kpi-val--md { font-size: 1.7rem; }

/* ==========================================================================
   RADAR & SATELLITE
   ========================================================================== */
.rb-radar-grid { display: grid; grid-template-columns: minmax(14.5rem, .66fr) minmax(0, 1.8fr) minmax(18rem, .86fr); gap: .9rem; margin-bottom: .9rem; align-items: stretch; }
.rb-radar-map { min-height: 38rem; }
.rb-layers .rb-card-head { margin-bottom: .5rem; }
.rb-radios { display: flex; flex-direction: column; gap: .4rem; }
.rb-radio { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--rb-line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .18s, background .18s; }
.rb-radio:has(input:checked) { border-color: var(--rb-gold-400); background: linear-gradient(180deg, #FFFEFA, #FFF6DC); box-shadow: 0 0 0 1px rgba(225, 190, 111, .35); }
.rb-radio input { margin: 0; }
.rb-radio-ico { width: 2.3rem; height: 2.3rem; border-radius: .7rem; display: grid; place-items: center; flex: none; }
.rb-radio-ico--green { background: #DDF4E8; color: #17A673; }
.rb-radio-ico--slate { background: #E8EDF2; color: #5E7184; }
.rb-radio-ico--blue { background: #E4EEFC; color: #2C7BE5; }
.rb-radio-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.rb-radio-text b { font: 600 .88rem var(--rb-font-text); }
.rb-radio-text small { font-size: .72rem; color: var(--rb-muted); }
.rb-block { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--rb-line-2); }
.rb-block-title { display: flex; align-items: center; justify-content: flex-start; gap: .4rem; margin-bottom: .45rem; font: 700 .86rem var(--rb-font-display); color: var(--rb-ink-2); }
.rb-block-title .rb-i { width: 1.1rem; height: 1.1rem; margin-right: .25rem; }
.rb-ramp-labels { display: flex; justify-content: space-between; font-size: .7rem; color: var(--rb-muted); margin-top: .25rem; }
.rb-prov .rb-dl { grid-template-columns: 4.2rem 1fr; }
.rb-sat-inset { position: absolute; right: .8rem; bottom: 3rem; z-index: 520; width: min(17rem, 42%); padding: .25rem; border-radius: 14px; background: rgba(255, 255, 255, .96); border: 1px solid var(--rb-line-strong); box-shadow: var(--rb-shadow-2); }
.rb-sat-inset-head { display: flex; justify-content: space-between; align-items: center; padding: .1rem .45rem .25rem; font: 700 .64rem var(--rb-font-display); letter-spacing: .08em; color: var(--rb-ink-2); }
.rb-sat-inset-head b { font-weight: 600; font-family: var(--rb-font-text); letter-spacing: 0; color: var(--rb-muted); }
.rb-sat-inset canvas { width: 100%; aspect-ratio: 1.6; display: block; border-radius: 10px; background: #111A24; }
.rb-ana-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .7rem; }
.rb-tile { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .8rem; border: 1px solid var(--rb-line-2); border-radius: 13px; background: var(--rb-surface-2); }
.rb-tile--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .9rem; }
.rb-tile-k { font-size: .78rem; color: var(--rb-muted); }
.rb-tile-v { font: 800 1.55rem/1.15 var(--rb-font-display); }
.rb-tile-v small { font: 600 .82rem var(--rb-font-text); margin-left: .2rem; }
.rb-tile-ico { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; color: var(--rb-gold-500); }
.rb-tile-ico .rb-i { width: 2.2rem; height: 2.2rem; stroke-width: 1.4; }
.rb-ana-block { padding: .7rem 0 .2rem; border-top: 1px solid var(--rb-line-2); }
.rb-ana-block:first-of-type { border-top: 0; }
.rb-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .9rem; }
.rb-fact { display: flex; align-items: center; gap: .6rem; font-size: .82rem; line-height: 1.3; }
.rb-fact .rb-i { width: 1.5rem; height: 1.5rem; color: var(--rb-gold-500); stroke-width: 1.5; }
.rb-fact small { display: block; color: var(--rb-muted); font-size: .72rem; }
.rb-fact b { font-weight: 600; }
.rb-zone-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.rb-zchip-lg { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .4rem; border-radius: 12px; background: var(--z-soft); border: 1px solid var(--z-chip); font: 600 .8rem/1.25 var(--rb-font-text); }
.rb-zchip-lg .rb-zchip { width: 1.9rem; height: 1.9rem; font-size: 1.05rem; }
.rb-ana-text { font-size: .86rem; line-height: 1.65; color: var(--rb-ink-2); }
.rb-mini-sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.rb-msrc { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .2rem; border: 1px solid var(--rb-line-2); border-radius: 11px; text-align: center; font: 600 .68rem/1.25 var(--rb-font-text); color: var(--rb-ink-2); }
.rb-msrc .rb-i { width: 1.35rem; height: 1.35rem; }
.rb-msrc em { font-style: normal; font-weight: 700; font-size: .72rem; }
.rb-msrc.is-live em { color: var(--rb-normal-ink); } .rb-msrc.is-live .rb-i { color: #17A673; }
.rb-msrc.is-stale em { color: var(--rb-watch-ink); } .rb-msrc.is-stale .rb-i { color: #E0A020; }
.rb-msrc.is-off em { color: var(--rb-unknown-ink); } .rb-msrc.is-off .rb-i { color: #98A3AD; }
.rb-radar-bottom { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: .9rem; }
.rb-anim-row { display: flex; align-items: center; gap: .9rem; }
.rb-anim-body { flex: 1; min-width: 0; }
.rb-anim .rb-thumbs { margin: .1rem 0 .4rem; }
.rb-zone-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } /* 4 zones = 2×2 (auto-fit left a 3+1 orphan) */
@media (min-width: 1900px) { .rb-zone-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rb-analysis { display: flex; flex-direction: column; }
.rb-analysis > .rb-ana-block:last-child { margin-top: auto; } /* the data-status tiles sit at the card's foot; spare height opens up between sections, not under the content */
.rb-zm { display: flex; flex-direction: column; gap: .3rem; padding: .6rem .7rem; border-radius: 13px; background: linear-gradient(180deg, #fff, var(--z-soft)); border: 1px solid var(--z-chip); }
.rb-zm-top { display: flex; align-items: center; gap: .5rem; }
.rb-zm-top b { font: 700 .8rem/1.25 var(--rb-font-text); }
.rb-zm .rb-wx { width: 2.3rem; height: 2.3rem; }
.rb-zm-body { display: flex; align-items: center; gap: .5rem; font-size: .78rem; line-height: 1.35; color: var(--rb-ink-2); }
.rb-zm-body b { display: block; color: var(--rb-ink); }

/* ==========================================================================
   WATER
   ========================================================================== */
.rb-water-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: .9rem; align-items: stretch; }
.rb-water-mapcard { flex: 1 1 auto; display: flex; flex-direction: column; }
.rb-water-mapcard .rb-map-stage { flex: 1; margin: 0 .8rem .8rem; }
.rb-water-side .rb-twin > .rb-card { display: flex; flex-direction: column; }
.rb-water-side .rb-twin > .rb-card > div { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.rb-water-stations { margin-top: .9rem; }
.rb-st-table td, .rb-st-table th { white-space: nowrap; }
.rb-tide-list { display: flex; flex-direction: column; gap: .4rem; }
.rb-tide-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; padding: .4rem .5rem; border-radius: 10px; background: var(--rb-surface-2); border: 1px solid var(--rb-line-2); font-size: .82rem; }
.rb-tide-row .rb-i { width: 1.4rem; height: 1.4rem; color: var(--rb-teal-500); }
.rb-tide-row b { font: 700 .86rem var(--rb-font-display); }
.rb-tide-row small { color: var(--rb-muted); display: block; font-size: .72rem; }
.rb-current { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
.rb-current-dial { position: relative; width: 7.4rem; height: 7.4rem; border-radius: 50%; border: 2px solid var(--rb-teal-100); background: radial-gradient(circle, #fff 55%, #E6F5F6); display: grid; place-items: center; }
.rb-current-dial::before { content: "N"; position: absolute; top: .15rem; font: 700 .62rem var(--rb-font-display); color: var(--rb-faint); }
.rb-current-arrow { width: 3.8rem; height: 3.8rem; color: var(--rb-teal-600); transition: transform .4s var(--rb-ease); }
.rb-current-v { font: 800 1.5rem/1.1 var(--rb-font-display); }
.rb-current-v small { font: 600 .82rem var(--rb-font-text); }
.rb-current-note { font-size: .74rem; color: var(--rb-muted); line-height: 1.4; }

/* ==========================================================================
   ALERTS
   ========================================================================== */
.rb-alerts-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.65fr); gap: .9rem; margin-bottom: .9rem; align-items: start; }
/* the list is shorter than the detail: it follows the reader instead of leaving a hole under itself */
@media (min-width: 1101px) { .rb-alerts-grid > .rb-alert-side { position: sticky; top: 9.5rem; } .rb-alert-side .rb-alert-list { max-height: calc(100vh - 21rem); overflow-y: auto; padding: .15rem .25rem .25rem .1rem; margin: -.15rem -.25rem 0 -.1rem; } }
/* new-alert form: 4 columns on wide screens (title + level + zone / trigger + advice) instead of five full-width rows of 1400px inputs */
@media (min-width: 1101px) { #altForm.rb-form--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } #altForm .rb-field--full { grid-column: span 2; } }
.rb-alert-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.rb-alert-list { display: flex; flex-direction: column; gap: .6rem; }
.rb-alert-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; width: 100%; text-align: left; padding: .75rem .85rem; border: 1px solid var(--rb-line); border-radius: 14px; background: #fff; font: inherit; color: inherit; transition: box-shadow .2s, border-color .2s, transform .2s var(--rb-ease); }
.rb-alert-item:hover { transform: translateY(-1px); box-shadow: var(--rb-shadow-1); }
.rb-alert-item.is-sel { border: 1.5px solid var(--rb-gold-400); background: linear-gradient(180deg, #FFFEFA, #FFF7DE); box-shadow: 0 0 0 3px rgba(225, 190, 111, .22); }
.rb-alert-ico { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: .85rem; background: #FFF1CF; color: #D08A12; }
.rb-alert-ico .rb-i { width: 1.6rem; height: 1.6rem; }
.rb-alert-item.sev-warning .rb-alert-ico { background: #FCE2E0; color: #D64550; }
.rb-alert-item.sev-normal .rb-alert-ico, .rb-alert-item.is-done .rb-alert-ico { background: #ECEFF2; color: #8B97A1; }
.rb-alert-item h3 { font: 700 .98rem/1.3 var(--rb-font-display); }
.rb-alert-item p { font-size: .8rem; color: var(--rb-muted); line-height: 1.4; }
.rb-alert-item .rb-alert-t { display: flex; align-items: center; gap: .35rem; margin-top: .25rem; font-size: .76rem; color: var(--rb-ink-2); }
.rb-alert-item .rb-alert-t .rb-i { width: .95rem; height: .95rem; color: var(--rb-gold-500); }
.rb-alert-detail { padding: 1.05rem 1.2rem 1.15rem; }
.rb-ad-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--rb-line-2); }
.rb-ad-ico { width: 3.6rem; height: 3.6rem; flex: none; filter: drop-shadow(0 4px 5px rgba(185, 120, 15, .3)); }
.rb-ad-title { flex: 1 1 18rem; min-width: 0; }
.rb-ad-title h2 { font: 800 1.4rem/1.3 var(--rb-font-display); }
.rb-ad-title p { color: var(--rb-ink-2); font-size: .92rem; margin-top: .15rem; }
.rb-ad-meta { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.rb-ad-meta > div { display: flex; align-items: center; gap: .55rem; font-size: .78rem; line-height: 1.3; }
.rb-ad-meta .rb-i { width: 1.6rem; height: 1.6rem; color: var(--rb-gold-500); stroke-width: 1.5; }
.rb-ad-meta small { display: block; color: var(--rb-muted); font-size: .72rem; }
.rb-ad-meta b { font-weight: 600; }
.rb-steps { display: flex; align-items: center; gap: .4rem; padding: .55rem .7rem; margin-bottom: .9rem; border: 1px solid var(--rb-line-2); border-radius: 13px; background: var(--rb-surface-2); overflow-x: auto; scrollbar-width: none; }
.rb-step { display: flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .45rem; border-radius: 11px; font-size: .8rem; line-height: 1.25; flex: none; }
.rb-step-dot { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid #CBD2D9; color: #fff; background: #fff; }
.rb-step-dot .rb-i { width: .95rem; height: .95rem; stroke-width: 2.6; }
.rb-step.is-done .rb-step-dot { background: #8B97A1; border-color: #8B97A1; }
.rb-step.is-current { background: var(--rb-gold-grad); box-shadow: 0 1px 0 #FFF6D8 inset, 0 3px 8px -4px rgba(150, 105, 30, .7); font-weight: 700; }
.rb-step.is-current .rb-step-dot { background: var(--rb-ink); border-color: var(--rb-ink); }
.rb-step small { display: block; color: var(--rb-muted); font-size: .7rem; font-weight: 500; }
.rb-step-sep { width: 1.1rem; height: 1px; background: var(--rb-line-strong); flex: none; position: relative; }
/* evidence (two maps) on the left across two rows; the opinion and the affected zones stack on the right. Three equal-height columns left
   two of the panels about 200px empty and made the maps balloon on laptops. */
.rb-alert-panels { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .8rem; margin-bottom: .9rem; align-items: start; }
.rb-alert-panels > .rb-panel:first-child { grid-row: 1 / span 2; }
.rb-alert-panels { grid-template-rows: auto 1fr; }
/* the affected-zones panel takes the rest of the right column and spreads its zone chips over it (no empty strip under it) */
.rb-alert-panels > .rb-panel:nth-child(3) { align-self: stretch; display: flex; flex-direction: column; }
.rb-alert-panels > .rb-panel:nth-child(3) .rb-affected { flex: 1; }
.rb-alert-panels > .rb-panel:nth-child(3) .rb-affected > * { flex: 1 1 auto; }
.rb-panel { padding: .7rem .8rem .8rem; border: 1px solid var(--rb-line-2); border-radius: 13px; background: #fff; min-width: 0; }
.rb-panel h3 { display: flex; align-items: center; gap: .45rem; font: 700 .92rem var(--rb-font-display); margin-bottom: .55rem; }
.rb-panel h3 .rb-i { width: 1.2rem; height: 1.2rem; color: var(--rb-gold-500); }
.rb-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rb-evidence canvas, .rb-evidence .rb-mini-map { width: 100%; aspect-ratio: .95; border-radius: 10px; border: 1px solid var(--rb-line-2); background: #E9EEF2; display: block; }
.rb-mini-map { position: relative; overflow: hidden; }
.rb-mini-map .rb-map { position: absolute; inset: 0; }
.rb-evidence-facts { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .35rem; font-size: .78rem; line-height: 1.4; }
.rb-evidence-facts div { display: flex; gap: .5rem; }
.rb-evidence-facts .rb-i { width: 1.05rem; height: 1.05rem; color: var(--rb-gold-500); margin-top: .12rem; }
.rb-opinion { font-size: .86rem; line-height: 1.7; color: var(--rb-ink-2); }
.rb-opinion b { color: var(--rb-ink); }
.rb-affected { display: flex; flex-direction: column; gap: .4rem; }
.rb-affected .rb-zchip-lg { width: 100%; }
.rb-ad-foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.rb-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.rb-timeline li { position: relative; display: grid; grid-template-columns: 3.6rem 1fr; gap: .7rem; padding: .4rem 0 .4rem 1.2rem; font-size: .8rem; line-height: 1.4; }
.rb-timeline li::before { content: ""; position: absolute; left: .25rem; top: .75rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--rb-gold-400); box-shadow: 0 0 0 3px #FBF1D3; }
.rb-timeline li::after { content: ""; position: absolute; left: .5rem; top: 1.35rem; bottom: -.7rem; width: 1px; background: var(--rb-line-strong); }
.rb-timeline li:last-child::after { display: none; }
.rb-timeline time { font-weight: 700; color: var(--rb-ink); }
.rb-timeline span { color: var(--rb-ink-2); }
.rb-ack-box { display: flex; flex-direction: column; gap: .55rem; }
.rb-ack-btn { width: 100%; padding: .85rem 1rem; font-size: 1.15rem; }
.rb-ack-note { text-align: center; font-size: .78rem; color: var(--rb-muted); }
.rb-channel-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.6rem, 1fr)); gap: .4rem; }
.rb-ch { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem .2rem; border-radius: 11px; border: 1px solid var(--rb-line-2); background: var(--rb-surface-2); font-size: .68rem; text-align: center; color: var(--rb-muted); line-height: 1.25; }
.rb-ch .rb-i { width: 1.3rem; height: 1.3rem; }
.rb-ch.is-on { color: var(--rb-watch-ink); }
.rb-role-note { font-size: .8rem; color: var(--rb-muted); }

/* ==========================================================================
   REPORTS (+ printable A4)
   ========================================================================== */
.rb-reports-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: .9rem; margin-bottom: .9rem; align-items: start; }
.rb-doc-title { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.rb-doc-title .rb-i { color: var(--rb-gold-500); width: 1.4rem; height: 1.4rem; }
.rb-doc-card { background: linear-gradient(180deg, #F3EEDF, #EFE8D4); padding: 1.1rem; }
.rb-doc { background: #fff; color: #1C2A38; border-radius: 4px; padding: 1.7rem 1.9rem 1.5rem; box-shadow: 0 1px 2px rgba(20, 40, 58, .15), 0 22px 40px -22px rgba(20, 40, 58, .55); font-family: var(--rb-font-doc); position: relative; }
.rb-doc::before { content: ""; position: absolute; inset: .55rem; border: 1px solid #E5D4A2; pointer-events: none; }
.rb-doc-head { display: flex; align-items: center; gap: .9rem; padding-bottom: .8rem; margin-bottom: .9rem; border-bottom: 3px double var(--rb-gold-400); }
.rb-doc-head img { width: 4.4rem; height: auto; }
.rb-doc-head h2 { font: 700 1.18rem/1.35 var(--rb-font-doc); }
.rb-doc-head small { display: block; font: 400 .8rem var(--rb-font-text); color: var(--rb-muted); }
.rb-doc-stamp { margin-left: auto; padding: .2rem .8rem; border: 1.5px solid var(--rb-gold-500); border-radius: 4px; font: 700 .72rem var(--rb-font-display); letter-spacing: .1em; color: var(--rb-gold-600); text-transform: uppercase; transform: rotate(-3deg); }
.rb-doc-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font: 400 .8rem var(--rb-font-text); color: var(--rb-muted); margin-bottom: .8rem; }
.rb-doc-meta b { color: var(--rb-ink); font-weight: 600; }
.rb-doc h3 { font: 700 1rem var(--rb-font-doc); margin: .9rem 0 .35rem; color: var(--rb-gold-700); }
.rb-doc-lead { font: 600 1.02rem/1.75 var(--rb-font-doc); }
.rb-doc-rec { margin-top: .8rem; padding: .7rem .9rem; border-left: 4px solid var(--rb-teal-500); background: #F2F9F9; font: 400 .9rem/1.7 var(--rb-font-doc); }
.rb-doc ul { margin: .3rem 0 0; padding-left: 1.2rem; font: 400 .88rem/1.7 var(--rb-font-doc); }
.rb-doc-zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; font-family: var(--rb-font-text); }
.rb-doc-zone { padding: .45rem .55rem; border-radius: 8px; background: var(--z-soft); border: 1px solid var(--z-chip); font: 600 .74rem/1.3 var(--rb-font-text); }
.rb-doc-zone b { display: flex; align-items: center; gap: .4rem; font-size: .8rem; margin-bottom: .2rem; }
.rb-doc-foot { margin-top: 1.1rem; padding-top: .6rem; border-top: 1px solid #E5D4A2; font: 400 .72rem var(--rb-font-text); color: var(--rb-muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   STATIONS
   ========================================================================== */
.rb-stations-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: .9rem; margin-bottom: .9rem; align-items: start; }
.rb-src-cell { display: flex; align-items: center; gap: .65rem; }
.rb-src-cell b { display: block; font: 600 .9rem/1.3 var(--rb-font-text); }
.rb-src-cell small { display: block; color: var(--rb-muted); font-size: .74rem; }
.rb-quality { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .82rem; }
.rb-quality i { width: .6rem; height: .6rem; border-radius: 50%; }
.rb-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.rb-principles--stack { grid-template-columns: 1fr; gap: .6rem; }
.rb-principles--stack .rb-principle { padding: .7rem .9rem; gap: .75rem; }
.rb-principles--stack .rb-principle-ico { width: 2.3rem; height: 2.3rem; }
.rb-principles--stack .rb-principle p { font-size: .8rem; line-height: 1.45; }
.rb-src-fold { cursor: pointer; background: #FBF6E6; }
.rb-src-fold:hover, .rb-src-fold:focus-visible { background: #F6EDCF; }
.rb-src-fold-in { display: flex; align-items: center; gap: .55rem; font-size: .84rem; color: var(--rb-ink-2); }
.rb-src-fold-in .rb-i { width: 1rem; height: 1rem; color: var(--rb-gold-600); }
.rb-src-fold-in span { color: var(--rb-muted); }
.rb-src-fold-in em { margin-left: auto; font-style: normal; font-weight: 600; font-size: .78rem; color: var(--rb-teal-600); }
.rb-principle { display: flex; gap: .9rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 14px; border: 1px solid var(--rb-gold-200); background: linear-gradient(180deg, #FFFEFA, #FFF8E4); }
.rb-principle-ico { width: 2.9rem; height: 2.9rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--rb-gold-grad); color: #4C3508; box-shadow: 0 1px 0 #FFF6D8 inset, 0 6px 12px -6px rgba(150, 105, 30, .8); }
.rb-principle h3 { font: 700 1rem var(--rb-font-display); margin-bottom: .15rem; }
.rb-principle p { font-size: .84rem; line-height: 1.55; color: var(--rb-ink-2); }

/* ==========================================================================
   SETTINGS
   ========================================================================== */
.rb-settings { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.rb-settings-nav { position: sticky; top: 9.5rem; display: flex; flex-direction: column; gap: .2rem; padding: .5rem; background: #fff; border: 1px solid var(--rb-line); border-radius: 16px; box-shadow: var(--rb-shadow-1); }
.rb-settings-nav a { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-radius: 11px; text-decoration: none; font: 600 .92rem var(--rb-font-text); color: var(--rb-ink-2); }
.rb-settings-nav a .rb-i { color: var(--rb-gold-500); }
.rb-settings-nav a:hover { background: var(--rb-gold-50); }
.rb-settings-nav a.is-active { background: var(--rb-gold-grad); color: var(--rb-ink); box-shadow: 0 1px 0 #FFF6D8 inset; }
.rb-settings-nav a.is-active .rb-i { color: var(--rb-ink); }
.rb-settings-body { display: flex; flex-direction: column; gap: .9rem; min-width: 0; max-width: 62rem; } /* rows stay readable: label and control are not a screen apart */
.rb-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .75rem 0; border-top: 1px solid var(--rb-line-2); }
.rb-setting-row b { display: block; font: 600 .95rem var(--rb-font-text); }
.rb-setting-row small { color: var(--rb-muted); font-size: .8rem; }
.rb-channels { display: flex; flex-direction: column; gap: .5rem; }
.rb-channel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .85rem; border: 1px solid var(--rb-line-2); border-radius: 12px; background: var(--rb-surface-2); }
.rb-channel b { display: block; font: 600 .92rem var(--rb-font-text); }
.rb-channel small { color: var(--rb-muted); font-size: .78rem; }
.rb-panel-locked { opacity: .6; }

/* ==========================================================================
   Additions: map labels, approach vector, sources link, radar-page overlays
   ========================================================================== */
.rb-lm-wrap, .rb-stn-wrap, .rb-arrow-wrap, .rb-wm-wrap, .rb-district-wrap, .rb-zmark-wrap, .rb-pin-wrap, .rb-hosp-wrap, .rb-bolt-wrap, .rb-route-arrow-wrap, .rb-approach-wrap, .rb-zlabel-wrap { background: transparent !important; border: 0 !important; }
.rb-lm--r { transform: translate(0, -50%); margin-left: 1rem; }
.rb-lm--l { transform: translate(-100%, -50%); margin-left: -1rem; }
.rb-lm--start { margin-left: 1.2rem; margin-top: -1.1rem; }
.rb-lm--end { margin-left: -1.2rem; margin-top: -1.1rem; }
.rb-route-arrow { width: .9rem; height: .9rem; display: block; filter: drop-shadow(0 1px 1px rgba(110, 70, 10, .5)); }
.rb-bolt { width: 1.25rem; height: 1.25rem; filter: drop-shadow(0 2px 3px rgba(184, 116, 0, .6)); } .rb-bolt.is-old { opacity: .6; filter: saturate(.7) drop-shadow(0 1px 2px rgba(184, 116, 0, .4)); }
.rb-marrow { display: block; width: 20px; height: 20px; fill: var(--c, #5E7A93); stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(20, 40, 58, .45)); }
.rb-radar-img { image-rendering: auto; mix-blend-mode: normal; }
.rb-approach { position: relative; transform: translate(-50%, -50%); white-space: nowrap; padding: .15rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .96); border: 1.5px solid #D64550; box-shadow: 0 6px 12px -6px rgba(214, 69, 80, .6); font: 600 .72rem var(--rb-font-text); color: #9C2227; }
.rb-approach b { font-family: var(--rb-font-display); }
.rb-zlabel { transition: translate .3s var(--rb-ease, ease); display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .7rem .22rem .3rem; border-radius: 12px; background: rgba(255, 255, 255, .97); border: 1.5px solid var(--z); box-shadow: 0 8px 16px -8px rgba(20, 40, 58, .55); transform: translate(0, -50%); white-space: nowrap; }
.rb-zlabel i { font-style: normal; width: 1.6rem; height: 1.6rem; font-size: .95rem; border-radius: .5rem; display: grid; place-items: center; font-family: var(--rb-font-display); font-weight: 800; }
.rb-zlabel span { display: flex; flex-direction: column; line-height: 1.2; }
.rb-zlabel b { font: 700 .8rem var(--rb-font-display); }
.rb-zlabel small { font: 500 .66rem var(--rb-font-text); color: var(--rb-muted); }
.rb-src-more { list-style: none; padding: .1rem .2rem 0; }
.rb-src-more button { border: 0; background: none; padding: .2rem .3rem; font: 600 .82rem var(--rb-font-text); color: var(--rb-teal-600); display: inline-flex; align-items: center; gap: .3rem; }
.rb-src-more button:hover { text-decoration: underline; }
.rb-src-more .rb-i { width: .9rem; height: .9rem; }
.rb-map-stage--radar .leaflet-top.leaflet-left { margin-top: 4.2rem; }
.rb-ov-map .rb-map-stage .leaflet-top.leaflet-left { margin-left: 3.8rem; }
.rb-ov-map .rb-map-stage .leaflet-bottom.leaflet-right { margin-right: calc(min(15.4rem, 33%) + .8rem); }
.rb-alert-panels canvas { width: 100%; aspect-ratio: .95; border-radius: 10px; border: 1px solid var(--rb-line-2); background: #E9EEF2; display: block; }
.rb-alert-panels #altEvMap { aspect-ratio: .95; }
.rb-evidence { align-items: start; }

.rb-pagehead-tools .rb-field > span:first-child { padding-left: .15rem; }
.rb-seg button.is-active small { opacity: .85; }
.rb-ack-btn span { font-family: var(--rb-font-display); }
.rb-approach { display: inline-flex; align-items: center; gap: .3rem; }
.rb-approach .rb-i { width: .9rem; height: .9rem; stroke-width: 2.4; transform: rotate(180deg); }

.rb-risk-map-card { display: flex; flex-direction: column; }
.rb-risk-map-card .rb-map-stage { flex: 1; min-height: 31rem; }
.rb-quality, .rb-st-table td, .rb-table td.rb-num { white-space: nowrap; }
.rb-stations-grid > .rb-st-side { position: sticky; top: 9.5rem; }

/* feather the pastel image into the paper so a wide stage never shows a hard edge */
.rb-basemap-img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%), linear-gradient(180deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%), linear-gradient(180deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%); mask-composite: intersect; }
/* table card fills the column so rows breathe on tall screens */
.rb-ov-forecast { display: flex; flex-direction: column; }
.rb-ov-forecast .rb-table-wrap { flex: 1; display: flex; flex-direction: column; }
.rb-ov-forecast .rb-fctable { flex: 1; height: 100%; }

/* ==========================================================================
   Optional page-header art (drop-in, see assets/art/manifest.json)
   ========================================================================== */
[data-art].has-art { position: relative; isolation: isolate; }
[data-art].has-art::before {
  content: ""; position: absolute; z-index: -1; top: -.55rem; bottom: -.55rem; right: calc(var(--rb-gutter) * -1);
  width: min(60%, 1000px); background: var(--rb-art) var(--rb-art-pos, right center) / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%); mask-image: linear-gradient(90deg, transparent 0, #000 46%);
  pointer-events: none; opacity: .96;
}
[data-art].has-art .rb-lede, [data-art].has-art .rb-h1 { text-shadow: 0 0 14px rgba(247, 243, 232, .9), 0 0 4px rgba(247, 243, 232, .9); }
@media (max-width: 720px) { [data-art].has-art::before { width: 100%; opacity: .35; } }
/* controls stay legible on top of any artwork */
[data-art].has-art .rb-pagehead-tools { padding: .5rem .7rem; background: rgba(255, 253, 247, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(225, 214, 184, .9); border-radius: 16px; box-shadow: 0 10px 24px -16px rgba(111, 78, 20, .55); }
[data-art].has-art.rb-hero .rb-kpis { position: relative; z-index: 1; }
/* full-screen map (toolbar button) */
.rb-map-stage:fullscreen { border-radius: 0; border: 0; min-height: 100vh; margin: 0; background: #F5F2EA; }
.rb-map-stage:fullscreen .rb-map { inset: 0; height: auto; margin: 0; border: 0; border-radius: 0; }

.rb-lm img { width: 1.9rem; height: 1.45rem; object-fit: contain; flex: none; }
/* hero rows (water / alerts): KPI cards turn to frosted glass so the artwork shows through */
[data-art].has-art.rb-hero .rb-kpi { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---- why the status is raised: colour by basis (heavy red · radar amber · lightning orange · cloud blue · model violet) ---- */
.rb-status--watch.rb-basis-lightning { color: #7A3205; background: linear-gradient(180deg, #FFE3CE, #FFC49A); border-color: #E8964F; }
.rb-status--watch.rb-basis-cloud { color: #123F6E; background: linear-gradient(180deg, #E3F0FC, #BCD9F4); border-color: #7DB0E0; }
.rb-status--watch.rb-basis-model { color: #3F2478; background: linear-gradient(180deg, #EEE7FB, #D5C6F2); border-color: #A58BDB; }
.rb-status-why { font-weight: 500; opacity: .85; }
.rb-zcard.is-watch.rb-basis-lightning .rb-zcard-status { background: #FFE3CE; border-color: #E8964F; }
.rb-zcard.is-watch.rb-basis-cloud .rb-zcard-status { background: #DCEBFA; border-color: #7DB0E0; }
.rb-zcard.is-watch.rb-basis-model .rb-zcard-status { background: #E9E1F8; border-color: #A58BDB; }
.rb-fctable tbody tr.is-watch.rb-basis-cloud td:nth-child(4) { background: linear-gradient(180deg, rgba(220, 235, 250, .6), transparent); }
.rb-fctable tbody tr.is-watch.rb-basis-model td:nth-child(4) { background: linear-gradient(180deg, rgba(233, 225, 248, .7), transparent); }
.rb-fctable tbody tr.is-watch.rb-basis-lightning td:nth-child(4) { background: linear-gradient(180deg, rgba(255, 227, 206, .6), transparent); }
.rb-basis-legend { display: flex; flex-wrap: wrap; gap: .35rem .7rem; padding: .55rem .2rem 0; font-size: .74rem; color: var(--rb-ink-2); }
.rb-basis-chip { display: inline-flex; align-items: center; gap: .3rem; }
.rb-basis-chip i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--c, #E0A020); border: 1px solid rgba(0, 0, 0, .12); }
.rb-basis-chip.rb-basis-heavy { --c: #D64550; } .rb-basis-chip.rb-basis-radar { --c: #E0A020; } .rb-basis-chip.rb-basis-lightning { --c: #E8742A; }
.rb-basis-chip.rb-basis-cloud { --c: #3E83C4; } .rb-basis-chip.rb-basis-model { --c: #7B5BC4; }
/* hero callout */
.rb-callout.is-watch.rb-basis-lightning { border-color: #E8964F; background: linear-gradient(180deg, #FFF7F0, #FFE6D2); }
.rb-callout.is-watch.rb-basis-cloud { border-color: #7DB0E0; background: linear-gradient(180deg, #F4F9FE, #DDEBFA); }
.rb-callout.is-watch.rb-basis-model { border-color: #A58BDB; background: linear-gradient(180deg, #F8F5FD, #E7DEF8); }
.rb-callout.is-watch.rb-basis-cloud::after { background: radial-gradient(circle, rgba(125, 176, 224, .4), transparent 70%); }
.rb-callout.is-watch.rb-basis-model::after { background: radial-gradient(circle, rgba(165, 139, 219, .38), transparent 70%); }
.rb-callout.is-watch.rb-basis-cloud .rb-callout-ico--warn, .rb-callout.is-watch.rb-basis-model .rb-callout-ico--warn { filter: hue-rotate(185deg) saturate(.9) drop-shadow(0 4px 5px rgba(40, 90, 160, .3)); }
.rb-callout.is-watch.rb-basis-model .rb-callout-ico--warn { filter: hue-rotate(250deg) saturate(.8) drop-shadow(0 4px 5px rgba(90, 60, 160, .3)); }
/* work-area ring label on the map */
.rb-area-wrap { pointer-events: none; }
.rb-area-label { position: absolute; transform: translate(-50%, -100%); margin-top: -4px; white-space: nowrap; padding: .28rem .6rem; border-radius: 10px; border: 2px solid var(--c, #1F9D6A); background: rgba(255, 255, 255, .95); box-shadow: 0 3px 10px -3px rgba(30, 40, 60, .4); text-align: center; font-size: .78rem; line-height: 1.25; color: #26323f; }
.rb-area-label b { display: block; font-weight: 700; }
.rb-area-label small { display: block; font-size: .7rem; color: #5b6673; }
.rb-area-label.is-ok { border-color: #1F9D6A; }
.rb-why { display: flex; align-items: center; justify-content: center; gap: .3rem; margin-top: .25rem; font-size: .72rem; font-weight: 600; color: var(--rb-ink-2); }
.rb-why i { width: .6rem; height: .6rem; border-radius: 50%; background: #E0A020; }
.rb-why.rb-basis-cloud i { background: #3E83C4; } .rb-why.rb-basis-model i { background: #7B5BC4; } .rb-why.rb-basis-lightning i { background: #E8742A; } .rb-why.rb-basis-heavy i { background: #D64550; }

/* ---- big regional radar preview next to the thumbnails ---- */
.rb-film-body { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.rb-film-main { min-width: 0; }
.rb-bigradar { position: relative; margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px -3px rgba(20, 40, 58, .55), 0 0 0 1px rgba(20, 40, 58, .12); background: #EAF1F3; }
.rb-bigradar canvas { display: block; width: 100%; aspect-ratio: 1.02; }
.rb-bigradar-cap { position: absolute; left: .5rem; bottom: .5rem; right: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; padding: .3rem .55rem; border-radius: 9px; background: rgba(255, 255, 255, .92); font-size: .78rem; box-shadow: 0 2px 6px -2px rgba(20, 40, 58, .4); }
.rb-bigradar-cap b { font-size: 1rem; }
/* what the satellite colours mean (shown in the cloud and combined views) */
.rb-bigradar-key { position: absolute; left: .5rem; right: .5rem; top: .5rem; display: flex; flex-wrap: wrap; gap: .1rem .65rem; padding: .28rem .55rem; border-radius: 9px; background: rgba(255, 255, 255, .9); font: 600 .66rem/1.35 var(--rb-font-text); color: var(--rb-ink-2); box-shadow: 0 2px 6px -2px rgba(20, 40, 58, .4); pointer-events: none; }
.rb-bigradar-key[hidden] { display: none; }
.rb-bigradar-key span { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.rb-bigradar-key i { display: inline-block; width: .85rem; height: .55rem; border-radius: 3px; }
.rb-bigradar-key .k-gen { background: rgba(112, 134, 162, .6); }
.rb-bigradar-key .k-cool { background: #52C4DE; }
.rb-bigradar-key .k-dense { background: #F8B338; }
.rb-bigradar-key .k-conv { background: #DC5678; }
.rb-bigradar-kind { font-weight: 600; color: var(--rb-muted); }
.rb-bigradar-kind.is-forecast { color: #9A6A10; }
.rb-bigradar-cap em { font-style: normal; font-weight: 600; color: var(--rb-ink-2); margin-left: auto; }
@media (max-width: 1100px) { .rb-film-body { grid-template-columns: 1fr; } .rb-bigradar { max-width: 420px; margin-inline: auto; } }
.rb-film-body .rb-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: .5rem; }
.rb-film-main .rb-seg { max-width: 100%; }
.rb-film-main .rb-seg button { padding: .38rem .72rem; font-size: .84rem; }
.rb-film-body .rb-film-row { align-items: flex-start; }
.rb-film-body .rb-thumb b { font-size: .86rem; }
.rb-film-body .rb-thumb small { min-height: 1.2em; }
.rb-film-body .rb-play { margin-top: 1.4rem; }
.rb-film-body .rb-timeline-key { display: none; }
/* basis: observed wind / current over the Navy limits (teal) */
.rb-status--watch.rb-basis-obs { color: #0B4F49; background: linear-gradient(180deg, #DDF5F1, #AEE6DD); border-color: #5CC5B8; }
.rb-zcard.is-watch.rb-basis-obs .rb-zcard-status { background: #DDF5F1; border-color: #5CC5B8; }
.rb-fctable tbody tr.is-watch.rb-basis-obs td:nth-child(4) { background: linear-gradient(180deg, rgba(221, 245, 241, .7), transparent); }
.rb-basis-chip.rb-basis-obs { --c: #0F9D8F; } .rb-why.rb-basis-obs i { background: #0F9D8F; }
.rb-callout.is-watch.rb-basis-obs { border-color: #5CC5B8; background: linear-gradient(180deg, #F3FBF9, #D9F3EF); }
.rb-callout.is-watch.rb-basis-obs::after { background: radial-gradient(circle, rgba(92, 197, 184, .4), transparent 70%); }
.rb-callout.is-watch.rb-basis-obs .rb-callout-ico--warn { filter: hue-rotate(110deg) saturate(.9) drop-shadow(0 4px 5px rgba(15, 120, 110, .3)); }
.rb-th-sub { display: block; font-size: .62rem; font-weight: 500; color: var(--rb-muted); }
.rb-wx3 > div.is-model svg { opacity: .55; }

/* ---- overview map: less clutter. Zone cards hug the top-right instead of covering the whole right edge; legend folds away ---- */
.rb-zone-stack { bottom: auto; width: min(13.6rem, 30%); gap: .4rem; }
.rb-zcard { flex: 0 0 auto; padding: .32rem .6rem .36rem .75rem; }
.rb-zcard-name { font-size: 1rem; } .rb-zcard-seg { font-size: .68rem; }
.rb-zcard-status { margin-top: .12rem; padding: .1rem .45rem; font-size: .76rem; }
.rb-legend-toggle { display: flex; align-items: center; gap: .35rem; width: 100%; padding: 0 0 .3rem; border: 0; background: none; font: 700 .76rem var(--rb-font-text); color: var(--rb-ink); cursor: pointer; }
.rb-legend-toggle .rb-i { width: .9rem; height: .9rem; color: #B9811C; } .rb-legend-chev { margin-left: auto; transition: transform .2s; }
.rb-legend.is-min { padding-bottom: .35rem; } .rb-legend.is-min .rb-legend-toggle { padding-bottom: 0; } .rb-legend.is-min .rb-legend-chev { transform: rotate(-90deg); }
.rb-legend.is-min > div { display: none !important; }

/* ---- risk page: past slots, "next" marker, quick buttons with captions ---- */
.rb-slot.is-past { opacity: .5; filter: saturate(.5); }
.rb-slot.is-now { box-shadow: 0 0 0 2px #D64550 inset; position: relative; }
.rb-slot-now { position: absolute; top: -.55rem; left: 50%; transform: translateX(-50%); padding: 0 .4rem; border-radius: 999px; background: #D64550; color: #fff; font: 700 .6rem/1.5 var(--rb-font-text); font-style: normal; }
#rkQuick button small { display: block; font-size: .58rem; font-weight: 500; opacity: .75; line-height: 1; }

/* ---- alerts page: what the system sees right now ---- */
.rb-altlive { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin: 0 0 1rem; padding: .85rem 1.1rem; border-left: 6px solid #1F9D6A; background: linear-gradient(180deg, #F5FCF8, #E6F6EE); }
.rb-altlive.is-watch { border-left-color: #E0A020; background: linear-gradient(180deg, #FFFBEF, #FFF1CC); }
.rb-altlive.is-warning { border-left-color: #D64550; background: linear-gradient(180deg, #FFF6F5, #FCE2E0); }
.rb-altlive.is-watch.rb-basis-lightning { border-left-color: #E8742A; background: linear-gradient(180deg, #FFF7F0, #FFE6D2); }
.rb-altlive.is-watch.rb-basis-cloud { border-left-color: #3E83C4; background: linear-gradient(180deg, #F4F9FE, #DDEBFA); }
.rb-altlive.is-watch.rb-basis-model { border-left-color: #7B5BC4; background: linear-gradient(180deg, #F8F5FD, #E7DEF8); }
.rb-altlive.is-watch.rb-basis-obs { border-left-color: #0F9D8F; background: linear-gradient(180deg, #F3FBF9, #D9F3EF); }
.rb-altlive-main { display: flex; gap: .8rem; align-items: center; min-width: 0; flex: 1 1 24rem; }
.rb-altlive-ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(40, 30, 10, .2); flex: none; }
.rb-altlive-ico .rb-i { width: 1.5rem; height: 1.5rem; }
.rb-altlive small { display: block; font-size: .7rem; color: var(--rb-muted); }
.rb-altlive h3 { font: 700 1.1rem/1.25 var(--rb-font-display); color: var(--rb-ink); }
.rb-altlive p { font-size: .82rem; color: var(--rb-ink-2); } .rb-altlive-area { margin-top: .1rem; font-weight: 600; }
.rb-altlive-side { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.rb-altlive-zs { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; } .rb-altlive-z { display: inline-flex; align-items: center; gap: .25rem; }
.rb-altlive-z .rb-status { font-size: .68rem; padding: .08rem .45rem; }
@media (max-width: 720px) { .rb-altlive-side { align-items: stretch; width: 100%; } .rb-altlive-zs { justify-content: flex-start; } }


/* ---- advice card (js/rb-advice.js): sources, cross-check, role actions; basis colour of a single-station status ------------------------------ */
.rb-status--watch.rb-basis-station { color: #6E1F47; background: linear-gradient(180deg, #FBE7F1, #F2C3DB); border-color: #D98BB4; }
.rb-zcard.is-watch.rb-basis-station .rb-zcard-status { background: #F8DCEA; border-color: #D98BB4; }
.rb-fctable tbody tr.is-watch.rb-basis-station td:nth-child(4) { background: linear-gradient(180deg, rgba(248, 220, 234, .7), transparent); }
.rb-basis-chip.rb-basis-station { --c: #B83C7A; }
.rb-callout.is-watch.rb-basis-station { border-color: #D98BB4; background: linear-gradient(180deg, #FEF6FA, #F8DCEA); }
.rb-callout.is-watch.rb-basis-station::after { background: radial-gradient(circle, rgba(217, 139, 180, .4), transparent 70%); }
.rb-why.rb-basis-station i { background: #B83C7A; }
.rb-altlive.is-watch.rb-basis-station { border-left-color: #B83C7A; background: linear-gradient(180deg, #FEF6FA, #F8DCEA); }
.rb-callout.is-stale { border-color: #C9A66B; background: linear-gradient(180deg, #FBF6EA, #F1E4C6); }
.rb-callout.is-stale .rb-callout-meta { color: #7A4A00; font-weight: 600; }
.rb-advice { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.rb-advice .rb-card-head { align-items: center; flex-wrap: wrap; gap: .5rem .9rem; }
.rb-advice .rb-card-title small { margin-left: .5rem; font-weight: 500; color: var(--rb-muted); font-size: .72rem; }
.rb-adv-grade { margin-left: auto; font-size: .76rem; padding: .22rem .7rem; border-radius: 999px; border: 1px solid var(--rb-line, #d9d2c0); background: #fff; color: var(--rb-ink-2); cursor: help; }
.rb-adv-grade b { font-weight: 700; }
.rb-adv-grade.is-high { background: #E4F5EA; border-color: #8CCBA3; color: #145A36; }
.rb-adv-grade.is-medium { background: #FFF4D6; border-color: #E3C26A; color: #6B4A00; }
.rb-adv-grade.is-low { background: #FDE6D6; border-color: #E5A57A; color: #7A3410; }
.rb-adv-grade.is-na { background: #ECEEF0; border-color: #C3C9CF; color: #4A5560; }
.rb-adv-top { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-size: .9rem; }
.rb-adv-top > b { font-weight: 700; color: var(--rb-ink); }
.rb-adv-top > span { color: var(--rb-ink-2); font-size: .82rem; min-width: 0; flex: 1 1 18rem; }
.rb-adv-why { margin: 0; font-size: .76rem; color: var(--rb-ink-2); }
.rb-adv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.2rem; align-items: start; }
.rb-adv-col h3, .rb-adv-h { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; color: var(--rb-ink); }
.rb-adv-col h3 small, .rb-adv-h small { font-weight: 500; color: var(--rb-muted); margin-left: .35rem; font-size: .7rem; }
.rb-adv-srcs, .rb-adv-cc, .rb-adv-caveats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .45rem; }
.rb-adv-src { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--rb-line, #d9d2c0); background: #fff; font-size: .74rem; line-height: 1.25; max-width: 100%; }
.rb-adv-src i { width: .55rem; height: .55rem; border-radius: 50%; background: #2F9E6B; flex: none; }
.rb-adv-src small { color: var(--rb-muted); font-size: .68rem; }
.rb-adv-src.is-decides { border-color: #B8892B; box-shadow: 0 0 0 2px rgba(200, 148, 30, .18); font-weight: 600; }
.rb-adv-src.is-context i { background: #7C8EA3; }
.rb-adv-src.is-excluded { opacity: .62; background: #F4F2EC; }
.rb-adv-src.is-excluded i { background: #B9B3A4; }
.rb-adv-ccstate { margin: 0 0 .4rem; font-size: .8rem; color: var(--rb-ink-2); }
.rb-adv-ccstate.is-station_higher, .rb-adv-ccstate.is-station_lower { color: #7A3410; font-weight: 600; }
.rb-adv-cc { flex-direction: column; flex-wrap: nowrap; gap: .2rem; }
.rb-adv-cc li { display: grid; grid-template-columns: minmax(5.5rem, 8rem) 1fr auto; gap: .5rem; font-size: .74rem; align-items: baseline; }
.rb-adv-cc li span { color: var(--rb-ink-2); min-width: 0; }
.rb-adv-cc li em { font-style: normal; color: var(--rb-muted); font-size: .68rem; }
.rb-adv-cc li.is-station_more_severe em, .rb-adv-cc li.is-station_less_severe em { color: #7A3410; font-weight: 600; }
.rb-adv-esc { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .5rem; padding: .5rem .65rem; border-radius: .6rem; background: #FBE7F1; border: 1px solid #D98BB4; font-size: .78rem; color: #6E1F47; }
.rb-adv-esc svg { width: 1rem; height: 1rem; flex: none; margin-top: .1rem; }
.rb-adv-station { margin-top: .65rem; padding: .6rem .75rem; border-radius: .7rem; border: 1px dashed #C9B98F; background: rgba(255, 250, 238, .7); display: flex; flex-direction: column; gap: .25rem; font-size: .76rem; color: var(--rb-ink-2); }
.rb-adv-station h4 { margin: 0 0 .15rem; font-size: .8rem; display: flex; align-items: center; gap: .35rem; color: var(--rb-ink); }
.rb-adv-station h4 small { font-weight: 500; color: var(--rb-muted); font-size: .68rem; }
.rb-adv-station h4 svg { width: 1rem; height: 1rem; }
.rb-adv-station p { margin: 0; }
.rb-adv-st-warn { display: flex; gap: .4rem; color: #7A3410; font-weight: 600; }
.rb-adv-st-warn svg { width: 1rem; height: 1rem; flex: none; }
.rb-adv-st-verdict b { color: var(--rb-ink); }
.rb-adv-st-verdict.is-approaching b, .rb-adv-st-verdict.is-covering b { color: #7A3410; }
.rb-adv-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.rb-adv-role { padding: .65rem .8rem; border-radius: .8rem; border: 1px solid var(--rb-line, #d9d2c0); background: #fff; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.rb-adv-role h4 { margin: 0; font-size: .82rem; color: var(--rb-ink); }
.rb-adv-role ul { margin: 0; padding: 0 0 0 1rem; display: flex; flex-direction: column; gap: .3rem; font-size: .76rem; color: var(--rb-ink); }
.rb-adv-role li small { display: block; color: var(--rb-muted); font-size: .66rem; }
.rb-adv-role li.is-fact { color: var(--rb-ink-2); list-style: none; margin-left: -1rem; font-size: .72rem; }
.rb-adv-recheck { color: var(--rb-muted); font-size: .68rem; margin-top: auto; }
.rb-adv-caveats { flex-direction: column; flex-wrap: nowrap; gap: .15rem; font-size: .72rem; color: var(--rb-ink-2); }
.rb-adv-caveats li::before { content: "ⓘ "; color: var(--rb-muted); }
.rb-adv-foot { display: flex; gap: .4rem; align-items: center; margin: 0; }
.rb-adv-foot svg { width: .9rem; height: .9rem; flex: none; }
@media (max-width: 1024px) { .rb-adv-roles { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .rb-adv-grid { grid-template-columns: 1fr; } .rb-adv-grade { margin-left: 0; } .rb-adv-cc li { grid-template-columns: 1fr; gap: 0; } }

.rb-role .rb-role-fact { display: block; font-size: .76rem; color: var(--rb-muted); }
.rb-role .rb-role-act { display: block; margin-top: .25rem; color: var(--rb-ink); }
.rb-role .rb-role-act small { display: block; font-size: .68rem; color: var(--rb-muted); }
.rb-role .rb-role-ref { display: block; margin-top: .3rem; font-size: .66rem; color: var(--rb-muted); }

.rb-altlive-flag { margin-top: .2rem; padding: .3rem .55rem; border-radius: .5rem; background: #FBE7F1; border: 1px solid #D98BB4; color: #6E1F47; }
.rb-altlive-ev { margin-top: .1rem; font-size: .74rem; color: var(--rb-muted); }

/* ---- play button: `.rb button { color: inherit }` (0,1,1) used to beat `.rb-play { color: #fff }` (0,1,0): a dark triangle on a dark disc ---------------- */
.rb .rb-play { color: #fff; }
.rb .rb-play .rb-i { width: 1.3rem; height: 1.3rem; }
.rb .rb-play:focus-visible { outline: 3px solid var(--rb-gold-400, #E3B54F); outline-offset: 2px; }
.rb-anim-row { align-items: flex-start; }
.rb-anim-row .rb-play { margin-top: 2rem; }
@media (max-width: 720px) { .rb-anim-row .rb-play { width: 2.6rem; height: 2.6rem; margin-top: 2.1rem; } }
/* overview film on a phone: the lone disc left a blank row; a labelled pill uses the row and says what it does */
@media (max-width: 720px) {
  #ovFilmPlay { width: auto; height: 2.6rem; border-radius: 999px; padding: 0 1.15rem 0 .9rem; grid-auto-flow: column; gap: .5rem; margin-top: 0; align-self: flex-start; font: 600 .86rem var(--rb-font-text); }
  #ovFilmPlay::after { content: "เล่นภาพเรดาร์ต่อเนื่อง"; }
  #ovFilmPlay[aria-pressed="true"]::after { content: "หยุดเล่น"; }
}

/* advice card on wide screens: keep rows readable (no 900px gap between a station name and its verdict), no stretched status bar, station block on its own row */
.rb-adv-top .rb-status { flex: none; width: auto; min-width: 7rem; justify-content: center; }
.rb-adv-cc { max-width: 40rem; }
.rb-adv-cc li { grid-template-columns: 6.5rem minmax(0, 1fr) auto; }
.rb-adv-station { max-width: 60rem; }
.rb-adv-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }

/* ---- advice card v2: summary first, actions second, everything else behind a click ------------------------------------------------------------ */
.rb-advice { gap: .85rem; }
.rb-adv-ref { margin-left: .6rem; color: var(--rb-muted); font-size: .72rem; }
.rb-adv-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem 1.2rem; align-items: center; }
.rb-adv-sum-main { display: flex; gap: .8rem; align-items: flex-start; min-width: 0; }
.rb-adv-sum-main .rb-status { flex: none; }
.rb-adv-sum-main b { display: block; font-size: 1rem; color: var(--rb-ink); }
.rb-adv-sum-main p { margin: .15rem 0 0; font-size: .84rem; color: var(--rb-ink-2); }
.rb-adv-sum-conf { display: flex; flex-direction: column; gap: .05rem; padding: .45rem .9rem; border-radius: .8rem; border: 1px solid var(--rb-line, #d9d2c0); background: #fff; min-width: 12rem; max-width: 18rem; }
.rb-adv-sum-conf small { font-size: .68rem; color: var(--rb-muted); }
.rb-adv-sum-conf b { font-size: 1.05rem; }
.rb-adv-sum-conf span { font-size: .7rem; color: var(--rb-ink-2); line-height: 1.35; }
.rb-adv-sum-conf.is-high { background: #E4F5EA; border-color: #8CCBA3; color: #145A36; }
.rb-adv-sum-conf.is-medium { background: #FFF4D6; border-color: #E3C26A; color: #6B4A00; }
.rb-adv-sum-conf.is-low { background: #FDE6D6; border-color: #E5A57A; color: #7A3410; }
.rb-adv-sum-conf.is-na { background: #ECEEF0; border-color: #C3C9CF; color: #4A5560; }
.rb-adv-basis, .rb-adv-ccline { margin: 0; font-size: .82rem; color: var(--rb-ink-2); }
.rb-adv-ccline.is-warn { color: #7A3410; font-weight: 600; }
.rb-adv-muted { color: var(--rb-muted); }
.rb-adv-acts { list-style: none; padding: 0; }
.rb-adv-acts li { padding-left: 0; }
.rb-adv-role { gap: .45rem; }
.rb-adv-acts li > span { display: block; font-size: .8rem; line-height: 1.45; }
.rb-adv-facts summary, .rb-adv-more summary { cursor: pointer; font-size: .74rem; color: var(--rb-ink-2); }
.rb-adv-facts ul { margin: .3rem 0 0; padding-left: 1rem; font-size: .72rem; color: var(--rb-muted); }
.rb-adv-more { display: flex; flex-direction: column; gap: .35rem; border-top: 1px solid var(--rb-line, #e6dfcc); padding-top: .6rem; }
.rb-adv-more details { padding: .15rem 0; }
.rb-adv-more summary { font-weight: 600; font-size: .78rem; }
.rb-adv-more details[open] > summary { margin-bottom: .4rem; }
.rb-adv-list { margin: 0; padding-left: 1.1rem; font-size: .76rem; color: var(--rb-ink-2); display: flex; flex-direction: column; gap: .2rem; }
table.rb-adv-cc { width: 100%; max-width: 44rem; border-collapse: collapse; font-size: .76rem; display: table; }
table.rb-adv-cc th { text-align: left; font-weight: 700; padding: .2rem .6rem .2rem 0; white-space: nowrap; width: 7rem; }
table.rb-adv-cc td { padding: .2rem .6rem .2rem 0; color: var(--rb-ink-2); }
table.rb-adv-cc td:last-child { color: var(--rb-muted); text-align: right; }
@media (max-width: 860px) { .rb-adv-sum { grid-template-columns: 1fr; } .rb-adv-sum-conf { max-width: none; } }

.rb-advice .rb-adv-role .rb-adv-acts { padding: 0; margin: 0; gap: .5rem; }
.rb-adv-station { max-width: none; }

.rb-adv-why { display: flex; flex-direction: column; gap: .3rem; padding: .55rem .8rem; border-radius: .7rem; background: rgba(255, 250, 238, .7); border: 1px solid var(--rb-line, #e6dfcc); }

/* ---- overview bottom row: room under the advice card, bigger radar picture, data-source card hidden (the Stations page lists them) ------------------ */
.rb-advice { margin-bottom: 1.5rem; }
.rb-ov-bottom .rb-sources { display: none; }
.rb-ov-bottom { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.rb-film-body { grid-template-columns: minmax(300px, 46%) minmax(0, 1fr); }
@media (min-width: 901px) and (max-width: 1500px) { .rb-ov-bottom .rb-river { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .rb-film-body { grid-template-columns: 1fr; } .rb-bigradar { max-width: 560px; } }
@media (min-width: 1101px) and (max-width: 1500px) {
  .rb-ov-bottom .rb-film-body { grid-template-columns: minmax(300px, 38%) minmax(0, 1fr); }
  .rb-ov-bottom .rb-film-body .rb-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rb-ov-bottom .rb-film-body .rb-film-row { align-items: flex-start; }
}

/* ---- overview map controls, overlays and arrows: clearer, glassier, out of the way ------------------------------------------------------------- */
.rb-map .leaflet-bar { border: 1px solid rgba(255, 255, 255, .7); border-radius: 14px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2); box-shadow: 0 8px 22px -10px rgba(20, 40, 58, .55), 0 0 0 1px rgba(20, 40, 58, .08); }
.rb-map .leaflet-bar a { width: 2.6rem; height: 2.6rem; line-height: 2.5rem; font: 500 1.5rem/2.5rem var(--rb-font-text); color: var(--rb-ink); background: transparent; border-bottom: 1px solid rgba(20, 40, 58, .1); transition: background .15s; }
.rb-map .leaflet-bar a:last-child { border-bottom: 0; }
.rb-map .leaflet-bar a:hover { background: rgba(255, 244, 214, .9); color: #8A5A14; }
.rb-map .leaflet-bar a:focus-visible { outline: 3px solid var(--rb-gold-400, #E3B54F); outline-offset: -3px; }
.rb-map-btn { width: 2.6rem; height: 2.6rem; border-radius: 14px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2); border-color: rgba(255, 255, 255, .75); box-shadow: 0 8px 22px -10px rgba(20, 40, 58, .55), 0 0 0 1px rgba(20, 40, 58, .08); color: var(--rb-ink); }
.rb-map-btn svg { width: 1.25rem; height: 1.25rem; }
.rb-map-btn:hover, .rb-map-btn.is-active { background: rgba(255, 244, 214, .95); color: #8A5A14; }
.rb-map-btn:focus-visible { outline: 3px solid var(--rb-gold-400, #E3B54F); outline-offset: 2px; }
.rb-ov-map .rb-map-stage .leaflet-bottom.leaflet-right { margin-right: .8rem; margin-bottom: 1.7rem; }
.rb-ov-map .rb-map-stage .leaflet-top.leaflet-left { margin-left: 4.2rem; }
.rb-compass { filter: drop-shadow(0 4px 8px rgba(20, 40, 58, .35)); }
/* no CSS filter here: on a 2226x3669 px overlay scaled to a full-screen map some GPUs drop the layer and the radar vanishes */
.rb-radar-img, .rb-sat-img { filter: none; }

.rb-marrow { width: 28px; height: 28px; stroke: #fff; stroke-width: 2.4; paint-order: stroke fill; filter: drop-shadow(0 2px 3px rgba(20, 40, 58, .55)); }
.rb-opacity { display: grid; grid-template-columns: 1fr auto; gap: .15rem .6rem; align-items: center; margin: .15rem 0 .35rem 1.7rem; font-size: .76rem; color: var(--rb-ink-2); }
.rb-opacity input[type=range] { grid-column: 1; width: 100%; accent-color: #C8941E; }
.rb-opacity output { grid-column: 2; grid-row: 2; font-size: .72rem; color: var(--rb-muted); min-width: 2.4rem; text-align: right; }
@media (max-width: 1100px) { .rb-ov-map .rb-map-stage .leaflet-bottom.leaflet-right { margin-right: .6rem; } }

/* ---- advice card v3: the bottom of the card is a two-column "basis / cross-check" box and ONE bar of detail buttons (was: four full-width rows) ------- */
.rb-adv-why { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.rb-adv-why-cell { display: flex; flex-direction: column; gap: .2rem; padding: .6rem .95rem; min-width: 0; }
.rb-adv-why-cell + .rb-adv-why-cell { border-left: 1px solid var(--rb-line, #e6dfcc); }
.rb-adv-why-cell > small { font-size: .68rem; font-weight: 700; letter-spacing: .02em; color: var(--rb-muted); }
.rb-adv-why-cell.is-warn > small { color: #7A3410; }
.rb-adv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; border-top: 1px solid var(--rb-line, #e6dfcc); padding-top: .75rem; }
.rb-adv-tabs { display: flex; flex-wrap: wrap; gap: .45rem; min-width: 0; }
/* `.rb button { font: inherit; color: inherit }` is (0,1,1): the extra `.rb` keeps the tab's own font and colour */
.rb .rb-adv-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .34rem .75rem .34rem .85rem; border-radius: 999px; border: 1px solid var(--rb-line-strong, #D9C58F); background: #fff; font: 600 .78rem/1.2 var(--rb-font-text); color: var(--rb-ink-2); cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.rb-adv-tab em { font-style: normal; font-weight: 700; font-size: .68rem; padding: .02rem .42rem; border-radius: 999px; background: var(--rb-gold-100, #F6EACB); color: #6B4A00; }
.rb-adv-tab .rb-i { width: .8rem; height: .8rem; transition: transform .2s; }
.rb-adv-tab:hover { border-color: var(--rb-gold-400, #D2A64A); background: var(--rb-gold-50, #FBF6E6); }
.rb-adv-tab.is-open { background: var(--rb-gold-100, #F6EACB); border-color: var(--rb-gold-400, #D2A64A); color: var(--rb-ink); box-shadow: 0 0 0 3px rgba(225, 190, 111, .25); }
.rb-adv-tab.is-open .rb-i { transform: rotate(180deg); }
.rb-adv-tab:focus-visible { outline: 3px solid var(--rb-gold-400, #D2A64A); outline-offset: 2px; }
.rb-adv-bar .rb-adv-foot { margin-left: auto; }
.rb-adv-panel { padding: .8rem .95rem; border-radius: .8rem; background: rgba(255, 250, 238, .7); border: 1px solid var(--rb-line, #e6dfcc); }
.rb-adv-panel[hidden] { display: none; }
.rb-adv-panel .rb-adv-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: .4rem 2rem; }
.rb-adv-panel .rb-adv-list li { position: relative; padding-left: .95rem; line-height: 1.45; }
.rb-adv-panel .rb-adv-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .42rem; height: .42rem; border-radius: 50%; background: var(--rb-gold-400, #D2A64A); }
.rb-adv-sts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .5rem; }
.rb-adv-sts li { display: flex; flex-direction: column; gap: .1rem; padding: .5rem .75rem; border-radius: .7rem; background: #fff; border: 1px solid var(--rb-line, #e6dfcc); font-size: .76rem; min-width: 0; }
.rb-adv-sts li b { font-size: .82rem; color: var(--rb-ink); }
.rb-adv-sts li span { color: var(--rb-ink-2); }
.rb-adv-sts li em { font-style: normal; font-size: .68rem; color: var(--rb-muted); }
.rb-adv-sts li.is-agree em::before { content: "✓ "; color: #2F9E6B; font-weight: 700; }
.rb-adv-sts li.is-station_more_severe, .rb-adv-sts li.is-station_less_severe { background: #FFF7F0; border-color: #E5A57A; }
.rb-adv-sts li.is-station_more_severe em, .rb-adv-sts li.is-station_less_severe em { color: #7A3410; font-weight: 600; }
@media (max-width: 860px) {
  .rb-adv-why { grid-template-columns: 1fr; }
  .rb-adv-why-cell + .rb-adv-why-cell { border-left: 0; border-top: 1px solid var(--rb-line, #e6dfcc); }
  .rb-adv-bar .rb-adv-foot { margin-left: 0; flex-basis: 100%; }
}

/* ---- radar page: wide overview inset (country base map + radar / cloud + the ceremony corridor), own switch, shows the main map's view --------------- */
.rb-sat-inset { width: min(19.5rem, 44%); padding: .3rem .3rem .35rem; border-radius: 16px; }
.rb-sat-inset-head { letter-spacing: 0; font: 700 .72rem var(--rb-font-text); }
.rb-sat-inset-head b { font-size: .66rem; }
.rb-inset-stage { position: relative; border-radius: 11px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(20, 40, 58, .14); }
.rb-sat-inset .rb-inset-stage canvas { width: 100%; aspect-ratio: 1.3; display: block; border-radius: 0; background: #EAF1F3; }
.rb-sat-inset .rb-inset-stage .rb-inset-view { position: absolute; inset: 0; height: 100%; background: transparent; cursor: crosshair; }
.rb-inset-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem; margin-top: .3rem; padding: .15rem; border-radius: 999px; background: #F1EAD6; }
.rb .rb-inset-seg button { padding: .22rem .2rem; border: 0; border-radius: 999px; background: transparent; font: 600 .68rem/1.2 var(--rb-font-text); color: var(--rb-ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.rb .rb-inset-seg button:hover { background: rgba(255, 255, 255, .6); }
.rb .rb-inset-seg button.is-active { background: #fff; color: var(--rb-ink); box-shadow: 0 1px 4px rgba(20, 40, 58, .25); }
.rb .rb-inset-seg button:focus-visible { outline: 2px solid var(--rb-gold-400, #D2A64A); outline-offset: 1px; }
@media (max-width: 720px) { .rb-sat-inset { width: 54%; } .rb-sat-inset-head { display: flex; } .rb-sat-inset-head span { display: none; } .rb-sat-inset-head b { font-size: .58rem; } .rb .rb-inset-seg button { font-size: .6rem; padding: .18rem 0; } }

/* the cloud picture is a pale veil: a slightly calmer base map under it (both Leaflet maps, only while the satellite layer is on) */
.rb-sat-on .leaflet-tile-pane { filter: saturate(.62) brightness(.98); transition: filter .3s; }

