/*
  ScannerHub — approved global listening design, refinement layer.
  Identity: expansive / approachable / instrument-precise, a radio engineer's
  editorial field guide. Warm cream #FAF7F3 / ivory #FFFEFD / charcoal #1E2022
  with signal coral #C53B18, broadcast green #236342, copper #A95434.
  Photography comes only from network-approved system artwork.
  All layout remains within the same long-lived player document.
*/
:root{
  --brand-orange:#c53b18;
  --signal-ink:#1e2022;
  --surface-ivory:#fffefd;
  --surface-warm:#faf7f3;
  --surface-peach:#f8ede3;
  --divider-subtle:#e5dfd6;
  --radius-tight:5px;
  --radius-panel:11px;
  --elevation-sheet:0 2px 6px rgba(65,45,32,.035),0 10px 28px rgba(65,45,32,.045);
}
body{background:var(--surface-warm);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
button,a,input,select,textarea{transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease,box-shadow 180ms ease}
button:focus-visible,select:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid #146c95;outline-offset:3px
}
input:focus,select:focus,textarea:focus{border-color:#a95434}
button:disabled{opacity:.53}
.site-header{box-shadow:0 3px 13px rgba(35,26,18,.035)}
.brand{gap:7px}
.brand-mark{height:43px;width:43px}
.brand-mark img{display:block;width:43px;height:43px}
.brand-name{font-weight:880;font-size:clamp(24px,2.15vw,32px);letter-spacing:-1.75px;line-height:1}
.brand-name .brand-accent{color:var(--brand-orange)}
.brand-subtitle{font-size:10px;font-weight:770;letter-spacing:.4px;padding-left:15px}
.primary-nav{gap:4px}
.primary-nav a{display:flex;gap:8px;font-size:13px;font-weight:760;letter-spacing:-.1px;padding:0 12px}
.primary-nav a svg{width:19px;height:19px;flex-shrink:0;stroke-width:2}
.primary-nav a[aria-current=page]{font-weight:820}
.primary-nav a[aria-current=page]::after{height:4px;border-radius:4px 4px 0 0}
.account-toggle{font-weight:780}
.account-avatar{color:var(--brand-orange)}
.hero{
  height:309px;
  border-radius:var(--radius-panel);
  padding:clamp(20px,3.1vw,46px);
  background-image:linear-gradient(90deg,rgba(250,247,243,.89) 0%,rgba(250,247,243,.69) 39%,rgba(250,247,243,.1) 77%),
                   url("/static/hero-radio-landscape.svg?v=2");
  background-size:cover;
  background-position:center 57%;
  border:1px solid #f0d9c4;
  box-shadow:var(--elevation-sheet);
}
.hero::before,.hero::after,.hero-tower{display:none}
.hero-content{max-width:690px}
.hero h1{font-size:clamp(36px,3.5vw,54px);letter-spacing:-2.5px;line-height:1.04;font-weight:880;text-wrap:balance}
.hero p{color:#383734;line-height:1.5;font-size:14px;font-weight:540;max-width:490px}
.hero-search{height:55px;width:min(100%,645px);border-radius:28px;border:1px solid #d7c2b6;box-shadow:0 8px 20px rgba(95,58,39,.11);overflow:hidden}
.hero-search button{min-width:98px;font-size:13px;border-radius:0}
.hero-search input{font-size:14px}
.hero-search input::placeholder{color:#575450;opacity:1}
.category-nav{gap:9px;margin:0 0 3px;align-items:center}
.category-button{border-color:#e2d5c8;border-radius:5px;background:var(--surface-ivory);font-weight:730;font-size:12px;min-height:37px}
.category-button.is-current{box-shadow:inset 0 -3px 0 rgba(255,255,255,.3)}
.directory-heading{margin-top:18px;align-items:center}
.directory-heading h2,.pulse-heading h2{font-size:24px;font-weight:850}
.directory-heading p{font-size:12px}
.directory-sortbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.directory-sortbar label{font-size:12px;font-weight:740;color:#595551}
.directory-sortbar select{height:36px;border-radius:6px;background:white;border:1px solid #d6c7b8;color:var(--ink);font-size:12px;padding:5px 9px;max-width:135px}
.directory-sortbar .muted-count{font-size:11px;white-space:nowrap}
.directory-panel{border-color:#e7ded6;box-shadow:var(--elevation-sheet);border-radius:var(--radius-panel)}
.directory-row,#fullDirectory .directory-row{
  display:grid;grid-template-columns:27px 64px minmax(0,1fr) minmax(150px,auto);
  gap:11px;align-items:center;padding:15px 14px;border-top:1px solid #ebe2d9;
  background:var(--surface-ivory);position:relative
}
.directory-row:first-child{border-top:0}
.directory-row:hover{background:#fff8f1}
.directory-row-featured{box-shadow:inset 3px 0 0 #e3a17b}
.directory-favorite{width:27px;height:34px;border:0;border-radius:4px;background:transparent;font-size:24px;color:#ad361b}
.directory-favorite[aria-pressed=true]{background:#fbe6d9}
.directory-picture-button{display:block;width:64px;height:64px;padding:0;border:0;background:transparent;overflow:hidden;border-radius:7px;box-shadow:0 1px 3px rgba(29,20,13,.12)}
.directory-thumbnail{display:block;width:100%;height:100%;object-fit:cover;background:#e7d0be;transform:scale(1)}
.directory-picture-button:hover .directory-thumbnail{transform:scale(1.06);transition:transform 210ms ease}
.directory-info{min-width:0;align-self:center}
.directory-title-line{display:flex;align-items:baseline;gap:8px;min-width:0}
.directory-title-line strong{font-size:14px;line-height:1.4;font-weight:820;letter-spacing:-.18px;overflow-wrap:anywhere}
.directory-country-flag{font-size:15px;flex-shrink:0}
.directory-location{color:#54514d!important;font-size:11px!important;line-height:1.5!important;margin-top:2px!important}
.directory-descriptors{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:6px}
.directory-service{display:inline-block;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:780;white-space:nowrap}
.service-fire{background:#fae5df;color:#932b1f}
.service-police,.service-safety{background:#e4eaf5;color:#25476f}
.service-aviation{background:#e5f0f1;color:#215c64}
.service-rail{background:#f1e4d3;color:#6f461b}
.service-weather{background:#e1eaf3;color:#205778}
.service-marine{background:#ddecf0;color:#225665}
.service-general{background:#eee8e3;color:#4c4b48}
.directory-channel-count{font-size:10px;color:#74675c;font-weight:650}
.directory-actions{align-items:flex-end;justify-self:end;display:flex;flex-direction:column;gap:6px;min-width:0}
.directory-presence{display:flex;gap:5px;align-items:center}
.directory-presence .status-dot{width:8px;height:8px}
.directory-listener-count{font-size:11px;font-weight:760;color:#3e413e;font-variant-numeric:tabular-nums}
.directory-action-buttons{display:flex;align-items:center;gap:6px}
.directory-action-buttons button{padding:7px 9px;border-radius:5px;font-size:11px;min-height:34px;line-height:1.2}
.directory-action-buttons .secondary-button{background:#fcf7f2;color:#633b28;border-color:#dfc8ba}
.directory-action-buttons .secondary-button:hover{color:#4b2b1c}
.pulse-metrics{background:transparent}
.pulse-call:hover{background:#fff8f2}
.workspace{box-shadow:var(--elevation-sheet);border-color:#e5dacf}
.workspace-heading h2{font-size:22px;letter-spacing:-.7px}
.workspace-intro{font-size:12px;line-height:1.65;color:#565653}
.live-workspace{border-top:3px solid #c53b18}
.scanning-badge{font-size:11px;letter-spacing:.15px;border-radius:20px;border:1px solid #dfded1;background:#f4f1eb}
.scanning-badge.is-active{background:#e2f1e7;border-color:#c1dfc8;color:#20603a}
.on-air{grid-template-columns:97px minmax(0,1fr) auto;min-height:134px;padding:14px;background:#fcf5ef;border-color:#e9d6c8;gap:15px}
.on-air-art{width:97px;height:100px;overflow:hidden;border-radius:6px;background:#e5c2a5}
.on-air-art img{display:block;width:100%;height:100%;object-fit:cover}
.on-air h3{font-size:21px;font-weight:860;letter-spacing:-.6px}
.priority-tag{border-radius:4px;letter-spacing:.12px}
.waveform{height:29px;opacity:.7}
.quick-controls{gap:8px}
.quick-controls button,.quick-controls a{border-radius:6px;min-height:41px}
.quick-controls button:hover,.quick-controls a:hover{background:#fff0e5}
.hud-header{background:#f7eae1}
.scanner-hud{border:2px solid #d59c80;border-radius:11px;box-shadow:0 13px 48px rgba(32,22,15,.24)}
.hud-controls button:hover{background:#f9e7df}
.hud-restore{border-radius:7px 7px 0 0}
.builder-list{border-top:3px solid #d2ac91}
.builder-catalog{border-top:3px solid #5c605a}
.builder-status{border-top:3px solid #b94d2e}
.scanner-program-system{border-color:#d0bbac}
.builder-item:hover,.scan-traffic-row:hover{background:#fff8f1}
.global-player{background:#211f1d;border-top:2px solid #bc401e;box-shadow:0 -10px 24px rgba(30,22,17,.12)}
.player-art{background:#40372e;overflow:hidden;border-radius:7px}
.player-art img{width:100%;height:100%;object-fit:cover;display:block}
.player-badge.is-active{background:#b43616;color:#fff}
.player-transport button{border-radius:5px}
.player-transport button:hover:not(.player-play){color:#f2a987;background:#ffffff0e}
.player-transport .player-play{width:56px;height:56px;box-shadow:0 2px 10px rgba(197,59,24,.23);border-radius:50%}
.volume input,.player-progress input{accent-color:#e5582e;cursor:pointer}
#playerSeek:disabled{opacity:.45;cursor:not-allowed}
#playerProgressTime{font-variant-numeric:tabular-nums}
.system-details-dialog{border-radius:9px}
.system-detail-channel:hover{background:#fff8f1}
.system-detail-channel button:disabled{opacity:.64}
.account-panel{box-shadow:var(--elevation-sheet)}
::selection{background:#f5c4ac;color:#2b211d}
@media(max-width:1560px){
  .directory-row,#fullDirectory .directory-row{grid-template-columns:25px 57px minmax(0,1fr);gap:9px}
  .directory-picture-button{width:57px;height:57px}
  .directory-actions{grid-column:3;grid-row:2;justify-self:start;align-items:flex-start;flex-direction:row;gap:12px;flex-wrap:wrap}
  .directory-action-buttons{flex-wrap:wrap}
  .directory-row{padding:12px 14px}
}
@media(min-width:1161px) and (max-width:1340px){
  .hero h1{font-size:38px}
  .hero{height:300px}
  .directory-row .directory-action-buttons button{font-size:10px;padding:7px}
  .primary-nav a{font-size:12px;padding:0 7px}
}
@media(max-width:1160px){
  .explore-grid{gap:15px}
  .hero{height:300px;background-position:center 58%}
  .directory-row,#fullDirectory .directory-row{
    grid-template-columns:27px 64px minmax(0,1fr) auto;
  }
  .directory-picture-button{width:64px;height:64px}
  .directory-actions{grid-column:4;grid-row:1;justify-self:end;align-items:flex-end;flex-direction:column}
  .player-progress{display:none}
}
@media(max-width:850px){
  .directory-row,#fullDirectory .directory-row{grid-template-columns:27px 58px minmax(0,1fr)}
  .directory-picture-button{width:58px;height:58px}
  .directory-actions{grid-column:3;grid-row:2;flex-direction:row;align-items:center;justify-self:start;gap:8px}
  .directory-action-buttons{gap:5px}
  .hero{height:274px}
}
@media(max-width:760px){
  .header-inner{padding:8px 12px;gap:6px 8px}
  .brand-mark,.brand-mark img{width:38px;height:38px}
  .brand-name{font-size:25px}
  .primary-nav a{gap:6px;font-size:12px;padding:0 10px}
  .primary-nav a svg{width:16px;height:16px}
  .hero{height:263px;padding:21px 18px;background-position:61% 50%}
  .hero h1{font-size:36px;letter-spacing:-1.6px}
  .hero p{font-size:13px;max-width:355px}
  .hero-search{height:49px}
  .category-nav{padding:11px 0}
  .directory-heading{align-items:flex-start;flex-wrap:wrap}
  .directory-sortbar{justify-content:flex-start}
  .on-air{grid-template-columns:70px minmax(0,1fr);min-height:115px}
  .on-air-art{width:70px;height:80px}
  .on-air h3{font-size:18px}
  .directory-actions{gap:6px}
  .directory-action-buttons button{min-height:34px}
  .global-player{gap:8px}
  .player-art{width:40px;height:38px}
  .player-identity{gap:9px}
}
@media(max-width:430px){
  .hero{height:276px;background-image:linear-gradient(90deg,rgba(250,247,243,.95) 0%,rgba(250,247,243,.75) 55%,rgba(250,247,243,.22) 100%),url("/static/hero-radio-landscape.svg?v=2")}
  .hero h1{font-size:32px;max-width:300px}
  .hero-search button{min-width:75px;padding:0 11px}
  .category-button{font-size:11px;min-height:34px}
  .directory-row,#fullDirectory .directory-row{padding:12px 9px;grid-template-columns:22px 48px minmax(0,1fr);gap:7px}
  .directory-favorite{width:22px;font-size:20px}
  .directory-picture-button{width:48px;height:52px}
  .directory-title-line strong{font-size:13px}
  .directory-country-flag{font-size:13px}
  .directory-actions{grid-column:2/-1;grid-row:2}
  .directory-action-buttons{width:100%}
  .directory-action-buttons button{font-size:11px}
  .directory-descriptors{gap:5px}
  .player-transport{gap:3px}
  .player-transport button{height:29px;width:27px;font-size:17px}
  .player-transport .player-play{width:39px;height:39px;font-size:16px}
  .volume{gap:4px}
  .volume input{width:68px}
  .volume span{font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  .directory-thumbnail{transform:none!important}
  button,a,input,select,textarea{transition:none!important}
}


/* A long global scan program must remain usable with thousands of channels. */
.scanner-program-more{display:flex;align-items:center;justify-content:center;width:100%;min-height:37px;
  font-size:12px;font-weight:800;border:0;border-top:1px dashed #dfc2af;background:#fff7f0;
  color:#92371b;margin:0 0 8px;cursor:pointer}
.scanner-program-more:hover{background:#f8e5d7}
.scanning-badge:not(.is-active){color:#635d54}


/* Personal pager rules: real two-tone configuration without skeuomorphism. */
.personal-tones-inline{display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid var(--line);margin-top:18px;padding-top:13px}
.personal-tones-inline h3{font-size:14px;font-weight:820;letter-spacing:-.2px;margin:0}
.personal-tones-inline .minor-action{padding:7px 10px;font-size:11px;min-height:32px;border-radius:5px}
.listener-tone-list{margin-top:12px}
.listener-tone-row{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:12px 2px;border-bottom:1px solid #ecdfd5}
.listener-tone-row:last-child{border-bottom:0}
.listener-tone-info{flex:1;min-width:0}
.listener-tone-info strong{display:block;font-size:13px;line-height:1.4;font-weight:820}
.listener-tone-info small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.listener-tone-info .listener-tone-eligible{color:#216343;font-weight:760}
.listener-tone-info .listener-tone-inactive{color:#8b5b21;font-weight:730}
.listener-tone-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.listener-tone-actions input{width:16px;height:16px;cursor:pointer}
.listener-tone-actions button{background:white;border:1px solid #e2c7b7;border-radius:5px;color:#873a1f;padding:7px 8px;min-height:30px;font-size:11px;font-weight:780}
.listener-tone-actions button:hover{background:#fbe9df}
.personal-tone-builder{border-top:3px solid #a95434}
.personal-tone-builder .workspace-heading{flex-wrap:wrap}
.personal-tone-builder .muted-copy{line-height:1.75}
.listener-tone-dialog{width:min(620px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:clamp(19px,3.1vw,31px);border:1px solid #cfa18b;border-top:5px solid var(--accent);border-radius:10px;background:#fffefd;box-shadow:0 28px 95px rgba(32,23,19,.39);color:var(--ink)}
.listener-tone-dialog::backdrop{background:rgba(26,21,18,.73)}
.listener-tone-dialog-top{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:24px}
.listener-tone-dialog-top h2{font-size:clamp(23px,3.1vw,33px);letter-spacing:-1px;margin:0 0 9px}
.listener-tone-dialog-top p{color:var(--muted);line-height:1.6;font-size:13px;margin:0;max-width:490px}
.listener-tone-dialog-top .listener-tone-kicker{color:var(--accent);font-weight:820;font-size:12px;margin-bottom:7px}
.listener-tone-dialog-top button{background:white;color:#544941;border:1px solid var(--line);border-radius:5px;width:34px;height:34px;flex-shrink:0;font-size:24px}
.listener-tone-dialog-top button:hover{background:#fae4d8}
.listener-tone-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.listener-tone-fields label{display:flex;flex-direction:column;font-size:12px;font-weight:790;gap:7px;min-width:0}
.listener-tone-fields label.listener-tone-wide{grid-column:1/-1}
.listener-tone-fields input:not([type=checkbox]),.listener-tone-fields select{min-width:0;width:100%;background:#fff;border:1px solid #d8c6b8;min-height:44px;padding:10px 12px;border-radius:6px;color:var(--ink);font-size:13px;font-weight:540}
.listener-tone-fields select:disabled{background:#f4efeb;color:#55504b}
.listener-tone-fields label.listener-tone-checkbox{flex-direction:row;align-items:center;grid-column:1/-1;line-height:1.4}
.listener-tone-checkbox input{width:18px;height:18px;flex-shrink:0}
.listener-tone-disclaimer{background:#f7ede3;border-left:3px solid #ba784f;padding:10px 13px;font-size:11px;line-height:1.65;color:#514f4a;margin:22px 0 12px}
.listener-tone-error{color:#9a2f17;font-size:12px;font-weight:750;min-height:18px}
.listener-tone-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:11px}
.listener-tone-dialog-actions button{min-height:43px}
@media(max-width:560px){
  .listener-tone-fields{grid-template-columns:1fr}
  .listener-tone-fields label.listener-tone-wide,.listener-tone-fields label.listener-tone-checkbox{grid-column:auto}
  .listener-tone-row{flex-wrap:wrap;align-items:flex-start}
  .listener-tone-actions{width:100%;justify-content:flex-end}
  .listener-tone-dialog-top h2{font-size:25px}
}


/* Detail previews and explicit network refresh use real data + fallback art. */
.system-details-cover{position:relative;height:clamp(120px,17vw,190px);overflow:hidden;margin:19px 0 8px;background:#e8dfd6;border-radius:7px}
.system-details-cover img{display:block;height:100%;width:100%;object-fit:cover;object-position:center 54%}
.system-details-cover:after{content:"";pointer-events:none;position:absolute;inset:55% 0 0;background:linear-gradient(transparent,rgba(21,20,18,.71))}
.system-details-cover span{position:absolute;bottom:11px;left:15px;right:15px;z-index:1;color:white;text-shadow:0 1px 3px #161412;font-size:11px;font-weight:750;line-height:1.4}
.directory-refresh{width:34px;height:34px;border:1px solid #d3c3b7;background:#fffefd;color:var(--accent);border-radius:5px;font-size:22px;line-height:1;display:grid;place-items:center}
.directory-refresh:hover{background:#fff1e7;border-color:var(--accent)}
.directory-refresh[aria-busy=true]{color:#5c514b;background:#eee8e2}
@media(max-width:760px){.system-details-cover{height:135px}}


/* ------------------------------------------------------------
   Release-quality interaction pass: states, mobile ergonomics,
   spacing and feedback. Approved warm-ivory / signal-coral only.
   ------------------------------------------------------------ */
:root{
  --interaction-fast:160ms;
  --interaction-normal:210ms;
  --control-hit:40px;
  --surface-selected:#fff2e9;
  --divider-soft:#e9dfd5;
  --error-ink:#8b2916;
}
html{scroll-padding-top:calc(var(--header-h) + 16px)}
body{overflow-x:clip}
button,select,input,textarea{font-size:inherit}
button:not(:disabled),a[href],input:not(:disabled),select:not(:disabled),textarea:not(:disabled){-webkit-tap-highlight-color:rgba(197,59,24,.16)}
input[type=checkbox],input[type=radio]{cursor:pointer}
:is(button,a,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid #176a91!important;
  outline-offset:3px!important;
}
.page h1[tabindex="-1"]:focus{outline:none!important}
.page h1[tabindex="-1"]{scroll-margin-top:calc(var(--header-h) + 18px)}
[hidden]{display:none!important}
::placeholder{color:#66615d;opacity:1}
:where(button,a,select,input,textarea):disabled{cursor:not-allowed}
:where(button,a):disabled{box-shadow:none;filter:saturate(.65);opacity:.56}
:where(.primary-button,.outline-button,.directory-action-buttons button,.hud-controls button,.player-transport button):active:not(:disabled){transform:translateY(1px)}
:where(.directory-row,.scan-compact-row,.scan-traffic-row,.builder-item,.system-detail-channel){transition:background-color var(--interaction-fast) ease}
:where(.workspace,.directory-panel,.account-panel){min-width:0}
:where(.workspace,.control-workspace,.broadcaster-application){scroll-margin-top:calc(var(--header-h) + 18px)}
:where(.page-intro,.section-heading,.workspace-heading) p{line-height:1.55}
:where(.directory-heading,.workspace-heading,.scanner-history-heading) h2{text-wrap:balance}
:where(.directory-title-line,.on-air-content,.player-identity,.directory-descriptors){min-width:0}
.account-menu:not([hidden]){z-index:45}
.account-menu a,.account-menu button{min-height:40px;display:flex;align-items:center}
.primary-nav a{min-height:44px}
.primary-nav a[aria-current="page"]{color:var(--accent)}
.category-nav{scrollbar-width:thin;scrollbar-color:#c9a48c transparent}
.category-button[aria-pressed="true"]{background:var(--accent);color:white;border-color:var(--accent)}
.directory-empty-state{padding:38px 26px 40px;display:grid;justify-items:center;text-align:center;gap:16px}
.directory-empty-state .empty-state{margin:0;max-width:460px;font-size:14px;line-height:1.6;color:#57534f}
.directory-empty-state button{min-height:42px}
.directory-row:focus-within{background:#fff7f0}
.directory-action-buttons button:disabled{border-color:#c9d8ce!important;color:#215e3d!important;background:#e8f2ea!important;opacity:1!important}
.directory-presence{white-space:nowrap}
.directory-favorite{display:grid;place-items:center;line-height:1}
.scan-compact-row:focus-within,.scan-traffic-row:focus-within,.builder-item:focus-within{background:#fff5ed}
.scanner-program-system-heading{min-height:53px}
.scanner-program-system-heading button{min-width:33px;min-height:36px}
.scan-compact-controls button,.scan-traffic-row button{min-height:36px}
.builder-item .builder-inline-control{min-height:35px;min-width:38px}
.builder-item .remove-button{min-width:35px;min-height:35px}
.builder-item label{white-space:nowrap}
.builder-item select{min-width:50px}
.builder-item-actions{max-width:100%}
.builder-item-avoided{opacity:1!important;background:repeating-linear-gradient(135deg,#fffaf7 0 18px,#fff5ef 18px 20px)}
.builder-item-held{background:var(--surface-selected)!important}
.scanning-badge{font-variant-numeric:tabular-nums}
.scanning-badge.is-active{color:#185a35!important}
.on-air{align-items:center}
.waveform,.hud-wave{pointer-events:none}
.hud-wave span,.waveform span{min-height:2px;transform-origin:center center}
.hud-controls button{min-height:38px}
.scanner-hud{max-height:calc(100dvh - var(--player-h) - 24px);overflow-y:auto;overscroll-behavior:contain}
.scanner-hud .hud-header{position:sticky;top:0;z-index:1}
.hud-docked-left{right:auto}
.hud-header:focus-visible{outline-offset:-4px!important}
.hud-expanded{scroll-margin-top:60px}
.global-player{isolation:isolate;min-width:0}
.global-player :where(button,input){flex-shrink:0}
.player-progress{min-width:0}
.player-progress input{min-width:75px}
.player-badge{white-space:nowrap}
.player-identity strong{line-height:1.25;text-wrap:balance}
.player-identity span{line-height:1.45}
.player-transport button[aria-pressed="true"]{color:#ffa77d}
.global-player button:disabled{color:#85807d!important;opacity:.62}
.toast{border-left:4px solid #ec7849;background:#282321;line-height:1.5;max-width:min(420px,calc(100vw - 24px));overflow-wrap:anywhere}
.toast[role="alert"]{border-left-color:#ffaf90}
.connection-notice{max-width:min(480px,calc(100vw - 20px));box-shadow:0 6px 20px #412d2040;line-height:1.45;text-align:center}
.system-details-dialog{overscroll-behavior:contain}
.system-channel-add{min-height:38px}
.broadcaster-application-record:focus-within{background:#fff8f2}
.broadcaster-review-dialog{overscroll-behavior:contain}
.broadcaster-review-dialog label{line-height:1.4}
.broadcaster-review-dialog :is(input,select,textarea){font-size:16px}
#accountRegisterPanel p,#accountSignInPanel p{line-height:1.65}
@media (min-width:1561px){
  .explore-grid{gap:25px}
  .directory-row,#fullDirectory .directory-row{gap:13px}
  .workspace{padding:23px}
  .directory-heading{margin-top:23px}
}
@media (max-width:1250px){
  .brand-subtitle{display:none}
  .header-inner{gap:10px}
  .primary-nav{min-width:0}
  .primary-nav a{padding-inline:8px}
  .global-player{column-gap:10px}
}
@media (max-width:760px){
  :root{--player-h:110px}
  .primary-nav{scroll-snap-type:x proximity;scroll-padding-left:8px;overscroll-behavior-inline:contain}
  .primary-nav a{scroll-snap-align:start;flex-shrink:0}
  .account-slot{border-left:0;padding-left:4px}
  .category-nav{scroll-snap-type:x proximity}
  .category-button{scroll-snap-align:start;flex-shrink:0}
  .directory-empty-state{padding:35px 17px}
  .directory-sortbar{flex-wrap:wrap;gap:6px}
  .directory-action-buttons button{min-height:39px}
  .scanner-hud{max-height:calc(100dvh - var(--player-h) - 20px)}
  .hud-header{touch-action:pan-y;cursor:default}
  .hud-controls button{min-height:41px}
  .scanner-program-system-controls button{min-width:37px;min-height:39px}
  .builder-item .builder-item-actions{justify-content:flex-start;flex-wrap:wrap}
  .builder-item{grid-template-columns:1fr}
  .builder-item>div:first-child{padding-bottom:3px}
  .scan-traffic-row{align-items:flex-start}
  .player-identity{min-width:0}
  .global-player{padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
@media (max-width:430px){
  .header-inner{padding-inline:10px}
  .directory-row,#fullDirectory .directory-row{gap:7px}
  .directory-info strong{line-height:1.35}
  .directory-descriptors{margin-top:5px}
  .directory-action-buttons button{min-height:39px}
  .pulse-metrics>div{padding:14px 7px 14px 0}
  .pulse-metrics>div+div{padding-left:10px}
  .pulse-metrics strong{font-size:22px}
  .pulse-metrics span{font-size:10px}
  .global-player{grid-template-columns:minmax(0,1fr) auto}
  .player-transport button{min-width:30px}
  .volume input{width:65px}
  .toast{right:12px;top:calc(var(--header-h) + 7px)}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:0ms!important;animation-duration:0ms!important;scroll-behavior:auto!important}
  :where(.directory-row,.builder-item,.scan-traffic-row){transition:none!important}
}

/* November 2026 visual acceptance: real communications mast, one source of
   hero artwork, aligned scanner actions, and a non-overlapping HUD restore. */
.hero{
  background-image:linear-gradient(90deg,rgba(250,247,243,.94) 0%,rgba(250,247,243,.77) 40%,rgba(250,247,243,.06) 82%),
                   url("/static/hero-radio-landscape.svg?v=2");
  background-position:center 54%;
}
.hero-search-tip{
  margin:10px 0 0!important;
  color:#58463a!important;
  font-size:12px!important;
  line-height:1.4!important;
}
.hero-search-tip kbd{
  display:inline-flex;justify-content:center;align-items:center;
  min-width:21px;min-height:20px;margin:0 3px;padding:0 5px;
  background:rgba(255,255,255,.8);border:1px solid #bda99c;
  border-radius:4px;color:#392c24;font:700 12px/1 system-ui,sans-serif;
}
.category-nav{
  gap:2px;padding:12px 0 0;margin:0 0 10px;
  border-bottom:1px solid #decfc3;align-items:stretch;
}
.category-nav .category-button{
  min-height:44px;padding:10px 12px 9px;
  border:0;border-bottom:3px solid transparent;
  border-radius:0;background:transparent;box-shadow:none;
  color:#514b45;font-size:12px;font-weight:740;
}
.category-nav .category-button.is-current,
.category-nav .category-button[aria-pressed="true"]{
  background:transparent;color:#a63214;border-bottom-color:#bd3d1f;box-shadow:none;
}
.category-nav .category-button:hover:not(.is-current){
  background:#f6eae2;color:#9e321c;border-color:transparent;
}
.directory-heading{
  display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap;
}
.directory-sortbar{align-self:flex-end;gap:8px;margin-left:auto}
.workspace-heading>div:first-child{min-width:0}
.workspace-heading h2{line-height:1.25}
.scan-list-workspace .workspace-heading{flex-wrap:wrap;row-gap:12px}
.scan-list-actions{
  display:flex;gap:8px;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;margin-left:auto;
}
.scan-list-actions :is(button,a){min-height:40px;display:inline-flex;align-items:center;justify-content:center}
.scan-list-actions .scan-export{
  background:transparent;border:1px solid #cdb9a9;color:#673f2c;
  border-radius:5px;padding:8px 12px;font-size:12px;font-weight:760;
}
.scan-list-actions .scan-export:hover:not(:disabled){background:#fff0e6;border-color:#af6a45}
.scan-compact-row{grid-template-columns:26px minmax(0,1fr) max-content;gap:12px;min-height:62px}
.scan-channel small{display:block;line-height:1.5;margin-top:3px}
.scan-compact-controls{white-space:nowrap;flex-shrink:0}
.quick-controls :is(button,a){
  min-height:43px;display:inline-flex;align-items:center;justify-content:center;
  padding:9px 7px;line-height:1.25;white-space:normal;text-wrap:balance;
}
.on-air{grid-template-columns:84px minmax(0,1fr) auto;gap:15px;min-height:116px}
.on-air-art{width:84px;height:84px}
.rules-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px}
.rules-row>.workspace{min-width:0;height:100%}
.rules-row .tone-workspace{display:flex;flex-direction:column;gap:12px}
.tone-workspace .personal-tones-inline{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tone-workspace .personal-tones-inline :is(button,a){min-height:38px}
.global-player>.hud-restore{
  position:static;z-index:auto;flex:0 0 auto;
  margin:0;padding:10px 12px;min-height:41px;
  background:transparent;color:#f6e7de;
  border:1px solid #8f8278;border-radius:6px;box-shadow:none;
  font-size:12px;font-weight:740;white-space:nowrap;
}
.global-player>.hud-restore:hover{background:#39312c;border-color:#d69b7b}
.global-player>.hud-restore span{display:none}
.quick-controls [data-action="scan-toggle"]{border-color:#c7d6c7;background:#f3f8f2;color:#215c3d}
.quick-controls [data-action="scan-toggle"][aria-pressed="true"]{border-color:#8db399;background:#e4f0e7;color:#205b3a}
@media(min-width:1481px), (min-width:761px) and (max-width:1160px){
  .quick-controls{grid-template-columns:repeat(6,minmax(0,1fr))}
  .quick-controls a{grid-column:auto}
}
@media(min-width:1161px) and (max-width:1480px){
  .quick-controls{grid-template-columns:repeat(3,minmax(0,1fr))}
  .quick-controls a{grid-column:auto}
}
@media(max-width:1160px){
  .rules-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .global-player>.hud-restore{padding-inline:9px}
}
@media(max-width:760px){
  .hero{background-position:59% 54%}
  .category-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
  .directory-heading{align-items:flex-start}
  .directory-sortbar{margin-left:0;justify-content:flex-start}
  .rules-row{grid-template-columns:1fr}
  .on-air{grid-template-columns:70px minmax(0,1fr)}
  .on-air-art{width:70px;height:70px}
  .global-player>.hud-restore{
    grid-column:2;grid-row:1;justify-self:end;align-self:center;
    min-height:30px;padding:4px 7px;font-size:10px;
  }
  .global-player.hud-restore-active .player-badge{display:none}
}
@media(max-width:430px){
  .hero{background-position:62% 54%}
  .quick-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick-controls a{grid-column:auto}
  .scan-list-actions{width:100%;justify-content:flex-start;margin-left:0}
  .scan-compact-row{grid-template-columns:25px minmax(0,1fr);gap:7px}
  .scan-compact-controls{grid-column:2;justify-content:flex-start}
  .hero-search-tip{font-size:11px!important}
}

/* Readable operating density at typical desktop and laptop zoom levels. */
.directory-title-line strong{font-size:15px;line-height:1.38}
.directory-location{font-size:12px!important;line-height:1.45!important}
.directory-service{font-size:11px}
.directory-channel-count{font-size:11px}
.directory-action-buttons button{font-size:12px;min-height:39px}
.directory-listener-count{font-size:12px}
.directory-presence .status-label{font-size:12px}
.workspace-intro{font-size:13px}
.switch-row strong{font-size:13px;line-height:1.4}
.switch-row small{font-size:12px}
.scan-channel strong{font-size:14px}
.scan-channel small{font-size:12px}
@media(max-width:430px){
  .directory-action-buttons button{font-size:12px}
  .scan-channel strong{font-size:13px}
}

/* Saved Recordings: one continuous private library, not a grid of cards. */
.saved-workspace{max-width:1180px}
.saved-workspace>.workspace-heading{flex-wrap:wrap;gap:14px}
.saved-workspace>.workspace-heading>div{display:flex;flex-wrap:wrap;gap:10px}
.saved-workspace>#savedLibraryStatus{margin:15px 0;font-size:13px;color:#565b55}
.saved-recording{padding:19px 0;border-top:1px solid var(--line)}
.saved-recording:first-child{border-top:1px solid var(--line)}
.saved-recording-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.saved-recording-heading>div:first-child{min-width:0}
.saved-recording-heading strong{display:block;font-size:16px;line-height:1.35}
.saved-recording-heading small{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:4px}
.saved-recording-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.saved-recording-actions button,.archive-row-actions button{
  min-height:40px;padding:9px 13px;border:1px solid #cdb7a5;background:#fff;
  color:#793a25;font-size:12px;font-weight:750;border-radius:5px;
}
.saved-recording-actions button:hover,.archive-row-actions button:hover:not(:disabled){border-color:var(--accent);background:#fff1e9}
.saved-recording-actions [data-unsave-id]{border-color:transparent;color:#8b351f}
.saved-notes-label{display:flex;flex-direction:column;gap:6px;margin-top:13px;font-size:12px;font-weight:780;color:#474a43}
.saved-note-input{resize:vertical;width:100%;max-width:750px;min-height:72px;
  border:1px solid #ccbcae;border-radius:5px;background:#fffdfa;color:#252724;
  font:inherit;font-size:13px;padding:11px 12px;line-height:1.5}
.saved-recording-footer{display:flex;align-items:center;gap:14px;margin-top:10px}
.saved-recording-footer .outline-button{min-height:38px;font-size:12px}
.archive-row-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.archive-row-actions button:disabled{color:#246043;background:#e8f1e8;border-color:#a7c2aa;opacity:1}
@media(max-width:760px){
  .saved-recording-heading{align-items:flex-start;flex-direction:column;gap:12px}
  .saved-recording-actions{width:100%;justify-content:flex-start}
  .archive-row{grid-template-columns:minmax(0,1fr) auto}
  .archive-row-actions{grid-column:1/-1;grid-row:auto;justify-content:flex-start}
}

/* Archive composition workflow — real controls with a visible selection state. */
.archive-batch-tools{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding:13px 0;border-top:1px solid var(--line)}
.archive-batch-tools strong{font-size:13px;color:#242b28;min-width:150px}
.archive-batch-tools label{font-size:12px;font-weight:740;color:#55473e}
.archive-batch-tools select{min-height:42px;padding:8px 12px;border:1px solid #bfa998;background:#fffdf9;color:#242b28;border-radius:5px;font-size:12px}
.archive-batch-tools button{min-height:42px;font-size:12px}
.archive-batch-tools button:disabled{opacity:.52;cursor:not-allowed}
.archive-combine-status{font-size:12px;color:#635951;margin:0 0 12px;line-height:1.5}
.archive-row{grid-template-columns:24px minmax(0,1.4fr) minmax(85px,.7fr) 66px minmax(120px,auto)}
.archive-export-check{width:19px;height:19px;accent-color:var(--accent);cursor:pointer;align-self:center;flex:0 0 auto}
.archive-export-check:focus-visible{outline:3px solid #ad4329;outline-offset:3px}
.archive-row-actions{min-width:0}
.archive-row-actions button{min-height:39px}
.channel-report-dialog{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow-y:auto;border:1px solid #d4b8a5;border-radius:10px;background:#fffdfa;color:#252827;box-shadow:0 22px 70px #38231735;padding:28px}
.channel-report-dialog::backdrop{background:#1e2022a6}
.channel-report-dialog form{display:grid;gap:13px}
.channel-report-dialog h2{font-size:23px;margin:0;letter-spacing:-.5px}
.channel-report-dialog p{font-size:13px;line-height:1.5;margin:0;color:#575c54}
.channel-report-dialog label{font-size:13px;font-weight:780;display:grid;gap:7px}
.channel-report-dialog select,.channel-report-dialog textarea{width:100%;border:1px solid #baa596;padding:11px 12px;background:#fff;color:#282b28;border-radius:5px;font:inherit;font-size:13px}
.channel-report-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.channel-report-actions button{min-height:44px}
.system-channel-report{min-height:39px;border:1px solid #d3b8a6;border-radius:4px;color:#8f442b;background:#fffdf9;padding:8px 11px;font-size:12px;font-weight:720}
.system-channel-report:hover{background:#f8ebe2}
@media(max-width:760px){
  .archive-row{grid-template-columns:24px minmax(0,1fr);gap:8px}
  .archive-row>div:first-of-type{grid-column:2}
  .archive-row>span,.archive-row>time{grid-column:2}
  .archive-row-actions{grid-column:2;grid-row:auto;justify-content:flex-start}
  .archive-batch-tools{align-items:stretch;gap:8px}
  .archive-batch-tools strong{width:100%}
  .archive-batch-tools button{flex:1 1 150px}
  .channel-report-dialog{padding:22px 17px}
  .channel-report-actions>*{flex:1 1 130px}
}
