#fn-urp-hud{
  box-sizing:border-box;
  --urp-case:#4c4a42;
  --urp-face:#171914;
  --urp-line:#797365;
  --urp-ink:#d9d0b6;
  --urp-dim:#aaa38f;
  --urp-phosphor:#a9d49c;
  --urp-amber:#e4c37b;
  position:fixed;
  top:calc(env(safe-area-inset-top,0px) + 4.5rem);
  right:max(12px,env(safe-area-inset-right,0px));
  z-index:880;
  width:min(330px,calc(100vw - 24px));
  color:var(--urp-ink);
  border:1px solid #181815;
  background:linear-gradient(145deg,#57544b,var(--urp-case));
  box-shadow:0 10px 26px #0009,inset 0 0 0 1px #777064;
  font-family:"Share Tech Mono","Courier New",monospace;
  font-size:12px;
  line-height:1.25;
  letter-spacing:.035em;
  text-transform:uppercase;
}
#fn-urp-hud::before,#fn-urp-hud::after{
  content:"";
  position:absolute;
  top:6px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#181815;
  box-shadow:inset 0 0 0 2px #747064;
}
#fn-urp-hud::before{left:6px}
#fn-urp-hud::after{right:6px}
.fn-urp-hud-header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:5px 6px 5px 18px}
.fn-urp-hud-identifier{color:var(--urp-amber);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fn-urp-hud-toggle,.fn-urp-hud-control{
  min-width:44px;
  min-height:44px;
  border:1px solid #22221e;
  border-top-color:#817a6c;
  border-radius:0;
  background:linear-gradient(#514e46,#2d2c27);
  color:#eee4c5;
  font:700 11px "Share Tech Mono","Courier New",monospace;
  letter-spacing:.05em;
  text-decoration:none;
  cursor:pointer;
}
.fn-urp-hud-toggle{padding:8px 10px}
.fn-urp-hud-panel{margin:0 7px 7px;border:1px solid #10120f;background:radial-gradient(circle at 50% 0,#253126,#10140f 72%);box-shadow:inset 0 0 18px #000;padding:8px}
.fn-urp-hud-panel[hidden]{display:none}
.fn-urp-hud-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.fn-urp-hud-readout{min-width:0;border:1px solid #30382f;background:#11140f;padding:6px}
.fn-urp-hud-label{display:block;margin-bottom:3px;color:var(--urp-dim);font-size:9px;letter-spacing:.08em}
.fn-urp-hud-value{display:block;overflow-wrap:anywhere;color:var(--urp-phosphor);font-size:11px;text-shadow:0 0 6px #9fce8c44}
.fn-urp-hud-readout.is-unavailable .fn-urp-hud-value{color:#b9a77d;text-shadow:none}
.fn-urp-hud-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}
.fn-urp-hud-control{display:flex;align-items:center;justify-content:center;padding:7px 4px}
.fn-urp-hud-control:hover:not(:disabled),.fn-urp-hud-control:focus-visible{color:#17150f;background:var(--urp-amber)}
.fn-urp-hud-toggle:focus-visible,.fn-urp-hud-control:focus-visible{outline:3px solid #f2d28c;outline-offset:2px}
.fn-urp-hud-control.is-unavailable,.fn-urp-hud-control:disabled{color:#777267;background:#292823;cursor:not-allowed;opacity:1;text-decoration:line-through}
.fn-urp-hud-loading{margin:0;padding:8px;color:var(--urp-dim);text-align:center}
#fn-urp-hud.fn-urp-hud-collapsed{width:min(270px,calc(100vw - 24px))}
#fn-urp-hud.fn-urp-hud-ham-open:not(.fn-urp-hud-collapsed){width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - env(safe-area-inset-top,0px) - 5rem);overflow:auto;overscroll-behavior:contain}
.fn-urp-hud-ham-drawer{margin-top:8px;border-top:1px solid var(--urp-line);padding-top:8px}
.fn-urp-hud-ham-drawer[hidden]{display:none}
.fn-urp-hud-ham-drawer #fn-ham-bar{
  position:relative!important;inset:auto!important;z-index:auto!important;width:100%!important;
  transform:none!important;border:1px solid #2a2a44!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
/* Drawer owns layout at every viewport, independent of late phone-first CSS.
   Keep transport first: an overflow-hidden desktop strip hid RCV/STATIONS. */
#fn-urp-hud #fn-ham-bar{display:flex!important;flex-direction:column;max-width:100%!important;max-height:none!important;padding:0!important;box-sizing:border-box}
#fn-urp-hud #fn-ham-bar *{box-sizing:border-box}
#fn-urp-hud #fn-ham-bar #ham-tab{position:static!important;transform:none!important;order:-2;width:100%!important;min-height:44px!important;margin:0;justify-content:center;border-radius:0!important}
#fn-urp-hud #fn-ham-bar:not(.ham-collapsed) #ham-inner{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:8px!important;padding:8px!important}
#fn-urp-hud #ham-inner > *{min-width:0!important}
#fn-urp-hud #ham-inner .ham-transport{order:-1;grid-column:1/-1!important;width:100%;padding:0!important;border:0!important}
#fn-urp-hud #ham-inner .ham-btn-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
#fn-urp-hud #ham-inner .ham-btn{min-width:0!important;min-height:48px!important;width:100%!important;padding:8px 4px!important;font-size:11px!important}
#fn-urp-hud #fn-ham-bar.ham-collapsed .ham-btn-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#fn-urp-hud #ham-inner .ham-np-block{grid-column:1/-1!important}
#fn-urp-hud #ham-inner .ham-freq-block{position:static!important}
/* An open HUD drawer owns expansion state. The old mobile default-collapse timer
   may still mark the receiver collapsed, but it must not hide live controls. */
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed #ham-inner{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:8px!important;padding:8px!important;
}
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-brand,
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-freq-block,
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-vu-block,
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-dial-block,
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-np-block,
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-leds{display:flex!important}
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed #hamMuteBtn{display:block!important}
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-freq-block,
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-dial-block,
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-np-block,
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-transport{grid-column:1/-1!important}
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-transport{display:block!important}
#fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed .ham-btn-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
/* The station list opens directly below the HAM label, within the drawer,
   not at the old page-bottom popup coordinates. Only its rows scroll. */
#fn-urp-hud #fn-ham-bar #ham-station-popup{position:static!important;order:-1;inset:auto!important;transform:none!important;width:100%!important;max-width:100%!important;max-height:260px!important;margin:0;border-radius:0!important;overflow:hidden!important}
#fn-urp-hud #ham-station-popup .popup-scroll{min-height:0;max-height:210px!important;overflow-y:auto!important}
body.fn-ham-in-urp-hud{padding-bottom:0!important}
body.fn-ham-in-urp-hud.ham-with-banner{padding-bottom:0!important}
body.fn-field-kit-open{overflow:hidden!important}
.fn-field-kit-shell{
  box-sizing:border-box;width:min(1180px,calc(100vw - 24px));height:min(92dvh,900px);max-width:none;max-height:none;
  margin:auto;padding:0;border:1px solid #797365;background:#080b08;color:#d9d0b6;box-shadow:0 20px 70px #000;
}
.fn-field-kit-shell::backdrop{background:rgba(0,0,0,.88)}
.fn-field-kit-shell-bar{box-sizing:border-box;display:flex;align-items:center;gap:8px;min-height:54px;padding:5px 7px 5px 14px;border-bottom:1px solid #797365;background:linear-gradient(145deg,#57544b,#33322d);font:700 11px "Share Tech Mono","Courier New",monospace;letter-spacing:.05em}
.fn-field-kit-shell-title{margin-right:auto;color:#e4c37b}
.fn-field-kit-shell .fn-urp-hud-control{width:auto;min-width:82px;padding-inline:10px}
.fn-field-kit-shell-frame{display:block;width:100%;height:calc(100% - 54px);border:0;background:#090b09}
.fn-urp-hud-collapsed .fn-urp-hud-toggle::after{content:" +"}
.fn-urp-hud:not(.fn-urp-hud-collapsed) .fn-urp-hud-toggle::after{content:" −"}
body.b1-reader-page #fn-urp-hud{top:calc(env(safe-area-inset-top,0px) + 7.25rem)}
@media(min-width:621px){
  html[data-op03-mode] body,html[data-op08-mode] body{padding-right:354px}
}
/* Tablet device mode: the HUD becomes the hardware bezel and the canonical
   Field Kit owns the entire usable display. Width handles standard iPads;
   coarse pointer extends the same treatment through 12.9-inch Pro landscape. */
@media (min-width:621px) and (max-width:1024px), (pointer:coarse) and (max-width:1366px){
  .fn-field-kit-shell{inset:0;width:100vw;height:100dvh;margin:0;border:0}
  .fn-field-kit-shell-bar{min-height:calc(58px + env(safe-area-inset-top,0px));padding-top:calc(7px + env(safe-area-inset-top,0px));padding-right:max(10px,env(safe-area-inset-right,0px));padding-left:max(14px,env(safe-area-inset-left,0px))}
  .fn-field-kit-shell-frame{height:calc(100% - 58px - env(safe-area-inset-top,0px))}
}
@media(max-width:620px){
  html[data-op03-mode] body,html[data-op08-mode] body{padding-top:calc(env(safe-area-inset-top,0px) + 7.25rem)}
  #fn-urp-hud{top:calc(env(safe-area-inset-top,0px) + 4rem);right:max(8px,env(safe-area-inset-right,0px));width:min(316px,calc(100vw - 16px));font-size:11px}
  #fn-urp-hud:not(.fn-urp-hud-collapsed){max-height:calc(100vh - env(safe-area-inset-top,0px) - 5rem);overflow:auto;overscroll-behavior:contain}
  .fn-urp-hud-grid{grid-template-columns:1fr}
  .fn-urp-hud-controls{grid-template-columns:1fr 1fr}
  #fn-urp-hud.fn-urp-hud-ham-open:not(.fn-urp-hud-collapsed){top:max(8px,env(safe-area-inset-top,0px));width:calc(100vw - 16px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - 16px)}
  .fn-urp-hud-ham-drawer{padding-top:8px}
  .fn-urp-hud-ham-drawer #fn-ham-bar{display:block!important;padding:0!important}
  .fn-urp-hud-ham-drawer #ham-tab{position:static!important;transform:none!important;width:100%!important;min-height:44px!important;border:1px solid #2a2a44!important;border-radius:0!important;justify-content:center}
  .fn-urp-hud-ham-drawer #ham-inner{max-height:none!important;overflow:visible!important}
  #fn-urp-hud #fn-ham-bar:not(.ham-collapsed) #ham-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #fn-urp-hud.fn-urp-hud-ham-open #fn-ham-bar.ham-collapsed #ham-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .fn-field-kit-shell{inset:0;width:100vw;height:100dvh;margin:0;border:0}
  .fn-field-kit-shell-bar{min-height:calc(54px + env(safe-area-inset-top,0px));padding-top:calc(5px + env(safe-area-inset-top,0px));padding-right:max(7px,env(safe-area-inset-right,0px));padding-left:max(10px,env(safe-area-inset-left,0px))}
  .fn-field-kit-shell-title{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .fn-field-kit-shell .fn-urp-hud-control{min-width:58px;padding-inline:6px;font-size:10px}
  .fn-field-kit-shell-full{display:none}
  .fn-field-kit-shell-frame{height:calc(100% - 54px - env(safe-area-inset-top,0px))}
}
@media(prefers-reduced-motion:reduce){
  #fn-urp-hud,#fn-urp-hud *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* Field Record launchers share the expanded HUD; their source modules own access. */
.fn-urp-hud-record-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:8px}
#fn-urp-hud.fn-urp-hud-has-records .fn-urp-hud-controls{grid-template-columns:repeat(3,minmax(0,1fr))}
.fn-urp-hud-record-controls .fn-urp-hud-control{min-width:0;overflow-wrap:anywhere}
.fn-urp-hud-record-controls[hidden],#fn-urp-hud .fn-urp-hud-control[hidden]{display:none!important}
body.fn-field-record-in-hud [data-fn-notebook-launch],body.fn-field-record-in-hud [data-fn-divergence-launch]{display:none!important}
