.iss-sstv-controls {padding:12px;border:1px solid #427545;border-radius:10px;margin:10px 0;color:#e4f0dd;background:#112719}
.iss-sstv-controls[hidden] {display:none!important}
.iss-sstv-controls p {font-size:12px;line-height:1.5;margin:6px 0}
.iss-sstv-actions {display:flex;flex-wrap:wrap;gap:8px}
.iss-sstv-actions button,.iss-sstv-controls select {flex:1;min-height:36px}
.iss-sstv-mode {display:inline-block;margin-left:6px;color:#b9eb88;font-size:11px;white-space:normal}
.iss-sstv-dialog {width:min(900px,96vw);height:min(720px,82dvh);max-height:94dvh;padding:0;border:1px solid #628b53;border-radius:14px;background:#0b1710;color:#eef6eb;overflow:hidden}
.iss-sstv-dialog::backdrop {background:transparent}
.iss-sstv-dialog .iss-sstv-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.iss-sstv-dialog .iss-sstv-dialog-head h2 {margin:0;font-size:18px}
.iss-sstv-dialog .iss-sstv-dialog-head button {min-height:36px}
.iss-sstv-dialog iframe {display:block;width:100%;height:calc(100% - 64px);border:0;background:#0b1710}
.iss-sstv-dialog-status {padding:12px}
.iss-sstv-receiver #nav-placeholder,.iss-sstv-receiver #footer-placeholder,
.iss-sstv-receiver .sstv-source-panel,.iss-sstv-receiver #sstvTransportTx,
.iss-sstv-receiver .sstv-transport,.iss-sstv-receiver .sstv-button-row,
.iss-sstv-receiver label:has(#sstvRxSource),.iss-sstv-receiver label:has(#sstvWebsdrPreset),
.iss-sstv-receiver label:has(#sstvBand),.iss-sstv-receiver #sstvOpenWebsdr,
.iss-sstv-receiver #sstvWebsdrHint {display:none!important}
.iss-sstv-receiver .sstv-shell {width:100%;max-width:none;margin:0;padding:12px}
.iss-sstv-receiver .sstv-workbench {grid-template-columns:minmax(240px,1fr) minmax(0,2fr)}
.iss-sstv-receiver .iss-sstv-audio {margin:0 0 12px;padding:12px;background:#17351e;border-radius:10px}
.iss-sstv-audio p {margin:4px 0 10px;font-size:13px}
.iss-sstv-audio button {margin-right:8px;min-height:36px}
@media(max-width:700px){.iss-sstv-receiver .sstv-workbench{grid-template-columns:1fr}.iss-sstv-dialog{width:98vw;height:94dvh}.iss-sstv-receiver .sstv-shell{padding:8px}}

body.live-tool-page.sstv-page.iss-sstv-receiver {padding:0!important;margin:0!important;background:#0b1710!important}
.iss-sstv-receiver::before,.iss-sstv-receiver::after {display:none!important}
.iss-sstv-audio label {display:block;max-width:450px;margin:8px 0}
.iss-sstv-audio select {width:100%;min-height:38px}

body.sstv-page.iss-sstv-receiver main.live-tool-shell.sstv-shell {width:100%!important;padding:12px!important;margin:0!important}
.iss-sstv-dialog[open] {display:flex;flex-direction:column}
.iss-sstv-dialog iframe {flex:1;min-height:0;height:auto}
.iss-sstv-dialog .iss-sstv-dialog-head {flex:none}

/* Explicitly center the native dialog, including pages with a margin reset. */
dialog.iss-sstv-dialog {position:fixed;inset:0;margin:auto!important;transform:none;box-sizing:border-box}
.iss-sstv-dialog > .iss-sstv-dialog-head {position:relative;inset:auto;width:auto}
.iss-sstv-dialog .iss-sstv-close {flex:none;min-width:44px;min-height:44px;font-size:26px;line-height:1;padding:8px 12px;cursor:pointer}
.iss-sstv-dialog .iss-sstv-close:focus-visible {outline:2px solid #ffd000;outline-offset:2px}

.iss-sstv-provider {display:block;margin:8px 0;font-size:12px}
.iss-sstv-provider select {display:block;width:100%;margin-top:4px}

/* Compact typography throughout the SatTracker ISS SSTV controls (2/3 size). */
#issSstvControls {font-size:10.666667px}
#issSstvControls p, #issSstvControls label {font-size:8px}
#issSstvControls button, #issSstvControls select {font-size:9.333333px}

/* Movable receiver: leave the tracker visible behind it. */
dialog.iss-sstv-dialog.is-positioned {inset:auto;margin:0!important}
.iss-sstv-dialog .iss-sstv-dialog-head {cursor:grab;touch-action:none;user-select:none}
.iss-sstv-dialog.is-dragging .iss-sstv-dialog-head {cursor:grabbing}
.iss-sstv-dialog.is-dragging iframe {pointer-events:none}
.iss-sstv-dialog .iss-sstv-dialog-head:focus-visible {outline:2px solid #ffd000;outline-offset:-3px}
