html, body {
    font-family: "Public Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(88, 28, 135, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    color: #0f172a;
}

:root {
    --drawer-width: 256px;
}

body {
    margin: 0;
    min-height: 100vh;
}

a {
    color: inherit;
}

.courier-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    border-bottom: 1px solid #c8d2dc;
}

.courier-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    border: 1px solid #c8d2dc;
    border-bottom: 0;
    border-radius: 0.35rem 0.35rem 0 0;
    background: #f3f6f9;
    color: #17324d;
    padding: 0.45rem 0.7rem;
    min-height: 2.55rem;
    font: inherit;
    cursor: pointer;
}

.courier-tab-active {
    background: #ffffff;
    color: #08263d;
    font-weight: 700;
    box-shadow: inset 0 3px 0 #0b5c8f;
}

.courier-tab-title {
    white-space: nowrap;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.courier-tab-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border-radius: 999px;
    padding: 0.08rem 0.42rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.courier-tab-chip-count {
    background: #0d47a1;
    color: #ffffff;
    font-weight: 800;
    min-width: 1.65rem;
    justify-content: center;
    text-align: center;
}

.top-appbar {
    backdrop-filter: blur(16px);
    background: rgba(44, 20, 68, 0.94) !important;
    border-bottom: 1px solid rgba(196, 181, 253, 0.14);
    min-height: 80px;
    overflow: hidden;
}

.brand-lockup {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    margin-left: 0.5rem;
}

.appbar-left {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    flex: 0 1 auto;
}

.appbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 1rem;
    margin-right: 0.25rem;
}

.appbar-brand-zone {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: var(--mud-drawer-width-left, var(--drawer-width));
    min-width: var(--mud-drawer-width-left, var(--drawer-width));
    padding-right: 1rem;
    margin-left: -0.72rem;
    margin-top: 0.38rem;
}

.appbar-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.appbar-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.08rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.appbar-release-line {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.appbar-release-line:hover {
    color: #ffffff;
}

.appbar-release-new {
    margin-left: 0.1rem !important;
}

.appbar-release-mode-badge {
    min-height: 0.72rem !important;
    min-width: 0 !important;
    padding: 0.03rem 0.24rem !important;
    font-size: 0.48rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.appbar-wordmark-courier {
    color: #ffffff;
}

.appbar-wordmark-hq {
    color: #d4a017;
}

.brand-logo {
    height: 66px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: saturate(0.9) contrast(1.02);
}

.brand-logo-business {
    height: 68px;
    max-width: none;
}

.appbar-right-business-logo {
    height: 66px;
}

.brand-subtitle {
    display: inline-flex;
    align-items: center;
    color: #111827;
    font-weight: 950;
    letter-spacing: 0.02em;
    white-space: nowrap;
    margin-left: 0;
    font-size: 1.56rem !important;
    line-height: 1.05;
}

.appbar-section-icon {
    color: #111827 !important;
    font-size: 1.8rem !important;
    vertical-align: -0.18rem;
    margin-right: 0.36rem;
}

.appbar-section-icon-sub {
    color: #0b3a67 !important;
    font-size: 1.48rem !important;
    margin-left: 0.28rem;
    margin-right: 0.28rem;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex-wrap: nowrap;
}

.appbar-section-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.section-heading-appbar {
    margin-left: -20px;
    margin-top: 0.56rem;
    min-height: 2.25rem;
    padding: 0.28rem 0.8rem;
    border: 2px solid #111827;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.section-context-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    max-width: 34rem;
    margin-top: 0.56rem;
    padding: 0.28rem 0.8rem;
    border: 2px solid #111827;
    background: #fff9d7;
    color: #111827;
    font-size: 1.56rem;
    font-weight: 950;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    color: #0b3a67;
    font-weight: 850;
    white-space: nowrap;
    font-size: 1.38rem !important;
    line-height: 1.05;
}

.appbar-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.05rem;
    color: #d4a017;
    font-weight: 800;
    margin: 0 0.45rem 0 0.8rem;
    white-space: nowrap;
    min-width: 8.5rem;
    max-width: 19rem;
    line-height: 1.08;
}

.appbar-user-name {
    color: #d4a017;
    font-weight: 900 !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appbar-user-roles {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 750 !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appbar-centre {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0.8rem;
}

.appbar-allocator-status {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-width: 12rem;
    max-width: 30rem;
    min-height: 2.3rem;
    padding: 0.32rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.global-search-fab {
    position: fixed;
    left: auto !important;
    right: 5.85rem !important;
    bottom: 1.35rem;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.3rem;
    height: 3.3rem;
    border: 1px solid #4c1d95;
    border-radius: 999px;
    background: #6d11d6;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
    cursor: pointer;
}

.global-search-fab:hover,
.global-search-fab.active {
    border-color: #5b21b6;
    background: #5b21b6;
    color: #ffffff;
}

.global-search-fab .mud-icon-root {
    font-size: 1.85rem !important;
}

.context-help-fab {
    position: fixed;
    left: auto !important;
    right: 9.65rem !important;
    bottom: 1.35rem;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.3rem;
    height: 3.3rem;
    border: 1px solid #0f4c5c;
    border-radius: 999px;
    background: #ffffff;
    color: #0f4c5c;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
    cursor: pointer;
}

.context-help-fab:hover,
.context-help-fab.active {
    border-color: #0b3a67;
    background: #e8f3f8;
    color: #0b3a67;
}

.context-help-fab .mud-icon-root {
    font-size: 1.85rem !important;
}

.context-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 1290;
    background: rgba(15, 23, 42, 0.18);
}

.context-help-panel {
    position: fixed;
    right: 1.25rem;
    bottom: 5.25rem;
    display: flex;
    flex-direction: column;
    width: min(34rem, calc(100vw - 2rem));
    max-height: min(44rem, calc(100vh - 7rem));
    overflow: hidden;
    border: 1px solid #9fb3c8;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.34);
}

.context-help-header,
.context-help-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #d7e0ea;
    background: #f8fafc;
}

.context-help-footer {
    border-top: 1px solid #d7e0ea;
    border-bottom: 0;
}

.context-help-topic-row {
    display: flex;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.context-help-topic-chip {
    flex: 0 0 auto;
    max-width: 14rem;
    padding: 0.38rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #0b3a67;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.context-help-topic-chip.active,
.context-help-topic-chip:hover {
    border-color: #0f4c5c;
    background: #e8f3f8;
}

.context-help-body {
    padding: 1rem;
    overflow-y: auto;
}

.context-help-body p {
    margin: 0 0 0.75rem;
}

.context-help-body ol {
    margin: 0;
    padding-left: 1.4rem;
}

.context-help-body li {
    margin-bottom: 0.42rem;
}

.context-help-note {
    margin-top: 0.9rem;
    padding: 0.72rem 0.8rem;
    border-left: 0.28rem solid #d18f00;
    background: #fff7df;
    color: #3b2f10;
    font-weight: 700;
}

.context-help-question {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #fbfdff;
}

.context-help-answer,
.help-ai-answer {
    white-space: pre-wrap;
    padding: 0.85rem 0.95rem;
    border: 1px solid #bfd6e3;
    border-radius: 6px;
    background: #f0f9ff;
    color: #12335f;
    line-height: 1.45;
}

.appbar-allocator-status.live {
    border-color: rgba(34, 197, 94, 0.54);
    background: rgba(20, 83, 45, 0.46);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(248, 113, 113, 0.12),
        0 0 18px rgba(239, 68, 68, 0.18);
}

.appbar-allocator-status.none {
    border-color: rgba(251, 191, 36, 0.56);
    background: rgba(120, 53, 15, 0.48);
}

.appbar-allocator-status.other-users {
    min-width: 10rem;
    max-width: 24rem;
    border-color: rgba(125, 183, 220, 0.72);
    background: rgba(15, 76, 92, 0.52);
}

.appbar-other-users-icon {
    flex: 0 0 auto;
    color: #bae6fd !important;
    font-size: 1.08rem !important;
}

.appbar-allocator-icon {
    flex: 0 0 auto;
    color: #fde68a !important;
    font-size: 1.16rem !important;
}

.appbar-allocator-heart {
    position: relative;
    flex: 0 0 auto;
    width: 0.7rem;
    height: 0.7rem;
    margin: 0 0.12rem 0 0.06rem;
    transform: rotate(-45deg) scale(0.9);
    transform-origin: 50% 52%;
    background: linear-gradient(145deg, #ff6b6b 0%, #ef233c 46%, #b91c1c 100%);
    border-radius: 0.18rem 0.18rem 0.08rem 0.18rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 0 10px rgba(239, 35, 60, 0.82),
        0 0 22px rgba(239, 35, 60, 0.42);
}

.appbar-allocator-heart::before,
.appbar-allocator-heart::after {
    position: absolute;
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    background: inherit;
    border-radius: 50%;
}

.appbar-allocator-heart::before {
    top: -0.35rem;
    left: 0;
}

.appbar-allocator-heart::after {
    top: 0;
    left: 0.35rem;
}

.appbar-allocator-status.live .appbar-allocator-heart::before,
.appbar-allocator-status.live .appbar-allocator-heart::after {
    box-shadow: inherit;
}

.appbar-allocator-heart::before,
.appbar-allocator-heart::after,
.appbar-allocator-heart {
    z-index: 1;
}

.appbar-allocator-status.live .appbar-allocator-heart {
    animation: allocator-heartbeat 10s ease-in-out infinite;
}

.appbar-allocator-status.live .appbar-allocator-heart::before {
    animation: allocator-heart-lobe 10s ease-in-out infinite;
}

.appbar-allocator-status.live .appbar-allocator-heart::after {
    animation: allocator-heart-lobe 10s ease-in-out infinite;
}

.appbar-allocator-status.live .appbar-allocator-heart::selection {
    background: transparent;
}

.appbar-allocator-status.live::after {
    position: absolute;
    left: 0.62rem;
    width: 1.35rem;
    height: 1.35rem;
    content: "";
    border: 2px solid rgba(248, 113, 113, 0.58);
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    animation: allocator-heart-pulse 10s ease-out infinite;
}

.appbar-allocator-status.none .appbar-allocator-heart {
    width: 0.44rem;
    height: 0.44rem;
    margin: 0 0.2rem 0 0.12rem;
    transform: none;
    background: #94a3b8;
    border-radius: 0.08rem;
    box-shadow: none;
    animation: none;
}

.appbar-allocator-status.none .appbar-allocator-heart::before,
.appbar-allocator-status.none .appbar-allocator-heart::after {
    display: none;
    animation: none;
    box-shadow: none;
}

.appbar-allocator-label {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.appbar-allocator-value {
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes allocator-heartbeat {
    0%, 4.8%, 100% {
        transform: rotate(-45deg) scale(0.9);
        filter: saturate(1);
    }

    1.3% {
        transform: rotate(-45deg) scale(1.22);
        filter: saturate(1.35) drop-shadow(0 0 10px rgba(248, 113, 113, 0.95));
    }

    2.6% {
        transform: rotate(-45deg) scale(0.82);
    }

    3.7% {
        transform: rotate(-45deg) scale(1.08);
        filter: saturate(1.2) drop-shadow(0 0 8px rgba(248, 113, 113, 0.76));
    }
}

@keyframes allocator-heart-lobe {
    0%, 4.8%, 100% {
        filter: brightness(1);
    }

    1.3%, 3.7% {
        filter: brightness(1.12);
    }
}

@keyframes allocator-heart-pulse {
    0% {
        opacity: 0.58;
        transform: scale(0.42);
    }

    5.8% {
        opacity: 0;
        transform: scale(1.12);
    }

    100% {
        opacity: 0;
        transform: scale(1.18);
    }
}

.appbar-mode-badge,
.login-mode-badge,
.mode-config-select {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    border: 0 !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22) !important;
}

.appbar-mode-badge {
    min-height: 2.05rem;
    min-width: 5.4rem;
    padding: 0.32rem 0.9rem;
    font-size: 0.74rem;
    line-height: 1;
}

.login-mode-badge {
    min-height: 2.2rem;
    min-width: 7rem;
    padding: 0.35rem 0.95rem;
    font-size: 0.8rem;
    line-height: 1;
}

.mode-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(91, 33, 182, 0.16);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.72);
}

.mode-config-select {
    min-height: 2.35rem;
    min-width: 12rem;
    padding: 0.4rem 2rem 0.4rem 1rem;
    font-size: 0.86rem;
    cursor: pointer;
}

.login-mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(91, 33, 182, 0.16);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.72);
}

.appbar-mode-badge-development,
.login-mode-badge-development,
.mode-config-select-development {
    background: #991b1b !important;
}

.appbar-mode-badge-test,
.login-mode-badge-test,
.mode-config-select-test {
    background: #1e3a8a !important;
}

.appbar-mode-badge-production,
.login-mode-badge-production,
.mode-config-select-production {
    background: #14532d !important;
}

.side-drawer {
    background: linear-gradient(180deg, #24113a 0%, #1b102f 100%);
    border-right: 1px solid rgba(196, 181, 253, 0.12);
    width: var(--drawer-width) !important;
}

.nav-stack {
    padding: 1.25rem 0.75rem;
}

.nav-caption {
    color: #c4b5fd;
    padding: 0 0.75rem;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 12px;
    margin: 0.2rem 0.4rem;
    padding: 0.7rem 0.9rem;
    color: #ede9fe;
    text-decoration: none;
}

.app-nav-icon {
    color: #c4b5fd;
    font-size: 1.12rem;
}

.app-nav-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.15;
}

.app-nav-link.active,
.app-nav-link.active .app-nav-text,
.app-nav-link.active .app-nav-icon {
    color: #d4a017 !important;
}

.app-nav-link.active {
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(212, 160, 23, 0.3);
    box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.08);
}

.app-nav-link:hover {
    background: rgba(196, 181, 253, 0.08);
}

.app-nav-group {
    margin: 0.1rem 0;
}

.app-nav-parent {
    margin-bottom: 0.15rem;
}

.app-nav-parent .app-nav-text {
    color: #f3dfb3 !important;
    font-weight: 650;
}

.nav-toggle-button {
    width: calc(100% - 0.8rem);
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.clickable-row-table tbody tr {
    cursor: pointer;
}

.app-nav-children {
    position: relative;
    margin: 0 0.2rem 0.4rem 1.15rem;
    padding-left: 0.85rem;
}

.app-nav-children::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background: rgba(196, 181, 253, 0.18);
}

.app-nav-link-child {
    gap: 0.6rem;
    margin: 0.15rem 0;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
}

.app-nav-link-child .app-nav-text {
    font-size: 1.13rem;
    font-weight: 500;
}

.app-nav-link-child .app-nav-icon {
    font-size: 1.08rem;
}

.main-shell {
    padding: calc(64px + 2rem) 2rem 2rem;
}

.page-alert-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin: 0 0 1.25rem;
}

.page-alert-panel {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    min-height: 4.1rem;
    padding: 0.9rem 1rem;
    border: 2px solid transparent;
    border-left-width: 0.55rem;
    border-radius: 0.45rem;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    transform-origin: center;
}

.page-alert-panel.page-alert-panel-pulse {
    animation: page-alert-panel-shake 720ms ease-in-out;
}

.page-alert-panel-red-clock {
    background: #7f1d1d;
    border-color: #fecaca;
}

.page-alert-panel-no-allocator {
    background: #78350f;
    border-color: #fbbf24;
}

.page-alert-panel-ai-unavailable {
    background: #fef3c7 !important;
    border-color: #b91c1c !important;
    color: #1f2937 !important;
    box-shadow: 0 12px 28px rgba(127, 29, 29, 0.22);
}

.page-alert-panel-ai-unavailable .page-alert-panel-icon {
    color: #b91c1c !important;
}

.page-alert-panel-ai-unavailable .page-alert-panel-title {
    color: #7f1d1d !important;
}

.page-alert-panel-ai-unavailable .page-alert-panel-message {
    color: #1f2937 !important;
}

.page-alert-panel-icon {
    flex: 0 0 auto;
    color: #fff7ed !important;
    font-size: 2rem !important;
}

.page-alert-panel-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 0.12rem;
}

.page-alert-panel-title {
    font-size: 0.84rem;
    font-weight: 950;
    line-height: 1.1;
    text-transform: uppercase;
}

.page-alert-panel-message {
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.32;
}

.page-alert-panel-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.help-hero,
.help-list-panel,
.help-detail-panel,
.help-ai-panel {
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #ffffff;
}

.help-hero {
    padding: 1.1rem 1.2rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6fb 100%);
}

.help-hero-icon {
    color: #0f4c5c !important;
    font-size: 2.1rem !important;
}

.help-muted {
    color: #526072;
}

.help-search-row {
    max-width: 58rem;
}

.help-search-input {
    flex: 1 1 26rem;
}

.help-list-panel,
.help-detail-panel,
.help-ai-panel {
    padding: 1rem;
}

.help-ai-panel {
    margin-top: 1rem;
}

.help-panel-title,
.help-section-heading {
    color: #0b3a67;
    font-weight: 900;
}

.help-topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.75rem;
    max-height: calc(100vh - 17rem);
    overflow-y: auto;
}

.help-topic-button {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    width: 100%;
    padding: 0.78rem 0.85rem;
    border: 1px solid #d7e0ea;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.help-topic-button:hover,
.help-topic-button.active {
    border-color: #0f4c5c;
    background: #eef6fb;
}

.help-topic-button span:last-child {
    color: #526072;
    font-size: 0.88rem;
    line-height: 1.28;
}

.help-topic-category {
    color: #0f5f7a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.help-detail-summary {
    margin-top: 0.55rem;
    color: #334155;
}

.help-step-list {
    margin: 0.55rem 0 0;
    padding-left: 1.5rem;
}

.help-step-list li {
    margin-bottom: 0.5rem;
}

.help-note-grid {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.55rem;
}

.help-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid #cfe5d8;
    border-radius: 6px;
    background: #f0fdf4;
    color: #14532d;
}

.help-note .mud-icon-root {
    color: #207a4d !important;
    font-size: 1.05rem !important;
    margin-top: 0.1rem;
}

.help-source-topics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #526072;
    font-size: 0.85rem;
}

@keyframes page-alert-panel-shake {
    0%, 100% {
        transform: translateX(0);
    }

    15%, 45%, 75% {
        transform: translateX(-5px);
    }

    30%, 60%, 90% {
        transform: translateX(5px);
    }
}

.hero-panel,
.metric-card,
.login-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.hero-panel {
    padding: 2rem;
    border-radius: 20px;
}

.metric-card {
    padding: 1.5rem;
    border-radius: 18px;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.2), rgba(248, 250, 252, 0.36)),
        url("/images/LoginSurround.png?v=20260521-2") center / cover no-repeat;
    background-color: #f8fafc;
}

.login-panel {
    width: 100%;
    max-width: 540px;
}

.login-card {
    padding: 2.5rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(231, 245, 255, 0.98), rgba(217, 239, 253, 0.98));
    border-color: rgba(14, 116, 144, 0.18);
}

.login-brand-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    padding: 0;
    margin-bottom: 1.25rem;
}

.login-brand-strip-bottom {
    margin-top: 0;
    margin-bottom: 0;
    flex: 0 0 auto;
    min-height: 80px;
    padding: 0;
}

.login-footer-band {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    align-items: stretch;
}

.login-brand-logo {
    display: block;
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
}

.login-brand-logo-business {
    max-height: 50px;
}

.login-release-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    flex: 1 1 auto;
    min-width: 180px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(91, 33, 182, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-sizing: border-box;
}

.login-subtitle,
.release-date {
    color: #526072;
}

.release-label {
    color: #5b21b6;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.release-value {
    color: #1f2937;
}

.release-note-list {
    border-top: 1px solid rgba(15, 76, 92, 0.14);
}

.release-note-item {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: start;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(15, 76, 92, 0.14);
}

.release-note-item-login {
    grid-template-columns: 1rem minmax(0, 1fr);
}

.release-note-bullet {
    color: #0f4c5c;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

.release-note-copy {
    min-width: 0;
}

.field-stack {
    display: grid;
    gap: 1rem;
}

.login-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.login-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.remember-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #475569;
}

.remember-choice-group {
    display: grid;
    gap: 0.45rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    background: #f8fafc;
}

.login-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.35rem;
}

.password-input-wrap {
    position: relative;
}

.password-reset-input-wrap {
    position: relative;
}

.password-input {
    padding-right: 3.1rem;
}

.password-reset-input .mud-input {
    padding-right: 3.1rem;
}

.password-visibility-button {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-visibility-button:hover,
.password-visibility-button[aria-pressed="true"] {
    background: rgba(15, 76, 92, 0.1);
    color: #0f4c5c;
}

.password-visibility-button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.password-reset-visibility-button {
    top: 2.42rem;
    right: 0.75rem;
    z-index: 2;
}

.login-input:focus {
    outline: 2px solid rgba(91, 33, 182, 0.18);
    border-color: #5b21b6;
}

.empty-layout,
.empty-state-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.workflow-row-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 2rem;
}

.workflow-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.workflow-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
}

.workflow-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

.workflow-unread-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.workflow-attention-clock {
    font-size: 1rem;
    line-height: 1;
    color: #b71c1c;
    font-weight: 700;
}

.workflow-attention-clock-icon {
    color: #b71c1c;
    font-size: 1.08rem;
    vertical-align: middle;
}

.attention-clock-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.28rem;
    border-radius: 999px;
    background: #b91c1c;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.12);
    flex: 0 0 auto;
}

.attention-clock-marker-icon {
    color: #ffffff !important;
    font-size: 0.92rem !important;
}

.vehicle-thumb {
    width: 122px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #fff;
}

.vehicle-thumb-empty {
    display: grid;
    place-items: center;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.78);
}

.vehicle-image-preview {
    width: 278px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #fff;
}

.mud-paper {
    border-radius: 18px;
}

.combined-status-indicator {
    display: inline-flex;
    align-items: stretch;
    width: 3.55rem;
    height: 0.88rem;
    border: 1.5px solid #111827;
    border-radius: 999px;
    overflow: hidden;
    background: #cbd5e1;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.18);
    flex: 0 0 auto;
    vertical-align: middle;
}

.combined-status-indicator-section {
    display: block;
    height: 100%;
    border-right: 1.5px solid #111827;
}

.combined-status-indicator-section-count {
    flex: 0 0 31%;
    background: #3447d8;
}

.combined-status-indicator-section-new {
    flex: 1 1 auto;
    background: #20af4f;
}

.combined-status-indicator-section-old {
    flex: 0 0 31%;
    background: #ef1d26;
}

.combined-status-indicator-section-inactive {
    background: #cbd5e1;
}

.combined-status-indicator-section:last-child {
    border-right: 0;
}

.courier-tab-status-indicator,
.job-status-combined-indicator {
    margin-left: 0.15rem;
}

.nav-combined-status-indicator {
    margin-left: auto;
    width: 2.75rem;
    height: 0.64rem;
    border-width: 1px;
    box-shadow: none;
}

.nav-combined-status-indicator .combined-status-indicator-section {
    border-right-width: 1px;
}

.nav-legend-combined-indicator {
    width: 2.9rem;
    height: 0.68rem;
    border-width: 1px;
    box-shadow: none;
}

.nav-legend-combined-indicator .combined-status-indicator-section {
    border-right-width: 1px;
}

.sortable-header-button {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.sortable-header-button:hover,
.sortable-header-button:focus-visible {
    color: var(--mud-palette-primary);
}

.sortable-header-button:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.cq-panel-surface {
    --cq-panel-bg: var(--mud-palette-surface);
    background-color: var(--cq-panel-bg) !important;
}

.cq-panel-surface .mud-input-label-outlined {
    background-color: var(--cq-panel-bg) !important;
}

.area-charge-editor {
    border: 1px solid #cbd5e1;
    padding: 16px;
    background: #ffffff;
}

.area-charge-builder {
    border: 1px solid #dbe3ee;
    padding: 16px;
    background: #f8fafc;
}

.area-charge-colour-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.area-charge-colour-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(15, 23, 42, 0.25);
}

.area-charge-selected-summary,
.area-charge-map-editor {
    border: 1px solid #dbe3ee;
    padding: 16px;
    background: #ffffff;
}

.area-charge-map-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.area-charge-list {
    border: 1px solid #dbe3ee;
    background: #ffffff;
    overflow-x: auto;
}

.area-charge-list-header,
.area-charge-list-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.25fr) minmax(120px, 0.7fr) minmax(150px, 0.8fr) minmax(220px, 1.25fr) minmax(180px, 1fr) minmax(260px, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 1120px;
    padding: 12px;
}

.area-charge-list-header {
    align-items: center;
    border-bottom: 1px solid #dbe3ee;
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.area-charge-list-row + .area-charge-list-row {
    border-top: 1px solid #eef2f7;
}

.area-charge-list-prefixes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 56px;
    align-content: flex-start;
    padding-top: 4px;
}

.area-charge-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px;
    background: rgba(15, 23, 42, 0.45);
    overflow: auto;
}

.area-charge-map-panel {
    width: min(1180px, 100%);
    max-height: 92vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
}

.area-charge-map-preview {
    min-height: 160px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px), linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px), #f8fafc;
    background-size: 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.area-charge-map-ring {
    width: min(132px, 70%);
    aspect-ratio: 1;
    border: 2px solid #2563eb;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0f172a;
}

.area-charge-map-centre {
    font-weight: 700;
}

.area-charge-map-radius {
    font-size: 0.78rem;
    color: #475569;
}

.congestion-charge-map-frame {
    width: min(100%, 1240px);
    overflow: auto;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.congestion-charge-map-frame img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    .congestion-charge-map-frame {
        width: 100%;
    }
}

.postcode-picker-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #dbe3ee;
    background: #f8fafc;
}

.postcode-picker-map-shell {
    position: relative;
    border: 1px solid #cbd5e1;
    background: #eef6fb;
    min-height: 0;
    overflow: visible;
}

.postcode-picker-map-shell--district {
    min-height: 0;
}

.postcode-picker-help-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    align-items: center;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #cbd5e1;
    background: #fff7df;
    color: #3b2f10;
    font-size: 0.88rem;
}

.postcode-picker-help-panel strong {
    color: #0b3a67;
}

.postcode-picker-map {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    border: 0;
}

.postcode-picker-map .postcode-picker-svg {
    display: block;
    width: 90%;
    max-width: 1080px;
    height: auto;
}

.postcode-picker-map.postcode-picker-map--district {
    height: auto;
    min-height: 0;
}

.postcode-picker-map .postcode-picker-svg-district {
    width: 45%;
    max-width: 570px;
}

.postcode-picker-map .postcode-picker-svg-generated-district {
    width: 96%;
    max-width: 980px;
}

.postcode-picker-generated-district,
.postcode-picker-generated-district-path,
.postcode-picker-generated-district-label {
    pointer-events: all;
}

.postcode-picker-generated-district-label {
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.postcode-picker-generated-district-label--selected {
    fill: #7f1d1d;
}

.postcode-picker-generated-district-label--hovered {
    fill: #0f5f7a;
}

.postcode-picker-district-list {
    padding: 1rem;
    background: #f8fafc;
}

.postcode-picker-district-list-title {
    margin-bottom: 0.75rem;
    color: #0b3a67;
    font-weight: 800;
}

.postcode-picker-district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.55rem;
}

.postcode-picker-district-button {
    min-height: 2.25rem;
    border: 1px solid #9fb3c8;
    border-radius: 4px;
    background: #ffffff;
    color: #12335f;
    font-weight: 800;
    cursor: pointer;
}

.postcode-picker-district-button--hovered {
    border-color: #0f5f7a;
    background: #e8f3f8;
}

.postcode-picker-district-button--selected {
    border-color: var(--postcode-picker-selection-stroke, #7f1d1d);
    background: var(--postcode-picker-selection-colour, #c62828);
    color: #ffffff;
}

.postcode-picker-map-hover-panel {
    position: absolute;
    top: 3.65rem;
    left: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 34px;
    margin: 0;
    padding: 5px 12px;
    border: 1px solid #93a4b8;
    background: rgba(255, 255, 255, 0.94);
    color: #12335f;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
    pointer-events: none;
}

.postcode-picker-prefix-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
}

.postcode-picker-prefix-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.postcode-picker-prefix-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #12335f;
    font-weight: 700;
    font-size: 0.82rem;
}

.postcode-picker-prefix-chip--selected {
    border-color: #7f1d1d;
    background: #c62828;
    color: #ffffff;
}

.postcode-picker-selection {
    border: 1px solid #dbe3ee;
    padding: 16px;
    background: #ffffff;
}

.postcode-picker-attribution {
    display: block;
    margin-top: 14px;
    color: #64748b;
}

.floating-action-scroll-space {
    padding-bottom: 6.5rem;
}

.floating-record-actions {
    position: fixed;
    left: calc(var(--mud-drawer-width-left, var(--drawer-width)) + 0.25rem);
    bottom: 1.35rem;
    z-index: 1201;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.3rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid #b9d7f5;
    border-radius: 999px;
    background: #eaf5ff;
    box-shadow: 0 14px 34px rgba(18, 65, 120, 0.18);
}

.floating-record-actions .mud-button-root {
    min-height: 2.35rem;
    border-radius: 999px;
    font-weight: 800;
}

.floating-record-actions .floating-record-save {
    background: #064e3b !important;
    color: #ffffff !important;
}

.floating-record-actions .floating-record-save:hover {
    background: #022c22 !important;
}

.floating-record-actions .floating-record-save.mud-button-disabled,
.floating-record-actions .floating-record-save:disabled {
    background: #f1f3f5 !important;
    color: #8a8f98 !important;
    opacity: 1 !important;
    border: 1px solid #adb5bd;
}

.floating-record-actions .floating-record-save.mud-button-disabled .mud-button-label,
.floating-record-actions .floating-record-save:disabled .mud-button-label,
.floating-record-actions .floating-record-save.mud-button-disabled .mud-icon-root,
.floating-record-actions .floating-record-save:disabled .mud-icon-root {
    color: #8a8f98 !important;
    opacity: 1 !important;
}

.floating-record-actions .floating-record-exit {
    background: #7f1d1d;
    color: #ffffff;
}

.floating-record-actions .floating-record-exit:hover {
    background: #5f1111;
}

.floating-record-exit-warning-tooltip {
    display: grid;
    gap: 0.3rem;
    min-width: 14rem;
    max-width: 20rem;
    font-size: 1rem;
    line-height: 1.35;
}

.floating-record-exit-warning-tooltip strong {
    font-size: 1.1rem;
}

.depot-detail-panel {
    background: #f8fafc;
    border: 1px solid #d7e0ea;
}

.depot-location-section-heading {
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.75rem;
}

.depot-location-panel {
    background: #ffffff;
    border: 1px solid #9fb3c8;
    border-left: 0.45rem solid #0f5f7a;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 95, 122, 0.08);
}

.depot-location-panel-header {
    background: #e8f3f8;
    border: 1px solid #bfd6e3;
    border-radius: 6px;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
}

.depot-location-panel-header .mud-typography-caption {
    color: #24465a;
    font-weight: 600;
}

.depot-add-location-button {
    align-self: flex-start;
    background: #ffffff;
}

@media (max-width: 960px) {
    .main-shell {
        padding: calc(56px + 1rem) 1rem 1rem;
    }

    .appbar-centre {
        gap: 0.45rem;
    }

    .appbar-allocator-status {
        min-width: 8.5rem;
        max-width: 16rem;
        padding-inline: 0.55rem;
    }

    .appbar-allocator-status.other-users {
        min-width: 7.5rem;
        max-width: 13rem;
    }

    .appbar-allocator-label {
        display: none;
    }

    .page-alert-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-alert-panel-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .login-card {
        padding: 1.75rem;
        border-radius: 22px;
    }

    .login-brand-strip {
        min-height: 88px;
        padding: 0;
    }

    .login-brand-logo {
        max-height: 58px;
    }

    .login-brand-logo-business {
        max-height: 48px;
    }

    .brand-logo {
        height: 50px;
    }

    .brand-logo-business {
        height: 52px;
        max-width: none;
    }

    .brand-lockup {
        gap: 0.65rem;
    }

    .appbar-wordmark {
        font-size: 2.2rem;
    }

    .appbar-brand-zone {
        width: var(--mud-drawer-width-left, var(--drawer-width));
        min-width: var(--mud-drawer-width-left, var(--drawer-width));
        padding-right: 0.5rem;
        margin-left: -0.42rem;
        margin-top: 0.3rem;
    }

    .section-heading-appbar {
        margin-left: -20px;
        margin-top: 0.5rem;
        min-height: 2.12rem;
        padding: 0.24rem 0.7rem;
    }

    .section-context-chip {
        max-width: 16rem;
        min-height: 2.12rem;
        margin-top: 0.5rem;
        padding: 0.24rem 0.7rem;
        font-size: 1.22rem;
    }

    .appbar-section-icon {
        font-size: 1.52rem !important;
        margin-right: 0.3rem;
    }

    .appbar-section-icon-sub {
        font-size: 1.3rem !important;
    }

    .brand-subtitle {
        font-size: 1.34rem !important;
    }

    .section-subtitle {
        font-size: 1.18rem !important;
    }

    .appbar-user {
        font-size: 1rem;
    }
}
