/* Radio-only styles; site shell, navigation and primary button are shared. */
.rtl-console{--rtl-bg:#0c1418;--rtl-panel:#142127;--rtl-line:#304048;--rtl-text:#e1e9e9;--rtl-muted:#9bafb6;--rtl-red:#f15a58;background:var(--rtl-bg);color:var(--rtl-text);border:1px solid var(--rtl-line);border-radius:14px;overflow:hidden;box-shadow:0 15px 40px #0006;font-family:Arial,system-ui,sans-serif}
.rtl-console *,.rtl-settings *{box-sizing:border-box}.rtl-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 20px;background:#19262c;border-bottom:1px solid var(--rtl-line);font-size:12px;font-weight:800;letter-spacing:.14em}.rtl-badge{font-size:10px;color:#afc0c4;letter-spacing:.08em}.rtl-badge.connected{color:#a7edb4}.rtl-badge.connected:before{content:'● ';color:#69d582}
.rtl-vfo-row{display:grid;grid-template-columns:minmax(300px,1.25fr) minmax(280px,1fr) 175px;gap:25px;align-items:center;padding:24px 22px 14px}.rtl-vfo label,.rtl-center>label{display:block;font-size:11px;letter-spacing:.13em;color:var(--rtl-muted);margin-bottom:8px}.rtl-vfo label span{color:#f5d576;margin-left:16px}.rtl-digits{display:flex;align-items:baseline;gap:8px}.rtl-digits input{width:100%;min-width:0;color:#dcefa2!important;font:700 clamp(25px,3.3vw,52px)/1.2 ui-monospace,Consolas,monospace!important;letter-spacing:-.04em;background:transparent!important;border:0!important;padding:0!important;border-radius:0!important}.rtl-digits>span{font:12px ui-monospace,Consolas,monospace;color:var(--rtl-muted)}
.rtl-console button,.rtl-console select,.rtl-console input:not([type=range]):not([type=checkbox]),.rtl-settings button,.rtl-settings input,.rtl-settings select{font:inherit;color:#e1e9e9;background:#1c2b32;border:1px solid #41535c;border-radius:7px;min-height:36px;padding:7px 10px;max-width:100%}.rtl-console button,.rtl-settings button{cursor:pointer}.rtl-console button:hover,.rtl-settings button:hover{border-color:#b5c9b9;background:#293a40}.rtl-console button:disabled,.rtl-console input:disabled,.rtl-console select:disabled{opacity:.45;cursor:default}.rtl-console button:focus-visible,.rtl-console input:focus-visible,.rtl-console select:focus-visible,.rtl-settings :focus-visible,canvas:focus-visible{outline:2px solid #ffda68;outline-offset:2px}
.rtl-console .dx-btn{color:#111;background:linear-gradient(180deg,#ffd84a,#ffb800);border-color:#ffc800;min-height:43px;box-shadow:0 2px 0 #8a5c00;font-size:13px;padding:9px;font-weight:800;border-radius:8px}.rtl-connect{display:grid;gap:8px}.rtl-tuning{display:flex;gap:6px;margin-top:12px}.rtl-tuning button{min-width:39px}.rtl-tuning select{width:110px}.rtl-center-input{display:flex;gap:8px;align-items:center;font:12px monospace;color:var(--rtl-muted)}.rtl-center-input input{font:22px ui-monospace,Consolas,monospace!important;width:190px}.rtl-center-actions{display:flex;gap:6px;margin:9px 0}.rtl-center-actions button,.rtl-center-actions select{font-size:12px}.rtl-center small{display:block;color:var(--rtl-muted);font-size:11px;line-height:1.5}.rtl-status{margin:0!important;padding:0 22px 16px;font-size:12px;line-height:1.5;color:var(--rtl-muted);min-height:30px}.rtl-status.error{color:#ffae9d}
.rtl-scope{background:#050c10;border-top:1px solid var(--rtl-line);border-bottom:1px solid var(--rtl-line)}.rtl-scope-caption{display:flex;justify-content:space-between;padding:9px 16px;color:#8ca7b1;font:10px ui-monospace,Consolas,monospace;letter-spacing:.15em}.rtl-spectrum-wrap{position:relative}.rtl-scope canvas{display:block;width:100%;cursor:crosshair;touch-action:none}.rtl-scope #spectrum{height:210px}.rtl-scope #waterfall{height:270px}.rtl-scope #listenMarker{position:absolute;bottom:0;width:12px;height:5px;border-radius:2px;background:#ff514e;transform:translateX(-50%);pointer-events:none;box-shadow:0 0 7px #e74343;z-index:1}.rtl-scale{display:flex;justify-content:space-between;gap:4px;padding:7px 5px;background:#111c22;color:#acbec3;font:11px ui-monospace,Consolas,monospace;overflow:hidden}.rtl-scale span{white-space:nowrap}.rtl-scope-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 14px;font:11px ui-monospace,Consolas,monospace;color:#9fadb1}.rtl-scope-foot i{display:inline-block;width:8px;height:4px;background:#ff514e;margin-right:5px}.rtl-scope-foot button{font-size:11px;min-height:28px;padding:4px 8px}
.rtl-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px;padding:21px 22px}.rtl-controls>label{display:flex;flex-direction:column;gap:8px;font-size:11px;letter-spacing:.05em;color:var(--rtl-muted);position:relative;min-width:0}.rtl-controls output{align-self:flex-end;color:#e1e9e9;position:absolute;right:0;top:0;font:11px monospace}.rtl-controls input[type=range]{width:100%;accent-color:#cfdfb0;margin:9px 0;height:20px;padding:0}.rtl-check{display:flex;gap:5px;align-items:center;font:11px Arial, sans-serif;letter-spacing:0}.rtl-check input{accent-color:#d6bc66}.rtl-controls small{font:11px Arial,sans-serif;color:#91a2aa}.rtl-controls [hidden]{display:none!important}.rtl-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px;border-top:1px solid var(--rtl-line);color:var(--rtl-muted);font:11px monospace;flex-wrap:wrap}.rtl-level{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rtl-level meter{width:125px;height:13px}.rtl-level small{font-size:10px}
.rtl-settings{color:#e1e9e9;background:#142127;border:1px solid #53666e;border-radius:12px;width:min(620px,92vw);padding:24px;max-height:85vh;overflow:auto;font:14px/1.5 Arial,system-ui,sans-serif}.rtl-settings::backdrop{background:#000b}.rtl-dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.rtl-dialog-head h2{margin:0;font-size:22px;color:#e1e9e9}.rtl-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.rtl-settings-grid label{display:flex;flex-direction:column;gap:8px}.rtl-settings small{display:block;color:#a6b9bf;font-size:12px}.rtl-settings details{border-top:1px solid #42565f;margin-top:24px;padding-top:16px}.rtl-settings summary{cursor:pointer}.rtl-settings pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.6 monospace}.rtl-settings a{color:#f4d171}.rtl-settings form{margin:0}
@media(min-width:1600px){.rtl-scope #spectrum{height:250px}.rtl-scope #waterfall{height:340px}}@media(max-width:1000px){.rtl-vfo-row{grid-template-columns:1fr 1fr;gap:18px}.rtl-connect{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}.rtl-controls{gap:14px;padding:16px}.rtl-digits input{font-size:34px!important}}
@media(max-width:600px){.rtl-heading{padding:12px;font-size:10px}.rtl-vfo-row{grid-template-columns:1fr;padding:18px 12px;gap:17px}.rtl-connect{grid-template-columns:1fr 1fr 1fr;gap:5px}.rtl-connect button{font-size:11px!important;padding:6px!important}.rtl-digits input{font-size:37px!important}.rtl-center-input input{flex:1;width:auto;min-width:0}.rtl-center-actions>*{flex:1;min-width:0}.rtl-controls{grid-template-columns:1fr 1fr}.rtl-controls>label:last-child{grid-column:1/-1}.rtl-status{padding:0 12px 12px}.rtl-scope #spectrum{height:175px}.rtl-scope #waterfall{height:230px}.rtl-scale{font-size:9px}.rtl-scale span:nth-child(even){display:none}.rtl-bottom{padding:12px}.rtl-settings{padding:18px}.rtl-settings-grid{grid-template-columns:1fr}}

.rtl-check input[type=checkbox]{width:14px;min-width:14px;max-width:14px;min-height:14px;height:14px;padding:0;margin:0;flex:none}.rtl-check{justify-content:flex-start}
.rtl-center-actions button{white-space:nowrap;flex-shrink:0}.rtl-center-actions select{min-width:0;flex:1}

/* Radio strip above both canvases; the same controls move into a mobile dialog. */
.rtl-mobile-radio{display:none}
.rtl-console{display:block}
.rtl-vfo-row{grid-template-columns:195px minmax(0,1fr) 290px;gap:20px;padding:14px 18px 10px}
.rtl-station{display:grid;gap:10px;min-width:0}
.rtl-center-input{gap:4px}.rtl-center-input input{width:100%;min-width:0;font-size:18px!important}
.rtl-center small{font-size:10px;margin-top:4px}
.rtl-connect{grid-template-columns:1fr 1fr;gap:5px}
.rtl-connect .dx-btn{grid-column:1/-1;min-height:35px;padding:6px}
.rtl-connect button{padding:5px;font-size:11px}
.rtl-vfo{min-width:0}.rtl-digits input{font-size:clamp(26px,2.7vw,44px)!important}
.rtl-tuning{gap:4px}.rtl-tuning button{min-width:30px;padding:6px}.rtl-tuning select{width:95px}
.rtl-vfo-row .rtl-controls{grid-template-columns:repeat(5,minmax(0,1fr));padding:0;gap:13px;border:0;background:transparent;min-width:0}
.rtl-controls>label{font-size:10px;gap:7px;letter-spacing:0}
.rtl-controls output{position:static;align-self:flex-start;height:12px;font-size:11px}
.rtl-controls input[type=range]{margin:4px 0;height:16px}
.rtl-controls select{min-width:0;width:100%;padding:6px;font-size:12px}
.rtl-controls small,.rtl-controls .rtl-check{font-size:10px;line-height:1.4}
.rtl-controls .rtl-check{flex-wrap:wrap}
.rtl-bands{display:flex;gap:5px;flex-wrap:wrap;padding:0 18px 10px}
.rtl-bands button{min-height:28px;padding:4px 12px;font-size:12px}
.rtl-status{padding-bottom:9px;font-size:11px;min-height:22px}
.rtl-scope{display:grid;grid-template-rows:auto minmax(110px,.85fr) auto minmax(140px,1fr) auto;height:clamp(325px,calc(100dvh - 390px),700px)}
.rtl-spectrum-wrap,.rtl-waterfall-wrap{min-height:0;position:relative}
.rtl-scope #spectrum,.rtl-scope #waterfall{height:100%;min-height:0}
.rtl-scope-caption{padding:6px 12px}.rtl-scope-foot{padding:4px 12px}
.rtl-console .rtl-scope-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:64px;min-height:44px;padding:0;border:1px solid #ffffff38;background:#15232a35;color:#fff;font-size:27px;transition:background .15s ease,border-color .15s ease;touch-action:manipulation;text-shadow:0 1px 3px #000}
.rtl-console .rtl-scope-arrow:hover,.rtl-console .rtl-scope-arrow:focus-visible,.rtl-console .rtl-scope-arrow:active{background:#101b24eb;border-color:#ffffff90}
.rtl-scope-arrow-back{left:8px}.rtl-scope-arrow-forward{right:8px}
.rtl-radio-dialog{width:min(680px,94vw);padding:16px;margin:auto;position:fixed;inset:0}
@media(min-width:1600px){.rtl-vfo-row{grid-template-columns:230px minmax(0,1fr) 380px;gap:30px}.rtl-controls>label{font-size:11px}.rtl-controls output{font-size:12px}}
@media(max-width:1000px){
 .rtl-mobile-radio{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 12px}
 .rtl-mobile-radio output{font:bold clamp(16px,4.4vw,25px) monospace;color:#dcefa2}
 .rtl-mobile-radio button{font-size:12px;padding:7px 9px}
 .rtl-radio-dialog .rtl-vfo-row{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:0}
 .rtl-radio-dialog .rtl-vfo{order:-1}
 .rtl-radio-dialog .rtl-controls{grid-template-columns:1fr 1fr;gap:16px}
 .rtl-radio-dialog .rtl-controls>label:last-child{grid-column:1/-1}
 .rtl-radio-dialog .rtl-station{grid-template-columns:1fr;gap:10px}
 .rtl-radio-dialog .rtl-connect{grid-column:auto;grid-template-columns:1fr 1fr}
 .rtl-radio-dialog .rtl-digits input{font-size:32px!important}
 .rtl-radio-dialog .rtl-bands{padding:16px 0 0}
 .rtl-scope{height:clamp(350px,55dvh,600px)}
}

@media(min-width:1001px) and (max-height:850px){
 .rtl-heading{padding:7px 18px}
 .rtl-vfo-row{padding:8px 18px;gap:16px}
 .rtl-station{gap:6px}.rtl-center>label{margin-bottom:4px}
 .rtl-center small{display:none}.rtl-center-input input{min-height:30px;padding:4px 8px;font-size:16px!important}
 .rtl-connect button,.rtl-connect .dx-btn{min-height:28px;padding:4px}
 .rtl-scope{grid-template-rows:auto minmax(85px,.85fr) auto minmax(140px,1fr) auto;height:clamp(280px,calc(100dvh - 390px),480px)}
 .rtl-bottom{padding:8px 18px}
}

/* Keep the existing radio frame height; artwork is decorative and non-interactive. */
#radioPanel{background-image:linear-gradient(#0c141873,#0c141873),url('/images/aap.png');background-position:center;background-size:auto,auto 100%;background-repeat:no-repeat}

#listenMarkerLabel{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);padding:3px 5px;border:1px solid #f15a5880;border-radius:4px;background:#0c1418e8;color:#ffcebc;font:10px/1.2 ui-monospace,Consolas,monospace;white-space:nowrap;pointer-events:none;box-shadow:none}
.label-left #listenMarkerLabel{left:0;transform:none}.label-right #listenMarkerLabel{left:auto;right:0;transform:none}
.rtl-scope-caption{align-items:center;gap:8px}
/* Equal-sized zoom controls sit directly below the frequency arrows. */
.rtl-console .rtl-scope-arrow{top:calc(50% - 36px)}
.rtl-console .rtl-scope-zoom{top:calc(50% + 36px);display:grid;place-items:center}
.rtl-scope-zoom svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
