:root {
    --radio-bg: #07131e;
    --radio-panel: #0c1d2b;
    --radio-panel-raised: #102538;
    --radio-line: rgba(89, 171, 194, .2);
    --radio-line-strong: rgba(89, 171, 194, .38);
    --radio-text: #e4f0f5;
    --radio-muted: #8fa8b9;
    --radio-blue: #2997ff;
    --radio-cyan: #00d4ff;
    --radio-green: #3ddc97;
    --radio-amber: #ffbe55;
    --radio-red: #ff5577;
}

.radio-shell,
.mud-dialog.radio-dialog { color-scheme: dark; }

/* The shared app shell locks document scrolling; radio pages grow with their control panels. */
html:has(.radio-shell), body:has(.radio-shell) {
    height: auto;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-color: #24677b #07131e;
}

/* Radio uses the same compact, data-forward shell as the workforce consoles. */
.radio-shell {
    min-height: 100dvh;
    color: var(--radio-text);
    background: radial-gradient(ellipse at 50% -20%, #123447 0, var(--radio-bg) 55%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.radio-shell-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px clamp(14px, 3vw, 36px);
    border-bottom: 1px solid var(--radio-line);
    background: rgba(7, 16, 25, .96);
    backdrop-filter: blur(14px);
}

.radio-shell-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; color: inherit; text-decoration: none; white-space: nowrap; }
.radio-shell-brand > span:last-child { display: grid; gap: 1px; }
.radio-shell-brand small { color: var(--radio-muted); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.radio-shell-brand strong { color: #f1f7fa; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.radio-shell-mark { display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border: 1px solid #ed48a5; border-radius: 4px; color: #fff; background: linear-gradient(145deg, #e432a2, #883be8 58%, #247ef4); box-shadow: 0 0 16px #d333a244; }
.radio-shell-mark svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.6; }

.radio-shell-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; }
.radio-shell-header nav a { padding: 7px 9px; border: 1px solid transparent; border-radius: 4px; color: #b7cbd6; font-size: .76rem; text-decoration: none; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.radio-shell-header nav a:hover { color: #e8fbff; background: rgba(31, 102, 124, .16); }
.radio-shell-header nav a.active { border-color: var(--radio-line-strong); color: #e8fbff; background: rgba(31, 102, 124, .28); }
.radio-shell-header nav a:focus-visible, .radio-shell-brand:focus-visible { outline: 2px solid var(--radio-cyan); outline-offset: 2px; }
.radio-shell-main { width: min(1440px, 100%); margin: 0 auto; padding: clamp(16px, 2.4vw, 30px) clamp(14px, 2.4vw, 30px) 48px; }

/* Dialogs are rendered through MudBlazor's provider outside the page section. */
.mud-dialog.radio-dialog { overflow: hidden; border: 1px solid var(--radio-line-strong); border-radius: 8px; color: var(--radio-text); background: var(--radio-panel); box-shadow: 0 24px 72px rgba(0, 0, 0, .52); }
.mud-dialog.radio-dialog .mud-dialog-title { border-bottom: 1px solid var(--radio-line); color: #f1f7fa; background: #0a1722; }
.mud-dialog.radio-dialog .mud-dialog-content { color: #cfe0e8; }
.mud-dialog.radio-dialog .mud-dialog-actions { gap: 8px; border-top: 1px solid var(--radio-line); background: #0a1722; }
.mud-dialog.radio-dialog .mud-input-outlined-border { border-color: var(--radio-line-strong); }
.mud-dialog.radio-dialog .mud-input-control > .mud-input-control-input-container > .mud-input { background: rgba(5, 19, 29, .58); }
.mud-dialog.radio-dialog .mud-button-root { min-height: 40px; text-transform: none; letter-spacing: normal; }
.mud-dialog.radio-dialog .mud-button-root.mud-button-filled-primary { color: #07111d; background: var(--radio-cyan); }
.mud-dialog.radio-dialog .mud-button-outlined { border-color: var(--radio-line-strong); }
.radio-confirm-dialog .radio-confirm-message { margin: 0; color: #cfe0e8; line-height: 1.6; }

@media (max-width: 680px) {
    .radio-shell-header { align-items: flex-start; flex-direction: column; gap: 8px; padding: 9px 12px; }
    .radio-shell-header nav { width: 100%; justify-content: flex-start; gap: 2px; }
    .radio-shell-header nav a { padding: 6px 8px; font-size: .72rem; }
}

@media (max-width: 560px) {
    .mud-dialog.radio-dialog { max-height: calc(100dvh - 20px); border-radius: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .radio-shell-header nav a { transition: none; }
}
