
:root{
  --bg:#050a0f;
  --bg2:#09131d;
  --panel:#0b1621;
  --panel2:#0e1c29;
  --line:#1d3345;
  --text:#eaf4fb;
  --muted:#7f9aad;
  --cyan:#49d9ff;
  --green:#42e87b;
  --amber:#ffc44d;
  --orange:#ff8f39;
  --red:#ff5656;
  --blue:#79a8ff;
  --shadow:0 18px 50px rgba(0,0,0,.28);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 25% 0%,rgba(39,126,168,.12),transparent 28rem),
    linear-gradient(180deg,var(--bg),#07111a 45%,var(--bg));
  color:var(--text);
  min-height:100vh;
}
button,a{font:inherit}
button{cursor:pointer}
.app-shell{max-width:1500px;margin:auto;padding:18px 18px 60px}
.topbar{
  min-height:72px;display:flex;align-items:center;gap:36px;
  border-bottom:1px solid var(--line);margin-bottom:18px;
}
.brand{font-weight:900;font-size:25px;letter-spacing:-1px}
.brand span{color:var(--cyan)}
.tagline{font-size:11px;color:var(--muted);margin-top:1px}
.desktop-nav{display:flex;gap:24px;margin-left:22px}
.desktop-nav a,.mobile-nav a{color:#91a6b5;text-decoration:none}
.desktop-nav a{font-size:13px;padding:26px 2px 22px;border-bottom:2px solid transparent}
.desktop-nav a.active{color:#fff;border-color:var(--cyan)}
.top-status{margin-left:auto;font-size:12px;color:#b8c8d2;display:flex;gap:8px;align-items:center}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.dot.online{background:var(--green);box-shadow:0 0 12px rgba(66,232,123,.65)}
.panel{
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(14,28,41,.96),rgba(8,18,28,.96));
  border-radius:14px;
  box-shadow:var(--shadow);
}
.hero-grid{display:grid;grid-template-columns:1fr;gap:14px}
.hero-card,.station-card,.watch-panel,.bands-panel,.map-panel,.activity-panel{padding:18px}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#94adbe}
.hero-status{display:flex;justify-content:space-between;align-items:flex-start;margin-top:4px}
.hero-status h1{font-size:48px;line-height:.95;margin:8px 0;color:var(--green);letter-spacing:-2px}
.hero-status p{color:#a8bac6;margin:8px 0 0}
.condition-orb{font-size:34px;color:var(--green);filter:drop-shadow(0 0 10px rgba(66,232,123,.5))}
.best-label{margin-top:28px;color:#829bad;font-size:11px;font-weight:800}
.best-now{
  margin-top:9px;padding:15px;border-radius:11px;border:1px solid #284252;
  background:linear-gradient(90deg,rgba(39,93,111,.18),rgba(18,37,51,.35));
  display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center
}
.band-badge{font-size:32px;font-weight:900;color:var(--cyan)}
.best-copy{display:flex;flex-direction:column;gap:2px}
.best-copy strong{font-size:17px}
.best-copy span{font-size:12px;color:#9bb0be}
.quality-pill,.status-pill{
  border:1px solid rgba(66,232,123,.45);color:var(--green);
  border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;
  background:rgba(66,232,123,.08)
}
.reason-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.reason-row span{font-size:11px;color:#9db3c1;border:1px solid #233a4b;padding:5px 8px;border-radius:999px}
.action-row{display:flex;gap:9px;margin-top:18px}
.primary,.secondary{
  border-radius:9px;padding:11px 15px;font-weight:800;border:1px solid transparent
}
.primary{background:var(--cyan);color:#031019}
.secondary{background:#0b1721;color:#dcebf3;border-color:#284052}
.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.panel-title-row h2{font-size:16px;margin:5px 0 0}
.rig-name{font-size:15px;color:#a9bfcc;margin-top:19px}
.frequency{font-size:34px;font-weight:900;letter-spacing:-1px;margin-top:10px}
.frequency small{font-size:12px;color:#8fa8b8;font-weight:700}
.mode-line{display:flex;gap:10px;align-items:center;margin-top:10px;color:#a9bac5;font-size:13px}
.rx{font-weight:900;color:var(--green);padding:5px 7px;border:1px solid rgba(66,232,123,.25);border-radius:6px}
.meter{height:9px;background:#071019;border:1px solid #1d3345;border-radius:999px;margin-top:22px;overflow:hidden}
.meter-fill{height:100%;width:48%;background:linear-gradient(90deg,var(--green),var(--amber));border-radius:inherit}
.meter-caption{display:flex;justify-content:space-between;color:#7792a4;font-size:10px;margin-top:5px}
.meter-caption strong{color:#dceaf2}
.station-note{font-size:10px;line-height:1.45;color:#678092;margin-top:18px}
.content-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);gap:14px;margin-top:14px}
.lower-grid{grid-template-columns:minmax(0,1.55fr) minmax(320px,.45fr)}
.text-btn{background:none;border:0;color:var(--cyan);font-size:12px}
.watch-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}
.watch-item{
  border:1px solid #263d4e;border-radius:10px;padding:13px;
  display:grid;grid-template-columns:1fr auto;gap:8px;background:rgba(5,13,20,.45)
}
.watch-call{font-size:18px;font-weight:900}
.watch-sub{font-size:11px;color:#9ab0bd;margin-top:2px}
.watch-meta{font-size:11px;color:#7f98a8;margin-top:10px;line-height:1.55}
.watch-score{font-size:22px;font-weight:900;color:var(--green);text-align:right}
.watch-reason{font-size:10px;color:var(--green);border:1px solid rgba(66,232,123,.3);padding:3px 5px;border-radius:5px;display:inline-block;margin-top:4px}
.band-list{display:flex;flex-direction:column;gap:11px;margin-top:16px}
.band-row{display:grid;grid-template-columns:50px 1fr 80px;align-items:center;gap:10px}
.band-row strong{font-size:14px}
.band-state{text-align:right;font-size:11px;font-weight:900}
.band-track{height:8px;background:#061019;border:1px solid #203748;border-radius:999px;overflow:hidden}
.band-fill{height:100%;border-radius:inherit;background:var(--green)}
.band-row[data-state="GOOD"] .band-fill{background:var(--green)}
.band-row[data-state="FAIR"] .band-fill{background:var(--amber)}
.band-row[data-state="POOR"] .band-fill{background:var(--red)}
.band-row[data-state="EXCELLENT"] .band-fill{background:linear-gradient(90deg,var(--green),var(--cyan))}
.map-placeholder{
  position:relative;height:260px;border:1px solid #203647;border-radius:10px;overflow:hidden;margin-top:14px;
  background:
    radial-gradient(ellipse at 25% 55%,rgba(57,110,150,.22),transparent 35%),
    radial-gradient(ellipse at 68% 48%,rgba(66,232,123,.12),transparent 34%),
    linear-gradient(180deg,#08141e,#071019);
}
.world-lines{
  position:absolute;inset:0;opacity:.5;
  background-image:
   linear-gradient(rgba(85,126,150,.09) 1px,transparent 1px),
   linear-gradient(90deg,rgba(85,126,150,.09) 1px,transparent 1px);
  background-size:38px 38px;
}
.path,.qth{
  position:absolute;border-radius:999px;font-weight:900;font-size:11px;display:grid;place-items:center
}
.qth{right:21%;top:58%;width:34px;height:34px;background:var(--cyan);color:#031019;box-shadow:0 0 25px rgba(73,217,255,.35)}
.path{width:42px;height:42px;background:#132737;border:1px solid #31506a;color:#d6e7f0}
.path-eu{left:52%;top:34%;border-color:rgba(66,232,123,.7);color:var(--green)}
.path-ja{right:9%;top:38%;border-color:rgba(255,196,77,.8);color:var(--amber)}
.path-na{left:14%;top:31%;border-color:rgba(121,168,255,.75);color:var(--blue)}
.map-summary{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}
.map-summary span{font-size:11px;color:#9fb4c1}
.mode-activity{display:flex;flex-direction:column;gap:12px;margin-top:17px}
.mode-row{display:grid;grid-template-columns:60px 1fr auto;gap:10px;align-items:center}
.mode-row span{font-size:12px}
.mode-level{height:7px;background:#061019;border-radius:999px;overflow:hidden}
.mode-level b{height:100%;display:block;border-radius:inherit;background:var(--cyan)}
.mode-row strong{font-size:11px;color:#cfe0e9}
.conditions-mini{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:22px}
.conditions-mini div{border:1px solid #213849;border-radius:8px;padding:10px}
.conditions-mini span{display:block;font-size:9px;color:#7891a3}
.conditions-mini strong{display:block;font-size:14px;margin-top:3px}
.fineprint{color:#60798a;font-size:10px;line-height:1.45;margin:12px 0 0}
.muted{font-size:11px;color:#668093}
.mobile-nav{display:none}
.toast{
  position:fixed;right:22px;bottom:22px;background:#102331;border:1px solid #2e4b5f;color:#dff4ff;
  padding:12px 14px;border-radius:10px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);pointer-events:none;
  transition:.2s ease;font-size:12px
}
.toast.show{opacity:1;transform:none}

@media (max-width: 900px){
  .app-shell{padding:12px 12px 88px}
  .desktop-nav{display:none}
  .topbar{min-height:60px;margin-bottom:12px}
  .brand{font-size:21px}
  .tagline{display:none}
  .hero-grid,.content-grid,.lower-grid{grid-template-columns:1fr}
  .station-card{order:2}
  .watch-list{grid-template-columns:1fr}
  .hero-card,.station-card,.watch-panel,.bands-panel,.map-panel,.activity-panel{padding:15px}
  .hero-status h1{font-size:42px}
  .best-now{grid-template-columns:auto 1fr;align-items:start}
  .quality-pill{grid-column:1/-1;justify-self:start}
  .reason-row{gap:5px}
  .action-row{display:grid;grid-template-columns:1fr 1fr}
  .map-placeholder{height:220px}
  .mobile-nav{
    display:grid;grid-template-columns:repeat(4,1fr);
    position:fixed;left:0;right:0;bottom:0;z-index:20;
    padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    background:rgba(5,12,18,.94);backdrop-filter:blur(18px);border-top:1px solid #203748
  }
  .mobile-nav a{display:flex;flex-direction:column;gap:2px;align-items:center;font-size:10px;padding:5px}
  .mobile-nav a span{font-size:17px}
  .mobile-nav a.active{color:var(--cyan)}
}
@media (max-width: 520px){
  .top-status{font-size:10px}
  .hero-card{min-height:auto}
  .best-copy strong{font-size:15px}
  .frequency{font-size:30px}
  .band-row{grid-template-columns:44px 1fr 70px}
}

.inline-demo{
  display:inline-block;margin-left:7px;padding:2px 6px;border-radius:999px;
  border:1px solid rgba(255,196,77,.35);background:rgba(255,196,77,.07);
  color:var(--amber);font-size:9px;letter-spacing:.05em;vertical-align:1px
}
.live-badge{
  border-color:rgba(66,232,123,.4);color:var(--green);background:rgba(66,232,123,.08)
}
.live-badge.offline{
  border-color:rgba(255,196,77,.4);color:var(--amber);background:rgba(255,196,77,.08)
}

.band-state small{
  display:block;
  margin-top:2px;
  color:#668093;
  font-size:8px;
  font-weight:600;
}
.mode-row.no-feed{
  opacity:.55;
}
.mode-row.no-feed .mode-level b{
  width:0 !important;
  background:#526776;
}

.recommendation-note{
  margin-top:9px;
  color:#627f91;
  font-size:10px;
  line-height:1.45;
}
.best-label .status-pill,
.eyebrow .status-pill{
  margin-left:7px;
  letter-spacing:0;
}

.watch-empty{
  margin-top:15px;
  border:1px dashed #294457;
  border-radius:10px;
  padding:18px;
  color:#88a2b3;
  font-size:12px;
  line-height:1.55;
  text-align:center;
}
.watch-item.live-match{
  border-color:rgba(66,232,123,.36);
  background:
    radial-gradient(circle at 95% 12%,rgba(66,232,123,.08),transparent 11rem),
    rgba(5,13,20,.45);
}
.watch-match-type{
  display:inline-block;
  margin-top:7px;
  border:1px solid rgba(73,217,255,.25);
  color:var(--cyan);
  border-radius:999px;
  padding:3px 6px;
  font-size:9px;
}
.watch-hit{
  font-size:12px;
  font-weight:900;
  color:var(--green);
  text-align:right;
}
.watch-mode{
  font-size:9px;
  color:#7994a5;
  margin-top:4px;
  text-align:right;
}
.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:50;
  background:rgba(0,5,9,.76);
  backdrop-filter:blur(9px);
  display:grid;
  place-items:center;
  padding:16px;
}
.modal-backdrop[hidden]{display:none}
.modal-card{
  width:min(640px,100%);
  max-height:min(760px,88vh);
  overflow:auto;
  border:1px solid #28465a;
  border-radius:15px;
  background:linear-gradient(180deg,#0c1924,#07111a);
  box-shadow:0 28px 90px rgba(0,0,0,.55);
  padding:18px;
}
.modal-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.modal-head h2{margin:4px 0 0;font-size:20px}
.icon-btn{
  border:1px solid #294457;
  border-radius:9px;
  background:#09151e;
  color:#d6e7f0;
  width:34px;height:34px;
  font-size:22px;
}
.modal-intro{
  color:#7993a4;
  font-size:11px;
  line-height:1.5;
}
.watch-form{
  display:grid;
  grid-template-columns:140px 1fr auto;
  gap:9px;
  align-items:end;
  margin-top:16px;
}
.watch-form label{
  color:#8ea7b7;
  font-size:10px;
  font-weight:700;
}
.watch-form select,.watch-form input{
  width:100%;
  display:block;
  margin-top:5px;
  height:40px;
  border:1px solid #294457;
  border-radius:8px;
  background:#07121b;
  color:#eaf4fb;
  padding:0 10px;
  outline:none;
}
.watch-form input:focus,.watch-form select:focus{
  border-color:var(--cyan);
}
.continent-quick{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.continent-quick button{
  border:1px solid #294457;
  background:#08141e;
  color:#9cb2c0;
  border-radius:999px;
  padding:6px 10px;
}
.watch-manager-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:17px;
}
.watch-manager-item{
  display:grid;
  grid-template-columns:86px 1fr auto;
  gap:8px;
  align-items:center;
  border:1px solid #203849;
  border-radius:8px;
  padding:9px 10px;
}
.watch-manager-type{
  font-size:9px;
  color:var(--cyan);
}
.watch-manager-value{
  font-weight:800;
  font-size:12px;
}
.remove-watch{
  border:0;
  background:none;
  color:#ff7777;
  font-size:11px;
}
.watch-limit-note{
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid #1d3345;
  color:#607d8f;
  font-size:10px;
  line-height:1.5;
}
@media(max-width:600px){
  .watch-form{
    grid-template-columns:1fr;
  }
}

/* ===== v0.5.1 Visual polish ===== */
.hf-map-v2{
  position:relative;
  height:330px;
  margin-top:14px;
  border:1px solid #20394a;
  border-radius:12px;
  overflow:hidden;
  background:
    radial-gradient(circle at 73% 62%,rgba(73,217,255,.10),transparent 20%),
    radial-gradient(circle at 53% 35%,rgba(66,232,123,.08),transparent 24%),
    linear-gradient(180deg,#08141e,#061019 72%);
}
.hf-map-v2:before{
  content:"";
  position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(91,136,160,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(91,136,160,.07) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.92),rgba(0,0,0,.35));
}
.world-svg{
  position:absolute;
  inset:24px 20px 48px;
  width:calc(100% - 40px);
  height:calc(100% - 72px);
}
.continents path{
  fill:#0b2230;
  stroke:#1d4558;
  stroke-width:2;
  opacity:.75;
}
.path-lines path{
  fill:none;
  stroke:rgba(73,217,255,.35);
  stroke-width:2;
  stroke-dasharray:8 8;
  filter:drop-shadow(0 0 5px rgba(73,217,255,.14));
}
.path-lines path.hot{
  stroke:rgba(66,232,123,.85);
  stroke-width:3;
  stroke-dasharray:none;
  filter:drop-shadow(0 0 10px rgba(66,232,123,.32));
}
.map-glow{
  position:absolute;border-radius:50%;
  pointer-events:none;
  filter:blur(18px);
}
.map-glow-main{
  width:240px;height:240px;
  right:10%;bottom:-90px;
  background:rgba(73,217,255,.07);
}
.region-node{
  position:absolute;
  width:52px;height:52px;
  border:1px solid #32576e;
  border-radius:50%;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  background:rgba(7,21,31,.88);
  backdrop-filter:blur(8px);
  box-shadow:0 0 0 6px rgba(16,42,55,.16);
  transition:.2s ease;
}
.region-node.active{
  border-color:rgba(66,232,123,.72);
  box-shadow:0 0 0 7px rgba(66,232,123,.07),0 0 25px rgba(66,232,123,.12);
}
.region-node .node-code{font-size:9px;color:#7f9fb3;font-weight:800}
.region-node b{font-size:16px;color:#eaf4fb;margin-top:1px}
.node-na{left:13%;top:30%}
.node-eu{left:54%;top:29%}
.node-as{right:22%;top:34%}
.node-oc{right:10%;bottom:15%}
.node-af{left:48%;bottom:19%}
.qth-node{
  position:absolute;
  right:24%;bottom:23%;
  width:62px;height:62px;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:var(--cyan);
  color:#031019;
  box-shadow:0 0 0 8px rgba(73,217,255,.08),0 0 28px rgba(73,217,255,.24);
  font-weight:900;
}
.qth-node span{font-size:16px}
.qth-node small{font-size:7px;letter-spacing:.12em}
.map-caption{
  position:absolute;
  left:18px;bottom:14px;
  display:flex;flex-direction:column;
  gap:2px;
  max-width:55%;
}
.map-caption strong{font-size:12px}
.map-caption span{font-size:9px;color:#68879a}
.region-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.region-card{
  border:1px solid #20394a;
  border-radius:9px;
  padding:9px 10px;
  background:rgba(5,14,21,.45);
}
.region-card .r-top{
  display:flex;justify-content:space-between;gap:8px;align-items:center;
}
.region-card strong{font-size:13px}
.region-card b{font-size:13px;color:var(--green)}
.region-card small{
  display:block;margin-top:3px;color:#69879a;font-size:8px;
}
.activity-panel-v2{
  display:flex;
  flex-direction:column;
}
.activity-kpi-row{
  display:grid;
  grid-template-columns:1fr 122px;
  gap:10px;
  align-items:center;
  margin-top:14px;
}
.activity-total{
  border:1px solid #213c4e;
  border-radius:10px;
  padding:13px;
  background:linear-gradient(180deg,rgba(12,30,42,.65),rgba(5,15,22,.36));
}
.activity-total span{
  display:block;color:#6f8da0;font-size:8px;font-weight:800;letter-spacing:.11em;
}
.activity-total strong{
  display:block;font-size:40px;line-height:1;margin-top:5px;letter-spacing:-2px;
}
.activity-total small{
  display:block;color:#637f90;font-size:8px;margin-top:5px;
}
.mode-donut-wrap{
  display:flex;justify-content:center;
}
.mode-donut{
  --cw:0deg;
  --digital:0deg;
  --phone:0deg;
  width:104px;height:104px;border-radius:50%;
  background:
    conic-gradient(
      #49d9ff 0deg var(--cw),
      #42e87b var(--cw) var(--digital),
      #ffc44d var(--digital) var(--phone),
      #284556 var(--phone) 360deg
    );
  display:grid;place-items:center;
  box-shadow:0 0 30px rgba(73,217,255,.08);
}
.mode-donut:before{
  content:"";
  grid-area:1/1;
  width:72px;height:72px;border-radius:50%;
  background:#08141e;border:1px solid #1e394a;
}
.mode-donut-center{
  grid-area:1/1;
  z-index:1;
  display:flex;flex-direction:column;align-items:center;
}
.mode-donut-center strong{font-size:11px}
.mode-donut-center small{font-size:7px;color:#708b9d}
.mode-activity-v2{margin-top:16px}
.mode-activity-v2 .mode-row{
  grid-template-columns:54px 1fr 64px;
}
.solar-summary{
  margin-top:20px;
  border-top:1px solid #1d3345;
  padding-top:14px;
}
.solar-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:8px;
}
.solar-head span{
  color:#6f8da0;font-size:8px;font-weight:800;letter-spacing:.11em;
}
.solar-head strong{
  color:var(--green);font-size:9px;
}
.solar-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:7px;
}
.solar-grid div{
  border:1px solid #213849;border-radius:8px;padding:9px;
}
.solar-grid span{display:block;font-size:8px;color:#6f8da0}
.solar-grid strong{display:block;font-size:13px;margin-top:2px}

@media(max-width:900px){
  .hf-map-v2{height:300px}
  .region-strip{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .hf-map-v2{height:280px}
  .region-node{width:46px;height:46px}
  .qth-node{width:54px;height:54px}
  .map-caption{max-width:70%}
}

/* ===== v0.5.2 Station Profile / Pre-register ===== */
.profile-pill{
  border-color:rgba(73,217,255,.35);
  color:var(--cyan);
  background:rgba(73,217,255,.07);
}
.station-setup h2{
  font-size:18px;
  margin:19px 0 3px;
}
.station-setup>p{
  color:#7894a5;
  font-size:10px;
  line-height:1.45;
  margin:0 0 14px;
}
.station-fields{
  display:grid;
  grid-template-columns:1fr 95px;
  gap:8px;
}
.station-fields label{
  color:#7894a5;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
}
.station-fields input{
  width:100%;
  height:39px;
  margin-top:5px;
  border:1px solid #294557;
  border-radius:8px;
  background:#07121b;
  color:#eaf4fb;
  padding:0 10px;
  outline:none;
  font-weight:800;
  text-transform:uppercase;
}
.station-fields input:focus{
  border-color:var(--cyan);
}
.focus-label{
  margin-top:14px;
  color:#698698;
  font-size:8px;
  font-weight:800;
  letter-spacing:.10em;
}
.chip-group{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:6px;
}
.chip-group button{
  border:1px solid #284456;
  border-radius:999px;
  background:#07131c;
  color:#8da8b8;
  padding:5px 8px;
  font-size:9px;
}
.chip-group button.selected{
  color:#041319;
  background:var(--cyan);
  border-color:var(--cyan);
  font-weight:900;
}
.beta-consent{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:7px;
  align-items:start;
  margin-top:15px;
  color:#6e8a9b;
  font-size:9px;
  line-height:1.4;
}
.beta-consent input{
  accent-color:var(--cyan);
  margin-top:2px;
}
.station-save{
  width:100%;
  margin-top:11px;
}
.profile-privacy{
  color:#587486 !important;
  font-size:8px !important;
  margin-top:8px !important;
}
.profile-call{
  margin-top:18px;
  font-size:30px;
  line-height:1;
  font-weight:900;
  color:#eaf4fb;
  letter-spacing:-1px;
}
.profile-grid{
  color:var(--cyan);
  font-size:11px;
  margin-top:6px;
}
.profile-focus-block{
  margin-top:19px;
  padding-top:12px;
  border-top:1px solid #1d3545;
}
.profile-focus-block>span{
  display:block;
  color:#678596;
  font-size:8px;
  font-weight:800;
  letter-spacing:.10em;
}
.saved-focus{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:7px;
}
.saved-focus span{
  padding:5px 8px;
  border:1px solid rgba(73,217,255,.25);
  background:rgba(73,217,255,.06);
  color:#aeeeff;
  border-radius:999px;
  font-size:9px;
  font-weight:800;
}
.profile-actions{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:20px;
}
.profile-actions .secondary{
  flex:1;
}
.danger-text{color:#ff7777}
.station-next{
  display:flex;
  gap:7px;
  align-items:flex-start;
  margin-top:16px;
  color:#5f7b8d;
  font-size:8px;
  line-height:1.45;
}
.station-next .dot{
  flex:none;
  margin-top:2px;
}

/* ===== v0.5.3 Collapsible station drawer ===== */
.station-drawer-wrap{
  margin-bottom:14px;
}
.station-drawer{
  overflow:hidden;
}
.station-drawer-bar{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 18px;
  border:0;
  background:
    linear-gradient(90deg,rgba(73,217,255,.06),rgba(10,21,31,.2));
  color:inherit;
  text-align:left;
}
.drawer-bar-left{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.drawer-bar-left strong{
  font-size:18px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.drawer-bar-left small{
  color:#7d98aa;
  font-size:11px;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.drawer-bar-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex:none;
}
.drawer-chevron{
  color:#9ab4c4;
  font-size:18px;
  transition:transform .22s ease;
}
.station-drawer.open .drawer-chevron{
  transform:rotate(180deg);
}
.station-drawer-body{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .28s ease, opacity .18s ease, padding .18s ease;
  padding:0 18px;
}
.station-drawer.open .station-drawer-body{
  max-height:900px;
  opacity:1;
  padding:0 18px 18px;
}
.station-drawer .station-setup h2,
.station-drawer .profile-call{
  margin-top:14px;
}
.station-drawer.collapsed-ready .station-setup,
.station-drawer.collapsed-ready .station-profile{
  margin-top:0;
}
.drawer-focus-inline{
  display:inline-flex;
  gap:6px;
  flex-wrap:wrap;
}
@media (max-width: 900px){
  .station-drawer-bar{
    padding:12px 14px;
    align-items:flex-start;
  }
  .drawer-bar-left strong{
    font-size:16px;
  }
  .drawer-bar-left small{
    white-space:normal;
  }
}

/* ===== v0.5.4 Personal focus + compact watch ===== */
.watch-panel.compact-watch .watch-list{
  grid-template-columns:1fr 1fr;
}
.watch-panel.compact-watch .watch-item:nth-child(n+5){
  display:none;
}
.watch-panel.show-all-watch .watch-item:nth-child(n+5){
  display:grid;
}
.watch-preview-footer{
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid #1d3345;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#708d9f;
  font-size:10px;
}
.personal-recommendation{
  border-color:rgba(73,217,255,.55) !important;
  box-shadow:inset 0 0 0 1px rgba(73,217,255,.05);
}
.personal-focus-pill{
  border-color:rgba(73,217,255,.38) !important;
  color:var(--cyan) !important;
  background:rgba(73,217,255,.08) !important;
}
.network-alt{
  margin-top:8px;
  color:#647f90;
  font-size:9px;
  line-height:1.4;
}
@media(max-width:900px){
  .watch-panel.compact-watch .watch-list{
    grid-template-columns:1fr;
  }
  .watch-panel.compact-watch .watch-item:nth-child(n+4){
    display:none;
  }
  .watch-panel.show-all-watch .watch-item:nth-child(n+4){
    display:grid;
  }
}

/* ===== v0.5.5 Trust layer / drill-down ===== */
.source-link{
  border:0;
  background:none;
  color:var(--cyan);
  font-size:9px;
  padding:0;
  margin-left:7px;
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:3px;
}
.source-block-link{
  display:inline-block;
  margin:7px 0 0;
}
.band-row{
  cursor:pointer;
  border-radius:7px;
  padding:5px 4px;
  margin:-5px -4px;
  transition:background .16s ease;
}
.band-row:hover{
  background:rgba(73,217,255,.055);
}
.band-row:focus-visible{
  outline:1px solid var(--cyan);
}
.activity-total{
  cursor:pointer;
}
.provenance-strip{
  margin-top:14px;
  border:1px solid #1d3547;
  border-radius:12px;
  background:linear-gradient(90deg,rgba(73,217,255,.035),rgba(8,18,27,.78));
  padding:13px 15px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
}
.provenance-strip>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.provenance-strip strong{
  font-size:13px;
}
.provenance-strip small{
  color:#6f8b9d;
  font-size:9px;
}
.compact-btn{
  padding:7px 10px;
  font-size:10px;
}
.evidence-modal-card{
  width:min(980px,100%);
}
.evidence-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
}
.evidence-kpi{
  border:1px solid #213c4f;
  border-radius:9px;
  padding:10px;
  background:#07131c;
}
.evidence-kpi span{
  display:block;
  color:#6d899b;
  font-size:8px;
  letter-spacing:.08em;
  font-weight:800;
}
.evidence-kpi strong{
  display:block;
  margin-top:4px;
  font-size:14px;
  word-break:break-word;
}
.evidence-body{
  margin-top:14px;
}
.evidence-note{
  border:1px solid #223e50;
  border-radius:9px;
  padding:10px 12px;
  color:#8fa8b7;
  font-size:10px;
  line-height:1.5;
  background:rgba(7,18,27,.6);
}
.evidence-table-wrap{
  margin-top:10px;
  overflow:auto;
  border:1px solid #20394a;
  border-radius:10px;
}
.evidence-table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
  font-size:10px;
}
.evidence-table th{
  text-align:left;
  color:#7591a2;
  font-size:8px;
  letter-spacing:.08em;
  padding:9px 10px;
  border-bottom:1px solid #20394a;
  background:#08141e;
  position:sticky;
  top:0;
}
.evidence-table td{
  padding:9px 10px;
  border-bottom:1px solid rgba(31,57,73,.6);
  color:#c7d9e3;
  vertical-align:top;
}
.evidence-table tbody tr:hover{
  background:rgba(73,217,255,.04);
}
.source-card-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:10px;
}
.source-card{
  border:1px solid #203a4b;
  border-radius:10px;
  padding:12px;
  background:rgba(7,18,27,.58);
}
.source-card h3{
  margin:0;
  font-size:13px;
}
.source-card .source-role{
  color:var(--cyan);
  font-size:9px;
  margin-top:3px;
}
.source-card p{
  color:#7c98a8;
  font-size:9px;
  line-height:1.5;
  margin:8px 0 0;
}
.source-card .source-fields{
  color:#9eb4c1;
  font-size:9px;
  margin-top:8px;
}
.method-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}
.method-item{
  border-left:2px solid #2b5368;
  padding-left:10px;
}
.method-item strong{
  font-size:10px;
}
.method-item p{
  margin:3px 0 0;
  color:#7894a4;
  font-size:9px;
  line-height:1.5;
}
@media(max-width:700px){
  .evidence-summary{grid-template-columns:1fr 1fr}
  .source-card-grid{grid-template-columns:1fr}
  .provenance-strip{align-items:flex-start}
}

/* ===== v0.5.6 Auto refresh / live rendering ===== */
.top-status{
  gap:9px;
}
.refresh-state{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 7px;
  border:1px solid rgba(66,232,123,.22);
  border-radius:999px;
  color:#8fc5a2;
  background:rgba(66,232,123,.045);
}
.refresh-state small{
  color:#648674;
  font-size:8px;
}
.refresh-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--green);
  box-shadow:0 0 8px rgba(66,232,123,.55);
}
.refresh-state.refreshing .refresh-dot{
  animation:refreshPulse .8s infinite alternate;
}
.refresh-state.paused{
  border-color:rgba(255,196,77,.25);
  color:var(--amber);
}
.refresh-state.paused .refresh-dot{
  background:var(--amber);
  box-shadow:none;
}
.refresh-state.error{
  border-color:rgba(255,86,86,.3);
  color:#ff8e8e;
}
.refresh-state.error .refresh-dot{
  background:var(--red);
}
.top-status-divider{
  width:1px;height:14px;background:#244052;
}
.live-update-line{
  height:2px;
  margin:-19px 0 16px;
  border-radius:999px;
  overflow:hidden;
  opacity:0;
  background:linear-gradient(90deg,transparent,var(--cyan),var(--green),transparent);
  transform:scaleX(.1);
  transform-origin:left;
}
.live-update-line.flash{
  animation:liveLine 1.1s ease;
}
.data-changed{
  animation:dataChanged .9s ease;
}
@keyframes refreshPulse{
  from{opacity:.35;transform:scale(.8)}
  to{opacity:1;transform:scale(1.25)}
}
@keyframes liveLine{
  0%{opacity:0;transform:scaleX(.06)}
  20%{opacity:.9}
  75%{opacity:.45;transform:scaleX(1)}
  100%{opacity:0;transform:scaleX(1)}
}
@keyframes dataChanged{
  0%{box-shadow:inset 0 0 0 1px rgba(73,217,255,.0)}
  25%{box-shadow:inset 0 0 0 1px rgba(73,217,255,.28),0 0 18px rgba(73,217,255,.07)}
  100%{box-shadow:inset 0 0 0 1px rgba(73,217,255,.0)}
}
@media(max-width:520px){
  .refresh-state{
    padding:3px 6px;
  }
  .refresh-state small{
    display:none;
  }
  .top-status-divider{
    display:none;
  }
}

/* ===== v0.5.7 PSKReporter evidence ===== */
.psk-profile-block{
  margin-top:17px;
  padding-top:13px;
  border-top:1px solid #1d3545;
}
.psk-profile-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.psk-profile-head>div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.psk-profile-head strong{
  font-size:12px;
}
.psk-profile-kpis{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin-top:9px;
}
.psk-profile-kpis>div{
  border:1px solid #203b4c;
  border-radius:8px;
  background:#07131c;
  padding:8px;
}
.psk-profile-kpis span{
  display:block;
  font-size:7px;
  color:#6d899b;
  font-weight:800;
  letter-spacing:.07em;
}
.psk-profile-kpis strong{
  display:block;
  margin-top:3px;
  font-size:18px;
}
.psk-profile-kpis small{
  display:block;
  color:#577587;
  font-size:7px;
}
#pskStatusBadge.live{
  color:var(--green);
  border-color:rgba(66,232,123,.4);
  background:rgba(66,232,123,.07);
}
#pskStatusBadge.stale{
  color:var(--amber);
  border-color:rgba(255,196,77,.4);
  background:rgba(255,196,77,.07);
}
@media(max-width:520px){
  .psk-profile-kpis{grid-template-columns:1fr 1fr 1fr}
}

/* ==========================================================
   v0.6.0 — HF COMMAND UI
   Real map • floating station • network truth + personal focus
   ========================================================== */

:root{
  --panel-glow:rgba(73,217,255,.07);
  --panel-border:#1d394b;
}
body{
  background:
    radial-gradient(circle at 14% -10%,rgba(42,148,193,.13),transparent 31rem),
    radial-gradient(circle at 88% 10%,rgba(31,103,137,.07),transparent 25rem),
    linear-gradient(180deg,#04090e 0%,#07111a 48%,#050a0f 100%);
}
.app-shell{max-width:1580px;padding-top:12px}
.topbar{
  min-height:64px;
  margin-bottom:14px;
  background:rgba(4,11,17,.72);
  backdrop-filter:blur(16px);
  position:sticky;
  top:0;
  z-index:35;
}
.desktop-nav{align-self:stretch;align-items:center}
.desktop-nav .nav-button{
  appearance:none;
  border:0;
  background:none;
  color:#91a6b5;
  font-size:13px;
  padding:26px 2px 22px;
  cursor:pointer;
}
.desktop-nav .nav-button:hover{color:#fff}
.station-top-chip{
  border:1px solid #254759;
  background:linear-gradient(180deg,rgba(15,33,45,.9),rgba(7,18,26,.92));
  color:#dcecf4;
  border-radius:9px;
  padding:6px 9px;
  display:flex;
  gap:7px;
  align-items:center;
  min-width:118px;
  max-width:205px;
  text-align:left;
}
.station-top-chip:hover{
  border-color:#3a6b83;
  background:linear-gradient(180deg,rgba(18,42,57,.95),rgba(8,21,31,.96));
}
.station-chip-dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 10px rgba(73,217,255,.55);
  flex:none;
}
.station-chip-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.station-chip-text strong{
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.station-chip-text small{
  margin-top:3px;
  font-size:7px;
  color:#698697;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.live-update-line{margin:-15px 0 13px}

/* ---- Hero / command area ---- */
.hero-grid{display:block}
.hero-card{padding:18px 20px 16px}
.hero-command{
  overflow:hidden;
  background:
    radial-gradient(circle at 77% 5%,rgba(73,217,255,.06),transparent 25rem),
    linear-gradient(180deg,rgba(13,29,42,.98),rgba(7,17,26,.98));
}
.hero-command-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:15px;
  margin-bottom:14px;
}
.hero-command-head h1{
  margin:4px 0 0;
  font-size:16px;
  letter-spacing:-.02em;
}
.hero-command-grid{
  display:grid;
  grid-template-columns:minmax(190px,.62fr) minmax(390px,1.3fr) minmax(270px,.78fr);
  gap:10px;
}
.condition-block,
.recommendation-block{
  border:1px solid #203e50;
  border-radius:11px;
  background:rgba(5,15,23,.57);
  min-height:178px;
}
.condition-block{
  padding:14px;
  display:flex;
  flex-direction:column;
}
.condition-kicker{
  color:#7896a8;font-size:8px;font-weight:800;letter-spacing:.11em;
}
.condition-word{
  color:var(--green);
  font-size:42px;
  line-height:.95;
  margin-top:13px;
  font-weight:950;
  letter-spacing:-2px;
  text-shadow:0 0 20px rgba(66,232,123,.12);
}
.condition-block>p{
  color:#90a8b7;
  font-size:10px;
  line-height:1.45;
  margin:8px 0 0;
  min-height:30px;
}
.condition-telemetry{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:5px;
  margin-top:auto;
  padding-top:10px;
}
.condition-telemetry>div{
  border-top:1px solid #1b3747;
  padding-top:7px;
}
.condition-telemetry span{
  display:block;color:#607e90;font-size:7px;font-weight:800;
}
.condition-telemetry strong{
  display:block;margin-top:2px;font-size:12px;
}
.recommendation-block{
  padding:13px 14px;
}
.rec-title-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  color:#7895a6;
  font-size:8px;
  font-weight:900;
  letter-spacing:.1em;
}
.rec-title-row>div{
  display:flex;align-items:center;gap:5px;
}
.network-band-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:13px;
  align-items:center;
  margin-top:15px;
}
.network-rec .band-badge{
  font-size:46px;
  line-height:.9;
  letter-spacing:-3px;
}
.network-rec .best-copy strong{font-size:17px}
.network-rec .best-copy span{font-size:10px}
.network-rec .quality-pill{font-size:9px;padding:5px 8px}
.network-rec .reason-row{margin-top:13px}
.network-rec .reason-row span{font-size:8px;padding:4px 7px}
.recommendation-note{
  margin-top:8px;
  color:#5e7c8e;
  font-size:8px;
  line-height:1.45;
}
.personal-rec{
  border-color:#284759;
  background:
    linear-gradient(135deg,rgba(73,217,255,.045),rgba(5,15,23,.63) 55%);
}
.personal-main{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  align-items:center;
  margin-top:16px;
}
.personal-band{
  color:var(--cyan);
  font-size:36px;
  line-height:.95;
  font-weight:950;
  letter-spacing:-2px;
  min-width:64px;
}
.personal-main strong{
  display:block;
  font-size:13px;
}
.personal-main span{
  display:block;
  color:#7f98a8;
  font-size:8px;
  line-height:1.4;
  margin-top:3px;
}
.personal-evidence{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:13px;
}
.personal-evidence span{
  border:1px solid rgba(73,217,255,.22);
  color:#9bd7e8;
  background:rgba(73,217,255,.045);
  border-radius:999px;
  font-size:8px;
  padding:4px 7px;
}
.personal-psk{
  border-top:1px solid #1b3747;
  margin-top:11px;
  padding-top:8px;
  color:#628093;
  font-size:8px;
  line-height:1.4;
}
.personal-rec.no-profile{
  opacity:.72;
}
.hero-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-top:11px;
}
.hero-actions .action-row{margin-top:0}
.hero-live-note{
  color:#587688;
  font-size:8px;
}

/* ---- Floating station panel ---- */
.station-overlay-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,6,10,.35);
  backdrop-filter:blur(2px);
  z-index:79;
}
.station-flyout{
  position:fixed;
  right:18px;
  top:78px;
  width:min(410px,calc(100vw - 28px));
  max-height:calc(100vh - 96px);
  overflow:auto;
  z-index:80;
  padding:0;
  border-radius:12px;
  transform:translateY(-9px) scale(.985);
  transform-origin:top right;
  opacity:0;
  pointer-events:none;
  visibility:hidden;
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
  box-shadow:0 25px 90px rgba(0,0,0,.52),0 0 0 1px rgba(73,217,255,.03);
}
.station-flyout.open{
  opacity:1;
  transform:none;
  pointer-events:auto;
  visibility:visible;
}
.station-flyout-head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 15px;
  background:rgba(9,24,34,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid #203d4e;
}
.station-flyout-head h2{
  margin:3px 0 0;font-size:14px;
}
.station-flyout-head-actions{display:flex;align-items:center;gap:7px}
.station-flyout .station-drawer-body{
  max-height:none !important;
  overflow:visible;
  opacity:1 !important;
  padding:15px !important;
}
.station-flyout .station-setup h3{
  margin:0 0 4px;font-size:16px;
}
.station-flyout .station-setup>p{
  margin-top:0;
}
.station-flyout .station-fields{
  grid-template-columns:1fr 105px;
}
.station-flyout .profile-call{font-size:34px}
.station-flyout .psk-profile-block{
  background:rgba(4,14,21,.42);
  border:1px solid #1d3a4b;
  border-radius:10px;
  padding:11px;
  margin-top:15px;
}
body.station-open{overflow:hidden}

/* Kill old full-width drawer behavior */
.station-drawer-wrap{display:none !important}
.station-drawer-bar{display:none !important}

/* ---- Real map ---- */
.hf-map-real{
  position:relative;
  height:360px;
  overflow:hidden;
  margin-top:13px;
  border:1px solid #203e50;
  border-radius:11px;
  background:
    radial-gradient(circle at 71% 52%,rgba(73,217,255,.075),transparent 23%),
    linear-gradient(180deg,#07141e,#061019);
}
.map-grid{
  position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(84,128,151,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(84,128,151,.055) 1px,transparent 1px);
  background-size:50px 50px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.85),rgba(0,0,0,.35));
}
.natural-earth-map{
  position:absolute;
  inset:18px 14px 42px;
  width:calc(100% - 28px);
  height:calc(100% - 60px);
  object-fit:fill;
  opacity:.9;
  filter:drop-shadow(0 0 9px rgba(23,91,123,.1));
}
.map-activity-overlay{
  position:absolute;
  inset:18px 14px 42px;
  width:calc(100% - 28px);
  height:calc(100% - 60px);
  overflow:visible;
}
.map-arc{
  fill:none;
  stroke:rgba(73,217,255,.28);
  stroke-width:1.5;
  stroke-dasharray:5 5;
  vector-effect:non-scaling-stroke;
}
.map-arc.hot{
  stroke:rgba(66,232,123,.73);
  stroke-width:2.2;
  stroke-dasharray:none;
  filter:drop-shadow(0 0 5px rgba(66,232,123,.32));
}
.region-map-node circle.node-ring{
  fill:rgba(6,21,29,.88);
  stroke:#31566b;
  stroke-width:1.4;
  vector-effect:non-scaling-stroke;
}
.region-map-node.active circle.node-ring{
  stroke:var(--green);
  filter:drop-shadow(0 0 6px rgba(66,232,123,.35));
}
.region-map-node .node-code-svg{
  fill:#8fb0c1;
  font-size:10px;
  font-weight:800;
  text-anchor:middle;
}
.region-map-node .node-count-svg{
  fill:#eaf4fb;
  font-size:17px;
  font-weight:950;
  text-anchor:middle;
}
.qth-map-node .qth-halo{
  fill:rgba(73,217,255,.09);
}
.qth-map-node .qth-main{
  fill:var(--cyan);
  filter:drop-shadow(0 0 7px rgba(73,217,255,.65));
}
.qth-map-node text{
  fill:#031019;
  font-weight:950;
  text-anchor:middle;
}
.map-caption{
  z-index:3;
}
.map-source{
  position:absolute;
  right:12px;
  bottom:9px;
  z-index:3;
  color:#49687a;
  font-size:7px;
}
.region-strip{grid-template-columns:repeat(5,minmax(0,1fr))}
.region-card{
  min-width:0;
}
.region-card small{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* ---- content polish ---- */
.panel{
  border-color:var(--panel-border);
}
.watch-item{
  background:linear-gradient(180deg,rgba(6,19,27,.64),rgba(4,15,22,.56));
}
.band-row:hover{
  background:rgba(73,217,255,.045);
}
.provenance-strip{
  margin-bottom:0;
}

/* mobile nav buttons */
.mobile-nav button{
  appearance:none;
  border:0;
  background:none;
  color:#91a6b5;
  display:flex;
  flex-direction:column;
  gap:2px;
  align-items:center;
  font-size:10px;
  padding:5px;
}
.mobile-nav button span{font-size:17px}

@media(max-width:1100px){
  .hero-command-grid{
    grid-template-columns:.62fr 1.38fr;
  }
  .personal-rec{
    grid-column:1/-1;
    min-height:auto;
  }
}
@media(max-width:900px){
  .station-top-chip{min-width:0;max-width:135px}
  .hero-command-grid{grid-template-columns:1fr}
  .condition-block,.recommendation-block{min-height:auto}
  .condition-block{min-height:155px}
  .personal-rec{grid-column:auto}
  .hero-actions{align-items:flex-start}
  .hf-map-real{height:330px}
  .region-strip{grid-template-columns:repeat(2,1fr)}
  .station-flyout{
    right:10px;
    top:auto;
    bottom:74px;
    width:calc(100vw - 20px);
    max-height:76vh;
    transform:translateY(15px);
    transform-origin:bottom center;
  }
}
@media(max-width:620px){
  .top-status{gap:6px}
  .station-chip-text small{display:none}
  .station-top-chip{padding:5px 7px}
  .hero-card{padding:14px}
  .hero-command-head{margin-bottom:10px}
  .network-band-row{grid-template-columns:auto 1fr}
  .network-rec .quality-pill{grid-column:1/-1;justify-self:start}
  .network-rec .band-badge{font-size:40px}
  .hero-actions{flex-direction:column}
  .hero-live-note{display:none}
  .hf-map-real{height:280px}
  .natural-earth-map,.map-activity-overlay{
    inset:12px 8px 43px;
    width:calc(100% - 16px);
    height:calc(100% - 55px);
  }
  .map-source{left:12px;right:auto}
}

/* ===== v0.6.1 alignment + trust polish ===== */
.classification-summary{
  margin-top:18px;
  border-top:1px solid #1d3345;
  padding-top:13px;
}
.classification-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.classification-grid>div{
  border:1px solid #213849;
  border-radius:8px;
  padding:9px;
  background:rgba(6,16,24,.35);
}
.classification-grid span{
  display:block;
  font-size:7px;
  color:#6f8da0;
  letter-spacing:.08em;
  font-weight:800;
}
.classification-grid strong{
  display:block;
  margin-top:3px;
  font-size:16px;
}
.classification-grid small{
  display:block;
  color:#587486;
  font-size:7px;
  margin-top:2px;
}
#modeClassState{
  color:var(--cyan);
}
.map-source{
  max-width:72%;
  text-align:right;
}
/* Make drill-down nature more discoverable without visual noise. */
.band-row[data-band]::after{
  content:"›";
  color:#416679;
  font-size:13px;
  margin-left:2px;
}

/* ===== v0.6.2 Credibility polish ===== */

/* Network rows stay drillable without stray layout glyphs. */
.band-row[data-band]::after{
  content:none !important;
}

/* WATCH: match is neutral; recency provides the accent. */
.watch-item.live-match{
  border-color:#263d4e;
  background:linear-gradient(180deg,rgba(6,19,27,.64),rgba(4,15,22,.56));
  position:relative;
}
.watch-item.watch-hot{
  border-left:2px solid rgba(66,232,123,.88);
  background:
    linear-gradient(90deg,rgba(66,232,123,.035),transparent 38%),
    linear-gradient(180deg,rgba(6,19,27,.64),rgba(4,15,22,.56));
}
.watch-item.watch-recent{
  border-left:2px solid rgba(73,217,255,.72);
}
.watch-hit{
  color:var(--cyan);
}
.watch-recency{
  margin-top:4px;
  text-align:right;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  color:var(--green);
}
.watch-recent .watch-recency{
  color:var(--cyan);
}

/* The classification row is a data-quality view, not a fourth mode. */
.mode-row:last-child span{
  color:#91a8b7;
}

/* ===== v0.6.3 Leaflet interactive HF map ===== */
.hf-map-interactive{
  position:relative;
  height:390px;
  overflow:hidden;
  margin-top:13px;
  border:1px solid #203e50;
  border-radius:11px;
  background:#061019;
}
.leaflet-hf-map{
  position:absolute;
  inset:0;
  z-index:1;
  background:#061019;
}
.leaflet-container{
  font-family:inherit;
  background:#061019;
}
.leaflet-control-zoom a,
.leaflet-control-layers,
.leaflet-control-scale-line{
  background:#081721 !important;
  color:#cfe5ef !important;
  border-color:#29495b !important;
  box-shadow:0 7px 22px rgba(0,0,0,.22) !important;
}
.leaflet-control-zoom a{
  border-bottom-color:#29495b !important;
}
.leaflet-control-layers label{
  color:#b8ced9;
  font-size:10px;
}
.leaflet-control-layers-expanded{
  padding:8px 10px;
}
.leaflet-control-attribution{
  background:rgba(4,13,19,.76) !important;
  color:#5d7888 !important;
  font-size:7px !important;
}
.leaflet-control-attribution a{
  color:#719bad !important;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip{
  background:#091923;
  color:#dcebf3;
  border:1px solid #29485a;
}
.leaflet-popup-content-wrapper{
  border-radius:9px;
}
.leaflet-popup-content{
  margin:11px 12px;
}
.mhz-map-popup{
  min-width:170px;
  font-size:10px;
  line-height:1.5;
}
.mhz-map-popup strong{
  display:block;
  color:#fff;
  font-size:12px;
  margin-bottom:3px;
}
.mhz-map-popup small{
  display:block;
  color:#738e9e;
  margin-top:5px;
}
.mhz-map-popup button{
  margin-top:8px;
  border:1px solid #2a5569;
  border-radius:6px;
  background:#07131d;
  color:var(--cyan);
  padding:5px 7px;
  font-size:9px;
}
.leaflet-tooltip{
  background:#081721;
  border:1px solid #2b5164;
  color:#dff4fc;
  box-shadow:none;
  font-size:9px;
}
.leaflet-tooltip-top:before{
  border-top-color:#2b5164;
}
.leaflet-caption{
  z-index:500;
  pointer-events:none;
  left:14px;
  bottom:12px;
  padding:7px 9px;
  border-radius:7px;
  background:rgba(4,14,20,.72);
  backdrop-filter:blur(8px);
  max-width:58%;
}
.leaflet-caption span{
  color:#89a4b4;
}
.map-tools{
  position:absolute;
  z-index:600;
  left:12px;
  top:12px;
  display:flex;
  gap:5px;
}
.map-tools button{
  border:1px solid #29495b;
  border-radius:7px;
  background:rgba(7,22,31,.9);
  color:#a9c5d4;
  padding:6px 8px;
  font-size:9px;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}
.map-tools button:hover{
  border-color:var(--cyan);
  color:#fff;
}
.leaflet-fallback{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  color:#8aa5b4;
  background:#061019;
}
.leaflet-fallback img{
  position:absolute;
  inset:25px;
  width:calc(100% - 50px);
  height:calc(100% - 50px);
  object-fit:contain;
  opacity:.45;
}
.leaflet-fallback strong,
.leaflet-fallback span{
  position:relative;
  z-index:2;
}
.map-legend-line{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:8px;
  color:#6d899a;
  font-size:8px;
}
.legend-dot{
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  margin-right:4px;
  vertical-align:0;
}
.legend-dot.regional{background:var(--green)}
.legend-dot.qth{background:var(--cyan)}
.legend-dot.psk{background:#9a7cff}
.region-card-button{
  width:100%;
  text-align:left;
  color:inherit;
  font:inherit;
  cursor:pointer;
}
.region-card-button:hover{
  border-color:#31566b;
  background:rgba(73,217,255,.035);
}
@media(max-width:900px){
  .hf-map-interactive{height:360px}
  .leaflet-caption{max-width:72%}
}
@media(max-width:520px){
  .hf-map-interactive{height:330px}
  .map-tools{top:8px;left:8px}
  .leaflet-caption{left:8px;bottom:18px;max-width:82%}
  .map-legend-line{gap:7px}
}

/* ===== v0.6.3a Leaflet fallback visibility hotfix ===== */
.leaflet-fallback[hidden]{
  display:none !important;
}
.leaflet-fallback:not([hidden]){
  display:flex;
}

/* ===== v0.6.3b Always-visible regional counts ===== */
.mhz-region-icon{
  background:transparent !important;
  border:0 !important;
}
.mhz-region-bubble{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1.5px solid #4a7288;
  border-radius:50%;
  background:rgba(5,22,31,.90);
  box-shadow:
    0 0 0 5px rgba(73,217,255,.035),
    0 8px 22px rgba(0,0,0,.32);
  backdrop-filter:blur(5px);
  transform:translateZ(0);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
  pointer-events:auto;
}
.mhz-region-bubble.hot{
  border-color:#42e87b;
  box-shadow:
    0 0 0 5px rgba(66,232,123,.055),
    0 0 20px rgba(66,232,123,.12),
    0 8px 22px rgba(0,0,0,.32);
}
.mhz-region-bubble:hover{
  transform:scale(1.08);
  border-color:var(--cyan);
}
.mhz-region-bubble span{
  display:block;
  color:#8da9b9;
  font-size:8px;
  line-height:1;
  font-weight:900;
  letter-spacing:.08em;
}
.mhz-region-bubble strong{
  display:block;
  margin-top:3px;
  color:#fff;
  font-size:15px;
  line-height:1;
  font-weight:900;
}
.mhz-region-bubble.hot strong{
  color:#dffff0;
}

/* ===== v0.6.3c Live Presence ===== */
.live-clock{
  display:flex;
  align-items:stretch;
  gap:5px;
  min-width:188px;
  border:1px solid #294454;
  border-radius:9px;
  background:
    linear-gradient(180deg,rgba(10,27,38,.88),rgba(5,17,25,.88));
  box-shadow:inset 0 0 22px rgba(73,217,255,.025);
  overflow:hidden;
  font-variant-numeric:tabular-nums;
}
.live-clock-primary,
.live-clock-secondary{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:6px 9px;
}
.live-clock-primary{
  flex:1;
  border-right:1px solid #213b4b;
}
.live-clock span{
  color:#648596;
  font-size:7px;
  font-weight:900;
  letter-spacing:.11em;
}
.live-clock-primary strong{
  color:#e8f8ff;
  font-size:20px;
  line-height:1.05;
  letter-spacing:.02em;
  text-shadow:0 0 12px rgba(73,217,255,.12);
}
.live-clock-secondary strong{
  color:#88a9ba;
  font-size:11px;
  line-height:1.05;
  margin-top:2px;
}
.live-pulse-strip{
  min-height:31px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  margin:-8px 0 12px;
  padding:5px 9px;
  border:1px solid #182f3f;
  border-radius:8px;
  background:
    linear-gradient(90deg,rgba(73,217,255,.035),rgba(7,18,27,.52) 34%,rgba(7,18,27,.20));
  overflow:hidden;
  position:relative;
}
.live-pulse-strip:before{
  content:"";
  position:absolute;
  left:-20%;
  top:0;
  bottom:0;
  width:18%;
  background:linear-gradient(90deg,transparent,rgba(73,217,255,.065),transparent);
  transform:skewX(-18deg);
  animation:ambientSweep 8s linear infinite;
  pointer-events:none;
}
.live-pulse-label{
  display:flex;
  align-items:center;
  gap:5px;
  color:#77a4b7;
  font-size:8px;
  font-weight:900;
  letter-spacing:.10em;
  white-space:nowrap;
}
.pulse-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--green);
  box-shadow:0 0 8px rgba(66,232,123,.55);
  animation:heartbeat 1.8s ease-in-out infinite;
}
.live-pulse-event{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#7896a6;
  font-size:9px;
  font-variant-numeric:tabular-nums;
}
.live-pulse-event strong{
  color:#dff6ff;
  font-size:10px;
}
.live-pulse-event span{
  color:#91aebd;
}
.live-pulse-event em{
  margin-left:5px;
  color:#5f8496;
  font-style:normal;
}
.live-pulse-age{
  color:#668697;
  font-size:8px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.live-pulse-strip.new-event{
  animation:newEventGlow 1.25s ease;
}
.mhz-region-bubble.count-changed{
  animation:mapCountPulse 1.25s ease;
}
@keyframes heartbeat{
  0%,100%{opacity:.55;transform:scale(.85)}
  48%{opacity:1;transform:scale(1.22)}
  58%{opacity:.72;transform:scale(.98)}
}
@keyframes ambientSweep{
  from{left:-22%}
  to{left:118%}
}
@keyframes newEventGlow{
  0%{border-color:#182f3f;box-shadow:none}
  18%{border-color:rgba(66,232,123,.75);box-shadow:0 0 22px rgba(66,232,123,.12)}
  100%{border-color:#182f3f;box-shadow:none}
}
@keyframes mapCountPulse{
  0%{transform:scale(1)}
  30%{transform:scale(1.16);box-shadow:0 0 28px rgba(66,232,123,.32)}
  100%{transform:scale(1)}
}

@media(max-width:900px){
  .live-clock{min-width:160px}
  .live-clock-primary strong{font-size:17px}
  .live-pulse-strip{grid-template-columns:auto 1fr}
  .live-pulse-age{display:none}
}
@media(max-width:620px){
  .live-clock-secondary{display:none}
  .live-clock{min-width:92px}
  .live-clock-primary{border-right:0}
  .live-clock-primary strong{font-size:14px}
  .live-clock-primary span{display:none}
  .live-pulse-strip{margin-top:-6px}
}

/* ===== v0.6.4a Motion + consistency ===== */
.brand-logo{
  display:flex;
  flex-direction:column;
  justify-content:center;
  width:142px;
  flex:none;
  text-decoration:none;
}
.brand-logo img{
  display:block;
  width:138px;
  height:auto;
  max-height:45px;
  object-fit:contain;
  object-position:left center;
}
.brand-logo span{
  margin-top:1px;
  color:#6f8998;
  font-size:8px;
  line-height:1;
  white-space:nowrap;
}
.hero-command-head{
  min-height:22px;
  margin-bottom:10px;
}
.hero-now-title{
  display:flex;
  align-items:center;
}
.live-badge:not(.offline){
  animation:liveBadgePulse 2.6s ease-in-out infinite;
  will-change:box-shadow,border-color;
}
@keyframes liveBadgePulse{
  0%,100%{box-shadow:0 0 0 rgba(66,232,123,0)}
  48%{
    border-color:rgba(66,232,123,.72);
    box-shadow:0 0 10px rgba(66,232,123,.14);
  }
}
.live-pulse-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  color:#668697;
  font-size:8px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
#livePulsePosition{
  color:#4f7486;
  padding-right:7px;
  border-right:1px solid #1f3848;
}
.live-pulse-event.feed-swap{
  animation:feedSwap .38s ease;
}
@keyframes feedSwap{
  0%{opacity:.28;transform:translateY(3px);filter:blur(.7px)}
  100%{opacity:1;transform:none;filter:none}
}
.hero-command{
  padding-bottom:17px;
}
@media(max-width:900px){
  .brand-logo{width:120px}
  .brand-logo img{width:116px;max-height:39px}
}
@media(max-width:620px){
  .brand-logo span{display:none}
  .brand-logo{width:98px}
  .brand-logo img{width:96px}
  #livePulsePosition{display:none}
}

/* ===== v0.6.5 Direct evidence + NOW pulse + readability ===== */

/* Regional bubble is a direct evidence control, not a popup launcher. */
.mhz-region-bubble{
  cursor:pointer;
}
.mhz-region-bubble:hover{
  transform:scale(1.09);
  border-color:var(--cyan);
  box-shadow:
    0 0 0 5px rgba(73,217,255,.055),
    0 0 24px rgba(73,217,255,.18),
    0 8px 22px rgba(0,0,0,.32);
}

/* MATCH NOW deserves a visible but restrained live edge. */
.watch-item.watch-hot{
  border:1px solid rgba(66,232,123,.72);
  border-left-width:2px;
  animation:watchNowEdge 1.55s ease-in-out infinite;
}
.watch-item.watch-hot .watch-hit,
.watch-item.watch-hot .watch-recency{
  color:var(--green);
}
@keyframes watchNowEdge{
  0%,100%{
    border-color:rgba(66,232,123,.42);
    box-shadow:0 0 0 rgba(66,232,123,0);
  }
  50%{
    border-color:rgba(66,232,123,.96);
    box-shadow:
      0 0 0 1px rgba(66,232,123,.07),
      0 0 14px rgba(66,232,123,.13);
  }
}

/* Header text-size control */
.top-status{
  position:relative;
}
.text-size-control{
  position:relative;
}
.text-size-toggle{
  min-height:34px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border:1px solid #274555;
  border-radius:8px;
  background:linear-gradient(180deg,rgba(11,28,39,.88),rgba(6,18,26,.9));
  color:#c9dce6;
}
.text-size-toggle strong{
  color:var(--cyan);
  font-size:13px;
  line-height:1;
}
.text-size-toggle small{
  color:#728f9f;
  font-size:7px;
}
.text-size-toggle:hover,
.text-size-toggle[aria-expanded="true"]{
  border-color:#3a687e;
}
.text-size-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:120;
  width:175px;
  padding:7px;
  border:1px solid #29495b;
  border-radius:10px;
  background:linear-gradient(180deg,#0b1a25,#07121a);
  box-shadow:0 18px 55px rgba(0,0,0,.48);
}
.text-size-menu[hidden]{
  display:none !important;
}
.text-size-menu-title{
  color:#627f90;
  font-size:7px;
  font-weight:900;
  letter-spacing:.11em;
  padding:5px 7px 7px;
}
.text-size-menu button{
  width:100%;
  display:grid;
  grid-template-columns:32px 1fr;
  align-items:center;
  gap:7px;
  min-height:39px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:#b8ced9;
  text-align:left;
  padding:5px 7px;
}
.text-size-menu button:hover{
  background:rgba(73,217,255,.05);
  border-color:#29495b;
}
.text-size-menu button.selected{
  color:#fff;
  background:rgba(73,217,255,.075);
  border-color:rgba(73,217,255,.32);
}
.text-size-menu button span{
  color:var(--cyan);
  font-weight:900;
  font-size:13px;
  text-align:center;
}
.text-size-menu button .size-large{font-size:16px}
.text-size-menu button .size-xlarge{font-size:19px}
.text-size-menu button strong{font-size:10px}

/*
 Readability modes intentionally enlarge the small information text most,
 while keeping the large frequency/condition numerals under control.
*/
body[data-text-size="large"] .desktop-nav a,
body[data-text-size="large"] .desktop-nav .nav-button{
  font-size:14px;
}
body[data-text-size="large"] .eyebrow,
body[data-text-size="large"] .condition-kicker,
body[data-text-size="large"] .rec-title-row,
body[data-text-size="large"] .source-link,
body[data-text-size="large"] .watch-match-type,
body[data-text-size="large"] .watch-mode,
body[data-text-size="large"] .watch-recency,
body[data-text-size="large"] .region-card small,
body[data-text-size="large"] .classification-grid span,
body[data-text-size="large"] .classification-grid small,
body[data-text-size="large"] .map-legend-line{
  font-size:9px !important;
}
body[data-text-size="large"] .recommendation-note,
body[data-text-size="large"] .personal-main span,
body[data-text-size="large"] .personal-evidence span,
body[data-text-size="large"] .personal-psk,
body[data-text-size="large"] .fineprint,
body[data-text-size="large"] .watch-sub,
body[data-text-size="large"] .watch-meta,
body[data-text-size="large"] .live-pulse-event{
  font-size:11px !important;
  line-height:1.48;
}
body[data-text-size="large"] .watch-call{
  font-size:18px;
}
body[data-text-size="large"] .band-row strong{
  font-size:14px;
}
body[data-text-size="large"] .band-state{
  font-size:10px;
}
body[data-text-size="large"] .panel h2{
  font-size:17px;
}

body[data-text-size="xlarge"] .desktop-nav a,
body[data-text-size="xlarge"] .desktop-nav .nav-button{
  font-size:15px;
}
body[data-text-size="xlarge"] .eyebrow,
body[data-text-size="xlarge"] .condition-kicker,
body[data-text-size="xlarge"] .rec-title-row,
body[data-text-size="xlarge"] .source-link,
body[data-text-size="xlarge"] .watch-match-type,
body[data-text-size="xlarge"] .watch-mode,
body[data-text-size="xlarge"] .watch-recency,
body[data-text-size="xlarge"] .region-card small,
body[data-text-size="xlarge"] .classification-grid span,
body[data-text-size="xlarge"] .classification-grid small,
body[data-text-size="xlarge"] .map-legend-line{
  font-size:10px !important;
}
body[data-text-size="xlarge"] .recommendation-note,
body[data-text-size="xlarge"] .personal-main span,
body[data-text-size="xlarge"] .personal-evidence span,
body[data-text-size="xlarge"] .personal-psk,
body[data-text-size="xlarge"] .fineprint,
body[data-text-size="xlarge"] .watch-sub,
body[data-text-size="xlarge"] .watch-meta,
body[data-text-size="xlarge"] .live-pulse-event{
  font-size:12px !important;
  line-height:1.5;
}
body[data-text-size="xlarge"] .watch-call{
  font-size:20px;
}
body[data-text-size="xlarge"] .band-row strong{
  font-size:15px;
}
body[data-text-size="xlarge"] .band-state{
  font-size:11px;
}
body[data-text-size="xlarge"] .panel h2{
  font-size:18px;
}

/* Do not force animation on users/OSes that request reduced motion. */
@media(prefers-reduced-motion:reduce){
  .watch-item.watch-hot,
  .live-badge:not(.offline),
  .pulse-dot,
  .live-pulse-strip:before,
  .mhz-region-bubble.count-changed{
    animation:none !important;
  }
}
@media(max-width:700px){
  .text-size-toggle small{display:none}
  .text-size-menu{right:-48px}
}

/* ===== v0.6.5a Strong MATCH NOW alert ===== */

/*
 MATCH NOW = genuinely fresh watch hit.
 Make it visually unmistakable, but keep the cycle below strobe-like rates.
*/
.watch-item.watch-hot{
  position:relative;
  border:2px solid rgba(66,232,123,.95) !important;
  background:
    linear-gradient(90deg,rgba(66,232,123,.09),rgba(66,232,123,.015) 42%,transparent 74%),
    linear-gradient(180deg,rgba(6,24,29,.88),rgba(4,16,22,.78)) !important;
  animation:watchNowStrong 1.05s ease-in-out infinite !important;
  overflow:hidden;
}

.watch-item.watch-hot::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(66,232,123,.7);
  opacity:.25;
  animation:watchNowRing 1.05s ease-in-out infinite;
}

.watch-item.watch-hot .watch-call{
  color:#f2fff7;
}

.watch-item.watch-hot .watch-hit{
  color:#69ff9b !important;
  text-shadow:0 0 10px rgba(66,232,123,.55);
  animation:watchNowText 1.05s steps(1,end) infinite;
}

.watch-item.watch-hot .watch-recency{
  color:#69ff9b !important;
  font-weight:1000;
  text-shadow:0 0 10px rgba(66,232,123,.6);
  animation:watchNowText 1.05s steps(1,end) infinite;
}

@keyframes watchNowStrong{
  0%,100%{
    border-color:rgba(66,232,123,.38);
    box-shadow:
      0 0 0 0 rgba(66,232,123,0),
      inset 0 0 0 rgba(66,232,123,0);
  }
  48%{
    border-color:#42e87b;
    box-shadow:
      0 0 0 2px rgba(66,232,123,.10),
      0 0 24px rgba(66,232,123,.34),
      inset 0 0 22px rgba(66,232,123,.055);
  }
}

@keyframes watchNowRing{
  0%,100%{
    opacity:.12;
    transform:scale(.997);
  }
  48%{
    opacity:.9;
    transform:scale(1);
  }
}

@keyframes watchNowText{
  0%,52%{opacity:1}
  53%,76%{opacity:.28}
  77%,100%{opacity:1}
}

/* Keep RECENT visible but calm. */
.watch-item.watch-recent:not(.watch-hot){
  border-left:2px solid rgba(73,217,255,.72);
  animation:none !important;
}

/* Respect OS accessibility preference. */
@media(prefers-reduced-motion:reduce){
  .watch-item.watch-hot,
  .watch-item.watch-hot::after,
  .watch-item.watch-hot .watch-hit,
  .watch-item.watch-hot .watch-recency{
    animation:none !important;
  }
  .watch-item.watch-hot{
    border-color:#42e87b !important;
    box-shadow:0 0 18px rgba(66,232,123,.22) !important;
  }
}

/* ===== v0.6.6 Warm-up states + DXpeditions tabs ===== */

.syncing-badge{
  color:#9ccfe0 !important;
  border-color:rgba(73,217,255,.34) !important;
  background:rgba(73,217,255,.055) !important;
  animation:syncBadgeBreath 1.55s ease-in-out infinite !important;
}
.status-pill.delayed{
  color:#ffd66f !important;
  border-color:rgba(255,196,77,.46) !important;
  background:rgba(255,196,77,.07) !important;
  animation:none !important;
}
.syncing-word{
  font-size:clamp(24px,3vw,43px) !important;
  letter-spacing:.02em;
  color:#8dcfe0 !important;
}
@keyframes syncBadgeBreath{
  0%,100%{opacity:.62;box-shadow:0 0 0 rgba(73,217,255,0)}
  50%{opacity:1;box-shadow:0 0 13px rgba(73,217,255,.13)}
}

.sync-band-row{
  display:grid;
  grid-template-columns:42px 1fr 72px;
  gap:9px;
  align-items:center;
  min-height:36px;
}
.sync-band-row span,
.sync-band-row i,
.sync-band-row b{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:999px;
  background:#102431;
}
.sync-band-row span{width:31px;height:10px}
.sync-band-row i{height:6px}
.sync-band-row b{width:57px;height:9px;justify-self:end}
.sync-band-row span::after,
.sync-band-row i::after,
.sync-band-row b::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(96,201,231,.13),transparent);
  animation:syncShimmer 1.55s linear infinite;
}
.source-syncing{
  color:#668a9c !important;
}
@keyframes syncShimmer{
  to{transform:translateX(100%)}
}

/* HUNT tabs */
.hunt-tabs{
  display:inline-flex;
  gap:4px;
  margin-top:13px;
  padding:3px;
  border:1px solid #203b4c;
  border-radius:9px;
  background:rgba(5,15,22,.64);
}
.hunt-tab{
  min-height:31px;
  padding:6px 11px;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#6f8e9f;
  font-size:9px;
  font-weight:900;
  letter-spacing:.05em;
}
.hunt-tab:hover{
  color:#d9eef7;
}
.hunt-tab.active{
  color:#06141c;
  background:var(--cyan);
  border-color:var(--cyan);
}
.hunt-tab span{
  margin-left:4px;
  opacity:.72;
}
.hunt-pane{
  margin-top:11px;
}
.hunt-pane[hidden]{
  display:none !important;
}

/* DXpedition source */
.dxp-source-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  color:#718f9f;
}
.dxp-source-row>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.dxp-source-row strong{
  color:#d9eaf2;
  font-size:10px;
}
.dxp-source-row span{
  font-size:8px;
}
.dxp-source-row a{
  color:var(--cyan);
  font-size:9px;
  text-decoration:none;
  white-space:nowrap;
}
.dxp-source-row a:hover{
  text-decoration:underline;
}
.dxp-frame-shell{
  position:relative;
  height:310px;
  overflow:hidden;
  border:1px solid #244354;
  border-radius:10px;
  background:#061019;
}
.dxp-frame-shell iframe{
  width:100%;
  height:100%;
  border:0;
  background:#fff;
}
.dxp-frame-loading{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  background:
    radial-gradient(circle at 50% 50%,rgba(73,217,255,.045),transparent 35%),
    #07131c;
  color:#82a0b0;
}
.dxp-frame-loading[hidden]{
  display:none !important;
}
.dxp-frame-loading>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.dxp-frame-loading strong{
  color:#dceef5;
  font-size:11px;
}
.dxp-frame-loading small{
  color:#688697;
  font-size:8px;
}
.sync-orbit{
  width:22px;
  height:22px;
  border:2px solid rgba(73,217,255,.16);
  border-top-color:var(--cyan);
  border-radius:50%;
  animation:syncOrbit .85s linear infinite;
  flex:none;
}
@keyframes syncOrbit{to{transform:rotate(360deg)}}
.dxp-note{
  margin-top:8px;
}
.watch-syncing{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.watch-syncing strong,
.watch-syncing small{
  display:block;
}
.watch-syncing small{
  margin-top:2px;
  color:#607f91;
  font-size:9px;
}

@media(max-width:900px){
  .dxp-frame-shell{height:290px}
}
@media(max-width:620px){
  .dxp-source-row{align-items:flex-start}
  .dxp-frame-shell{height:270px}
  .hunt-tabs{display:flex}
  .hunt-tab{flex:1}
}
@media(prefers-reduced-motion:reduce){
  .syncing-badge,
  .sync-band-row span::after,
  .sync-band-row i::after,
  .sync-band-row b::after,
  .sync-orbit{
    animation:none !important;
  }
}

/* ===== v0.6.6a DXpedition image viewer ===== */
.dxp-image-shell{
  position:relative;
  min-height:260px;
  overflow:hidden;
  border:1px solid #244354;
  border-radius:10px;
  background:#07131c;
  display:flex;
  align-items:center;
  justify-content:center;
}
.dxp-image-shell>a{
  display:block;
  width:100%;
  background:#fff;
}
.dxp-image-shell>a[hidden]{
  display:none !important;
}
.dxp-image-shell img{
  display:block;
  width:100%;
  height:auto;
  max-height:430px;
  object-fit:contain;
  background:#fff;
  cursor:zoom-in;
}
.dxp-image-error{
  min-height:250px;
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:3px;
  color:#7290a0;
}
.dxp-image-error[hidden]{
  display:none !important;
}
.dxp-image-error strong{
  color:#d9eaf1;
  font-size:12px;
}
.dxp-image-error span{
  font-size:9px;
}
.dxp-image-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:7px;
  color:#607f90;
  font-size:8px;
}
.dxp-image-actions a{
  color:var(--cyan);
  text-decoration:none;
  font-size:9px;
}
.dxp-image-actions a:hover{
  text-decoration:underline;
}
@media(max-width:620px){
  .dxp-image-shell{min-height:190px}
  .dxp-image-shell img{max-height:320px}
}

/* ===== v0.6.6c Preserve DXpedition interactivity ===== */
.dxp-interactive-block{
  margin-bottom:10px;
  padding:10px;
  border:1px solid #244354;
  border-radius:10px;
  background:
    linear-gradient(90deg,rgba(73,217,255,.035),transparent 35%),
    rgba(5,16,24,.62);
}
.dxp-interactive-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.dxp-interactive-head>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.dxp-interactive-head strong{
  color:#dcebf2;
  font-size:11px;
}
.dxp-interactive-head>a{
  color:var(--cyan);
  font-size:9px;
  text-decoration:none;
  white-space:nowrap;
}
.dxp-callsign-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  max-height:215px;
  overflow:auto;
  padding-right:2px;
}
.dxp-call-card{
  min-width:0;
  min-height:67px;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:8px 9px;
  border:1px solid #244353;
  border-radius:8px;
  background:#07141d;
  color:inherit;
  text-decoration:none;
  transition:border-color .15s ease,background .15s ease,transform .15s ease;
}
.dxp-call-card:hover{
  border-color:var(--cyan);
  background:rgba(73,217,255,.055);
  transform:translateY(-1px);
}
.dxp-call-card strong{
  color:#fff;
  font-size:14px;
  line-height:1.05;
}
.dxp-call-card span{
  color:#7391a1;
  font-size:8px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dxp-call-card small{
  margin-top:auto;
  color:#4e8297;
  font-size:7px;
  letter-spacing:.07em;
}
.dxp-call-loading{
  grid-column:1/-1;
  min-height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#718f9f;
  font-size:9px;
}
.dxp-no-links{
  grid-column:1/-1;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:10px;
  border:1px dashed #315062;
  border-radius:8px;
  color:#7290a0;
  font-size:9px;
}
.dxp-no-links strong{
  color:#d8e9f1;
  font-size:10px;
}
.dxp-no-links a{
  margin-top:4px;
  color:var(--cyan);
  text-decoration:none;
  font-weight:800;
}
.dxp-overview-label{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:baseline;
  margin:9px 1px 5px;
}
.dxp-overview-label span{
  color:#6d8b9b;
  font-size:8px;
  font-weight:900;
  letter-spacing:.10em;
}
.dxp-overview-label small{
  color:#5c7989;
  font-size:8px;
  text-align:right;
}
@media(max-width:1100px){
  .dxp-callsign-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .dxp-callsign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dxp-overview-label{align-items:flex-start;flex-direction:column}
}
@media(max-width:480px){
  .dxp-callsign-grid{grid-template-columns:1fr}
  .dxp-interactive-head{flex-direction:column}
}

/* ===== v0.6.6d DXP copy cleanup ===== */
.dxp-interactive-block[hidden]{
  display:none !important;
}
.dxpeditions-pane{
  margin-top:9px;
}
.dxp-interactive-block{
  margin-bottom:8px;
}
.dxp-image-actions{
  margin-top:6px;
}
.dxp-note{
  margin-top:4px !important;
  opacity:.72;
}

/* ===== v0.6.7 PRE-WATCHING onboarding ===== */
.prewatch-intro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  padding:1px 2px;
}
.prewatch-intro[hidden]{
  display:none !important;
}
.prewatch-intro>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.prewatch-intro strong{
  color:#dcebf2;
  font-size:11px;
}
.prewatch-intro small{
  color:#648293;
  font-size:8px;
}

.prewatch-card{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 11px;
  border:1px solid #294352;
  border-left:2px solid #38586a;
  border-radius:9px;
  background:
    linear-gradient(90deg,rgba(73,217,255,.025),transparent 42%),
    rgba(5,16,23,.68);
}
.prewatch-card.prewatch-live{
  border-left-color:var(--cyan);
}
.prewatch-card.prewatch-live-now{
  border-color:rgba(66,232,123,.78);
  border-left:2px solid var(--green);
  background:
    linear-gradient(90deg,rgba(66,232,123,.07),transparent 42%),
    rgba(5,18,23,.75);
  box-shadow:0 0 16px rgba(66,232,123,.08);
}
.prewatch-main{
  min-width:0;
}
.prewatch-call{
  color:#fff;
  font-size:17px;
  line-height:1;
  font-weight:900;
}
.prewatch-entity{
  margin-top:5px;
  color:#7896a6;
  font-size:9px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.prewatch-status{
  margin-top:5px;
  color:#7897a7;
  font-size:8px;
  font-weight:900;
  letter-spacing:.05em;
}
.prewatch-status span{
  color:#5f7e8f;
  font-weight:500;
  letter-spacing:0;
  margin-left:4px;
}
.prewatch-live .prewatch-status{
  color:var(--cyan);
}
.prewatch-live-now .prewatch-status{
  color:var(--green);
}
.prewatch-actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex:none;
}
.prewatch-actions a{
  color:#6c9caf;
  font-size:9px;
  text-decoration:none;
}
.prewatch-actions a:hover{
  color:var(--cyan);
  text-decoration:underline;
}
.prewatch-add{
  min-height:31px;
  padding:6px 10px;
  border:1px solid #2f6278;
  border-radius:7px;
  background:#081820;
  color:var(--cyan);
  font-size:9px;
  font-weight:900;
}
.prewatch-add:hover{
  border-color:var(--cyan);
  color:#fff;
  background:rgba(73,217,255,.065);
}
.prewatch-live-now .prewatch-add{
  border-color:rgba(66,232,123,.55);
  color:var(--green);
}
body[data-text-size="large"] .prewatch-call{font-size:19px}
body[data-text-size="large"] .prewatch-entity{font-size:11px}
body[data-text-size="large"] .prewatch-status{font-size:10px}
body[data-text-size="xlarge"] .prewatch-call{font-size:21px}
body[data-text-size="xlarge"] .prewatch-entity{font-size:12px}
body[data-text-size="xlarge"] .prewatch-status{font-size:11px}

@media(max-width:620px){
  .prewatch-intro{
    align-items:flex-start;
    flex-direction:column;
  }
  .prewatch-card{
    align-items:flex-start;
    flex-direction:column;
  }
  .prewatch-actions{
    width:100%;
    justify-content:flex-end;
  }
}

/* ===== v0.6.8 Operator comfort + persistent PRE-WATCHING ===== */

/* Larger canonical logo for across-the-room station viewing. */
.brand-logo{
  width:186px !important;
}
.brand-logo img{
  width:180px !important;
  max-height:58px !important;
}
.topbar{
  min-height:72px;
}

/* XXL station-display text size. */
.text-size-menu button .size-xxlarge{font-size:23px}

body[data-text-size="xxlarge"] .desktop-nav a,
body[data-text-size="xxlarge"] .desktop-nav .nav-button{
  font-size:17px;
}
body[data-text-size="xxlarge"] .eyebrow,
body[data-text-size="xxlarge"] .condition-kicker,
body[data-text-size="xxlarge"] .rec-title-row,
body[data-text-size="xxlarge"] .source-link,
body[data-text-size="xxlarge"] .watch-match-type,
body[data-text-size="xxlarge"] .watch-mode,
body[data-text-size="xxlarge"] .watch-recency,
body[data-text-size="xxlarge"] .region-card small,
body[data-text-size="xxlarge"] .classification-grid span,
body[data-text-size="xxlarge"] .classification-grid small,
body[data-text-size="xxlarge"] .map-legend-line,
body[data-text-size="xxlarge"] .prewatch-status{
  font-size:12px !important;
}
body[data-text-size="xxlarge"] .recommendation-note,
body[data-text-size="xxlarge"] .personal-main span,
body[data-text-size="xxlarge"] .personal-evidence span,
body[data-text-size="xxlarge"] .personal-psk,
body[data-text-size="xxlarge"] .fineprint,
body[data-text-size="xxlarge"] .watch-sub,
body[data-text-size="xxlarge"] .watch-meta,
body[data-text-size="xxlarge"] .live-pulse-event,
body[data-text-size="xxlarge"] .prewatch-entity{
  font-size:14px !important;
  line-height:1.52;
}
body[data-text-size="xxlarge"] .watch-call,
body[data-text-size="xxlarge"] .prewatch-call{
  font-size:24px !important;
}
body[data-text-size="xxlarge"] .band-row strong{
  font-size:17px;
}
body[data-text-size="xxlarge"] .band-state{
  font-size:13px;
}
body[data-text-size="xxlarge"] .panel h2{
  font-size:21px;
}
body[data-text-size="xxlarge"] .personal-main strong{
  font-size:17px;
}
body[data-text-size="xxlarge"] .network-rec .best-copy strong{
  font-size:20px;
}
body[data-text-size="xxlarge"] .network-rec .best-copy span{
  font-size:13px;
}
body[data-text-size="xxlarge"] .condition-block>p{
  font-size:13px;
}
body[data-text-size="xxlarge"] .condition-telemetry span{
  font-size:10px;
}
body[data-text-size="xxlarge"] .condition-telemetry strong{
  font-size:15px;
}

/* FOR YOU: no placeholder PSK line/dot when there is no useful PSK evidence. */
.personal-psk[hidden]{
  display:none !important;
}

/* PRE-WATCHING is its own persistent layer above personal watch results. */
.prewatch-shell[hidden],
.prewatch-recall-row[hidden],
.watch-section-label[hidden]{
  display:none !important;
}
.prewatch-shell{
  margin-top:10px;
  padding-bottom:12px;
  border-bottom:1px solid #203847;
}
.prewatch-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.prewatch-clear{
  color:#7f9aaa;
}
.prewatch-list{
  margin-top:8px;
}
.prewatch-recall-row{
  display:flex;
  justify-content:flex-start;
  margin:10px 0 4px;
}
.watch-section-label{
  margin:13px 0 7px;
}
.prewatch-add.is-watching,
.prewatch-add:disabled{
  border-color:rgba(66,232,123,.34);
  color:#76c99a;
  cursor:default;
  opacity:.78;
}

@media(max-width:900px){
  .brand-logo{width:152px !important}
  .brand-logo img{width:148px !important;max-height:50px !important}
}
@media(max-width:620px){
  .brand-logo{width:116px !important}
  .brand-logo img{width:112px !important}
  .prewatch-head-actions{
    align-items:flex-end;
    flex-direction:column;
    gap:3px;
  }
}

/* ===== v0.6.8a WATCHING hierarchy + PSK cleanup ===== */
.saved-watch-section[hidden]{
  display:none !important;
}
.saved-watch-section{
  margin-top:10px;
}
.saved-watch-section + .prewatch-shell{
  margin-top:14px;
}
.watch-section-label{
  margin-top:0 !important;
}

/* YOUR WATCHING gets a slightly stronger separator because it is operator-owned. */
.saved-watch-section:not([hidden]) .watch-section-label{
  padding-bottom:6px;
  border-bottom:1px solid #244353;
}

/* PRE-WATCHING remains secondary when personal watches exist. */
.saved-watch-section:not([hidden]) ~ .prewatch-shell{
  padding-top:12px;
}

/* Explicitly guarantee that the PSK line takes no layout space when hidden. */
#personalPskHint[hidden]{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  height:0 !important;
  min-height:0 !important;
}

/* ===== v0.6.8b Logo scale + cyan-dot compositor cleanup ===== */

/*
 The stray 7x7 cyan artifact matched the station-chip indicator in both
 exact color (#49D9FF) and rendered size. Remove the standalone circle and
 express station state as an inset accent instead, avoiding a separately
 composited circular layer.
*/
.station-chip-dot{
  display:none !important;
}
.station-top-chip{
  border-left:3px solid rgba(73,217,255,.88) !important;
  padding-left:10px;
  box-shadow:
    inset 2px 0 10px rgba(73,217,255,.035),
    0 0 0 rgba(0,0,0,0);
}

/* Avoid forcing LIVE badges onto unnecessary compositor layers. */
.live-badge:not(.offline){
  will-change:auto !important;
}

/* Larger canonical logo for a station-side display. */
.brand-logo{
  width:280px !important;
  min-width:280px !important;
  height:100px;
  justify-content:center;
}
.brand-logo img{
  width:auto !important;
  height:88px !important;
  max-width:270px !important;
  max-height:100px !important;
  object-fit:contain !important;
  object-position:left center !important;
}
.brand-logo span{
  margin-top:-5px;
  padding-left:2px;
  font-size:9px;
}
.topbar{
  min-height:106px !important;
}

/* Keep navigation visually centered in the taller header. */
.desktop-nav .nav-button{
  padding-top:36px;
  padding-bottom:34px;
}
.desktop-nav a{
  padding-top:36px;
  padding-bottom:34px;
}

@media(max-width:1100px){
  .brand-logo{
    width:220px !important;
    min-width:220px !important;
    height:84px;
  }
  .brand-logo img{
    height:72px !important;
    max-width:214px !important;
  }
  .topbar{
    min-height:90px !important;
  }
  .desktop-nav .nav-button,
  .desktop-nav a{
    padding-top:29px;
    padding-bottom:27px;
  }
}

@media(max-width:900px){
  .brand-logo{
    width:170px !important;
    min-width:170px !important;
    height:72px;
  }
  .brand-logo img{
    width:auto !important;
    height:62px !important;
    max-width:165px !important;
    max-height:72px !important;
  }
  .topbar{
    min-height:78px !important;
  }
}

@media(max-width:620px){
  .brand-logo{
    width:126px !important;
    min-width:126px !important;
    height:58px;
  }
  .brand-logo img{
    width:auto !important;
    height:50px !important;
    max-width:122px !important;
    max-height:58px !important;
  }
  .topbar{
    min-height:64px !important;
  }
}

/* ===== v0.6.8c Leaflet compositor / QTH ghost-dot fix ===== */

/*
 Keep all Leaflet paint physically inside the map.  This is deliberately
 stricter than overflow:hidden because transformed/SVG compositor layers can
 occasionally escape clipping in Chromium.
*/
.hf-map-interactive{
  contain:layout paint !important;
  isolation:isolate !important;
  clip-path:inset(0 round 10px);
}
.leaflet-hf-map{
  contain:strict !important;
  isolation:isolate !important;
  overflow:hidden !important;
}
.leaflet-hf-map .leaflet-map-pane,
.leaflet-hf-map .leaflet-pane{
  max-width:100%;
  max-height:100%;
}
.leaflet-hf-map .leaflet-overlay-pane svg{
  overflow:hidden !important;
}

/* QTH is now a DOM marker, not an SVG circle path. */
.mhz-qth-divicon{
  background:transparent !important;
  border:0 !important;
}
.mhz-qth-pin{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  transform:rotate(45deg);
  border:2px solid #49d9ff;
  border-radius:7px;
  background:#071922;
  box-shadow:
    0 0 0 4px rgba(73,217,255,.07),
    0 0 18px rgba(73,217,255,.25);
}
.mhz-qth-pin span{
  transform:rotate(-45deg);
  color:#bdefff;
  font-size:7px;
  line-height:1;
  font-weight:950;
  letter-spacing:.04em;
}

/* The old SVG QTH class must never render if stale Leaflet state survives a refresh. */
.mhz-qth-marker{
  display:none !important;
}

/* ===== v0.6.9 Honest activity semantics ===== */
#bestQuality{
  white-space:nowrap;
  min-width:max-content;
}
.band-state small{
  white-space:nowrap;
}

/* Space-weather wording can be longer than GOOD/FAIR. */
.condition-word{
  max-width:100%;
  word-break:normal;
}
body[data-text-size="xxlarge"] .condition-word{
  font-size:clamp(31px,3.1vw,50px) !important;
}

/* ===== v0.6.9a PSKReporter ghost-dot hotfix ===== */

/*
 PSKReporter exact-grid points are now ordinary DOM markers instead of
 Leaflet SVG circleMarker paths. This removes the exact 9px cyan SVG element
 that matched the artifact seen above the map.
*/
.mhz-psk-divicon{
  background:transparent !important;
  border:0 !important;
}
.mhz-psk-dot{
  width:10px;
  height:10px;
  display:block;
  box-sizing:border-box;
  border:2px solid var(--psk-color,#49d9ff);
  border-radius:3px;
  background:#071922;
  box-shadow:0 0 8px color-mix(in srgb,var(--psk-color,#49d9ff) 35%,transparent);
  transform:rotate(45deg);
}

/* Leaflet vector paths now prefer Canvas; keep canvases clipped hard to map bounds. */
.leaflet-hf-map .leaflet-overlay-pane canvas{
  max-width:none !important;
  max-height:none !important;
}
.leaflet-hf-map canvas{
  contain:paint;
}

/* ===== v0.6.9b Remove last solid cyan circle ===== */

/*
 After station-chip and Leaflet PSK/QTH markers were converted, the only
 remaining 7x7 solid cyan circular element in the page DOM was the
 "Your QTH from Grid" map legend marker.
*/
.legend-dot.qth{
  width:8px !important;
  height:8px !important;
  border-radius:2px !important;
  background:transparent !important;
  border:1.5px solid var(--cyan) !important;
  transform:rotate(45deg);
  box-shadow:none !important;
}

/* Explicitly prevent the old appearance even if earlier CSS is cached/merged. */
.map-legend-line .legend-dot.qth{
  background-color:transparent !important;
}

/* ===== v0.7.0 Plain-language HF Conditions ===== */

.condition-title-row,
.telemetry-label{
  display:flex;
  align-items:center;
  gap:5px;
}
.condition-title-row{
  justify-content:space-between;
}
.condition-word{
  color:#dff7ff !important;
  font-size:clamp(34px,3.3vw,50px) !important;
  letter-spacing:-1px !important;
  text-shadow:0 0 18px rgba(73,217,255,.10) !important;
}

/* 5-level operator gauge */
.hf-condition-gauge{
  margin-top:10px;
}
.gauge-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:5px;
  color:#607f91;
  font-size:7px;
  font-weight:900;
  letter-spacing:.08em;
}
.gauge-head strong{
  color:#bcd7e4;
  font-size:9px;
  letter-spacing:0;
  font-variant-numeric:tabular-nums;
}
.gauge-track{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:4px;
  height:12px;
}
.gauge-track>span{
  display:block;
  border:1px solid #264252;
  border-radius:4px;
  background:#0a1b25;
  opacity:.48;
  transition:
    opacity .25s ease,
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}
.gauge-track>span:nth-child(1){--g:#e35d5d}
.gauge-track>span:nth-child(2){--g:#e99555}
.gauge-track>span:nth-child(3){--g:#d8bd55}
.gauge-track>span:nth-child(4){--g:#7dcc7f}
.gauge-track>span:nth-child(5){--g:#42e87b}
.gauge-track>span.active{
  opacity:1;
  background:var(--g);
  border-color:var(--g);
}
.gauge-track>span.current{
  transform:translateY(-1px) scaleY(1.18);
  box-shadow:0 0 11px color-mix(in srgb,var(--g) 36%,transparent);
}
.gauge-scale{
  display:flex;
  justify-content:space-between;
  margin-top:4px;
  color:#4e6e80;
  font-size:7px;
}

/* Optional inline hints */
.hint-only{
  display:none !important;
}
body.hints-on .hint-only{
  display:block !important;
}
.condition-hint-inline{
  margin-top:6px;
  padding:6px 7px;
  border-left:2px solid rgba(73,217,255,.46);
  border-radius:0 5px 5px 0;
  background:rgba(73,217,255,.035);
  color:#7695a5;
  font-size:8px;
  line-height:1.4;
}
.telemetry-item>small{
  margin-top:3px;
  color:#547386;
  font-size:7px;
  line-height:1.2;
}

/* Global Hints toggle */
.hints-toggle{
  min-height:34px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border:1px solid #274555;
  border-radius:8px;
  background:linear-gradient(180deg,rgba(11,28,39,.88),rgba(6,18,26,.9));
  color:#8da7b5;
}
.hints-toggle>strong{
  width:16px;
  height:16px;
  display:grid;
  place-items:center;
  border:1px solid #315467;
  border-radius:50%;
  color:#78a3b7;
  font-size:10px;
  line-height:1;
}
.hints-toggle>span{
  font-size:8px;
  font-weight:850;
}
.hints-toggle>small{
  color:#5d7b8c;
  font-size:7px;
  font-weight:900;
}
.hints-toggle.active{
  border-color:rgba(73,217,255,.52);
  color:#dff6ff;
  background:rgba(73,217,255,.065);
}
.hints-toggle.active>strong{
  color:#06141c;
  border-color:var(--cyan);
  background:var(--cyan);
}
.hints-toggle.active>small{
  color:var(--cyan);
}

/* Small contextual ? buttons; hidden globally when Hints are off. */
.hint-info{
  width:17px;
  min-width:17px;
  height:17px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #315064;
  border-radius:50%;
  background:#081720;
  color:#6d96a9;
  font-size:9px;
  line-height:1;
  font-weight:900;
}
.hint-info[hidden]{
  display:none !important;
}
.hint-info:hover,
.hint-info[aria-expanded="true"]{
  color:#07141c;
  border-color:var(--cyan);
  background:var(--cyan);
}

/* One reusable tooltip/popover, works with mouse and touch. */
.hint-popover{
  position:fixed;
  z-index:5000;
  width:min(330px,calc(100vw - 20px));
  padding:10px 11px;
  border:1px solid #315466;
  border-radius:10px;
  background:linear-gradient(180deg,#0b1b26,#07131c);
  box-shadow:0 16px 44px rgba(0,0,0,.48);
}
.hint-popover[hidden]{
  display:none !important;
}
.hint-popover-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.hint-popover-head strong{
  color:#dff5ff;
  font-size:11px;
}
.hint-popover-head button{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:#6f91a2;
  font-size:19px;
  line-height:1;
}
.hint-popover p{
  margin:6px 0 0;
  color:#8ca7b5;
  font-size:10px;
  line-height:1.5;
}

/* Hints also scale with the user's readability choice. */
body[data-text-size="large"] .condition-hint-inline,
body[data-text-size="large"] .hint-popover p{
  font-size:11px;
}
body[data-text-size="xlarge"] .condition-hint-inline,
body[data-text-size="xlarge"] .hint-popover p{
  font-size:12px;
}
body[data-text-size="xxlarge"] .condition-hint-inline,
body[data-text-size="xxlarge"] .hint-popover p{
  font-size:14px;
}
body[data-text-size="xxlarge"] .gauge-track{
  height:15px;
}
body[data-text-size="xxlarge"] .gauge-head,
body[data-text-size="xxlarge"] .gauge-scale{
  font-size:10px;
}

@media(max-width:700px){
  .hints-toggle>span{display:none}
  .hints-toggle{padding-inline:7px}
  .condition-word{
    font-size:36px !important;
  }
}

@media(prefers-reduced-motion:reduce){
  .gauge-track>span{
    transition:none !important;
  }
}

/* ===== v0.7.0a Thai readability + clean default ===== */

/* Thai status needs a Thai-capable UI face and normal combining-mark spacing. */
.condition-word{
  font-family:"Leelawadee UI","Noto Sans Thai",Tahoma,"Segoe UI",sans-serif !important;
  letter-spacing:0 !important;
  line-height:1.14 !important;
  font-weight:800 !important;
  white-space:nowrap;
}

/* Hints OFF means technical methodology really stays out of the glance view. */
body:not(.hints-on) #recommendationNote{
  display:none !important;
}

/* Avoid the browser's heavy white focus rectangle while preserving keyboard focus. */
.hints-toggle:focus{
  outline:none;
}
.hints-toggle:focus-visible{
  outline:2px solid rgba(73,217,255,.60);
  outline-offset:2px;
}

/* ===== v0.7.1 HF PROPAGATION NOW ===== */

.propagation-panel{
  margin-top:16px;
  padding:18px 20px 16px;
}
.propagation-title-row{
  align-items:flex-start;
}
.propagation-title-row h2{
  margin-top:4px;
}
.propagation-meta{
  display:grid;
  grid-template-columns:1fr 1.25fr 1fr 1.35fr;
  gap:8px;
  margin-top:14px;
}
.prop-meta-card{
  min-width:0;
  padding:9px 10px;
  border:1px solid #254252;
  border-radius:9px;
  background:rgba(4,16,23,.58);
}
.prop-meta-card>span{
  display:block;
  color:#658495;
  font-size:7px;
  font-weight:900;
  letter-spacing:.09em;
}
.prop-meta-card>strong{
  display:block;
  margin-top:3px;
  color:#e2f2f8;
  font-size:13px;
  line-height:1.15;
}
.prop-meta-card>small{
  display:block;
  margin-top:4px;
  color:#617f90;
  font-size:8px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.propagation-column-head,
.propagation-row{
  display:grid;
  grid-template-columns:78px 1.15fr 1.15fr 1.45fr 72px;
  gap:10px;
  align-items:center;
}
.propagation-column-head{
  margin-top:13px;
  padding:0 11px 5px;
  color:#526f80;
  font-size:7px;
  font-weight:900;
  letter-spacing:.09em;
}
.propagation-band-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.propagation-row{
  width:100%;
  min-height:68px;
  padding:9px 10px;
  border:1px solid #264353;
  border-left:3px solid #365767;
  border-radius:9px;
  background:
    linear-gradient(90deg,rgba(73,217,255,.018),transparent 36%),
    rgba(4,15,22,.70);
  color:inherit;
  text-align:left;
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.propagation-row:hover{
  transform:translateY(-1px);
  border-color:#35657a;
  background:
    linear-gradient(90deg,rgba(73,217,255,.05),transparent 40%),
    rgba(5,18,26,.86);
}
.propagation-row.tone-good{
  border-left-color:#42e87b;
}
.propagation-row.tone-observed{
  border-left-color:#49d9ff;
}
.propagation-row.tone-possible{
  border-left-color:#8ccf91;
}
.propagation-row.tone-warn{
  border-left-color:#e2bb56;
}
.propagation-row.tone-bad{
  border-left-color:#e47663;
}
.prop-band strong{
  display:block;
  color:var(--cyan);
  font-size:21px;
  line-height:1;
}
.prop-band small{
  display:block;
  margin-top:4px;
  color:#557586;
  font-size:7px;
}
.prop-axis{
  min-width:0;
}
.prop-axis>span{
  display:block;
  color:#567687;
  font-size:7px;
  font-weight:900;
  letter-spacing:.08em;
}
.prop-axis>strong{
  display:block;
  margin-top:2px;
  color:#d9eaf1;
  font-size:10px;
}
.prop-axis>small{
  display:block;
  margin-top:3px;
  color:#698797;
  font-size:8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.prop-verdict{
  min-width:0;
}
.prop-verdict>strong{
  display:block;
  color:#fff;
  font-size:12px;
}
.prop-verdict>span{
  color:#8ed7e8;
  font-size:10px;
  font-weight:850;
}
.prop-verdict>small{
  display:block;
  margin-top:2px;
  color:#6b8999;
  font-size:8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.prop-confidence{
  justify-self:end;
  min-width:58px;
  padding:5px 7px;
  border:1px solid #2c4b5a;
  border-radius:999px;
  text-align:center;
}
.prop-confidence span{
  font-size:8px;
  font-weight:950;
}
.prop-confidence.conf-high{
  color:var(--green);
  border-color:rgba(66,232,123,.46);
  background:rgba(66,232,123,.045);
}
.prop-confidence.conf-medium{
  color:#e0c56b;
  border-color:rgba(224,197,107,.36);
}
.prop-confidence.conf-low{
  color:#7e9aa9;
}
.propagation-loading{
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px dashed #294959;
  border-radius:9px;
  color:#7695a5;
}
.propagation-loading>strong,
.propagation-loading>small{
  display:block;
}
.propagation-loading>small{
  color:#587889;
  font-size:8px;
}
.propagation-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
  color:#58798a;
  font-size:8px;
}
.evidence-section-title{
  margin:15px 0 7px;
  color:#88a9b8;
  font-size:9px;
  letter-spacing:.07em;
}
.prop-evidence-summary{
  margin:0 0 10px;
}

/* Text-size modes */
body[data-text-size="large"] .prop-meta-card>strong{font-size:15px}
body[data-text-size="large"] .prop-meta-card>small,
body[data-text-size="large"] .prop-axis>small,
body[data-text-size="large"] .prop-verdict>small{font-size:10px}
body[data-text-size="large"] .prop-axis>strong{font-size:12px}
body[data-text-size="large"] .prop-verdict>strong{font-size:14px}
body[data-text-size="large"] .prop-verdict>span{font-size:12px}

body[data-text-size="xlarge"] .prop-meta-card>strong{font-size:16px}
body[data-text-size="xlarge"] .prop-meta-card>small,
body[data-text-size="xlarge"] .prop-axis>small,
body[data-text-size="xlarge"] .prop-verdict>small{font-size:11px}
body[data-text-size="xlarge"] .prop-axis>strong{font-size:13px}
body[data-text-size="xlarge"] .prop-verdict>strong{font-size:15px}
body[data-text-size="xlarge"] .prop-verdict>span{font-size:13px}
body[data-text-size="xlarge"] .prop-band strong{font-size:24px}

body[data-text-size="xxlarge"] .prop-meta-card>strong{font-size:18px}
body[data-text-size="xxlarge"] .prop-meta-card>small,
body[data-text-size="xxlarge"] .prop-axis>small,
body[data-text-size="xxlarge"] .prop-verdict>small{font-size:13px}
body[data-text-size="xxlarge"] .prop-axis>span{font-size:10px}
body[data-text-size="xxlarge"] .prop-axis>strong{font-size:15px}
body[data-text-size="xxlarge"] .prop-verdict>strong{font-size:18px}
body[data-text-size="xxlarge"] .prop-verdict>span{font-size:15px}
body[data-text-size="xxlarge"] .prop-band strong{font-size:27px}
body[data-text-size="xxlarge"] .prop-confidence span{font-size:11px}

@media(max-width:1000px){
  .propagation-meta{
    grid-template-columns:1fr 1fr;
  }
  .propagation-column-head{
    display:none;
  }
  .propagation-row{
    grid-template-columns:70px 1fr 1fr;
    grid-template-areas:
      "band expected observed"
      "band verdict confidence";
  }
  .prop-band{grid-area:band}
  .propagation-row .prop-axis:nth-child(2){grid-area:expected}
  .propagation-row .prop-axis:nth-child(3){grid-area:observed}
  .prop-verdict{grid-area:verdict}
  .prop-confidence{grid-area:confidence}
}

@media(max-width:650px){
  .propagation-panel{
    padding:14px 12px;
  }
  .propagation-meta{
    grid-template-columns:1fr;
  }
  .propagation-row{
    grid-template-columns:58px 1fr;
    grid-template-areas:
      "band verdict"
      "expected expected"
      "observed observed"
      "confidence confidence";
    gap:7px 9px;
  }
  .prop-confidence{
    justify-self:start;
  }
  .propagation-footer{
    flex-direction:column;
  }
}

/* ===== v0.7.1a Conservative propagation trust ===== */
.prop-axis strong{
  white-space:normal;
}
.propagation-row .prop-axis strong{
  max-width:100%;
}
.propagation-row:has(.prop-axis strong:first-of-type){
  --noop:0;
}

/* Distant model should look secondary, not reassuring. */
.prop-axis strong{
  letter-spacing:.01em;
}
