:root {
    color-scheme: light;
    --ink: #071322;
    --muted: #536170;
    --line: #dce4ec;
    --soft: #eef4f8;
    --panel: #ffffff;
    --blue: #0674df;
    --blue-dark: #034d99;
    --teal: #0b8f91;
    --green: #4f8a36;
    --steel: #172333;
    --night: #06101f;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(7, 19, 34, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

body:has(.radio-app-section) {
    background: #0d141b;
}

body:has(.dispatch-section) {
    background: #0d141b;
}

body.commission-screen,
body:has(.commission-section) {
    background: #0d141b;
}

body:has(.commission-section) .site-header,
body:has(.commission-section) .site-footer {
    display: none;
}

body.commission-screen,
body:has(.commission-section) {
    overflow-x: hidden;
    overflow-y: auto;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

.shell {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--white);
    color: var(--ink);
    border: 2px solid var(--blue);
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(220, 228, 236, 0.8);
    backdrop-filter: blur(16px);
}

.nav-shell {
    min-height: 76px;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 24px;
}

.brand img {
    width: 210px;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--steel);
}

.site-nav a,
.nav-cta,
.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 6px;
}

.site-nav a[aria-current="page"] {
    color: var(--blue-dark);
    background: #e9f3ff;
}

.nav-cta {
    background: var(--ink);
    color: var(--white);
    font-weight: 800;
}

.nav-cta:hover {
    background: var(--blue-dark);
    color: var(--white);
}

.hero {
    position: relative;
    min-height: 680px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--night);
}

.hero picture,
.hero picture img,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero picture img {
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(6, 16, 31, 0.94) 0%, rgba(6, 16, 31, 0.72) 42%, rgba(6, 16, 31, 0.18) 100%),
        linear-gradient(0deg, rgba(6, 16, 31, 0.78) 0%, rgba(6, 16, 31, 0.04) 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-block: 126px 92px;
    color: var(--white);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #79c2ff;
}

h1,
h2,
p {
    overflow-wrap: anywhere;
    min-width: 0;
}

h1,
h2 {
    margin: 0;
    line-height: 1.08;
}

h1 {
    max-width: 760px;
    font-size: clamp(2.65rem, 7vw, 5.65rem);
    letter-spacing: 0;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero-copy {
    max-width: 690px;
    margin: 24px 0 0;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    color: #e8f2f9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    border: 1px solid transparent;
    font-weight: 900;
}

.button.primary {
    background: var(--blue);
    color: var(--white);
}

.button.primary:hover {
    background: var(--blue-dark);
    color: var(--white);
}

.button.secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
    color: var(--white);
    border-color: var(--white);
}

.radio-app-section {
    min-height: calc(100vh - 76px);
    padding: 28px 0 42px;
    background: #0d141b;
    color: var(--white);
}

.radio-app {
    display: grid;
    gap: 18px;
}

.radio-topbar,
.radio-panel,
.radio-console {
    border: 1px solid rgba(143, 169, 187, 0.24);
    border-radius: 8px;
    background: #14202a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.radio-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px;
}

.app-brand-logo {
    display: block;
    max-width: 220px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.radio-topbar h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.radio-topbar p {
    margin-top: 8px;
    color: #b8c6d0;
}

.radio-channel-identity {
    display: grid;
    gap: 2px;
    min-width: 0;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(143, 169, 187, 0.24);
    font-size: 0.9rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.radio-channel-identity span { color: #b8c6d0; font-size: 0.78rem; }
.radio-channel-identity strong { color: #fff; }

.radio-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-app .button.secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.radio-layout {
    min-width: 0;
}

.radio-page {
    display: none;
    min-width: 0;
}

.radio-page.is-active {
    display: grid;
    gap: 18px;
}

.radio-page-console {
    max-width: 520px;
    align-items: stretch;
}

.radio-page-channels {
    max-width: 620px;
}

.radio-channel-panel {
    width: 100%;
}

.radio-channel-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.radio-channel-nav .button {
    min-width: 0;
    width: 100%;
    justify-content: center;
}

.radio-back-button {
    width: 100%;
    margin-top: 12px;
}

.radio-panel,
.radio-console {
    padding: 16px;
}

.radio-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.radio-panel-heading h2 {
    font-size: 1rem;
}

.radio-panel-heading span {
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #203240;
    color: #d8e7f2;
    font-weight: 900;
}

.radio-channel-list,
.radio-user-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.radio-channel {
    width: 100%;
    min-height: 52px;
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(143, 169, 187, 0.24);
    border-radius: 8px;
    background: #0f1921;
    color: var(--white);
    text-align: left;
}

.radio-channel strong,
.radio-channel span {
    display: block;
    overflow-wrap: anywhere;
}

.radio-channel span,
.radio-user-list li,
.radio-display span,
.radio-display em {
    color: #aebfca;
    font-size: 0.9rem;
}

.radio-channel.is-active {
    border-color: #48b2ff;
    background: #102b40;
}

.radio-channel:focus-visible,
.radio-ptt:focus-visible,
.radio-leave-channel:focus-visible,
.radio-online-button:focus-visible,
.radio-messages-button:focus-visible {
    outline: 3px solid #f4c542;
    outline-offset: 3px;
}

.radio-channel:disabled {
    cursor: not-allowed;
}

.radio-channel:disabled:not(.is-active) {
    opacity: 0.58;
}

.radio-console {
    min-height: 520px;
    display: grid;
    gap: 20px;
    align-content: center;
    position: relative;
}

.radio-display {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(143, 169, 187, 0.24);
    border-radius: 8px;
    background: #081018;
}

.radio-console .radio-display {
    padding-right: 166px;
}

.radio-display strong {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.1;
}

.radio-speaker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 6px;
    background: #172532;
    color: #c7d7e2;
    font-size: 0.95rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.radio-speaker.is-active {
    background: #1ba6ff;
    color: var(--white);
}

.radio-display em {
    font-style: normal;
}

.radio-ptt {
    width: min(310px, 76vw);
    aspect-ratio: 1;
    justify-self: center;
    border: 0;
    border-radius: 50%;
    background: #31c77b;
    color: #04120b;
    font-size: clamp(1.2rem, 4vw, 1.55rem);
    font-weight: 900;
    box-shadow: 0 24px 70px rgba(49, 199, 123, 0.28);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.radio-ptt:disabled {
    cursor: not-allowed;
    background: #566875;
    color: #cfd8de;
    box-shadow: none;
}

.radio-ptt.is-transmitting {
    background: #e05555;
    color: var(--white);
    box-shadow: 0 24px 70px rgba(224, 85, 85, 0.3);
}

.radio-ptt.is-receiving {
    background: #1ba6ff;
    color: var(--white);
    box-shadow: 0 24px 70px rgba(27, 166, 255, 0.32);
}

.radio-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.radio-actions .button {
    width: 100%;
}

.radio-actions .button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.radio-leave-channel,
.radio-online-button {
    width: 100%;
}

.radio-touch-lock-control {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    width: min(156px, 46%);
}

.radio-touch-lock {
    width: 100%;
    min-height: 38px;
    border-color: #718695;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.radio-touch-lock-icon {
    display: inline-block;
    min-width: 1.4em;
    font-size: 1.1em;
}

.radio-touch-lock-status {
    margin: 6px 0 0;
    padding: 8px 10px;
    border: 1px solid #4a91c0;
    border-radius: 6px;
    background: #102b40;
    color: #e1f2ff;
    font-size: 0.82rem;
    line-height: 1.3;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.radio-touch-lock-status.is-locked {
    border-color: #f4c542;
    background: #3b3214;
    color: #fff3b4;
}

.radio-touch-lock[aria-pressed="true"] {
    border-color: #f4c542;
    background: #3b3214;
    color: #fff3b4;
}

.radio-leave-channel.is-confirming {
    border-color: #f4c542;
    background: #3b3214;
    color: #fff3b4;
}

.radio-app.is-touch-locked .radio-console {
    border-color: rgba(244, 197, 66, 0.62);
}

.radio-app.is-touch-locked .radio-ptt:not(:disabled):not(.is-transmitting):not(.is-receiving) {
    background: #466172;
    color: #d8e4eb;
    box-shadow: none;
}

.radio-utility-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.radio-utility-actions .button {
    width: 100%;
    min-width: 0;
}

.radio-messages-button span,
.dispatch-message-unread {
    min-width: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 1px 5px;
    border-radius: 999px;
    background: #e05555;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
}

.radio-messages-button span[hidden],
.dispatch-message-unread[hidden] {
    display: none;
}

.radio-modal[hidden] {
    display: none;
}

.radio-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 18px;
    background: rgba(2, 8, 13, 0.78);
}

.radio-modal-panel {
    width: min(420px, 100%);
    max-height: min(520px, 82vh);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(143, 169, 187, 0.28);
    border-radius: 8px;
    background: #14202a;
    color: var(--white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.radio-modal-close {
    min-height: 34px;
    padding: 7px 10px;
}

.radio-message-panel {
    width: min(560px, 100%);
    height: min(620px, calc(100dvh - 36px));
    max-height: calc(100dvh - 36px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.radio-message-panel .channel-message-list {
    min-height: 0;
    max-height: none;
}

.channel-message-list {
    min-height: 180px;
    max-height: min(52vh, 460px);
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid rgba(143, 169, 187, 0.22);
    border-radius: 6px;
    background: #081018;
}

.channel-message-item {
    max-width: 86%;
    padding: 8px 10px;
    border-left: 3px solid #71818d;
    border-radius: 4px;
    background: #172532;
}

.channel-message-item.is-own {
    justify-self: end;
    border-left: 0;
    border-right: 3px solid #31c77b;
    background: #103027;
}

.channel-message-item > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.channel-message-item strong,
.channel-message-item time {
    overflow-wrap: anywhere;
}

.channel-message-item time {
    flex: 0 0 auto;
    color: #91a8b8;
    font-size: 0.74rem;
}

.channel-message-item p {
    margin: 4px 0 0;
    color: #f4f8fa;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.channel-message-form {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.channel-message-form label {
    color: #d9e7ef;
    font-size: 0.82rem;
    font-weight: 800;
}

.channel-message-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    resize: vertical;
    padding: 9px 10px;
    border: 1px solid #71818d;
    border-radius: 6px;
    background: #081018;
    color: #fff;
    font: inherit;
}

.channel-message-form > div,
.channel-message-popup > div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.channel-message-form > div span {
    flex: 1 1 auto;
    color: #aebfca;
    font-size: 0.8rem;
}

.channel-message-popup {
    position: fixed;
    z-index: 1500;
    right: 14px;
    bottom: 14px;
    width: min(380px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
    padding: 14px;
    border: 1px solid #48b2ff;
    border-radius: 8px;
    background: #14202a;
    color: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

.channel-message-popup[hidden] {
    display: none;
}

.channel-message-popup strong,
.channel-message-popup span {
    display: block;
    overflow-wrap: anywhere;
}

.channel-message-popup span {
    margin-top: 2px;
    color: #7ec5ff;
    font-size: 0.8rem;
}

.channel-message-popup p {
    margin: 9px 0 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.radio-user-list li {
    padding: 10px 12px;
    border-radius: 8px;
    background: #0f1921;
}

body.app-screen .radio-app-section {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 4px 0 12px;
}

body.app-screen .radio-app {
    width: 100%;
    max-width: 100%;
    gap: 6px;
    padding-inline: 4px;
    overflow-x: hidden;
}

/* Zero-minimum tracks prevent long labels from widening small handset screens. */
body.app-screen .radio-app.is-channels-view,
body.app-screen .radio-page-channels,
body.app-screen .radio-channel-list,
body.app-screen .radio-channel {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
}

body.app-screen .radio-page-channels { width: 100%; max-width: 620px; }
body.app-screen .radio-channel-panel { min-width: 0; }

body.app-screen .radio-app.is-channels-view .app-brand-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
}

body.app-screen .radio-app.is-channels-view .radio-topbar h1,
body.app-screen .radio-channel strong,
body.app-screen .radio-channel span,
body.app-screen .radio-channel-nav .button {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

body.app-screen .radio-channel-panel .radio-panel-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

body.app-screen .radio-channel-panel .radio-panel-heading h2 { width: auto; }

@media (max-width: 320px) {
    body.app-screen .radio-channel-panel { padding: 8px; }
    body.app-screen .radio-channel { padding: 8px; }
    body.app-screen .radio-channel-nav { grid-template-columns: minmax(0, 1fr); }
}

body.app-screen .radio-app.is-ptt-view .radio-topbar {
    display: none;
}

body.app-screen .radio-topbar,
body.app-screen .radio-panel,
body.app-screen .radio-console,
body.app-screen .radio-display {
    max-width: 100%;
    min-width: 0;
}

body.app-screen .radio-topbar {
    display: block;
    padding: 2px 4px 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

body.app-screen .radio-topbar .eyebrow {
    display: none;
}

body.app-screen .radio-topbar h1 {
    width: auto;
    max-width: 100%;
    font-size: 1.18rem;
    line-height: 1.05;
}

body.app-screen .radio-topbar p {
    margin-top: 3px;
    font-size: 0.78rem;
}

body.app-screen .radio-topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    justify-items: stretch;
}

body.app-screen .radio-topbar .button {
    min-width: 0;
    min-height: 30px;
    max-width: 86px;
    padding: 5px 6px;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

body.app-screen .radio-layout {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.app-screen .radio-page.is-active {
    gap: 6px;
}

body.app-screen .radio-page-console {
    grid-template-columns: 1fr;
    max-width: 100%;
}

body.app-screen .radio-console {
    min-height: 0;
    gap: 8px;
    padding: 8px;
}

body.app-screen .radio-display {
    gap: 3px;
    padding: 8px;
}

body.app-screen .radio-console .radio-display {
    padding-right: 146px;
}

body.app-screen .radio-touch-lock-control {
    top: 6px;
    right: 6px;
    width: min(136px, 45%);
}

body.app-screen .radio-display strong {
    font-size: 1.2rem;
}

body.app-screen .radio-speaker {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 0.78rem;
}

body.app-screen .radio-display span,
body.app-screen .radio-display em {
    font-size: 0.76rem;
}

body.app-screen .radio-ptt {
    width: 164px;
    height: 164px;
    min-width: 164px;
    min-height: 164px;
    max-width: 164px;
    max-height: 164px;
    border-radius: 9999px;
    aspect-ratio: auto;
    justify-self: center;
    align-self: center;
    font-size: 0.96rem;
}

body.app-screen .radio-actions {
    gap: 6px;
}

body.app-screen .radio-actions .button {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.84rem;
}

body.app-screen .radio-leave-channel,
body.app-screen .radio-online-button {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.82rem;
}

body.app-screen .radio-utility-actions .button {
    min-height: 32px;
    padding: 6px 5px;
    font-size: 0.78rem;
}

body.app-screen .radio-message-panel .channel-message-list {
    min-height: 0;
    max-height: none;
}

body.app-screen .radio-message-panel {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    grid-template-rows: auto minmax(0, 1fr) auto;
}

body.app-screen .radio-message-panel .channel-message-form {
    min-height: 0;
    margin-top: 0;
}

body.app-screen .radio-message-panel .channel-message-form textarea {
    min-height: 46px;
    height: 46px;
    resize: none;
}

body.app-screen .radio-message-panel .channel-message-form .button {
    min-height: 32px;
    padding: 6px 10px;
}

body.app-screen .channel-message-popup {
    right: 6px;
    bottom: 6px;
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    padding: 10px;
}

body.app-screen .radio-modal {
    align-items: start;
    justify-items: stretch;
    padding: 8px;
    overflow-x: hidden;
}

body.app-screen .radio-modal-panel {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 16px);
    display: grid;
    gap: 10px;
    overflow: hidden;
    padding: 10px;
}

body.app-screen .radio-modal-panel .radio-panel-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
}

body.app-screen .radio-modal-panel h2 {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

body.app-screen .radio-modal-close {
    min-width: 0;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.78rem;
}

body.app-screen .radio-modal-panel .radio-user-list {
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overflow-x: hidden;
}

body.app-screen .radio-modal-panel .radio-user-list li {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-height: 620px) {
    body.app-screen .radio-topbar {
        padding: 0 4px 2px;
    }

    body.app-screen .radio-topbar h1 {
        font-size: 1rem;
    }

    body.app-screen .radio-console {
        gap: 6px;
        padding: 6px;
    }

    body.app-screen .radio-display {
        padding: 7px;
    }

    body.app-screen .radio-console .radio-display {
        padding-right: 138px;
    }

    body.app-screen .radio-ptt {
        width: 136px;
        height: 136px;
        min-width: 136px;
        min-height: 136px;
        max-width: 136px;
        max-height: 136px;
    }
}

.dispatch-section {
    min-height: 100vh;
    padding: 12px 0 28px;
    background: #0d141b;
    color: var(--white);
}

.dispatch-shell {
    width: calc(100vw - 20px);
    max-width: none;
    display: grid;
    gap: 10px;
    padding-inline: 0;
}

.dispatch-header,
.dispatch-panel,
.dispatch-kpis article {
    border: 1px solid rgba(143, 169, 187, 0.24);
    border-radius: 8px;
    background: #14202a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.dispatch-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.controller-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #657580;
    border-radius: 6px;
    background: #24323d;
    color: #fff;
    font: 26px/1 Arial, sans-serif;
    cursor: pointer;
}

.controller-menu {
    position: fixed;
    inset: 0 auto 0 0;
    margin: 0;
    padding: 18px;
    width: 300px;
    max-width: calc(100vw - 24px);
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    border: 0;
    border-right: 1px solid #c5cfd5;
    background: #fff;
    color: #17232c;
    overflow-y: auto;
}

.controller-menu[open] { animation: controller-menu-enter 180ms ease-out; }
.controller-menu::backdrop { background: rgb(0 0 0 / 55%); }
.controller-menu-open { overflow: hidden; }
.controller-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.controller-menu-heading h2 { width: auto; margin: 0; font-size: 20px; }
.controller-menu-logo { display: block; max-width: 100%; width: 200px; max-height: 80px; object-fit: contain; margin: 20px 0; }
.controller-menu nav { display: grid; gap: 4px; }
.controller-menu nav a { display: block; padding: 10px 12px; border-radius: 4px; color: #24323d; font-weight: 600; overflow-wrap: anywhere; }
.controller-menu nav a:hover,
.controller-menu nav a[aria-current="page"] { background: #e4f1fc; color: #064f92; }
.controller-menu nav a[href="/logout"] { margin-top: 12px; border-top: 1px solid #c5cfd5; color: #9a2929; }
.controller-menu-icon:focus-visible,
.controller-menu a:focus-visible { outline: 3px solid #1686df; outline-offset: 2px; }
@keyframes controller-menu-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .controller-menu[open] { animation: none; } }

.dispatch-header h1 {
    max-width: none;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.05;
}

.dispatch-header p {
    max-width: 720px;
    margin: 4px 0 0;
    color: #b8c6d0;
    font-size: 0.9rem;
}

.dispatch-header-actions,
.dispatch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dispatch-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.dispatch-kpis article {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 8px 10px;
}

.dispatch-kpis span,
.dispatch-table th,
.dispatch-panel-heading .eyebrow {
    color: #8fb2ca;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dispatch-kpis strong {
    font-size: clamp(1.05rem, 1.7vw, 1.4rem);
    line-height: 1;
}

.dispatch-kpis em,
.dispatch-channel-list span,
.dispatch-table span,
.dispatch-empty {
    color: #aebfca;
    font-style: normal;
}

.dispatch-primary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.dispatch-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 0.9fr) minmax(380px, 1.35fr);
    gap: 10px;
    align-items: start;
}

.dispatch-panel {
    padding: 10px;
}

.dispatch-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.dispatch-panel-heading h2 {
    width: auto;
    font-size: 1.05rem;
    line-height: 1.1;
}

.dispatch-panel-heading span {
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #203240;
    color: #d8e7f2;
    font-weight: 900;
}

.dispatch-form {
    display: grid;
    gap: 12px;
}

.dispatch-form label {
    display: grid;
    gap: 6px;
    color: #d9e7ef;
    font-weight: 800;
}

.dispatch-form input,
.dispatch-form select,
.dispatch-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(143, 169, 187, 0.28);
    border-radius: 6px;
    padding: 10px 12px;
    background: #081018;
    color: var(--white);
    font: inherit;
}

.dispatch-form textarea {
    min-height: 110px;
    resize: vertical;
}

.dispatch-form .dispatch-check {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.dispatch-form .dispatch-check input {
    width: 18px;
    min-height: 18px;
}

.dispatch-branding {
    display: grid;
    gap: 16px;
}

.dispatch-branding-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(143, 169, 187, 0.2);
    border-radius: 8px;
    background: rgba(8, 16, 24, 0.72);
}

.dispatch-branding-preview img {
    max-width: 180px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dispatch-branding-preview strong,
.dispatch-branding-preview span {
    display: block;
}

.dispatch-branding-preview span,
.dispatch-branding-help {
    color: #9eb1c8;
    font-size: 0.92rem;
}

.dispatch-public-link {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(143, 169, 187, 0.2);
    border-radius: 8px;
    background: rgba(8, 16, 24, 0.72);
}

.dispatch-public-link strong {
    color: #d9e7ef;
}

.dispatch-public-link a {
    color: #7ec5ff;
    word-break: break-all;
}

.dispatch-channel-list {
    display: grid;
    gap: 8px;
}

.dispatch-code-list {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.dispatch-channel-list article,
.dispatch-code-list article {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(143, 169, 187, 0.2);
    border-radius: 8px;
    background: #0f1921;
}

.dispatch-code-list article {
    border-color: rgba(49, 199, 123, 0.25);
}

.dispatch-channel-list strong,
.dispatch-code-list strong,
.dispatch-table strong {
    display: block;
}

.dispatch-channel-list em,
.dispatch-code-list em {
    align-self: flex-start;
    min-width: 72px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #203240;
    color: #d8e7f2;
    text-align: center;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 900;
}

.dispatch-map-panel {
    display: grid;
    gap: 8px;
}

.dispatch-map-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.dispatch-user-finder-modal {
    width: 720px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 16px;
    border: 1px solid #647987;
    border-radius: 8px;
    background: #14202a;
    color: #fff;
    overflow-y: auto;
}

.dispatch-user-finder-modal::backdrop {
    background: rgb(0 0 0 / 60%);
}

.user-finder-open {
    overflow: hidden;
}

.dispatch-user-finder-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
    gap: 10px;
}

.dispatch-user-finder-controls label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: #d8e7f2;
    font-size: 0.82rem;
    font-weight: 900;
}

.dispatch-user-finder-controls input,
.dispatch-user-finder-controls select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #71818d;
    border-radius: 6px;
    background: #081018;
    color: #fff;
    font: inherit;
}

.dispatch-user-finder-count {
    margin: 10px 0 8px;
    color: #aebfca;
    font-size: 0.82rem;
}

.dispatch-user-finder-results {
    display: grid;
    gap: 8px;
}

.dispatch-user-finder-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(143, 169, 187, 0.2);
    border-radius: 8px;
    background: #0f1921;
}

.dispatch-user-finder-result strong,
.dispatch-user-finder-result div span,
.dispatch-user-finder-result > span,
.dispatch-user-finder-result small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dispatch-user-finder-result div span,
.dispatch-user-finder-result > span,
.dispatch-user-finder-result small {
    color: #aebfca;
    font-size: 0.8rem;
}

.dispatch-user-finder-result mark {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
}

.dispatch-user-finder-result mark.is-online {
    background: rgba(49, 199, 123, 0.18);
    color: #7df0b4;
}

.dispatch-user-finder-result mark.is-offline {
    background: #203240;
    color: #c5d1d9;
}

.dispatch-user-finder-result > .button {
    grid-column: 2;
    grid-row: 2 / span 2;
    min-width: 84px;
    min-height: 38px;
    padding: 8px 12px;
}

.dispatch-user-finder-result > .button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

@media (max-width: 520px) {
    .dispatch-user-finder-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .dispatch-user-finder-result > .button {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
    }
}

#dispatchMapLock[aria-pressed="true"] {
    background: #12654d;
    border-color: #5dd6a6;
    color: #fff;
}

.dispatch-map-window { background: #0d141b; color: #fff; }
.dispatch-map-window #main { height: 100vh; height: 100dvh; padding: 8px; }
.dispatch-map-window .dispatch-map-panel {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 12px;
}
.dispatch-map-window .dispatch-map { height: 100%; min-height: 0; }
.controller-location-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.controller-location-form[hidden] { display: none; }
.controller-location-form label { display: grid; gap: 4px; flex: 1 1 120px; min-width: 0; }
.controller-location-form input { width: 100%; min-width: 0; padding: 8px; font: inherit; border: 1px solid #71818d; border-radius: 4px; }
.controller-location-form p { width: 100%; margin: 0; color: #fbd77b; }
.dispatch-map-window .dispatch-map-panel.is-setting-location { grid-template-rows: auto auto minmax(0, 1fr); }

.public-brand-hero .hero-content {
    gap: 18px;
}

.public-brand-logo {
    max-width: 280px;
    max-height: 88px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dispatch-map {
    position: relative;
    width: 100%;
    min-height: clamp(360px, 46vh, 620px);
    overflow: hidden;
    border: 1px solid rgba(143, 169, 187, 0.22);
    border-radius: 8px;
    background: #081018;
}

.dispatch-map.is-empty::after {
    content: "Waiting for handset locations";
    position: absolute;
    z-index: 500;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(8, 16, 24, 0.86);
    color: #d8e7f2;
    font-weight: 900;
}

.dispatch-map.is-following-transmitter {
    border-color: #f4c542;
    box-shadow: 0 0 0 2px rgba(244, 197, 66, 0.22);
}

.dispatch-live-panel {
    display: grid;
    gap: 10px;
}

.dispatch-live-panel .dispatch-panel-heading span {
    min-width: 56px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.dispatch-live-panel .dispatch-panel-heading span.is-live {
    background: rgba(49, 199, 123, 0.18);
    color: #7df0b4;
}

.dispatch-live-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.dispatch-live-kpis article {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 8px 10px;
    border: 1px solid rgba(143, 169, 187, 0.16);
    border-radius: 8px;
    background: #0f1921;
}

.dispatch-live-kpis span,
.dispatch-live-heading em,
.dispatch-connected-user span,
.dispatch-connected-user small {
    color: #aebfca;
    font-size: 0.82rem;
    font-style: normal;
}

.dispatch-live-kpis strong {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
}

.dispatch-live-kpis em {
    color: #7fa3b8;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

.dispatch-live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.dispatch-live-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 6px;
}

.dispatch-live-heading h3 {
    margin: 0;
    font-size: 1rem;
}

.dispatch-live-table tr.is-talking,
.dispatch-live-table tr.is-talking:nth-child(odd) {
    background: rgba(49, 199, 123, 0.13);
    box-shadow: inset 3px 0 0 #31c77b;
}

.dispatch-live-table mark {
    border-radius: 999px;
}

.dispatch-channel-controls { min-width: 0; }
.dispatch-channel-controls .dispatch-table { table-layout: fixed; font-size: 0.8rem; }
.dispatch-channel-controls .dispatch-table th,
.dispatch-channel-controls .dispatch-table td { padding: 6px 4px; overflow-wrap: anywhere; }
.dispatch-channel-controls .dispatch-table td > span { display: block; }
.dispatch-channel-controls .button { min-width: 0; width: 100%; min-height: 40px; padding: 6px 3px; font-size: 0.78rem; }
.dispatch-ptt-live { touch-action: none; user-select: none; -webkit-user-select: none; }
.dispatch-ptt-live:disabled { opacity: 0.45; cursor: not-allowed; }
.dispatch-channel-controls .dispatch-ptt-live.is-receiving { background: #087bbf; color: #fff; }
.dispatch-channel-controls .dispatch-ptt-live.is-transmitting { background: #b72d30; color: #fff; }

.dispatch-channel-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.dispatch-channel-tools .button {
    position: relative;
    width: 100%;
}

.dispatch-message-live {
    gap: 2px;
}

.dispatch-message-live .dispatch-message-unread {
    position: absolute;
    top: -7px;
    right: -5px;
    margin: 0;
}

.dispatch-live-table mark.is-active {
    background: rgba(49, 199, 123, 0.2);
    color: #7df0b4;
}

.dispatch-connected-users {
    display: grid;
    gap: 8px;
}

.dispatch-channel-users { gap: 5px; }
.dispatch-channel-users img { flex: 0 0 20px; filter: invert(1); }
.dispatch-channel-users-modal {
    width: 620px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 16px;
    border: 1px solid #647987;
    border-radius: 8px;
    background: #14202a;
    color: #fff;
    overflow-y: auto;
}
.dispatch-channel-users-modal::backdrop { background: rgb(0 0 0 / 60%); }
.channel-messages-modal {
    width: 620px;
    max-width: calc(100vw - 20px);
    height: min(620px, calc(100dvh - 20px));
    max-height: calc(100dvh - 20px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 16px;
    border: 1px solid #647987;
    border-radius: 8px;
    background: #14202a;
    color: #fff;
    overflow: hidden;
}
.channel-messages-modal[open] { display: grid; }
.channel-messages-modal::backdrop { background: rgb(0 0 0 / 60%); }
.channel-messages-modal .channel-message-list { min-height: 0; max-height: none; }
.dispatch-channel-users-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
.dispatch-channel-users-heading h2 { width: auto; min-width: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.dispatch-channel-users-modal .dispatch-user-move { min-width: 0; }
.dispatch-channel-users-modal select { min-width: 0; max-width: 100%; }
.channel-users-open { overflow: hidden; }

.dispatch-connected-user {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    padding: 8px;
    border: 1px solid rgba(143, 169, 187, 0.16);
    border-radius: 8px;
    background: #0f1921;
}

.dispatch-connected-user strong,
.dispatch-connected-user span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dispatch-connected-user em {
    justify-self: end;
    color: #d8e7f2;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 900;
}

.dispatch-connected-user small {
    grid-column: 1 / -1;
}

.dispatch-user-move {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.dispatch-user-move select {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(143, 169, 187, 0.28);
    border-radius: 6px;
    padding: 8px 10px;
    background: #081018;
    color: var(--white);
    font: inherit;
}

.dispatch-user-move .button {
    min-height: 38px;
    padding: 8px 12px;
}

.dispatch-user-move .button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.dispatch-user-self-note {
    grid-column: 1 / -1;
    padding: 8px 10px;
    border: 1px solid rgba(244, 197, 66, 0.28);
    border-radius: 6px;
    background: rgba(244, 197, 66, 0.1);
    color: #f6d875;
    font-size: 0.82rem;
    font-weight: 900;
}

.dispatch-user-map-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.dispatch-user-map-actions .dispatch-user-locate {
    width: auto;
    min-height: 38px;
    padding: 8px 12px;
}

.dispatch-listen-live.is-listening {
    background: #1f7fcc;
    border-color: #1f7fcc;
    color: #fff;
}

.dispatch-popup {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    width: min(380px, calc(100vw - 28px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(143, 169, 187, 0.3);
    border-radius: 8px;
    background: #14202a;
    color: var(--white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.dispatch-popup.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dispatch-popup.is-success {
    border-color: rgba(49, 199, 123, 0.48);
}

.dispatch-popup.is-error {
    border-color: rgba(224, 85, 85, 0.54);
}

.dispatch-popup strong,
.dispatch-popup span {
    display: block;
    min-width: 0;
}

.dispatch-popup strong {
    font-size: 0.95rem;
}

.dispatch-popup span {
    color: #d8e7f2;
    font-size: 0.9rem;
}

.dispatch-popup button {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.dispatch-popup-close span {
    display: block;
    transform: translateY(-1px);
}

.dispatch-download {
    display: grid;
    gap: 10px;
}

.dispatch-download ol {
    margin: 0;
    padding-left: 20px;
    color: #d8e7f2;
    font-size: 0.9rem;
}

.dispatch-download li + li {
    margin-top: 5px;
}

.dispatch-ptt-panel {
    display: grid;
    gap: 10px;
    align-content: start;
}

.dispatch-ptt-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 15, 22, 0.74);
    padding: 10px;
}

.dispatch-ptt-status strong,
.dispatch-ptt-status span {
    display: block;
}

.dispatch-ptt-status span {
    color: var(--muted);
    font-size: 0.92rem;
}

.dispatch-ptt-unload {
    width: 100%;
    min-height: 38px;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.dispatch-ptt-unload:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.dispatch-ptt-button {
    width: min(230px, 100%);
    aspect-ratio: 1;
    justify-self: center;
    border: 0;
    border-radius: 50%;
    background: #34c978;
    color: #03110a;
    font: inherit;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(52, 201, 120, 0.24);
    cursor: pointer;
}

.dispatch-ptt-button:disabled {
    background: #4f6472;
    color: rgba(255, 255, 255, 0.8);
    cursor: not-allowed;
    box-shadow: none;
}

.dispatch-ptt-button.is-transmitting {
    background: #f05252;
    color: #fff;
    box-shadow: 0 18px 48px rgba(240, 82, 82, 0.35);
}

.dispatch-ptt-button.is-receiving {
    background: #1ba6ff;
    color: #fff;
    box-shadow: 0 18px 48px rgba(27, 166, 255, 0.34);
}

.dispatch-ptt-audio {
    min-height: 1px;
}

.dispatch-handset-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(72, 178, 255, 0.22);
    border: 2px solid #48b2ff;
}

.dispatch-handset-marker span {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #48b2ff;
}

.dispatch-controller-marker {
    background: rgba(244, 197, 66, 0.2);
    border-color: #f4c542;
}

.dispatch-controller-marker span {
    background: #f4c542;
}

.dispatch-handset-marker.is-transmitting {
    background: rgba(224, 85, 85, 0.26);
    border-color: #ff4747;
    box-shadow: 0 0 0 8px rgba(224, 85, 85, 0.2), 0 0 26px rgba(224, 85, 85, 0.82);
    animation: dispatchTxPulse 1s ease-out infinite;
}

.dispatch-handset-marker.is-transmitting span {
    background: #ff4747;
}

.dispatch-handset-marker.is-receiving {
    border-color: #ffd23f;
    box-shadow: 0 0 0 5px rgba(255, 210, 63, 0.2), 0 0 18px rgba(72, 178, 255, 0.72);
}

.dispatch-handset-marker.is-receiving span {
    background: #ffd23f;
}

.dispatch-handset-marker.is-located {
    outline: 4px solid #fff;
    outline-offset: 5px;
    filter: drop-shadow(0 0 4px #081018) drop-shadow(0 0 12px #f4c542);
}

.dispatch-handset-marker.is-sos {
    width: 34px;
    height: 34px;
    margin: -5px;
    border: 4px solid #ffffff;
    background: #d20f0f;
    box-shadow: 0 0 0 10px rgba(210, 15, 15, 0.38), 0 0 34px 12px rgba(255, 0, 0, 0.9);
    animation: dispatchTxPulse 0.65s ease-out infinite;
}

.dispatch-handset-marker.is-sos span {
    inset: 6px;
    background: #ffffff;
}

.dispatch-tx-link {
    filter: drop-shadow(0 0 8px rgba(255, 47, 47, 0.98));
    stroke-dasharray: 14 10;
    animation: dispatchTxLine 0.75s linear infinite;
}

.dispatch-tx-link-glow {
    filter: drop-shadow(0 0 14px rgba(255, 47, 47, 0.9));
}

@keyframes dispatchTxPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 85, 85, 0.5), 0 0 26px rgba(224, 85, 85, 0.82);
    }
    100% {
        box-shadow: 0 0 0 18px rgba(224, 85, 85, 0), 0 0 26px rgba(224, 85, 85, 0.82);
    }
}

@keyframes dispatchTxLine {
    to {
        stroke-dashoffset: -24;
    }
}

.commission-section {
    min-height: 100vh;
    display: grid;
    align-items: start;
    padding: 24px 0;
    background: #0d141b;
    color: var(--white);
}

.commission-shell {
    max-width: 520px;
}

.commission-panel {
    display: grid;
    min-width: 0;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(143, 169, 187, 0.24);
    border-radius: 8px;
    background: #14202a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.commission-panel h1 {
    width: auto;
    font-size: clamp(2rem, 8vw, 3rem);
}

.commission-panel p {
    margin: 0;
    color: #b8c6d0;
}

.commission-code {
    padding: 16px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #071019;
    color: #fff176;
    font-size: clamp(2.2rem, 14vw, 4rem);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    letter-spacing: 0;
}

.commission-code.is-pending {
    color: #d8e7f2;
    font-size: 1.2rem;
}

.commission-meta,
.commission-status {
    font-size: 0.92rem;
}

.commission-panel form {
    display: grid;
    gap: 12px;
}

.handset-key-setup {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(143, 169, 187, 0.24);
}

.handset-key-setup[hidden],
.handset-learn-modal[hidden] {
    display: none;
}

.handset-key-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.handset-key-heading h2 {
    margin: 0;
    font-size: 1.15rem;
}

.handset-key-setup label {
    font-weight: 800;
}

.handset-key-setup select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #8ed0ff;
    border-radius: 6px;
    padding: 8px 10px;
    background: #f7fbff;
    color: #071322;
    color-scheme: light;
    font: inherit;
    font-weight: 700;
}

.handset-key-setup select option {
    background: #ffffff;
    color: #071322;
}

.handset-profile-status {
    color: #8ed0ff;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: right;
}

.handset-device-name {
    font-size: 0.8rem;
}

.handset-learn-modal {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    align-items: center;
    padding: 12px;
    overflow-y: auto;
    background: rgba(2, 8, 13, 0.88);
}

.handset-learn-dialog {
    display: grid;
    gap: 12px;
    width: min(100%, 480px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 16px;
    overflow-y: auto;
    border: 1px solid rgba(143, 169, 187, 0.36);
    border-radius: 8px;
    background: #14202a;
}

.handset-learn-instruction {
    min-height: 48px;
    padding: 10px;
    border-left: 4px solid #56b8f3;
    background: #071019;
    color: #fff !important;
    font-weight: 800;
}

.handset-learn-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.handset-learn-actions .button {
    display: grid;
    gap: 2px;
    min-width: 0;
    min-height: 58px;
    padding: 8px;
    white-space: normal;
}

.handset-learn-actions .button.is-learning {
    border-color: #fff176;
    box-shadow: 0 0 0 2px rgba(255, 241, 118, 0.25);
}

.handset-learn-actions small {
    color: #aebfca;
    font-size: 0.7rem;
}

.handset-learn-actions small.is-learned {
    color: #58d897;
}

.radio-sos-alert {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12px;
    background: rgba(45, 0, 0, 0.88);
}

.radio-sos-alert[hidden],
.radio-reverse-ptt-notice[hidden] {
    display: none;
}

.radio-sos-alert > div {
    width: min(100%, 520px);
    padding: 22px;
    border: 4px solid #ffffff;
    border-radius: 6px;
    background: #c51515;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 0 0 8px rgba(197, 21, 21, 0.4);
}

.radio-sos-alert strong {
    display: block;
    font-size: 1.7rem;
}

.radio-sos-alert p {
    margin: 12px 0;
    color: #ffffff;
    font-weight: 800;
}

.radio-reverse-ptt-notice {
    position: fixed;
    z-index: 4900;
    inset: 8px 8px auto;
    padding: 12px;
    border: 3px solid #ffffff;
    border-radius: 6px;
    background: #b20f0f;
    color: #ffffff;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.radio-reverse-ptt-notice p {
    margin: 5px 0 8px;
    color: #ffffff;
    font-size: 0.86rem;
}

.dispatch-sos-modal {
    width: min(620px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    overflow: auto;
    border: 4px solid #ffffff;
    border-radius: 6px;
    background: #b20f0f;
    color: #ffffff;
    box-shadow: 0 0 0 100vmax rgba(45, 0, 0, 0.72), 0 18px 60px rgba(0, 0, 0, 0.65);
}

.dispatch-sos-modal::backdrop {
    background: rgba(45, 0, 0, 0.72);
}

.dispatch-sos-heading,
.dispatch-sos-actions,
.dispatch-sos-details,
.dispatch-sos-modal > p {
    margin: 0;
    padding: 14px;
}

.dispatch-sos-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.dispatch-sos-heading span {
    font-size: 0.78rem;
    font-weight: 900;
}

.dispatch-sos-heading h2 {
    width: auto;
    color: #ffffff;
    font-size: 1.65rem;
}

.dispatch-sos-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dispatch-sos-details div {
    padding: 10px;
    background: rgba(0, 0, 0, 0.24);
}

.dispatch-sos-details dt {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dispatch-sos-details dd {
    margin: 2px 0 0;
    font-weight: 900;
}

.dispatch-sos-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dispatch-sos-actions .button {
    min-width: 0;
}

.dispatch-sos-actions #dispatchSosResolve {
    grid-column: 1 / -1;
    background: #ffffff;
    color: #8c0a0a;
}

.dispatch-table-wrap {
    overflow-x: auto;
}

.dispatch-table {
    width: 100%;
    border-collapse: collapse;
}

.dispatch-table th,
.dispatch-table td {
    padding: 8px 8px;
    border-bottom: 1px solid rgba(143, 169, 187, 0.16);
    color: #e9f2f8;
    text-align: left;
    vertical-align: top;
}

.dispatch-table tr:last-child td {
    border-bottom: 0;
}

.dispatch-table mark {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #203240;
    color: #d8e7f2;
    font-weight: 900;
}

.dispatch-table mark.is-active {
    background: rgba(49, 199, 123, 0.18);
    color: #7df0b4;
}

.dispatch-table mark.is-inactive {
    background: rgba(224, 85, 85, 0.16);
    color: #ffaaaa;
}

.dispatch-actions {
    min-width: 230px;
}

.dispatch-actions form {
    margin: 0;
}

.dispatch-edit-user-form {
    display: grid;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(143, 169, 187, 0.16);
}

.dispatch-edit-user-form label {
    display: grid;
    gap: 4px;
    color: #9fbed2;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dispatch-actions input {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(143, 169, 187, 0.28);
    border-radius: 6px;
    padding: 7px 10px;
    background: #081018;
    color: var(--white);
    font: inherit;
}

.dispatch-actions .button {
    min-height: 36px;
    padding: 7px 10px;
    font: inherit;
    cursor: pointer;
}

.dispatch-actions .danger {
    border-color: rgba(255, 170, 170, 0.42);
    color: #ffd2d2;
}

.dispatch-empty {
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(143, 169, 187, 0.16);
    border-radius: 8px;
    background: #0f1921;
}

@media (max-width: 1180px) {
    .dispatch-grid,
    .dispatch-primary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .radio-layout {
        grid-template-columns: 1fr;
    }

    .radio-console {
        min-height: 460px;
    }

    .dispatch-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dispatch-live-kpis,
    .dispatch-live-grid {
        grid-template-columns: 1fr;
    }

    .dispatch-grid,
    .dispatch-primary-grid {
        grid-template-columns: 1fr;
    }
}

.section {
    padding: 82px 0;
}

.intro-band,
.sectors-band {
    background: var(--soft);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    gap: 58px;
    align-items: start;
}

.split > p {
    margin: 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.feature-grid,
.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.feature-grid article,
.capability-grid article {
    min-height: 250px;
    padding: 28px;
    background: var(--panel);
}

.feature-grid h2,
.capability-grid h2,
.use-case-grid h2,
.footer-grid h2,
.contact-panel h2 {
    font-size: 1.25rem;
}

.feature-grid p,
.capability-grid p,
.use-case-grid p,
.contact-panel p,
.site-footer p {
    color: var(--muted);
}

.feature-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: #e9f3ff;
    color: var(--blue-dark);
    font-weight: 900;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.media-grid img,
.page-hero-grid img,
.use-case-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sectors-band h2 {
    max-width: 900px;
}

.sector-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.sector-list span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    font-weight: 800;
}

.page-hero {
    padding: 92px 0 74px;
    background: linear-gradient(180deg, #eef4f8 0%, #ffffff 100%);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 54px;
    align-items: center;
}

.page-hero p {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.12rem;
}

.help-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.help-search-form {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(7, 19, 34, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
}

.help-search-form label,
.help-group h3,
.help-results-head h2,
.help-empty h3,
.help-sidebar h2 {
    margin: 0;
}

.help-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.help-search-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(7, 19, 34, 0.12);
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
}

.help-clear-button {
    justify-self: start;
}

.help-section {
    background: #f6f9fc;
}

.help-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.help-sidebar,
.help-results {
    background: #fff;
    border: 1px solid rgba(7, 19, 34, 0.08);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.help-sidebar {
    position: sticky;
    top: 96px;
    padding: 18px;
}

.help-sidebar ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.help-sidebar a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--steel);
    font-weight: 700;
}

.help-sidebar a:hover {
    background: #eef4f8;
}

.help-results {
    padding: 18px;
    display: grid;
    gap: 20px;
}

.help-results-head p,
.help-faq-body p,
.help-empty p {
    margin: 0;
    color: #536170;
}

.help-group {
    display: grid;
    gap: 12px;
}

.help-group-head {
    display: grid;
    gap: 4px;
}

.help-faq-list {
    display: grid;
    gap: 10px;
}

.help-faq {
    border: 1px solid rgba(7, 19, 34, 0.08);
    border-radius: 8px;
    background: #fbfdff;
    overflow: hidden;
}

.help-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-weight: 800;
}

.help-faq summary::-webkit-details-marker {
    display: none;
}

.help-faq[open] summary {
    border-bottom: 1px solid rgba(7, 19, 34, 0.08);
}

.help-faq-body {
    padding: 14px 16px 16px;
}

.help-empty {
    padding: 20px;
    border: 1px solid rgba(7, 19, 34, 0.08);
    border-radius: 8px;
    background: #fbfdff;
}

.pricing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    gap: 48px;
    align-items: stretch;
}

.pricing-summary {
    display: grid;
    gap: 14px;
    align-content: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.pricing-summary span {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 6px;
    background: #e9f3ff;
    color: var(--blue-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pricing-summary strong {
    font-size: 2rem;
    line-height: 1.05;
}

.pricing-summary p {
    margin: 0;
    color: var(--muted);
}

.pricing-section {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pricing-card {
    display: grid;
    gap: 20px;
    align-content: start;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(7, 19, 34, 0.08);
}

.pricing-card.featured {
    border-color: rgba(6, 116, 223, 0.5);
    box-shadow: var(--shadow);
}

.pricing-card h2 {
    font-size: 1.7rem;
}

.pricing-copy,
.per-user {
    color: var(--muted);
}

.pricing-copy {
    margin-bottom: 0;
}

.price {
    display: grid;
    gap: 2px;
}

.price strong {
    font-size: 3rem;
    line-height: 1;
}

.price span,
.per-user {
    font-weight: 800;
}

.pricing-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-card li {
    position: relative;
    padding-left: 24px;
    color: var(--steel);
}

.pricing-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
}

.pricing-card .button.secondary {
    color: var(--blue-dark);
    border-color: rgba(6, 116, 223, 0.28);
    background: #eef7ff;
}

.pricing-card .button.secondary:hover {
    color: var(--white);
    background: var(--blue-dark);
}

.pricing-band {
    background: var(--soft);
}

.pricing-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.82fr);
    gap: 52px;
    align-items: start;
}

.pricing-detail-grid p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.pricing-addons {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.pricing-addons h2 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.pricing-addons dl {
    display: grid;
    gap: 1px;
    margin: 0;
    background: var(--line);
    border: 1px solid var(--line);
}

.pricing-addons div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 13px 14px;
    background: var(--white);
}

.pricing-addons dt,
.pricing-addons dd {
    margin: 0;
}

.pricing-addons dt {
    color: var(--steel);
    font-weight: 800;
}

.pricing-addons dd {
    color: var(--muted);
    text-align: right;
}

.pricing-cta a {
    color: var(--blue-dark);
    font-weight: 900;
}

.capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.use-case-grid article {
    background: var(--white);
}

.use-case-grid h2 {
    margin-top: 20px;
}

.contact-section {
    padding: 92px 0;
    min-height: 68vh;
    background: linear-gradient(180deg, #eef4f8 0%, #ffffff 74%);
}

.auth-section {
    padding: 92px 0;
    min-height: 68vh;
    background: linear-gradient(180deg, #eef4f8 0%, #ffffff 74%);
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
    gap: 56px;
    align-items: start;
}

.auth-grid > div > p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.12rem;
}

.login-grid { grid-template-areas: "intro form" "qr form"; row-gap: 24px; }
.login-grid > div { grid-area: intro; }
.login-grid h1 { font-size: 48px; line-height: 1.15; }
.login-grid > form { grid-area: form; }
.login-app-qr { grid-area: qr; margin: 0; width: 240px; max-width: 100%; }
.login-app-qr img { display: block; width: 100%; height: auto; }
.login-app-qr figcaption { margin-top: 12px; font-weight: 600; text-align: center; }
@media (max-width: 920px) {
    .auth-grid.login-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "qr"; }
    .login-app-qr { justify-self: center; }
    .login-grid h1 { font-size: 32px; }
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
    gap: 56px;
    align-items: start;
}

.contact-grid > div > p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.12rem;
}

.contact-panel,
.contact-form,
.auth-form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-panel {
    max-width: 520px;
    margin-top: 34px;
    box-shadow: none;
}

.contact-form,
.auth-form {
    display: grid;
    gap: 16px;
}

.contact-form label,
.auth-form label {
    display: grid;
    gap: 7px;
    color: var(--steel);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.auth-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    font: inherit;
    background: #f6f9fb;
}

.auth-form a {
    color: var(--blue-dark);
    font-weight: 800;
}

.auth-form h2 {
    font-size: 1.25rem;
}

.flash {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #eef4f8;
    color: var(--steel);
    font-weight: 800;
}

.flash.success {
    border-color: rgba(79, 138, 54, 0.38);
    background: #edf7ea;
    color: #315d20;
}

.flash.error {
    border-color: rgba(160, 47, 47, 0.38);
    background: #fff0f0;
    color: #8f2525;
}

.auth-form button {
    font: inherit;
    cursor: pointer;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.account-network-panel {
    display: grid;
    gap: 16px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.account-network-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.account-network-header h2,
.account-network-card h3 {
    margin: 0;
}

.account-network-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef4f8;
    color: var(--blue-dark);
    font-weight: 800;
}

.account-network-switcher,
.account-network-create-form,
.account-network-edit-form {
    display: grid;
    gap: 12px;
}

.account-network-switch-row,
.account-network-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.account-network-switch-row select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    font: inherit;
    background: #f6f9fb;
}

.account-network-list {
    display: grid;
    gap: 12px;
}

.account-network-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfd;
}

.account-network-card.is-current {
    border-color: rgba(6, 116, 223, 0.36);
    box-shadow: inset 0 0 0 1px rgba(6, 116, 223, 0.12);
    background: #f2f8ff;
}

.account-network-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.account-network-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(6, 116, 223, 0.12);
    color: var(--blue-dark);
    font-size: 0.88rem;
    font-weight: 800;
}

.account-network-actions form {
    margin: 0;
}

.button.destructive {
    color: #8f2525;
    border-color: rgba(160, 47, 47, 0.22);
    background: #fff5f5;
}

.button.destructive:hover {
    background: #ffe4e4;
}

.full {
    width: 100%;
}

.narrow {
    max-width: 760px;
}

.site-footer {
    padding: 48px 0 24px;
    background: var(--ink);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 44px;
}

.footer-logo {
    width: 210px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--white);
}

.footer-grid h2 {
    margin-bottom: 12px;
}

.footer-grid a {
    display: block;
    margin: 7px 0;
    color: #dbe8f2;
}

.footer-base {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #b9c9d6;
    font-size: 0.92rem;
}

@media (max-width: 920px) {
    .nav-shell {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-block: 14px;
    }

    .brand img {
        width: 190px;
    }

    .site-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nav-cta {
        justify-self: start;
    }

    .hero {
        min-height: 640px;
    }

    .split,
    .page-hero-grid,
    .pricing-hero-grid,
    .help-hero-grid,
    .pricing-detail-grid,
    .contact-grid,
    .help-grid,
    .auth-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .capability-grid,
    .pricing-grid,
    .use-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .shell {
        padding-inline: 14px;
    }

    .site-nav {
        gap: 4px;
        font-size: 0.88rem;
        width: 280px;
        max-width: 100%;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .site-nav a,
    .nav-cta,
    .button {
        min-height: 40px;
        padding: 9px 11px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(6, 16, 31, 0.93) 0%, rgba(6, 16, 31, 0.74) 100%),
            linear-gradient(0deg, rgba(6, 16, 31, 0.82) 0%, rgba(6, 16, 31, 0.08) 52%);
    }

    .hero-content {
        padding-block: 74px 54px;
    }

    h1 {
        width: 280px;
        max-width: 100%;
        font-size: clamp(1.95rem, 9.5vw, 2.35rem);
    }

    h2 {
        width: 280px;
        max-width: 100%;
        font-size: clamp(1.55rem, 7vw, 2.1rem);
    }

    .hero-copy,
    .split > p {
        width: 280px;
        max-width: 100%;
    }

    .section,
    .contact-section,
    .auth-section {
        padding: 58px 0;
    }

    .feature-grid,
    .capability-grid,
    .media-grid,
    .pricing-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .help-search-row {
        grid-template-columns: 1fr;
    }

    .feature-grid article,
    .capability-grid article,
    .pricing-card,
    .pricing-summary,
    .contact-panel,
    .contact-form,
    .auth-form {
        padding: 22px;
    }

    .account-network-header,
    .account-network-card-head,
    .account-network-switch-row,
    .account-network-actions {
        grid-template-columns: 1fr;
    }

    .account-network-header,
    .account-network-card-head {
        display: grid;
    }

    .pricing-addons div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pricing-addons dd {
        text-align: left;
    }

    .page-hero {
        padding: 58px 0;
    }

    .footer-base {
        flex-direction: column;
    }

    body:has(.radio-app-section) .site-header {
        position: static;
    }

    body:has(.radio-app-section) .nav-shell {
        min-height: 0;
        padding-block: 10px;
    }

    body:has(.radio-app-section) .brand img {
        width: 168px;
    }

    body:has(.radio-app-section) .site-nav,
    body:has(.radio-app-section) .nav-cta,
    body:has(.radio-app-section) .site-footer {
        display: none;
    }

    body:has(.dispatch-section) .site-header {
        position: static;
    }

    body:has(.dispatch-section) .nav-shell {
        min-height: 0;
        padding-block: 10px;
    }

    body:has(.dispatch-section) .brand img {
        width: 168px;
    }

    body:has(.dispatch-section) .site-nav {
        width: 100%;
    }

    .commission-section {
        align-items: start;
        padding: 4px 0;
    }

    .commission-panel {
        gap: 8px;
        padding: 10px;
    }

    .commission-panel .eyebrow {
        margin-bottom: 0;
        font-size: 0.68rem;
    }

    .commission-panel h1 {
        width: auto;
        font-size: 1.65rem;
    }

    .commission-panel p {
        font-size: 0.86rem;
        line-height: 1.32;
    }

    .commission-code {
        padding: 12px 8px;
        font-size: clamp(2.8rem, 18vw, 4.4rem);
    }

    .commission-meta,
    .commission-status {
        font-size: 0.8rem;
    }

    .handset-key-setup {
        gap: 6px;
        padding-top: 8px;
    }

    .handset-learn-modal {
        align-items: start;
        padding: 4px;
    }

    .handset-learn-dialog {
        gap: 8px;
        max-height: calc(100dvh - 8px);
        padding: 8px;
    }

    .handset-learn-actions .button {
        min-height: 48px;
        font-size: 0.8rem;
    }

    .radio-app-section {
        min-height: calc(100vh - 74px);
        padding: 10px 0 22px;
    }

    .radio-app {
        gap: 10px;
    }

    .radio-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, auto);
        gap: 10px;
        padding: 12px;
    }

    .radio-topbar .eyebrow {
        display: none;
    }

    .radio-topbar h1 {
        width: auto;
        font-size: 1.45rem;
        line-height: 1.05;
    }

    .radio-topbar p {
        margin-top: 4px;
        font-size: 0.9rem;
    }

    .radio-topbar .button {
        min-height: 36px;
        padding: 8px 10px;
        align-self: center;
    }

    .radio-layout {
        min-width: 0;
    }

    .radio-page.is-active {
        gap: 10px;
    }

    .radio-page-console {
        grid-template-columns: 1fr;
    }

    .radio-console {
        min-height: 0;
        gap: 12px;
        padding: 12px;
    }

    .radio-panel {
        padding: 12px;
    }

    .radio-display {
        padding: 10px;
    }

    .radio-display span,
    .radio-display em {
        font-size: 0.82rem;
    }

    .radio-display strong {
        font-size: 1.35rem;
    }

    .radio-speaker {
        min-height: 28px;
        padding: 4px 8px;
        font-size: 0.86rem;
    }

    .radio-ptt {
        width: min(230px, 68vw);
        font-size: 1.15rem;
    }

    .radio-actions {
        gap: 8px;
    }

    .radio-panel-heading {
        margin-bottom: 8px;
    }

    .radio-channel-list {
        gap: 6px;
    }

    .radio-channel {
        min-height: 44px;
        padding: 8px 10px;
    }

    .radio-channel span {
        font-size: 0.82rem;
    }

    .radio-user-list {
        gap: 6px;
    }

    .radio-user-list li {
        padding: 8px 10px;
    }

    .dispatch-section {
        padding: 12px 0 28px;
    }

    .dispatch-popup {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }

    .dispatch-shell {
        width: calc(100vw - 20px);
        gap: 10px;
        padding-inline: 0;
    }

    .dispatch-header {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .dispatch-header h1 {
        width: auto;
        font-size: 1.55rem;
    }

    .dispatch-header p {
        font-size: 0.92rem;
    }

    .dispatch-header-actions .button {
        flex: 1 1 120px;
    }

    .dispatch-kpis {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dispatch-kpis article {
        min-height: 0;
        padding: 8px;
    }

    .dispatch-kpis strong {
        font-size: 1.35rem;
    }

    .dispatch-kpis em {
        font-size: 0.82rem;
    }

    .dispatch-grid {
        gap: 10px;
    }

    .dispatch-panel {
        padding: 12px;
    }

    .dispatch-panel-heading h2 {
        width: auto;
        font-size: 1.15rem;
    }

    .dispatch-channel-list article,
    .dispatch-code-list article {
        display: grid;
        gap: 8px;
    }

    .dispatch-channel-list em,
    .dispatch-code-list em {
        justify-self: start;
    }

    .dispatch-table,
    .dispatch-table thead,
    .dispatch-table tbody,
    .dispatch-table tr,
    .dispatch-table th,
    .dispatch-table td {
        display: block;
    }

    .dispatch-table thead {
        display: none;
    }

    .dispatch-table tr {
        padding: 12px 0;
        border-bottom: 1px solid rgba(143, 169, 187, 0.16);
    }

    .dispatch-table tr:last-child {
        border-bottom: 0;
    }

    .dispatch-table td {
        display: grid;
        grid-template-columns: 92px 1fr;
        gap: 10px;
        padding: 5px 0;
        border-bottom: 0;
    }

    .dispatch-table td::before {
        color: #8fb2ca;
        font-size: 0.76rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .dispatch-live-table td:nth-child(1)::before {
        content: "Channel";
    }

    .dispatch-live-table td:nth-child(2)::before {
        content: "Users / Text";
    }

    .dispatch-live-table td:nth-child(3)::before {
        content: "Speaker";
    }

    .dispatch-live-table td:nth-child(4)::before {
        content: "Activity";
    }

    .dispatch-live-table td:nth-child(5)::before {
        content: "Connection";
    }

    .dispatch-live-table td:nth-child(6)::before {
        content: "Join / Leave";
    }

    .dispatch-live-table td:nth-child(7)::before {
        content: "PTT";
    }

    .dispatch-users-table td:nth-child(1)::before {
        content: "User";
    }

    .dispatch-users-table td:nth-child(2)::before {
        content: "Type";
    }

    .dispatch-users-table td:nth-child(3)::before {
        content: "Dispatch";
    }

    .dispatch-users-table td:nth-child(4)::before {
        content: "Handset";
    }

    .dispatch-users-table td:nth-child(5)::before {
        content: "Status";
    }

    .dispatch-users-table td:nth-child(6)::before {
        content: "Actions";
    }

    .dispatch-actions {
        min-width: 0;
    }

    .dispatch-actions .button {
        width: 100%;
    }

}

@media (max-width: 360px), (max-height: 620px) {
    body.app-screen.commission-screen,
    body.app-screen:has(.commission-section) {
        min-height: 100dvh;
        overflow-y: auto;
    }

    body.app-screen .commission-section {
        min-height: 100dvh;
        padding: 0;
    }

    body.app-screen .commission-shell {
        padding-inline: 3px;
    }

    body.app-screen .commission-panel {
        gap: 5px;
        padding: 6px;
        border-radius: 0;
        box-shadow: none;
    }

    body.app-screen .commission-panel .app-brand-logo {
        max-width: 140px;
        max-height: 34px;
    }

    body.app-screen .commission-panel .eyebrow {
        font-size: 0.58rem;
    }

    body.app-screen .commission-panel h1 {
        font-size: 1.2rem;
        line-height: 1;
    }

    body.app-screen .commission-panel p {
        font-size: 0.72rem;
        line-height: 1.18;
    }

    body.app-screen .commission-code {
        padding: 6px;
        font-size: 2.45rem;
    }

    body.app-screen .commission-meta,
    body.app-screen .commission-status {
        font-size: 0.68rem;
    }

    body.app-screen .handset-key-setup {
        gap: 4px;
        padding-top: 5px;
    }

    body.app-screen .handset-key-heading {
        gap: 5px;
    }

    body.app-screen .handset-key-heading h2 {
        width: auto;
        font-size: 0.92rem;
    }

    body.app-screen .handset-key-setup label,
    body.app-screen .handset-key-setup select,
    body.app-screen .handset-device-name {
        font-size: 0.72rem;
    }

    body.app-screen .handset-key-setup select {
        min-height: 34px;
        padding: 4px 6px;
    }

    body.app-screen .handset-key-setup .button {
        min-height: 34px;
        padding: 5px 7px;
        font-size: 0.74rem;
    }

    body.app-screen .handset-learn-modal {
        display: block;
        padding: 2px;
    }

    body.app-screen .handset-learn-modal[hidden] {
        display: none;
    }

    body.app-screen .handset-learn-dialog {
        gap: 4px;
        max-height: calc(100dvh - 4px);
        padding: 5px;
    }

    body.app-screen .handset-learn-instruction {
        min-height: 0;
        margin: 0;
        padding: 5px 6px;
        font-size: 0.68rem;
        line-height: 1.15;
    }

    body.app-screen .handset-learn-actions {
        gap: 4px;
    }

    body.app-screen .handset-learn-actions .button {
        min-height: 38px;
        padding: 4px;
        font-size: 0.7rem;
    }

    body.app-screen .handset-learn-actions small {
        font-size: 0.58rem;
    }
}
