/* MRG shared/decode/header authority · rx20 exact-order consolidation. */

/* ===== BEGIN mrg-shared-ui.css ===== */
[data-mrg-unified-header]{
  --mrg-state-width:35%;
  display:grid;
  grid-template-columns:var(--mrg-state-width) minmax(0,1fr);
  align-items:stretch;
  gap:0;
  min-height:78px;
  padding:0;
  overflow:hidden;
  background:color-mix(in srgb,var(--bg) 96%,transparent);
  border-bottom:1px solid var(--border);
}
.mrg-unified-state{
  position:relative;
  min-width:0;
  width:auto;
  max-width:none;
  min-height:78px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:#0aa963;
  color:#fff;
  overflow:hidden;
}
.mrg-unified-state.state-rx{background:#0aa963;color:#fff}
.mrg-unified-state.state-tx{background:#dc2c22;color:#fff}
.mrg-unified-state.state-offline,.mrg-unified-state.state-off,.mrg-unified-state.state-aus{background:#667085;color:#fff}
.mrg-header-utc{
  position:absolute;
  top:max(.56rem,env(safe-area-inset-top));
  left:.72rem;
  margin:0;
  color:inherit;
  font:850 .68rem/1.05 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.055em;
  white-space:nowrap;
  opacity:.96;
}
.mrg-header-rxtx{
  position:absolute;
  right:.72rem;
  bottom:.58rem;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font-size:.92rem;
  line-height:1;
  font-weight:1000;
  letter-spacing:.095em;
  white-space:nowrap;
}
.global-radio-state.mrg-header-rxtx{display:block;min-height:0}
.global-radio-state.mrg-header-rxtx b{font:inherit;color:inherit}
.public-context-block>div,.mrg-global-identity-statusline{display:contents}

.mrg-unified-actions{
  display:grid;
  grid-template-columns:minmax(0,1.28fr) repeat(3,minmax(0,1fr));
  width:100%;
  max-width:none;
  min-width:0;
  margin:0;
  padding:0;
  gap:0;
  align-self:stretch;
  overflow:visible;
}
.mrg-unified-actions>.mrg-unified-action{
  width:100%;
  min-width:0;
  max-width:none;
  height:100%;
  min-height:78px;
  margin:0;
  padding:.3rem;
  border:0;
  border-left:1px solid var(--border);
  border-radius:0;
  box-shadow:none;
  background:transparent;
  color:var(--text);
  display:grid;
  place-items:center;
  align-content:center;
  gap:.12rem;
}
.mrg-unified-actions>.mrg-unified-action:hover,
.mrg-unified-actions>.mrg-unified-action:focus-visible{
  background:color-mix(in srgb,var(--accent) 7%,var(--surface));
  color:var(--accent);
}
.mrg-unified-action svg{width:38px;height:38px;padding:0;border:0;border-radius:0;box-sizing:border-box;stroke-width:2.05}
.topbar-admin-icon svg{width:39px;height:39px}
.header-legacy-bridge{}
.mrg-unified-actions>.mrg-header-resources{
  padding:0;display:grid;grid-template-rows:1fr 1fr;place-items:stretch;align-content:stretch;gap:0;overflow:hidden;
}
.mrg-resource-row{
  min-width:0;width:100%;height:100%;min-height:0;margin:0;padding:.12rem .28rem;border:0;border-radius:0;
  background:transparent;color:var(--text);display:flex;align-items:center;justify-content:center;gap:.34rem;box-shadow:none;
  font:900 .72rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums;
}
.mrg-resource-row+.mrg-resource-row{border-top:1px solid var(--border)}
button.mrg-resource-row{cursor:pointer}
button.mrg-resource-row:hover,button.mrg-resource-row:focus-visible{background:color-mix(in srgb,var(--accent) 7%,var(--surface));color:var(--accent)}
.mrg-resource-storage{color:#168a50}
.mrg-resource-storage .mrg-storage-icon{width:22px;height:22px;flex:0 0 auto;padding:0}
.mrg-resource-storage>strong{font-size:.72rem;font-weight:950;letter-spacing:-.01em;white-space:nowrap}
.mrg-resource-storage.is-storage-warning{color:#dd8200}
.mrg-resource-storage.is-storage-critical{color:#c92b24}
.mrg-resource-storage.is-storage-unknown{color:var(--muted)}
@keyframes mrg-storage-warning-pulse{0%,100%{opacity:1}50%{opacity:.68}}
@keyframes mrg-storage-critical-pulse{50%{opacity:.42}}
.mrg-resource-storage.is-storage-warning{animation:mrg-storage-warning-pulse 1.8s ease-in-out infinite}
.mrg-resource-storage.is-storage-critical{animation:mrg-storage-critical-pulse .9s ease-in-out infinite}
.mrg-public-resources,.mrg-public-resources .mrg-resource-row{pointer-events:none;cursor:default}
.mrg-unified-battery{grid-template-rows:1fr;gap:0;justify-items:center}
.mrg-unified-battery [hidden]{display:none!important}
.mrg-smart-battery{
  --battery-level:0%;
  position:relative;
  width:52px;height:30px;
  display:grid;place-items:center;
  border:3px solid currentColor;border-radius:7px;
  color:#6b7280;background:color-mix(in srgb,currentColor 7%,transparent);
  box-sizing:border-box;isolation:isolate;
  font-variant-numeric:tabular-nums;
}
.mrg-smart-battery::after{
  content:"";position:absolute;right:-7px;top:8px;width:5px;height:10px;
  border-radius:0 3px 3px 0;background:currentColor;
}
.mrg-smart-battery-fill{
  position:absolute;z-index:-1;left:2px;top:2px;bottom:2px;
  width:clamp(0%,var(--battery-level),100%);
  border-radius:3px;background:currentColor;opacity:.30;
  transition:width .35s ease,background-color .2s ease;
}
.mrg-smart-battery>strong{
  position:relative;z-index:1;display:block;margin:0;
  font-size:.72rem;line-height:1;font-weight:950;letter-spacing:-.015em;color:currentColor;
}
.mrg-unified-battery.is-battery-good{color:#168a50}
.mrg-unified-battery.is-battery-warning{color:#dd8200}
.mrg-unified-battery.is-battery-critical{color:#c92b24}
.mrg-unified-battery.is-battery-offline .mrg-smart-battery{color:var(--muted)}
@keyframes mrg-battery-warning-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.025);opacity:.76}}
@keyframes mrg-battery-critical-pulse{50%{transform:scale(1.055);opacity:.48}}
.mrg-unified-battery.is-battery-warning .mrg-smart-battery{animation:mrg-battery-warning-pulse 1.7s ease-in-out infinite}
.mrg-unified-battery.is-battery-critical .mrg-smart-battery{animation:mrg-battery-critical-pulse .9s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){
  .mrg-unified-battery.is-battery-warning .mrg-smart-battery,
  .mrg-unified-battery.is-battery-critical .mrg-smart-battery,
  .mrg-resource-storage.is-storage-warning,
  .mrg-resource-storage.is-storage-critical{animation:none}
}
.mrg-public-energy{cursor:default;pointer-events:none}
.mrg-public-energy:hover{background:transparent;color:var(--text)}
#publicGatewayState{display:none}
.battery-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.battery-detail-card{min-width:0;padding:10px 11px;border:1px solid var(--border);border-radius:13px;background:var(--surface-soft);display:grid;gap:3px}
.battery-detail-card>span{font-size:.60rem;font-weight:950;letter-spacing:.075em;color:var(--muted);text-transform:uppercase}
.battery-detail-card>strong{font-size:.82rem;line-height:1.22;overflow-wrap:anywhere}
.battery-detail-card>small{font-size:.68rem;line-height:1.22;color:var(--muted)}
.battery-detail-card.is-wide{grid-column:1/-1}
.battery-cell-voltage-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}
.battery-cell-voltage-list b{padding:.28rem .42rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-size:.7rem;font-variant-numeric:tabular-nums}
[data-mrg-radio-strip]{
  display:grid;
  grid-template-columns:minmax(0,50%) minmax(0,50%);
  grid-template-rows:40px 96px 40px;
  align-items:stretch;
  gap:0;
  min-height:0;
  padding:0;
  margin:0;
  overflow:hidden;
  background:var(--surface);
  font-family:inherit;
}
[data-mrg-radio-strip]>.ft8-signal-cell{display:contents}
[data-mrg-radio-strip]>.ft8-radio-readout{
  grid-column:1;
  grid-row:2;
  min-width:0;
  min-height:0;
  box-sizing:border-box;
  padding:.72rem .64rem;
  margin:0;
  border:0;
  border-right:1px solid color-mix(in srgb,var(--border) 90%,transparent);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  display:grid;
  align-content:center;
  justify-items:center;
  text-align:center;
  gap:.38rem;
  font-family:inherit;
}
[data-mrg-radio-strip] .ft8-radio-kicker{
  width:100%;
  max-width:100%;
  font-family:inherit;
  font-size:.72rem;
  line-height:1.05;
  font-weight:900;
  letter-spacing:.065em;
  color:var(--muted);
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
[data-mrg-radio-strip] .ft8-radio-readout>strong{
  display:inline-flex;
  align-items:flex-end;
  justify-content:center;
  gap:.055rem;
  width:100%;
  max-width:100%;
  overflow:visible;
  text-overflow:clip;
  white-space:nowrap;
  font-family:inherit;
  font-size:clamp(2.15rem,8.9vw,3.25rem);
  line-height:.9;
  font-weight:950;
  letter-spacing:-.052em;
  font-variant-numeric:tabular-nums;
}
[data-mrg-radio-strip] .ft8-frequency-tail-stack{display:inline-grid;align-items:end;gap:.055rem;margin-bottom:.025em}
[data-mrg-radio-strip] .ft8-frequency-tail-stack>small{font-family:inherit;font-size:.46em;line-height:.72;color:var(--muted);letter-spacing:-.01em}
[data-mrg-radio-strip] .ft8-frequency-tail-stack>span{font-family:inherit;font-size:.25em;line-height:1;font-weight:950;letter-spacing:.07em;color:var(--muted);text-align:left}

[data-mrg-radio-strip]>.ft8-preset-picker{
  grid-column:2;
  grid-row:2;
  min-width:0;
  min-height:0;
  box-sizing:border-box;
  margin:0;
  padding:.72rem .64rem;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  display:grid;
  place-items:center;
  align-content:center;
  font-family:inherit;
}
[data-mrg-radio-strip]>.ft8-preset-picker>span:first-child,
[data-mrg-radio-strip]>.ft8-preset-picker>small,
[data-mrg-radio-strip] #qsoPresetMeta{display:none}
[data-mrg-radio-strip]>.ft8-preset-picker select,
[data-mrg-radio-strip] .qso-preset-control select{
  width:100%;
  max-width:none;
  min-width:0;
  height:54px;
  min-height:54px;
  box-sizing:border-box;
  padding:.52rem .72rem;
  border-radius:14px;
  font-family:inherit;
  font-size:.88rem;
  line-height:1.15;
  font-weight:850;
  text-overflow:ellipsis;
}
[data-mrg-radio-strip] .qso-preset-control{min-width:0;width:100%;max-width:none}
[data-mrg-radio-strip] .qso-preset-control select[hidden]{display:none!important}
[data-mrg-radio-strip] .mrg-radio-meter-row{
  min-width:0;
  min-height:40px;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  column-gap:.72rem;
  padding:.46rem 1rem;
  background:color-mix(in srgb,var(--surface-soft) 72%,var(--surface));
  font-family:inherit;
}
[data-mrg-radio-strip] .mrg-radio-power-row{grid-column:1/-1;grid-row:1;border-bottom:1px solid color-mix(in srgb,var(--border) 82%,transparent)}
[data-mrg-radio-strip] .mrg-radio-swr-row{grid-column:1/-1;grid-row:3;border-top:1px solid color-mix(in srgb,var(--border) 82%,transparent)}
[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-power-title,
[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-swr-title{display:contents}
[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-power-title>span,
[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-swr-title>span{
  grid-column:1;
  grid-row:1;
  font-family:inherit;
  font-size:.76rem;
  line-height:1;
  font-weight:950;
  letter-spacing:.07em;
  color:var(--muted);
  white-space:nowrap;
}
/* 0.6.18-alpha176 · RX meter reuse */
[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-power-title>small,
[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-swr-title>small{
  grid-column:3;
  grid-row:1;
  font-family:inherit;
  font-size:.82rem;
  line-height:1;
  font-weight:950;
  color:var(--muted);
  white-space:nowrap;
}
[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-power-ladder,
[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-swr-ladder{
  grid-column:2;
  grid-row:1;
  width:100%;
  min-width:0;
  height:13px;
  min-height:13px;
  margin:0;
  gap:2px;
}
[data-mrg-radio-strip] .ft8-power-ladder i,
[data-mrg-radio-strip] .ft8-swr-ladder i{border-radius:2px}
[data-mrg-radio-strip] .mrg-radio-swr-row.is-af-meter .ft8-swr-ladder i.is-on:nth-child(-n/**/+11){background:#22c55e}
[data-mrg-radio-strip] .mrg-radio-swr-row.is-af-meter .ft8-swr-ladder i.is-on:nth-child(n/**/+12):nth-child(-n/**/+14){background:#eab308}
[data-mrg-radio-strip] .mrg-radio-swr-row.is-af-meter .ft8-swr-ladder i.is-on:nth-child(n/**/+15):nth-child(-n/**/+17){background:#f97316}
[data-mrg-radio-strip] .mrg-radio-swr-row.is-af-meter .ft8-swr-ladder i.is-on:nth-child(n/**/+18){background:#ef4444}
.sstv-mode-meter,.sstv-tx-meter-cell{display:contents}
.sstv-rx-status-cell{display:none}
.sstv-mode-meter [hidden]{display:none!important}

@media(max-width:520px){
  [data-mrg-unified-header]{--mrg-state-width:32%;min-height:72px}
  .mrg-unified-state{min-height:72px}
  .mrg-header-utc{top:max(.46rem,env(safe-area-inset-top));left:.5rem;font-size:.58rem}
  .mrg-header-rxtx{right:.5rem;bottom:.47rem;font-size:.82rem}
  .mrg-unified-actions>.mrg-unified-action{min-height:72px;padding:.22rem}
  .mrg-unified-action svg,.topbar-admin-icon svg{width:33px;height:33px}
  .mrg-smart-battery{width:44px;height:25px;border-width:2px}.mrg-smart-battery::after{right:-6px;top:7px;width:4px;height:8px}.mrg-smart-battery>strong{font-size:.63rem}
  .mrg-resource-row{padding:.08rem .16rem;gap:.24rem}.mrg-resource-storage .mrg-storage-icon{width:19px;height:19px}.mrg-resource-storage>strong{font-size:.64rem}
  .battery-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

  [data-mrg-radio-strip]{grid-template-columns:minmax(0,50%) minmax(0,50%);grid-template-rows:38px 92px 38px;min-height:0}
  [data-mrg-radio-strip]>.ft8-radio-readout{padding:.64rem .5rem;gap:.3rem}
  [data-mrg-radio-strip] .ft8-radio-kicker{font-size:.65rem}
  [data-mrg-radio-strip] .ft8-radio-readout>strong{font-size:clamp(2rem,9.4vw,2.68rem)}
  [data-mrg-radio-strip]>.ft8-preset-picker{padding:.64rem .5rem}
  [data-mrg-radio-strip]>.ft8-preset-picker select,[data-mrg-radio-strip] .qso-preset-control select{height:50px;min-height:50px;font-size:.8rem;padding:.46rem .54rem}
  [data-mrg-radio-strip] .mrg-radio-meter-row{min-height:38px;padding:.42rem .76rem;column-gap:.52rem}
  [data-mrg-radio-strip] .mrg-radio-meter-row .ft8-power-title>span,[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-swr-title>span{font-size:.69rem}
  [data-mrg-radio-strip] .mrg-radio-meter-row .ft8-power-title>small,[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-swr-title>small{font-size:.75rem}
  [data-mrg-radio-strip] .mrg-radio-meter-row .ft8-power-ladder,[data-mrg-radio-strip] .mrg-radio-meter-row .ft8-swr-ladder{height:12px;min-height:12px}
}
@media(max-width:390px){
  .mrg-header-utc{font-size:.53rem;left:.42rem}
  .mrg-header-rxtx{font-size:.76rem;right:.42rem}
  .mrg-unified-action svg,.topbar-admin-icon svg{width:30px;height:30px}
  .mrg-smart-battery{width:40px;height:23px}.mrg-smart-battery>strong{font-size:.58rem}
  .mrg-resource-row{gap:.18rem}.mrg-resource-storage .mrg-storage-icon{width:17px;height:17px}.mrg-resource-storage>strong{font-size:.59rem}
  [data-mrg-radio-strip]{grid-template-columns:minmax(0,50%) minmax(0,50%)}
  [data-mrg-radio-strip] .ft8-radio-readout>strong{font-size:clamp(1.9rem,9.8vw,2.35rem)}
  [data-mrg-radio-strip] .ft8-radio-kicker{font-size:.6rem}
  [data-mrg-radio-strip]>.ft8-preset-picker select,[data-mrg-radio-strip] .qso-preset-control select{font-size:.74rem}
  [data-mrg-radio-strip] .mrg-radio-meter-row{padding-inline:.62rem;column-gap:.42rem}
}
.admin-main{--mrg-operator-edge:1rem}
@media(min-width:980px){.admin-main{--mrg-operator-edge:1.35rem}}

.digital-operating-shell{
  width:calc(100% + var(--mrg-operator-edge) + var(--mrg-operator-edge));
  max-width:none;
  margin:0 calc(0px - var(--mrg-operator-edge));
  box-sizing:border-box;
}

.ft8-view[data-view="ft8"]>.ft8-keybar,
.lo64-view .qso-mode-content>.ft8-keybar,
.lo64-view .qso-jf8-lab>.jf8-keybar,
.sstv-view>.sstv-keybar{
  width:calc(100% + var(--mrg-operator-edge) + var(--mrg-operator-edge));
  max-width:none;
  margin:0 calc(0px - var(--mrg-operator-edge));
  box-sizing:border-box;
}
.digital-operating-shell{margin-bottom:0}
.digital-operating-shell .digital-top-slot-strip{margin-bottom:0}
.ft8-view[data-view="ft8"]>.ft8-keybar,
.lo64-view .qso-mode-content>.ft8-keybar,
.lo64-view .qso-jf8-lab>.jf8-keybar,
.sstv-view>.sstv-keybar{margin-top:0}
.sstv-diagnostic-key{cursor:pointer;align-content:center;gap:.03rem;transition:background-color .16s ease,color .16s ease,box-shadow .16s ease}
.sstv-diagnostic-key strong{font-size:.78rem;font-weight:950;letter-spacing:.04em;line-height:1}
.sstv-diagnostic-key small{font-size:.42rem;font-weight:950;letter-spacing:.08em;line-height:1.05}
.sstv-diagnostic-key.is-ready:not(:disabled){background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);box-shadow:inset 0 -3px 0 color-mix(in srgb,var(--accent) 72%,transparent)}
.sstv-diagnostic-key.is-ready:not(:disabled):active{filter:brightness(1.05)}
.sstv-diagnostic-key.is-capturing{background:color-mix(in srgb,var(--success) 16%,transparent);color:var(--success)}
.sstv-diagnostic-key:disabled{cursor:not-allowed;opacity:.5}
.sstv-progress-strip.is-searching>span{
  width:24%;
  left:-24%;
  background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--success) 82%,#fff),color-mix(in srgb,var(--accent) 70%,#fff),transparent);
  opacity:.72;
  animation:sstv-vis-search-scan 1.45s linear infinite;
}
@keyframes sstv-vis-search-scan{
  from{transform:translateX(0)}
  to{transform:translateX(520%)}
}
.sstv-diagnostic-key.is-saved{
  background:color-mix(in srgb,var(--success) 18%,transparent);
  color:var(--success);
  box-shadow:inset 0 -3px 0 color-mix(in srgb,var(--success) 78%,transparent);
}
@media (prefers-reduced-motion:reduce){
  .sstv-progress-strip.is-searching>span{left:0;width:100%;animation:none;opacity:.16}
}
.mrg-header-resources .mrg-resource-row{
  
  grid-template-columns:minmax(23px,24%) minmax(0,76%);
  
  
  
  
}
.mrg-header-resources .mrg-resource-key{
  display:grid;
  place-items:center;
  min-width:0;
  padding:0 .14rem;
  border-right:1px solid var(--border);
  color:currentColor;
  font-size:.58rem;
  font-weight:950;
  letter-spacing:.035em;
  line-height:1;
  text-align:center;
}
.mrg-header-resources .mrg-resource-meter{
  --resource-level:0%;
  position:relative;
  isolation:isolate;
  width:100%;
  height:100%;
  min-width:0;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:color-mix(in srgb,currentColor 5%,transparent);
  color:currentColor;
  box-sizing:border-box;
}
.mrg-header-resources .mrg-resource-fill{
  position:absolute;
  z-index:-1;
  inset:0 auto 0 0;
  width:clamp(0%,var(--resource-level),100%);
  border-radius:0;
  background:currentColor;
  opacity:.25;
  transition:width .35s ease,opacity .2s ease,background-color .2s ease;
}
.mrg-header-resources .mrg-resource-meter>strong{
  position:relative;
  z-index:1;
  display:block;
  margin:0;
  max-width:100%;
  padding:0 .12rem;
  overflow:hidden;
  text-overflow:clip;
  white-space:nowrap;
  color:currentColor;
  font-size:.66rem;
  font-weight:950;
  line-height:1;
  letter-spacing:-.015em;
  font-variant-numeric:tabular-nums;
}
.mrg-header-resources .mrg-smart-battery{border:0;border-radius:0;width:100%;height:100%;background:color-mix(in srgb,currentColor 5%,transparent)}
.mrg-header-resources .mrg-smart-battery::after{display:none}
.mrg-header-resources .mrg-smart-battery-fill{inset:0 auto 0 0;width:clamp(0%,var(--resource-level),100%);border-radius:0;opacity:.25}
.mrg-header-resources .mrg-storage-meter{--resource-level:0%}
.mrg-header-resources .mrg-storage-fill{inset:0 auto 0 0;width:clamp(0%,var(--resource-level),100%);border:0;border-radius:0;background:currentColor;box-shadow:none;opacity:.25}
.mrg-header-resources .mrg-resource-storage{color:#168a50}
.mrg-header-resources .is-storage-unknown{color:var(--muted)}
.mrg-header-resources .is-battery-offline{color:var(--muted)}
.mrg-header-resources .is-battery-warning .mrg-resource-meter,
.mrg-header-resources .is-battery-critical .mrg-resource-meter{animation:none}

@media(max-width:520px){
  .mrg-header-resources .mrg-resource-row{grid-template-columns:minmax(21px,25%) minmax(0,75%)}
  .mrg-header-resources .mrg-resource-key{padding:0 .08rem;font-size:.51rem;letter-spacing:.025em}
  .mrg-header-resources .mrg-resource-meter>strong{padding:0 .05rem;font-size:.58rem}
}
.mrg-unified-actions>.mrg-header-resources{
  position:relative;
  margin:.34rem .28rem;
  min-height:calc(100% - .68rem);
  height:calc(100% - .68rem);
  align-self:center;
  border:1px solid color-mix(in srgb,var(--border) 92%,transparent);
  border-radius:9px;
  overflow:hidden;
  background:color-mix(in srgb,var(--surface) 94%,transparent);
}
.mrg-unified-actions>.mrg-header-resources::before{
  content:"";
  position:absolute;
  z-index:4;
  left:24%;
  top:0;
  bottom:0;
  width:1px;
  background:var(--border);
  pointer-events:none;
}
.mrg-unified-actions>.mrg-header-resources::after{
  content:"";
  position:absolute;
  z-index:4;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:var(--border);
  pointer-events:none;
}
.mrg-header-resources .mrg-resource-row{
  position:relative;
  z-index:1;
  border:0;
  background:transparent;
}
.mrg-header-resources .mrg-resource-row+.mrg-resource-row{border-top:0}
.mrg-header-resources .mrg-resource-key{
  border-right:0;
  background:color-mix(in srgb,var(--surface2) 30%,transparent);
}
.mrg-header-resources .mrg-resource-meter{
  background:color-mix(in srgb,currentColor 4%,var(--surface));
}
.mrg-header-resources .mrg-resource-fill{opacity:.28}
.mrg-header-resources .mrg-resource-row:hover,
.mrg-header-resources .mrg-resource-row:focus-visible{
  background:color-mix(in srgb,var(--accent) 5%,transparent);
}
@media(max-width:520px){
  .mrg-unified-actions>.mrg-header-resources{margin:.26rem .18rem;min-height:calc(100% - .52rem);height:calc(100% - .52rem);border-radius:7px}
  .mrg-unified-actions>.mrg-header-resources::before{left:25%}
}
.mrg-unified-actions>.mrg-header-resources{
  width:auto;
  min-width:0;
  max-width:none;
  justify-self:stretch;
  box-sizing:border-box;
}
[data-mrg-radio-strip]{
  grid-template-rows:36px 90px 36px;
}
[data-mrg-radio-strip]>.ft8-radio-readout,
[data-mrg-radio-strip]>.ft8-preset-picker{
  padding:.62rem .60rem;
}
[data-mrg-radio-strip]>.ft8-preset-picker select,
[data-mrg-radio-strip] .qso-preset-control select{
  height:50px;
  min-height:50px;
}
[data-mrg-radio-strip] .mrg-radio-meter-row{
  min-height:36px;
  padding:.36rem 1rem;
}
[data-mrg-radio-strip] .ft8-power-ladder i,
[data-mrg-radio-strip] .ft8-swr-ladder i{
  transition:background-color .14s linear,opacity .14s linear,box-shadow .14s linear;
}

.mrg-unified-actions>.mrg-header-resources{
  margin:0;
  width:auto;
  min-width:0;
  max-width:none;
  height:100%;
  min-height:100%;
  align-self:stretch;
  justify-self:stretch;
  border:0;
  border-radius:0;
  background:transparent;
}

@media(max-width:520px){
  [data-mrg-radio-strip]{grid-template-rows:35px 88px 35px}
  [data-mrg-radio-strip]>.ft8-radio-readout{padding:.56rem .5rem;gap:.28rem}
  [data-mrg-radio-strip]>.ft8-preset-picker{padding:.56rem .5rem}
  [data-mrg-radio-strip]>.ft8-preset-picker select,
  [data-mrg-radio-strip] .qso-preset-control select{height:46px;min-height:46px;padding:.42rem .54rem}
  [data-mrg-radio-strip] .mrg-radio-meter-row{min-height:35px;padding:.34rem .76rem}
  .mrg-unified-actions>.mrg-header-resources{margin:0;height:100%;min-height:100%;border-radius:0}
}
.mrg-header-resources .mrg-resource-icon{padding:0}
.mrg-header-resources .mrg-resource-icon svg{width:16px;height:16px;display:block;overflow:visible}
@media(max-width:520px){.mrg-header-resources .mrg-resource-icon svg{width:14px;height:14px}}
.mrg-unified-actions{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,.92fr))}
.mrg-unified-action svg,.topbar-admin-icon svg{width:34px;height:34px}
.mrg-header-resources .mrg-resource-row{grid-template-columns:minmax(34px,30%) minmax(0,70%)}
.mrg-unified-actions>.mrg-header-resources::before{left:30%}
.mrg-header-resources .mrg-resource-icon svg{width:20px;height:20px}
@media(max-width:520px){
  .mrg-header-resources .mrg-resource-row{grid-template-columns:minmax(30px,30%) minmax(0,70%)}
  .mrg-header-resources .mrg-resource-icon svg{width:18px;height:18px}
}
@media(max-width:390px){
  .mrg-unified-action svg,.topbar-admin-icon svg{width:28px;height:28px}
  .mrg-header-resources .mrg-resource-icon svg{width:17px;height:17px}
}
#adminShell>.mrg-global-header .mrg-unified-actions{
  grid-template-columns:repeat(3,minmax(0,.92fr)) minmax(0,1.5fr);
}
#adminShell .mrg-header-resources .mrg-resource-row{
  grid-template-columns:minmax(30px,30%) minmax(0,70%);
}
#adminShell .mrg-header-resources .mrg-resource-meter{
  position:relative;
  display:grid;
  place-items:center;
  align-content:center;
  min-width:0;
  padding:.08rem .18rem .42rem;
  overflow:hidden;
  background:transparent;
}
#adminShell .mrg-header-resources .mrg-resource-meter::after{
  content:"";
  position:absolute;
  left:.18rem;
  right:.18rem;
  bottom:.18rem;
  height:4px;
  border-radius:999px;
  background:color-mix(in srgb,currentColor 16%,transparent);
}
#adminShell .mrg-header-resources .mrg-resource-fill,
#adminShell .mrg-header-resources .mrg-smart-battery-fill,
#adminShell .mrg-header-resources .mrg-storage-fill{
  position:absolute;
  z-index:1;
  left:.18rem;
  bottom:.18rem;
  top:auto;
  height:4px;
  max-width:calc(100% - .36rem);
  border-radius:999px;
  opacity:.92;
  background:currentColor;
}
#adminShell .mrg-header-resources .mrg-resource-meter>strong{
  position:relative;
  z-index:2;
  align-self:center;
  justify-self:center;
  line-height:1;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.01em;
}
@media(max-width:520px){
  #adminShell .mrg-header-resources .mrg-resource-row{grid-template-columns:minmax(28px,30%) minmax(0,70%)}
  #adminShell .mrg-header-resources .mrg-resource-meter>strong{font-size:.60rem}
}
/* ===== END mrg-shared-ui.css ===== */

/* ===== BEGIN decode-cards.css ===== */
.unified-decode-head,
.digital-card-head,
.operator-decode-head,
.public-ft8-column-head,
.public-logbook-column-head {
  display: none !important;
}

.unified-decode-list,
.public-ft8-list,
.ft8-history,
.lo64-list {
  display: grid !important;
  gap: .62rem !important;
}

.mrg-decode-day,
.ft8-history-day,
.public-ft8-group {
  display: flex !important;
  align-items: center !important;
  gap: .55rem !important;
  min-width: 0 !important;
  margin: .42rem .10rem .06rem !important;
  color: var(--muted) !important;
  font-size: .68rem !important;
  font-weight: 900 !important;
  letter-spacing: .055em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}
.mrg-decode-day::after,
.ft8-history-day::after,
.public-ft8-group::after {
  content: "" !important;
  flex: 1 1 auto !important;
  min-width: 18px !important;
  height: 1px !important;
  background: color-mix(in srgb, var(--border) 72%, transparent) !important;
}

.mrg-decode-card {
  --mrg-card-accent: var(--decode-highlight, var(--border));
  position: relative !important;
  display: grid !important;
  grid-template-areas:
    "head"
    "body"
    "contact"
    "actions"
    "power" !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: .72rem .78rem .76rem !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  border-left: 5px solid color-mix(in srgb, var(--mrg-card-accent) 86%, var(--border)) !important;
  border-radius: 17px !important;
  background: linear-gradient(110deg,
    color-mix(in srgb, var(--mrg-card-accent) 5%, var(--surface)) 0%,
    var(--surface) 40%,
    var(--surface) 100%) !important;
  box-shadow: 0 4px 14px color-mix(in srgb, #0f172a 6%, transparent) !important;
  color: var(--text) !important;
  font: inherit !important;
  text-align: left !important;
}

.mrg-decode-card.is-selected {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent) !important;
  outline-offset: -2px !important;
}

.mrg-decode-card.is-cq,
.mrg-decode-card.is-my-call,
.mrg-decode-card.is-qso,
.mrg-decode-card.is-confirmation,
.mrg-decode-card.is-tx-highlight,
.mrg-decode-card.is-confirmed,
.mrg-decode-card.is-incomplete,
.mrg-decode-card.is-highlighted {
  --mrg-card-accent: var(--decode-highlight, var(--ft8-row-highlight, var(--accent)));
}

.mrg-decode-card--lo64.is-direct { --mrg-card-accent: var(--lo64-direct); }
.mrg-decode-card--lo64.is-ack { --mrg-card-accent: var(--lo64-ack); }
.mrg-decode-card--lo64.is-heartbeat { --mrg-card-accent: var(--lo64-hb); }
.mrg-decode-card--lo64.is-cq { --mrg-card-accent: var(--lo64-cq); }
.mrg-decode-card--lo64.is-tx { --mrg-card-accent: var(--lo64-tx); }
.mrg-decode-card--public-logbook.is-heard { --mrg-card-accent: var(--muted); }
.mrg-decode-card--jf8 { --mrg-card-accent: color-mix(in srgb, var(--accent) 42%, var(--border)); }
.mrg-decode-card--jf8[data-jf8-kind="heartbeat"] { --mrg-card-accent: #3f7ee8; }
.mrg-decode-card--jf8[data-jf8-kind="ack"] { --mrg-card-accent: #1599a6; }
.mrg-decode-card__head {
  grid-area: head !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .72rem !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 .58rem !important;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent) !important;
}

.mrg-decode-card__meta {
  display: inline-flex !important;
  align-items: center !important;
  gap: .42rem !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.mrg-decode-card__flag {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 26px !important;
  margin: 0 !important;
  font-size: 1.28rem !important;
  line-height: 1 !important;
  filter: saturate(1.08) !important;
}
.mrg-decode-card__flag.is-empty {
  width: 24px !important;
  height: 16px !important;
  flex-basis: 30px !important;
  border: 1px solid color-mix(in srgb, var(--muted) 58%, var(--border)) !important;
  border-radius: 3px !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface2) 88%, var(--surface)) 0 46%, color-mix(in srgb, var(--muted) 12%, var(--surface)) 46% 54%, color-mix(in srgb, var(--surface2) 88%, var(--surface)) 54% 100%) !important;
  color: var(--muted) !important;
  opacity: 1 !important;
  font: 950 .64rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 6%, transparent) !important;
}

.mrg-decode-card__time,
.mrg-decode-card__hz,
.mrg-decode-card__separator {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--muted) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}
.mrg-decode-card__time {
  color: color-mix(in srgb, var(--text) 82%, var(--muted)) !important;
  font-size: .74rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
.mrg-decode-card__separator {
  opacity: .56 !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
.mrg-decode-card__hz {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: .70rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.mrg-decode-card__metrics {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .48rem !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}
.mrg-decode-card__status { order: 1 !important; }
.mrg-decode-card__worked { order: 2 !important; }
.mrg-decode-card__distance { order: 3 !important; }
.mrg-decode-card__metric-divider { order: 4 !important; }
.mrg-decode-card__signal-value { order: 5 !important; }

.mrg-decode-card__status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 48px !important;
  min-height: 27px !important;
  padding: .18rem .58rem !important;
  border: 1px solid currentColor !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, currentColor 8%, var(--surface)) !important;
  font-size: .64rem !important;
  font-weight: 950 !important;
  letter-spacing: .055em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.mrg-decode-card__status[hidden] { display: none !important; }
.mrg-decode-card__status.is-tx { color: #d4443a !important; }
.mrg-decode-card__status.is-cq,
.mrg-decode-card__status.is-qso { color: #179553 !important; }
.mrg-decode-card__status.is-hb { color: #3f7ee8 !important; }
.mrg-decode-card__status.is-ack { color: #1599a6 !important; }
:root[data-theme="dark"] .mrg-decode-card__status.is-tx { color: #ff928a !important; }
:root[data-theme="dark"] .mrg-decode-card__status.is-cq,
:root[data-theme="dark"] .mrg-decode-card__status.is-qso { color: #75e59d !important; }
:root[data-theme="dark"] .mrg-decode-card__status.is-hb { color: #8ab8ff !important; }
:root[data-theme="dark"] .mrg-decode-card__status.is-ack { color: #6ad9e1 !important; }

.mrg-decode-card__worked {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 20px !important;
  height: 20px !important;
  color: #169553 !important;
  font-size: .86rem !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  text-shadow: 0 0 8px color-mix(in srgb, #169553 22%, transparent) !important;
}
.mrg-decode-card__worked[hidden] { display: none !important; }
:root[data-theme="dark"] .mrg-decode-card__worked { color: #78e7a2 !important; }

.mrg-decode-card__distance {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.mrg-decode-card__distance:empty { display: none !important; }
.mrg-decode-card__distance-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .24rem !important;
  min-height: 28px !important;
  padding: .20rem .46rem !important;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--surface2) 78%, var(--surface)) !important;
  color: var(--text) !important;
  font-size: .68rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.mrg-decode-card__distance-icon {
  color: var(--accent) !important;
  font-size: .72rem !important;
  line-height: 1 !important;
}


.mrg-decode-card__metric-divider {
  display: block !important;
  flex: 0 0 1px !important;
  width: 1px !important;
  height: 20px !important;
  margin: 0 .02rem !important;
  background: color-mix(in srgb, var(--muted) 48%, transparent) !important;
  border-radius: 999px !important;
}
.mrg-decode-card__metric-divider[hidden] { display: none !important; }

.mrg-decode-card__signal-value {
  display: inline-flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  gap: .34rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.mrg-decode-card__signal-value[hidden] { display: none !important; }
.mrg-decode-card__signal-bars {
  display: inline-flex !important;
  align-items: flex-end !important;
  gap: 2px !important;
  height: 20px !important;
  line-height: 1 !important;
}
.mrg-decode-card__signal-bars i {
  display: block !important;
  width: 4px !important;
  border-radius: 2px 2px 0 0 !important;
  background: color-mix(in srgb, var(--muted) 45%, transparent) !important;
}
.mrg-decode-card__signal-bars i:nth-child(1) { height: 5px !important; }
.mrg-decode-card__signal-bars i:nth-child(2) { height: 10px !important; }
.mrg-decode-card__signal-bars i:nth-child(3) { height: 15px !important; }
.mrg-decode-card__signal-bars i:nth-child(4) { height: 20px !important; }
.mrg-decode-card__signal-bars i.is-on { background: var(--success) !important; }
.mrg-decode-card__snr {
  min-width: 28px !important;
  margin: 0 !important;
  color: var(--text) !important;
  font-size: .74rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: left !important;
  font-variant-numeric: tabular-nums !important;
}
.mrg-decode-card__contact-mark {
  grid-area: contact !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: end !important;
  min-width: 31px !important;
  min-height: 25px !important;
  margin: .42rem 0 0 !important;
  padding: .14rem .48rem !important;
  border: 1px solid currentColor !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, currentColor 8%, var(--surface)) !important;
  font-size: .72rem !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
  white-space: nowrap !important;
}
.mrg-decode-card__contact-mark[hidden] { display: none !important; }
.mrg-decode-card__contact-mark.is-attempted { color: #c67800 !important; }
.mrg-decode-card__contact-mark.is-confirmed { color: #169553 !important; min-width: 38px !important; }
:root[data-theme="dark"] .mrg-decode-card__contact-mark.is-attempted { color: #ffc35f !important; }
:root[data-theme="dark"] .mrg-decode-card__contact-mark.is-confirmed { color: #78e7a2 !important; }
.mrg-decode-card__body {
  grid-area: body !important;
  display: grid !important;
  align-content: start !important;
  gap: .34rem !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .60rem 0 0 !important;
  text-align: left !important;
}
.mrg-decode-card__station {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: .42rem !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}
.mrg-decode-card__call {
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 1.02rem !important;
  font-weight: 950 !important;
  line-height: 1.10 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.mrg-decode-card__locator {
  margin: 0 !important;
  color: var(--muted) !important;
  font: 800 .70rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  white-space: nowrap !important;
}
.mrg-decode-card__message {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text) !important;
  font-size: .86rem !important;
  font-weight: 500 !important;
  line-height: 1.38 !important;
  text-align: left !important;
  text-indent: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-decoration: none !important;
}

.mrg-decode-card__actions,
.mrg-decode-card__confirmation {
  grid-area: actions !important;
  min-width: 0 !important;
  margin: .52rem 0 0 !important;
  padding: .50rem 0 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--border) 62%, transparent) !important;
}
.mrg-decode-card__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .36rem !important;
}
.mrg-decode-card__confirmation {
  color: var(--success) !important;
  font-size: .68rem !important;
  font-weight: 900 !important;
}

.mrg-decode-card__power-row {
  grid-area: power !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  margin: .52rem 0 0 !important;
  padding: .50rem 0 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--border) 62%, transparent) !important;
}
.mrg-decode-card__power-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 25px !important;
  padding: .16rem .58rem !important;
  border: 1px solid color-mix(in srgb, var(--border) 88%, var(--muted)) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--surface2) 92%, var(--surface)) !important;
  color: color-mix(in srgb, var(--text) 82%, var(--muted)) !important;
  font: 900 .66rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

.mrg-decode-card--public-logbook.has-delete .public-logbook-entry-delete {
  position: static !important;
  grid-area: actions !important;
  justify-self: start !important;
  align-self: center !important;
  transform: none !important;
  margin: .52rem 0 0 !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
}
@media (max-width: 760px) {
  .unified-decode-list,
  .public-ft8-list,
  .ft8-history,
  .lo64-list { gap: .56rem !important; }

  .mrg-decode-card {
    padding: .64rem .66rem .68rem !important;
    border-radius: 16px !important;
  }
  .mrg-decode-card__head {
    gap: .48rem !important;
    padding-bottom: .52rem !important;
  }
  .mrg-decode-card__meta { gap: .34rem !important; }
  .mrg-decode-card__flag { flex-basis: 27px !important; width: 27px !important; height: 24px !important; font-size: 1.15rem !important; }
  .mrg-decode-card__time { font-size: .69rem !important; }
  .mrg-decode-card__separator { font-size: .66rem !important; }
  .mrg-decode-card__hz { font-size: .65rem !important; }
  .mrg-decode-card__metrics { gap: .38rem !important; }
  .mrg-decode-card__status { min-width: 44px !important; min-height: 24px !important; padding-inline: .46rem !important; font-size: .59rem !important; }
  .mrg-decode-card__distance-badge { min-height: 25px !important; padding: .16rem .36rem !important; font-size: .62rem !important; }
  .mrg-decode-card__distance-icon { font-size: .66rem !important; }
  .mrg-decode-card__signal-bars { height: 18px !important; gap: 2px !important; }
  .mrg-decode-card__signal-bars i { width: 3px !important; }
  .mrg-decode-card__signal-bars i:nth-child(1) { height: 4px !important; }
  .mrg-decode-card__signal-bars i:nth-child(2) { height: 8px !important; }
  .mrg-decode-card__signal-bars i:nth-child(3) { height: 13px !important; }
  .mrg-decode-card__signal-bars i:nth-child(4) { height: 18px !important; }
  .mrg-decode-card__snr { min-width: 24px !important; font-size: .67rem !important; }
  .mrg-decode-card__body { padding-top: .52rem !important; gap: .30rem !important; }
  .mrg-decode-card__call { font-size: .96rem !important; }
  .mrg-decode-card__locator { font-size: .65rem !important; }
  .mrg-decode-card__message { font-size: .81rem !important; line-height: 1.38 !important; }
}

@media (max-width: 390px) {
  .mrg-decode-card { padding-inline: .56rem !important; }
  .mrg-decode-card__head { gap: .34rem !important; }
  .mrg-decode-card__meta { gap: .27rem !important; }
  .mrg-decode-card__flag { flex-basis: 24px !important; width: 24px !important; font-size: 1.05rem !important; }
  .mrg-decode-card__time { font-size: .64rem !important; }
  .mrg-decode-card__hz { font-size: .60rem !important; }
  .mrg-decode-card__metrics { gap: .28rem !important; }
  .mrg-decode-card__status { min-width: 39px !important; min-height: 22px !important; padding-inline: .38rem !important; font-size: .54rem !important; }
  .mrg-decode-card__distance-badge { min-height: 23px !important; padding-inline: .30rem !important; font-size: .57rem !important; }
  .mrg-decode-card__signal-value { gap: .26rem !important; }
  .mrg-decode-card__signal-bars { height: 16px !important; }
  .mrg-decode-card__signal-bars i:nth-child(2) { height: 7px !important; }
  .mrg-decode-card__signal-bars i:nth-child(3) { height: 11px !important; }
  .mrg-decode-card__signal-bars i:nth-child(4) { height: 16px !important; }
  .mrg-decode-card__snr { min-width: 21px !important; font-size: .61rem !important; }
  .mrg-decode-card__call { font-size: .91rem !important; }
  .mrg-decode-card__message { font-size: .77rem !important; }
}
/* ===== END decode-cards.css ===== */

/* ===== BEGIN cockpit-header.css ===== */
/* beta1-pre40 · compact cockpit header tiles */
#adminShell .mrg-cockpit-header-grid{overflow:hidden!important}
#adminShell .mrg-cockpit-header-grid>.mrg-header-stack{position:relative!important;min-width:0!important;max-width:100%!important;margin:0!important;height:82px!important;box-sizing:border-box!important;overflow:hidden!important}

/* propagation: band name + pure trend graphic, no prose in the compact header */
#adminShell .mrg-header-propagation{isolation:isolate!important;overflow:hidden!important}
#adminShell .mrg-prop-tile{position:relative!important;isolation:isolate!important;overflow:hidden!important;contain:paint!important;min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;z-index:1;padding:0 .38rem!important;display:block!important;background:color-mix(in srgb,var(--warning) 9%,transparent)!important}
#adminShell .mrg-prop-tile.is-good{background:color-mix(in srgb,var(--success) 11%,transparent)!important}
#adminShell .mrg-prop-tile.is-poor{background:color-mix(in srgb,var(--danger) 10%,transparent)!important}
#adminShell .mrg-prop-tile>span{position:absolute!important;z-index:3!important;left:.42rem!important;top:.34rem!important;pointer-events:none!important}
#adminShell .mrg-prop-tile b{font-size:.72rem!important;font-weight:500!important;text-shadow:0 1px 0 color-mix(in srgb,var(--surface) 70%,transparent)}
#adminShell .mrg-prop-quality-sr{}
#adminShell .mrg-prop-tile svg{pointer-events:none!important;position:absolute!important;z-index:2!important;left:.28rem!important;right:.28rem!important;bottom:.12rem!important;width:calc(100% - .56rem)!important;height:29px!important;overflow:hidden!important;max-width:100%!important;opacity:.95!important}
#adminShell .mrg-prop-tile polyline{stroke-width:2.8!important;filter:drop-shadow(0 1px 0 color-mix(in srgb,var(--surface) 42%,transparent))}

/* BAT/HDD: one complete tile each, including icon, label, value and full-width level fill */
#adminShell .mrg-header-resources{border-right:1px solid var(--border)!important}
#adminShell .mrg-header-resources .mrg-resource-row{position:relative!important;isolation:isolate!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important;padding:0!important;display:block!important;background:color-mix(in srgb,currentColor 5%,transparent)!important;color:var(--success)}
#adminShell .mrg-header-resources .mrg-resource-tile>.mrg-resource-fill{position:absolute!important;z-index:0!important;left:0!important;top:0!important;bottom:0!important;height:100%!important;max-width:100%!important;border:0!important;border-radius:0!important;background:currentColor!important;opacity:.24!important;transition:width .35s ease,background-color .2s ease,opacity .2s ease!important}
#adminShell .mrg-header-resources .mrg-resource-tile-content{position:absolute!important;z-index:2!important;inset:0!important;display:grid!important;grid-template-columns:24px auto 1fr!important;align-items:center!important;gap:.22rem!important;padding:0 .42rem!important;color:currentColor!important;pointer-events:none!important}
#adminShell .mrg-header-resources .mrg-resource-tile-icon{display:grid!important;place-items:center!important;width:22px!important;height:22px!important}
#adminShell .mrg-header-resources .mrg-resource-tile-icon svg{width:20px!important;height:20px!important}
#adminShell .mrg-header-resources .mrg-resource-tile-content b{font-size:.57rem!important;line-height:1!important;font-weight:700!important;letter-spacing:.04em!important}
#adminShell .mrg-header-resources .mrg-resource-tile-content strong{justify-self:end!important;font-size:.68rem!important;line-height:1!important;font-weight:950!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
#adminShell .mrg-header-resources .is-battery-good{color:#168a50!important}
#adminShell .mrg-header-resources .is-battery-warning{color:#dd8200!important}
#adminShell .mrg-header-resources .is-battery-critical{color:#c9281f!important}
#adminShell .mrg-header-resources .is-battery-offline{color:var(--muted)!important}
#adminShell .mrg-header-resources .mrg-resource-storage{color:#168a50!important}
#adminShell .mrg-header-resources .mrg-resource-storage.is-storage-warning{color:#dd8200!important}
#adminShell .mrg-header-resources .mrg-resource-storage.is-storage-critical{color:#c9281f!important}
#adminShell .mrg-header-resources .mrg-resource-storage.is-storage-unknown{color:var(--muted)!important}

/* no old meter/donut/bar decoration inside the new complete tiles */
#adminShell .mrg-header-resources .mrg-resource-meter,
#adminShell .mrg-header-resources .mrg-storage-donut{border:0!important;border-radius:0!important;background:transparent!important}
#adminShell .mrg-header-resources .mrg-resource-meter::after{display:none!important}

/* navigation always owns its touch/click area */
#adminShell .mrg-header-nav-stack{z-index:5!important}
#adminShell .mrg-header-nav-stack>.mrg-header-cell{position:relative!important;z-index:11!important;pointer-events:auto!important}

@media(max-width:760px){
  #adminShell .mrg-prop-tile{padding:0 .24rem!important}
  #adminShell .mrg-prop-tile>span{left:.28rem!important;top:.28rem!important}
  #adminShell .mrg-prop-tile b{font-size:.64rem!important}
  #adminShell .mrg-prop-tile svg{left:.18rem!important;right:.18rem!important;width:calc(100% - .36rem)!important;height:27px!important}
  #adminShell .mrg-header-resources .mrg-resource-tile-content{gap:.12rem!important;}
  #adminShell .mrg-header-resources .mrg-resource-tile-icon{}
  #adminShell .mrg-header-resources .mrg-resource-tile-icon svg{}
  #adminShell .mrg-header-resources .mrg-resource-tile-content b{}
  #adminShell .mrg-header-resources .mrg-resource-tile-content strong{}
}


/* beta1-pre40 · final cockpit ordering and public header parity */
#adminShell .mrg-cockpit-header-grid{grid-template-columns:minmax(78px,.82fr) minmax(132px,1.45fr) minmax(54px,.58fr) minmax(54px,.58fr)!important;grid-template-areas:"resources propagation radio nav"!important}
#adminShell .mrg-header-resources{grid-area:resources!important;order:initial!important}
#adminShell .mrg-header-propagation{grid-area:propagation!important;order:initial!important}
#adminShell .mrg-header-radio-stack{grid-area:radio!important;order:initial!important}
#adminShell .mrg-header-nav-stack{grid-area:nav!important;order:initial!important}
#adminShell .mrg-header-resources .mrg-resource-row{display:block!important;grid-template-columns:none!important}
#adminShell .mrg-header-resources .mrg-resource-tile-content{grid-template-columns:22px auto 1fr!important}
#adminShell .mrg-header-resources::before,#adminShell .mrg-header-resources::after{display:none!important}
/* POWER is an action: red while ON (= switch off), green while OFF (= switch on). */
#adminShell .header-radio-power-button.is-on{color:var(--danger)!important;background:color-mix(in srgb,var(--danger) 7%,transparent)!important}
#adminShell .header-radio-power-button.is-off{color:var(--success)!important;background:color-mix(in srgb,var(--success) 7%,transparent)!important}

.public-topbar[data-mrg-unified-header="public"]{display:grid!important;grid-template-columns:minmax(112px,1.15fr) minmax(0,2.55fr)!important;min-height:82px!important;height:82px!important;padding:0!important}
.public-pre40-actions{display:grid!important;grid-template-columns:minmax(82px,.82fr) minmax(132px,1.45fr) minmax(54px,.58fr)!important;height:82px!important;min-width:0!important;gap:0!important}
.public-pre40-actions>.mrg-header-stack{height:82px!important;min-width:0!important;border-right:1px solid var(--border)!important;display:grid!important;grid-template-rows:1fr 1fr!important}
.public-pre40-actions .mrg-resource-row,.public-pre40-actions .mrg-prop-tile,.public-pre40-actions .mrg-header-cell{height:41px!important;min-height:0!important;border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;margin:0!important;box-sizing:border-box!important}
.public-pre40-actions .mrg-header-stack>*:last-child{border-bottom:0!important}
.public-pre40-resources .mrg-resource-row{}
.public-pre40-resources .mrg-resource-fill{position:absolute!important;z-index:0!important;inset:0 auto 0 0!important;height:100%!important;background:currentColor!important;opacity:.24!important}
.public-pre40-resources .mrg-resource-tile-content{}
.public-pre40-resources .mrg-resource-tile-icon svg{}
.public-pre40-resources b{letter-spacing:.04em!important}.public-pre40-resources strong{justify-self:end!important;}
.public-pre40-resources .is-battery-warning,.public-pre40-resources .is-storage-warning{color:#dd8200!important}.public-pre40-resources .is-battery-critical,.public-pre40-resources .is-storage-critical{color:#c9281f!important}.public-pre40-resources .is-battery-offline,.public-pre40-resources .is-storage-unknown{color:var(--muted)!important}
.public-header-propagation{overflow:hidden!important}.public-header-propagation .mrg-prop-tile{position:relative!important;overflow:hidden!important;display:block!important;background:color-mix(in srgb,var(--warning) 9%,transparent)!important}.public-header-propagation .mrg-prop-tile.is-good{background:color-mix(in srgb,var(--success) 11%,transparent)!important}.public-header-propagation .mrg-prop-tile.is-poor{background:color-mix(in srgb,var(--danger) 10%,transparent)!important}.public-header-propagation .mrg-prop-tile span{position:absolute!important;z-index:2!important}.public-header-propagation .mrg-prop-tile b{font-weight:500!important}.public-header-propagation svg{position:absolute!important;pointer-events:none!important}.public-header-propagation polyline{fill:none;stroke:currentColor;stroke-width:2.8!important}
.public-pre40-nav .public-icon-button{display:grid!important;place-items:center!important;width:100%!important;min-width:0!important;height:41px!important;background:transparent!important;color:var(--text)!important;box-shadow:none!important}.public-pre40-nav svg{width:23px!important;height:23px!important}
@media(max-width:760px){
  #adminShell .mrg-cockpit-header-grid{}
  
}

/* beta1-pre41 · BAT/HDD are visually one uninterrupted tile, no icon sub-cell */
#adminShell .mrg-header-resources .mrg-resource-key,.public-pre40-resources .mrg-resource-key{border:0!important;background:transparent!important;padding:0!important}
#adminShell .mrg-header-resources .mrg-resource-tile-content,.public-pre40-resources .mrg-resource-tile-content{column-gap:.28rem!important}
/* ===== END cockpit-header.css ===== */


/* MRG pre20: Mobile-First page scale lock. MRG provides its own zoom controls
   where needed; browser pinch zoom is intentionally disabled to protect cockpit geometry. */
html,body{touch-action:pan-x pan-y;}
