:root {
    --navy: #003366;
    --navy-hover: #004b8d;
    --white: #ffffff;
    --black: #000000;
    --light-gray: #f5f5f5;
    --gray: #c7c7c7;
    --error: darkred;
}

/* ===== BASE ===== */
body {
    margin: 0;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    font-size: 1.5em;
}

.RemoveObject {
    display: none;
}

.HideObject {
    visibility: hidden;
}

/* ===== LINKS ===== */
a.A1,
a.A2 {
    color: var(--black);
    text-decoration: none;
    padding: 2px 12px;
}

a.A1:hover {
    background: gray;
}

a.A2:hover {
    background: var(--light-gray);
}

/* ===== TEXT ===== */
.text-lg {
    font-size: 30px;
}

.text-md {
    font-size: 26px;
}

.text-sm {
    font-size: 20px;
}

.text-bold {
    font-weight: bold;
}

.text-gray {
    color: lightgray;
}

.text-error {
    color: var(--error);
    font-weight: bold;
}

/* ===== INPUTS ===== */
.input {
    background: #f5effb;
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 5px;
    font-size: 30px;
}

.input-lg {
    width: 400px;
    height: 40px;
}

.input-sm {
    width: 250px;
    height: 40px;
}

/* ===== BUTTONS ===== */
.button,
.nav-button {
    display: inline-block;
    cursor: pointer;
    background: var(--navy);
    color: var(--white) !important;
    text-decoration: none;
    font-size: 30px;
    font-weight: bold;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.button {
    font-size: 34px;
    padding: 10px 25px;
    border-radius: 10px;
}

.button:hover,
.nav-button:hover {
    background: var(--navy-hover);
    color: var(--white) !important;
}

.nav-button-current {
    background: #b40000;
    box-shadow: none;
}

.button-light {
    background: var(--navy);
}

.button-gray {
    background: lightgray;
    color: var(--black) !important;
    cursor: default;
}

/* ===== MENU / NAV ===== */
.menu-bar {
    height: 80px;
    line-height: 80px;
    font-size: 30px;
    color: var(--white);
    background: var(--navy);
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: #ffffff;
    box-sizing: border-box;
    margin: 0 auto;
    width: min(100% - 24px, 1100px);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

.nav-container-menu-open {
    border-radius: 8px 8px 0 0;
    box-shadow: none;
    padding-bottom: 0;
}

.nav-container .nav-button {
    align-items: center;
    background: #003a70;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 6px;
    display: inline-flex;
    font-size: 16px;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1.1;
    min-height: 38px;
    min-width: max-content;
    padding: 8px 12px;
    box-sizing: border-box;
    white-space: nowrap;
}

.nav-container .nav-button:hover {
    background: #0b5597;
}

.nav-container .nav-button-current {
    background: #c8102e;
    border-color: #c8102e;
    box-shadow: none;
}

.nav-server-dot {
    background: #16a34a;
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 999px;
    display: inline-block;
    height: 9px;
    margin-left: 7px;
    width: 9px;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.22);
}

.nav-container .nav-chat,
.nav-container .nav-task,
.nav-container .nav-email {
    position: relative;
}

.nav-container .nav-chat.has-chat-count,
.nav-container .nav-task.has-task-count,
.nav-container .nav-email.has-email-count {
    gap: 6px;
}

.nav-chat-count,
.nav-task-count,
.nav-email-count {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.82);
    border-radius: 999px;
    color: #c8102e;
    display: none;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    min-width: 22px;
    padding: 3px 6px;
}

.nav-chat-count.has-count,
.nav-task-count.has-count,
.nav-email-count.has-count {
    display: inline-flex;
}

.nav-container .nav-admin {
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
}

.nav-container .nav-admin:hover,
.nav-container .nav-admin:focus {
    background: #0b5597;
    border-color: rgba(255,255,255,0.16);
    color: #fff !important;
}

.nav-primary {
    flex: 0 1 auto;
}

.nav-secondary,
.nav-chat,
.nav-email,
.nav-menu,
.nav-auth,
.nav-admin {
    flex: 0 1 auto;
    border-radius: 6px;
}

.nav-label-short {
    display: none;
}

.header-top-menu-toggle {
    appearance: none;
    font-family: Arial, Helvetica, sans-serif;
}

.header-top-menu-panel {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    margin: 0 auto 8px;
    padding: 4px 6px 6px;
    text-align: center;
    width: min(100% - 24px, 1100px);
}

.header-top-menu-panel[hidden] {
    display: none;
}

.header-top-menu-grid {
    background: #ffffff;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    box-sizing: border-box;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 10px;
    text-align: left;
}

.header-top-menu-section h2 {
    color: #003a70;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px;
    text-align: center;
}

.header-top-menu-links {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.header-top-menu-link {
    background: #003a70;
    border-radius: 6px;
    box-sizing: border-box;
    color: #fff !important;
    display: flex;
    font-size: 17px;
    font-weight: bold;
    justify-content: center;
    line-height: 1.2;
    min-height: 43px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.header-top-menu-link:hover,
.header-top-menu-link:focus,
.header-top-menu-link.is-current {
    background: #c8102e;
    color: #fff !important;
}

.usrr-backup-site-notice {
    width: min(100% - 24px, 1100px);
    margin: 10px auto 8px;
    padding: 12px 14px;
    background: #fff7ed;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    box-sizing: border-box;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
}

.usrr-backup-site-notice strong {
    color: #003a70;
    display: inline-block;
    margin-right: 6px;
}

.usrr-brand-strip {
    width: min(100% - 24px, 1100px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 10px;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.usrr-brand-logo {
    width: 120px;
}

.usrr-brand-logo img {
    height: 60px;
    max-width: 100%;
    width: auto;
}

.usrr-brand-logo-right {
    text-align: right;
}

.usrr-brand-message {
    flex: 1;
    text-align: center;
}

.usrr-brand-message-inner {
    display: inline-block;
    background: #f2f2f2;
    padding: 8px 15px;
    border-radius: 6px;
    color: #000000;
}

.usrr-brand-title {
    font-size: 30px;
    font-weight: bold;
}

.usrr-brand-subtitle {
    font-size: 25px;
    margin-top: 3px;
}

.security-control-header-note {
    width: min(100% - 24px, 1100px);
    margin: 10px auto;
    padding: 12px;
    background: #e9f7ef;
    border: 1px solid #2e7d32;
    color: #1b5e20;
    border-radius: 12px;
    box-sizing: border-box;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.usrr-active-user-strip {
    width: min(100% - 24px, 1100px);
    margin: 8px auto 10px;
    padding: 9px 14px;
    background: #ffffff;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    box-sizing: border-box;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

[class$="-hero"],
[class*="-hero "] {
    background: #003a70 !important;
    border-left: 0 !important;
    border-bottom: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .14);
    box-sizing: border-box;
    color: #ffffff !important;
}

[class$="-hero"] p,
[class*="-hero "] p {
    color: #edf5ff !important;
}

.security-control-header-note span {
    display: block;
    margin-top: 3px;
    color: #2e5f34;
    font-size: 14px;
    font-weight: normal;
}

.security-control-secure-title {
    font-size: 18px;
    font-weight: 800;
}

.security-control-header-note.security-control-header-note-compact {
    align-items: center;
    background: #e9f7ef;
    border: 0;
    border-bottom: 1px solid #a8d5b0;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: #1b5e20;
    display: grid;
    font-size: 12px;
    font-weight: 400;
    gap: 6px 14px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-content: stretch;
    margin: 0;
    min-height: 40px;
    padding: 5px clamp(10px, 3vw, 48px);
    text-align: center;
    width: 100%;
}

.security-control-header-note-compact .security-control-note-copy {
    align-items: center;
    display: flex;
    gap: 8px;
    grid-column: 2;
    justify-content: center;
    min-width: 0;
}

.security-control-header-note-compact .security-control-note-icon {
    color: #1b5e20;
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

.security-control-header-note-compact .security-control-note-text {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 9px;
    min-width: 0;
}

.security-control-header-note-compact .security-control-secure-title {
    color: #174d22;
    font-family: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
}

.security-control-header-note-compact .security-control-note-text > span {
    color: #2e5f34;
    display: inline;
    font-size: 11px;
    line-height: 1.2;
    margin: 0;
}

.security-control-header-note-compact .security-control-action-row-primary {
    align-self: center;
    flex-wrap: nowrap;
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-content: flex-end;
    margin: 0;
}

.security-control-header-note-compact .security-control-avatar-strip {
    grid-column: 2;
    justify-content: center;
    margin-top: 0;
}

.security-control-header-note-compact .security-control-manage-link,
.security-control-header-note-compact .security-control-suggestion-link {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-family: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0.03em;
    line-height: 1.1;
    min-height: 30px;
    padding: 5px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.security-control-header-note-compact .security-control-suggestion-alert {
    grid-column: 1 / -1;
    margin: 0;
}

@media (max-width: 760px) {
    .security-control-header-note.security-control-header-note-compact {
        align-items: stretch;
        gap: 5px;
        grid-template-columns: 1fr;
        padding: 6px 10px;
        width: 100%;
    }

    .security-control-header-note-compact .security-control-action-row-primary {
        grid-column: 1;
        grid-row: auto;
        justify-content: flex-start;
    }

    .security-control-header-note-compact .security-control-note-copy {
        grid-column: 1;
    }

    .security-control-header-note-compact .security-control-avatar-strip {
        grid-column: 1;
    }
}

@media (max-width: 420px) {
    .security-control-header-note-compact .security-control-action-row-primary {
        align-items: stretch;
        display: grid;
        gap: 5px;
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    }

    .security-control-header-note-compact .security-control-manage-link,
    .security-control-header-note-compact .security-control-suggestion-link {
        white-space: normal;
        width: 100%;
    }
}

@media (max-width: 340px) {
    .security-control-header-note-compact .security-control-action-row-primary {
        grid-template-columns: 1fr;
    }
}

.security-control-approved-menu {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    padding: 4px 6px 6px;
    width: min(100% - 24px, 1100px);
    margin: 0 auto 8px;
    text-align: center;
}

.security-control-approved-menu[hidden] {
    display: none;
}

.security-control-approved-menu-panel {
    background: #ffffff;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    box-sizing: border-box;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 10px;
    text-align: left;
}

.security-control-approved-section h2 {
    color: #003a70;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px;
    text-align: center;
}

.security-control-approved-links {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-control-approved-link {
    background: #c8102e;
    border-radius: 6px;
    box-sizing: border-box;
    color: #fff !important;
    display: flex;
    font-size: 17px;
    font-weight: bold;
    justify-content: center;
    line-height: 1.2;
    min-height: 43px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.security-control-approved-link:hover,
.security-control-approved-link:focus,
.security-control-approved-link.is-current {
    background: #003a70;
    color: #fff !important;
}

.security-control-manage-link {
    background: #003a70;
    border: 0;
    border-radius: 6px;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-family: inherit;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 7px;
    padding: 6px 9px;
    text-decoration: none;
}

.security-control-manage-link:hover,
.security-control-manage-link:focus {
    background: #c8102e;
    color: #fff !important;
}

.security-control-admin-modal[hidden] {
    display: none;
}

.security-control-admin-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 100001;
}

.security-control-admin-modal-backdrop {
    background: rgba(9, 24, 42, 0.72);
    border: 0;
    cursor: pointer;
    inset: 0;
    padding: 0;
    position: absolute;
    width: 100%;
}

.security-control-admin-modal-panel {
    background: #fff;
    border: 3px solid #003a70;
    border-radius: 12px;
    box-shadow: 0 22px 65px rgba(9, 24, 42, 0.35);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 36px);
    max-width: 920px;
    overflow: hidden;
    padding: 18px;
    position: relative;
    text-align: left;
    width: 100%;
    z-index: 1;
}

.security-control-admin-modal-title {
    color: #003a70;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 42px 4px 0;
}

.security-control-admin-modal-copy {
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 42px 12px 0;
}

.security-control-admin-modal-close {
    align-items: center;
    background: #eef3f8;
    border: 0;
    border-radius: 50%;
    color: #003a70;
    cursor: pointer;
    display: inline-flex;
    font-size: 26px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 36px;
}

.security-control-admin-modal-close:hover,
.security-control-admin-modal-close:focus {
    background: #c8102e;
    color: #fff;
}

.security-control-admin-frame {
    background: #f4f7fb;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    height: 72vh;
    max-height: 760px;
    min-height: 500px;
    width: 100%;
}

body.security-control-admin-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .security-control-admin-modal {
        align-items: flex-start;
        padding: 8px;
    }

    .security-control-admin-modal-panel {
        max-height: calc(100vh - 16px);
        padding: 14px 10px 10px;
    }

    .security-control-admin-modal-title {
        font-size: 21px;
    }

    .security-control-admin-frame {
        height: calc(100vh - 145px);
        min-height: 420px;
    }
}

.security-control-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-top: 7px;
}

.security-control-action-row-primary {
    margin: 0 0 8px;
}

.security-control-action-row .security-control-manage-link,
.security-control-action-row .security-control-suggestion {
    margin-top: 0;
}

.security-control-suggestion-link {
    background: #003a70;
    border: 0;
    border-radius: 6px;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-family: inherit;
    font-weight: 800;
    line-height: 1.1;
    padding: 6px 9px;
    text-decoration: none;
}

.security-control-suggestion-link:hover,
.security-control-suggestion-link:focus {
    background: #c8102e;
    color: #fff !important;
}

.security-control-suggestion-modal[hidden] {
    display: none;
}

.security-control-suggestion-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 100000;
}

.security-control-suggestion-modal-backdrop {
    background: rgba(9, 24, 42, 0.72);
    border: 0;
    cursor: pointer;
    inset: 0;
    padding: 0;
    position: absolute;
    width: 100%;
}

.security-control-suggestion-modal-panel {
    background: #fff;
    border: 3px solid #003a70;
    border-radius: 12px;
    box-shadow: 0 22px 65px rgba(9, 24, 42, 0.35);
    box-sizing: border-box;
    max-height: calc(100vh - 36px);
    max-width: 640px;
    overflow-y: auto;
    padding: 22px;
    position: relative;
    text-align: left;
    width: 100%;
    z-index: 1;
}

.security-control-suggestion-modal-title {
    color: #003a70;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 42px 8px 0;
}

.security-control-suggestion-modal-copy {
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
}

.security-control-suggestion-modal-close {
    align-items: center;
    background: #eef3f8;
    border: 0;
    border-radius: 50%;
    color: #003a70;
    cursor: pointer;
    display: inline-flex;
    font-size: 26px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 36px;
}

.security-control-suggestion-modal-close:hover,
.security-control-suggestion-modal-close:focus {
    background: #c8102e;
    color: #fff;
}

.security-control-suggestion-modal .security-control-suggestion-form {
    border-color: #cbd5e1;
    margin: 0;
    max-width: none;
    padding: 14px;
}

.security-control-suggestion-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.security-control-suggestion-cancel {
    background: #e8edf3;
    border: 0;
    border-radius: 6px;
    color: #243b53;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 11px;
}

body.security-control-suggestion-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .security-control-suggestion-modal {
        align-items: flex-start;
        padding: 10px;
    }

    .security-control-suggestion-modal-panel {
        max-height: calc(100vh - 20px);
        padding: 18px 14px;
    }

    .security-control-suggestion-modal-title {
        font-size: 21px;
    }
}

a.usrr-action-secure,
.security-control-manage-link {
    background: #c8102e !important;
    border-color: #c8102e !important;
    color: #fff !important;
}

a.usrr-action-secure:hover,
a.usrr-action-secure:focus,
a.usrr-action-secure.usrr-action-current,
.security-control-manage-link:hover,
.security-control-manage-link:focus {
    background: #003a70 !important;
    border-color: #003a70 !important;
    color: #fff !important;
}

a.usrr-action-public {
    background: #003a70 !important;
    border-color: #003a70 !important;
    color: #fff !important;
}

a.usrr-action-public:hover,
a.usrr-action-public:focus {
    background: #c8102e !important;
    border-color: #c8102e !important;
    color: #fff !important;
}

.security-control-suggestion {
    margin-top: 8px;
}

.security-control-suggestion summary {
    display: inline-flex;
    list-style: none;
}

.security-control-suggestion summary::-webkit-details-marker {
    display: none;
}

.security-control-suggestion-form {
    background: #ffffff;
    border: 1px solid #9bc7a2;
    border-radius: 8px;
    box-sizing: border-box;
    color: #1f2937;
    display: grid;
    gap: 8px;
    margin: 8px auto 0;
    max-width: 640px;
    padding: 10px;
    text-align: left;
}

.security-control-suggestion-form label {
    color: #183b22;
    font-size: 13px;
    font-weight: 800;
}

.security-control-suggestion-form textarea {
    border: 1px solid #b7c2d0;
    border-radius: 7px;
    box-sizing: border-box;
    font: inherit;
    min-height: 86px;
    padding: 9px;
    resize: vertical;
    width: 100%;
}

.security-control-suggestion-submit {
    background: #c8102e;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    justify-self: start;
    padding: 7px 11px;
}

.security-control-suggestion-alert {
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    margin: 8px auto 0;
    max-width: 640px;
    padding: 8px 10px;
    text-align: left;
}

.security-control-suggestion-alert-ok {
    background: #ffffff;
    border: 1px solid #8fc49b;
    color: #1b5e20;
}

.security-control-suggestion-alert-error {
    background: #fff6f6;
    border: 1px solid #e3a4a4;
    color: #8a1c1c;
}

.security-control-avatar-strip {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.security-control-avatar {
    align-items: center;
    color: #222;
    display: inline-flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 700;
    gap: 3px;
    line-height: 1.1;
    max-width: 58px;
}

.security-control-avatar img {
    border: 2px solid #1f6f43;
    border-radius: 5px;
    background: #fff;
    height: 30px;
    object-fit: contain;
    width: 30px;
}

.security-control-avatar.is-muted {
    color: #777;
    filter: grayscale(1);
    opacity: .55;
}

.security-control-avatar.is-muted img {
    border-color: #aaa;
}

.usrr-chat-popups {
    bottom: 16px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    align-items: flex-end;
    font-family: Arial, Helvetica, sans-serif;
    position: fixed;
    right: 16px;
    text-align: left;
    z-index: 9998;
}

.usrr-chat-popups,
.usrr-chat-popups * {
    box-sizing: border-box;
}

.usrr-chat-popup {
    position: relative;
}

.usrr-chat-popup-bar {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    max-width: calc(100vw - 32px);
}

.usrr-chat-popup-toggle {
    align-items: center;
    background: #c8102e;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .24);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 900;
    gap: 8px;
    max-width: min(340px, calc(100vw - 74px));
    min-height: 44px;
    overflow: hidden;
    padding: 0 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.usrr-chat-popup-toggle:hover,
.usrr-chat-popup-toggle:focus,
.usrr-chat-popup-toggle[aria-expanded="true"] {
    background: #003a70;
}

.usrr-chat-popup-dismiss {
    align-items: center;
    background: #003a70;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.usrr-chat-popup-dismiss:hover,
.usrr-chat-popup-dismiss:focus {
    background: #c8102e;
}

.usrr-chat-popup-badge {
    background: #fff;
    border-radius: 999px;
    color: #003a70;
    display: none;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    min-width: 20px;
    padding: 4px 6px;
    text-align: center;
}

.usrr-chat-popup-badge.has-count {
    display: inline-block;
}

.usrr-chat-popup-panel {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    bottom: 54px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .26);
    box-sizing: border-box;
    color: #111827;
    display: grid;
    grid-template-rows: auto minmax(180px, 320px) auto;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    position: absolute;
    right: 0;
    width: 360px;
}

.usrr-chat-popup-panel[hidden] {
    display: none;
}

.usrr-chat-popup-head {
    align-items: center;
    background: #003a70;
    color: #fff;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 10px 11px;
}

.usrr-chat-popup-title {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: anywhere;
}

.usrr-chat-popup-tools {
    align-items: center;
    display: flex;
    gap: 7px;
}

.usrr-chat-popup-link,
.usrr-chat-popup-close {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    color: #fff !important;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    min-height: 30px;
    padding: 8px 9px;
    text-decoration: none;
}

.usrr-chat-popup-close {
    width: 32px;
}

.usrr-chat-popup-messages {
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    overflow-y: auto;
    padding: 10px;
}

.usrr-chat-popup-empty,
.usrr-chat-popup-status {
    color: #53606c;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.usrr-chat-popup-head .usrr-chat-popup-status {
    color: #e6f1ff;
    font-size: 12px;
    text-align: left;
}

.usrr-chat-popup-message {
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .06);
    padding: 8px;
}

.usrr-chat-popup-message.is-mine {
    background: #eef6ff;
    border-color: #bcd4ef;
}

.usrr-chat-popup-meta {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    line-height: 1.2;
}

.usrr-chat-popup-meta strong {
    color: #003a70;
    font-size: 13px;
}

.usrr-chat-popup-meta span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.usrr-chat-popup-meta .usrr-chat-popup-edited {
    color: #53606c;
}

.usrr-chat-popup-text {
    color: #111827;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 5px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.usrr-chat-popup-text:empty {
    display: none;
}

.usrr-chat-popup-attachment {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #003a70 !important;
    display: flex;
    gap: 8px;
    margin-top: 7px;
    padding: 7px;
    text-decoration: none;
}

.usrr-chat-popup-attachment:hover,
.usrr-chat-popup-attachment:focus {
    border-color: #003a70;
    box-shadow: 0 0 0 2px rgba(0, 58, 112, .12);
}

.usrr-chat-popup-attachment-thumb {
    align-items: center;
    background: #003a70;
    border-radius: 6px;
    color: #fff;
    display: inline-grid;
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 900;
    height: 52px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    place-items: center;
    text-transform: uppercase;
    width: 52px;
}

.usrr-chat-popup-attachment-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.usrr-chat-popup-attachment-thumb span {
    max-width: 44px;
    overflow: hidden;
    padding: 0 3px;
    text-align: center;
    text-overflow: ellipsis;
}

.usrr-chat-popup-attachment-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.usrr-chat-popup-attachment-name {
    color: #003a70;
    font-size: 12px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.usrr-chat-popup-attachment-size {
    color: #53606c;
    font-size: 11px;
    font-weight: 800;
}

.usrr-chat-popup-message-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 6px;
}

.usrr-chat-popup-edit,
.usrr-chat-popup-delete,
.usrr-chat-popup-edit-save,
.usrr-chat-popup-edit-cancel {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    padding: 0;
}

.usrr-chat-popup-edit {
    color: #003a70;
}

.usrr-chat-popup-delete {
    color: #b00020;
}

.usrr-chat-popup-edit-panel {
    display: grid;
    gap: 7px;
    margin-top: 6px;
}

.usrr-chat-popup-edit-textarea {
    border: 1px solid #aeb8c8;
    border-radius: 7px;
    box-sizing: border-box;
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    min-height: 58px;
    padding: 7px;
    resize: vertical;
    width: 100%;
}

.usrr-chat-popup-edit-actions {
    align-items: center;
    display: flex;
    gap: 9px;
}

.usrr-chat-popup-edit-save {
    color: #2e7d32;
}

.usrr-chat-popup-edit-cancel {
    color: #53606c;
}

.usrr-chat-popup-form {
    border-top: 1px solid #d8dee8;
    display: grid;
    gap: 7px;
    padding: 10px;
}

.usrr-chat-popup-form textarea {
    border: 1px solid #aeb8c8;
    border-radius: 7px;
    box-sizing: border-box;
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    min-height: 66px;
    padding: 8px;
    resize: vertical;
    width: 100%;
}

.usrr-chat-popup-attachment-field {
    display: grid;
    gap: 5px;
}

.usrr-chat-popup-attachment-field label {
    color: #003a70;
    font-size: 12px;
    font-weight: 900;
}

.usrr-chat-popup-attachment-field input[type="file"] {
    border: 1px solid #aeb8c8;
    border-radius: 7px;
    box-sizing: border-box;
    color: #111827;
    font: inherit;
    font-size: 12px;
    min-height: 36px;
    padding: 7px;
    width: 100%;
}

.usrr-chat-popup-attachment-help {
    color: #53606c;
    font-size: 11px;
    font-weight: 800;
}

.usrr-chat-popup-form textarea:disabled {
    background: #eef2f7;
    color: #53606c;
    cursor: not-allowed;
}

.usrr-chat-popup-note {
    background: #fff5f5;
    border: 1px solid #f3c3c9;
    border-radius: 7px;
    color: #8a1d1d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    padding: 8px;
}

.usrr-chat-popup-actions {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.usrr-chat-popup-actions [data-chat-form-status] {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
}

.usrr-chat-popup-send {
    background: #c8102e;
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    min-height: 36px;
    padding: 0 14px;
}

.usrr-chat-popup-send:hover,
.usrr-chat-popup-send:focus {
    background: #003a70;
}

.usrr-chat-popup-send:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.usrr-chat-confirm-overlay {
    align-items: center;
    background: rgba(15, 23, 42, .48);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 18px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}

.usrr-chat-confirm-dialog {
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .28);
    color: #1f2933;
    max-width: 420px;
    padding: 18px;
    width: min(100%, 420px);
}

.usrr-chat-confirm-message {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 16px;
}

.usrr-chat-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.usrr-chat-confirm-button {
    background: #003a70;
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    min-height: 40px;
    min-width: 84px;
    padding: 0 16px;
}

.usrr-chat-confirm-button-no {
    background: #52616f;
}

.usrr-chat-confirm-button:hover,
.usrr-chat-confirm-button:focus {
    background: #c8102e;
}

/* ===== CARDS / IMAGES ===== */
.image-round {
    border-radius: 20px;
    border: 2px solid var(--black);
    background: var(--white);
}

/* ===== SLIDER ===== */
.slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
}

.slider img {
    width: 230px;
    height: 230px;
    border-radius: 10px;
}

/* ===== CONTAINERS ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
}

.center {
    text-align: center;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .nav-button {
        text-align: center;
        font-size: 14px !important;
        line-height: 1.15 !important;
        min-height: 38px !important;
        padding: 9px 6px !important;
        border-radius: 6px !important;
        white-space: nowrap;
    }

    .nav-container {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
        padding: 6px;
        background: #ffffff;
        width: min(100% - 12px, 1100px);
        border-radius: 8px;
    }

    .nav-container-menu-open {
        border-radius: 8px 8px 0 0;
        padding-bottom: 0;
    }

    .nav-container-has-admin-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav-container .nav-button {
        width: 100%;
    }

    .nav-secondary {
        display: none;
    }

    .nav-label-full {
        display: none;
    }

    .nav-label-short {
        display: inline;
    }

    .nav-admin {
        font-size: 14px !important;
    }

    .header-top-menu-panel {
        width: min(100% - 12px, 1100px);
    }

    .header-top-menu-grid,
    .security-control-approved-menu-panel {
        grid-template-columns: 1fr;
    }

    .header-top-menu-links,
    .security-control-approved-links {
        grid-template-columns: 1fr;
    }

    .security-control-approved-menu {
        width: min(100% - 12px, 1100px);
    }

    .header-top-menu-link,
    .security-control-approved-link {
        font-size: 15px !important;
        line-height: 1.2 !important;
        min-height: 40px !important;
        padding: 11px 9px !important;
    }

    .header-top-menu-section h2,
    .security-control-approved-section h2 {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    .usrr-brand-strip {
        width: min(100% - 18px, 1100px);
        padding: 6px 8px;
        gap: 8px;
    }

    .security-control-header-note,
    .usrr-active-user-strip {
        width: min(100% - 18px, 1100px);
    }

    .usrr-brand-logo {
        width: 50px;
        flex: 0 0 50px;
    }

    .usrr-brand-logo img {
        height: auto;
        max-width: 100%;
        width: 50px;
    }

    .usrr-brand-logo-right {
        display: none;
    }

    .usrr-chat-popups {
        align-items: stretch;
        bottom: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 9px;
        left: max(9px, env(safe-area-inset-left));
        max-width: none;
        right: 9px;
        right: max(9px, env(safe-area-inset-right));
    }

    .usrr-chat-popup {
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
    }

    .usrr-chat-popup-bar {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .usrr-chat-popup-toggle {
        flex: 1 1 auto;
        justify-content: center;
        max-width: 100%;
        min-width: 0;
    }

    .usrr-chat-popup-panel {
        bottom: 62px;
        bottom: max(62px, calc(52px + env(safe-area-inset-bottom)));
        grid-template-rows: auto minmax(96px, 1fr) auto;
        left: 9px;
        left: max(9px, env(safe-area-inset-left));
        max-height: 520px;
        max-height: calc(78vh - 16px);
        max-height: min(520px, calc(78vh - env(safe-area-inset-bottom)));
        max-height: min(520px, calc(78dvh - env(safe-area-inset-bottom)));
        max-width: none;
        min-width: 0;
        position: fixed;
        right: 9px;
        right: max(9px, env(safe-area-inset-right));
        transform: none;
        width: auto;
    }

    .usrr-chat-popup-head {
        align-items: flex-start;
        min-width: 0;
    }

    .usrr-chat-popup-title {
        font-size: 14px;
    }

    .usrr-chat-popup-tools {
        flex: 0 0 auto;
    }

    .usrr-chat-popup-link,
    .usrr-chat-popup-close {
        flex: 0 0 auto;
    }

    .usrr-chat-popup-actions,
    .usrr-chat-popup-attachment {
        min-width: 0;
    }

    .usrr-chat-popup-messages,
    .usrr-chat-popup-form {
        min-width: 0;
    }

    .usrr-chat-popup-form textarea,
    .usrr-chat-popup-edit-textarea,
    .usrr-chat-popup-attachment-field input[type="file"] {
        font-size: 16px !important;
    }

    .usrr-chat-popup-form textarea {
        min-height: 58px;
        resize: none;
    }

    .usrr-chat-popup-form {
        padding-bottom: max(12px, calc(10px + env(safe-area-inset-bottom)));
    }

    .usrr-chat-popup-actions {
        grid-template-columns: 1fr;
    }

    .usrr-chat-popup-actions [data-chat-form-status] {
        min-height: 0;
        order: 2;
    }

    .usrr-chat-popup-send {
        justify-self: stretch;
        min-height: 44px;
        order: 1;
        position: relative;
        z-index: 1;
    }

    .usrr-brand-message-inner {
        display: block;
        padding: 6px 8px;
    }

    .usrr-brand-title {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    .usrr-brand-subtitle {
        font-size: 13px !important;
        line-height: 1.25 !important;
        margin-top: 2px;
    }
}

/* ===== OPTION A: RACE-DAY COMMAND BAR ===== */
.usrr-site-shell {
    background: #f5f7fa;
    min-height: 100vh;
}

.usrr-brand-strip-legacy {
    display: none !important;
}

.usrr-option-a-brand {
    align-items: center;
    background: linear-gradient(118deg, #061b30 0%, #082744 62%, #0d3559 100%);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    color: #ffffff;
    display: grid;
    gap: clamp(18px, 3vw, 48px);
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0;
    max-width: none;
    min-height: 118px;
    padding: 12px clamp(24px, 5vw, 78px);
    text-align: left;
    width: 100%;
}

.usrr-option-a-brand .usrr-brand-logo {
    display: block;
    flex: none;
    width: clamp(116px, 12vw, 168px);
}

.usrr-option-a-brand .usrr-brand-logo img {
    display: block;
    height: auto;
    max-height: 92px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.usrr-option-a-brand .usrr-brand-message,
.usrr-option-a-brand .usrr-brand-message-inner {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    padding: 0;
    text-align: left;
}

.usrr-option-a-brand .usrr-brand-title {
    color: #ffffff;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: clamp(27px, 3vw, 42px) !important;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05 !important;
    margin: 0;
}

.usrr-option-a-brand .usrr-brand-subtitle {
    color: #d8e3ef;
    font-size: clamp(13px, 1.4vw, 18px) !important;
    line-height: 1.35 !important;
    margin-top: 7px;
}

.nav-container {
    align-items: stretch;
    background: #071a2d;
    border: 0;
    border-bottom: 1px solid #29445e;
    border-radius: 0;
    box-shadow: 0 8px 22px rgba(4, 21, 37, .18);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    margin: 0;
    max-width: none;
    overflow-x: auto;
    padding: 0 clamp(12px, 3vw, 48px);
    scrollbar-width: thin;
    width: 100%;
}

.nav-container .nav-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .10);
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    color: #ffffff !important;
    display: inline-flex;
    flex: 0 1 auto;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    letter-spacing: .035em;
    margin: 0;
    min-height: 52px;
    padding: 0 clamp(13px, 1.7vw, 25px);
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-container .nav-button:last-child {
    border-right: 1px solid rgba(255, 255, 255, .10);
}

.nav-container .nav-button:hover,
.nav-container .nav-button:focus {
    background: #123754;
    color: #ffffff !important;
}

.nav-container .nav-button-current,
.nav-container .nav-button-current:hover,
.nav-container .nav-button-current:focus {
    background: #ed1c2e !important;
    color: #ffffff !important;
}

.nav-container .usrr-nav-icon {
    color: currentColor;
    display: block;
    flex: 0 0 18px;
    height: 18px;
    overflow: visible;
    width: 18px;
}

.header-top-menu-panel,
.security-control-approved-menu {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 38px rgba(4, 21, 37, .20);
    margin-top: 0;
}

@media (max-width: 760px) {
    .usrr-option-a-brand {
        gap: 16px;
        grid-template-columns: 92px minmax(0, 1fr);
        min-height: 94px;
        padding: 9px 16px;
    }

    .usrr-option-a-brand .usrr-brand-logo {
        width: 92px;
    }

    .usrr-option-a-brand .usrr-brand-logo img {
        max-height: 72px;
    }

    .usrr-option-a-brand .usrr-brand-title {
        font-size: 23px !important;
    }

    .usrr-option-a-brand .usrr-brand-subtitle {
        font-size: 12px !important;
        margin-top: 4px;
    }

    .nav-container {
        display: grid;
        gap: 1px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
        overflow: visible;
        padding: 1px;
    }

    .nav-container .nav-button {
        border: 0;
        border-radius: 0 !important;
        flex: none;
        font-size: 11px !important;
        min-height: 44px !important;
        padding: 0 6px !important;
        width: 100%;
    }

    .nav-container .nav-button:last-child {
        border-right: 0;
    }

    .nav-container .usrr-nav-icon {
        flex-basis: 15px;
        height: 15px;
        width: 15px;
    }
}

@media (max-width: 480px) {
    .usrr-option-a-brand {
        gap: 10px;
        grid-template-columns: 72px minmax(0, 1fr);
        min-height: 82px;
        padding: 8px 12px;
    }

    .usrr-option-a-brand .usrr-brand-logo {
        width: 72px;
    }

    .usrr-option-a-brand .usrr-brand-logo img {
        max-height: 60px;
    }

    .usrr-option-a-brand .usrr-brand-title {
        font-size: 19px !important;
    }

    .usrr-option-a-brand .usrr-brand-subtitle {
        font-size: 10px !important;
    }
}

/* ===== HEADER COMMAND BAR ===== */
.header-command-shell {
    position: relative;
    z-index: 10020;
}

.header-command-shell .nav-container {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: visible;
    padding-left: clamp(10px, 3vw, 48px);
    padding-right: clamp(10px, 3vw, 48px);
}

.header-command-shell .nav-button {
    flex: 0 0 auto;
}

.header-nav-spacer {
    flex: 1 1 auto;
    min-width: 12px;
}

.nav-container .header-browse-toggle {
    border-left-color: rgba(255, 255, 255, .22);
}

.header-utility {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    margin: 7px 0 7px 7px;
}

.nav-container .header-icon-button,
.nav-container .header-profile-toggle {
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 8px;
    min-height: 40px;
    padding: 0;
}

.nav-container .header-icon-button {
    min-width: 42px;
    position: relative;
    width: 42px;
}

.nav-container .header-profile-toggle {
    gap: 8px;
    margin-left: 4px;
    padding: 0 10px 0 5px;
}

.header-profile-avatar {
    align-items: center;
    background: #ffffff;
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    letter-spacing: .03em;
    overflow: hidden;
    width: 30px;
}

.header-profile-avatar img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.header-profile-name {
    color: #ffffff;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.header-profile-toggle .sr-only,
.header-profile-panel .sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.header-profile-chevron {
    color: #9fb4c8;
    font-size: 10px;
}

.header-icon-button:hover::after,
.header-icon-button:focus::after {
    background: #ffffff;
    border: 1px solid #d9e2eb;
    border-radius: 5px;
    box-shadow: 0 6px 18px rgba(4, 21, 37, .20);
    color: #10243a;
    content: attr(data-label);
    font: 700 11px/1 Arial, Helvetica, sans-serif;
    left: 50%;
    padding: 7px 9px;
    position: absolute;
    text-transform: none;
    top: calc(100% + 9px);
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
}

.nav-chat-count,
.nav-task-count,
.nav-email-count {
    align-items: center;
    background: #ed1c2e;
    border: 2px solid #071a2d;
    border-radius: 999px;
    box-sizing: border-box;
    color: #ffffff;
    display: none;
    font: 900 10px/1 Arial, Helvetica, sans-serif;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 4px;
    position: absolute;
    right: -6px;
    top: -6px;
    z-index: 2;
}

.nav-chat-count.has-count,
.nav-task-count.has-count,
.nav-email-count.has-count {
    display: inline-flex;
}

.header-command-panel {
    background: #ffffff;
    border: 1px solid rgba(9, 42, 70, .14);
    border-radius: 13px;
    box-shadow: 0 22px 60px rgba(4, 21, 37, .28);
    box-sizing: border-box;
    color: #10243a;
    max-height: min(620px, calc(100vh - 178px));
    overflow: auto;
    padding: 0;
    position: absolute;
    top: calc(100% + 10px);
    z-index: 4;
}

.header-command-panel[hidden] {
    display: none !important;
}

.header-command-shell .nav-container-menu-open {
    border-radius: 0;
    box-shadow: 0 8px 22px rgba(4, 21, 37, .18);
}

.header-command-panel-head {
    align-items: flex-start;
    background: linear-gradient(120deg, #071a2d, #0b2b47);
    color: #ffffff;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 17px 18px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.header-command-panel-head strong {
    display: block;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 21px;
    line-height: 1.05;
}

.header-command-panel-head small {
    color: #bfd0df;
    display: block;
    font-size: 11px;
    margin-top: 5px;
}

.header-command-close {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 18px;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.header-browse-panel {
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    width: min(820px, calc(100vw - 30px));
}

.header-browse-panel .header-top-menu-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 17px;
}

.header-browse-panel .header-top-menu-section,
.header-profile-panel .security-control-approved-section {
    border: 1px solid #d9e2eb;
    border-radius: 9px;
    padding: 13px;
}

.header-browse-panel .header-top-menu-section h2,
.header-profile-panel .security-control-approved-section h2 {
    color: #0d4978;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 15px;
    margin: 0 0 8px;
    text-align: left;
}

.header-browse-panel .header-top-menu-links,
.header-profile-panel .security-control-approved-links {
    display: block;
}

.header-browse-panel .header-top-menu-link,
.header-profile-panel .security-control-approved-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-top: 1px solid #edf1f5;
    color: #26394d !important;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: space-between;
    min-height: 33px;
    padding: 5px 2px;
    text-align: left;
    text-decoration: none !important;
}

.header-browse-panel .header-top-menu-link:first-child,
.header-profile-panel .security-control-approved-link:first-child {
    border-top: 0;
}

.header-browse-panel .header-top-menu-link::after,
.header-profile-panel .security-control-approved-link::after {
    color: #9aa8b6;
    content: "\2192";
}

.header-profile-panel {
    margin: 0;
    right: clamp(10px, 3vw, 48px);
    width: min(430px, calc(100vw - 20px));
}

.header-profile-summary {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 48px minmax(0, 1fr);
}

.header-profile-summary .header-profile-avatar {
    border-radius: 10px;
    font-size: 15px;
    height: 48px;
    width: 48px;
}

.header-profile-summary strong {
    font-size: 17px;
}

.header-profile-summary small {
    margin-top: 3px;
}

.header-profile-body {
    padding: 14px;
}

.header-account-grid {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.header-account-link {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #d9e2eb;
    border-radius: 8px;
    color: #163650 !important;
    display: flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    min-height: 43px;
    padding: 7px;
    text-align: center;
    text-decoration: none !important;
}

.header-staff-label {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 4px 0 8px;
}

.header-staff-label strong {
    color: #c8102e;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.header-staff-label span {
    color: #637286;
    font-size: 11px;
}

.header-staff-search {
    border: 1px solid #cbd7e3;
    border-radius: 7px;
    box-sizing: border-box;
    min-height: 38px;
    padding: 0 11px;
    width: 100%;
}

.header-staff-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.header-profile-panel .security-control-approved-section {
    padding: 10px;
}

.header-profile-panel .security-control-approved-section[hidden],
.header-profile-panel .security-control-approved-link[hidden] {
    display: none !important;
}

.header-no-staff-tools {
    color: #637286;
    font-size: 12px;
    margin: 10px 0 0;
}

.header-profile-footer {
    align-items: center;
    border-top: 1px solid #d9e2eb;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 13px;
    padding-top: 12px;
}

.header-profile-footer a {
    color: #0d4978 !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.header-profile-footer .header-profile-logout {
    color: #c8102e !important;
    margin-left: auto;
}

@media (max-width: 1050px) {
    .header-command-shell .nav-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .header-command-shell .nav-button {
        font-size: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-command-shell .nav-secondary {
        display: none;
    }

    .header-command-shell .nav-primary .nav-label-full {
        display: none;
    }

    .header-command-shell .nav-primary .nav-label-short {
        display: inline;
    }

    .header-profile-name {
        display: none;
    }
}

@media (max-width: 760px) {
    .header-command-shell .nav-container {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
        padding: 1px;
    }

    .header-nav-spacer {
        display: none;
    }

    .header-utility {
        display: contents;
    }

    .nav-container .header-icon-button,
    .nav-container .header-profile-toggle {
        border: 0;
        border-radius: 0;
        margin: 0;
        min-height: 44px;
        width: 100%;
    }

    .header-profile-toggle {
        justify-content: center;
    }

    .nav-container-is-logged-out .header-browse-toggle,
    .nav-container-is-logged-out .nav-auth {
        grid-column: span 2;
    }

    .header-browse-panel,
    .header-profile-panel {
        left: 0;
        right: auto;
        top: 100%;
        transform: none;
        width: 100%;
    }

    .header-browse-panel .header-top-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .header-account-grid,
    .header-staff-grid {
        grid-template-columns: 1fr;
    }
}
