body.drawer-open,
body.modal-open {
    overflow: hidden;
}
.auth-hero {
    background: #0c2048;
}
.auth-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.auth-hero::before {
    background: linear-gradient(180deg, #0c2048e6 0%, #0c2048b3 34%, #0c204833 68%, #0c204800 100%);
}
.auth-hero .brand-lockup,
.auth-hero-copy h1 {
    color: #fff;
}
.auth-hero-copy h1 {
    overflow-wrap: anywhere;
}
.auth-hero-copy .auth-eyebrow,
.auth-hero-copy p {
    color: #dce6f7;
}
.auth-hero-content {
    padding: 29px;
}
.auth-hero-copy {
    margin-top: 29px;
}
.auth-mobile-title {
    display: none;
}
.auth-form-center {
    padding-block: 29px;
}
.auth-form-content .auth-links {
    margin-top: 18px;
    gap: 11px;
}
.auth-form-content form + p {
    margin-top: 18px;
}
.error-page {
    max-width: 680px;
    margin: 29px auto;
    text-align: center;
}
.error-page img {
    max-width: 520px;
    width: 100%;
    border-radius: 13px;
    margin: 0 auto 22px;
}
.page-content {
    padding: 29px;
}
.page-heading {
    margin-bottom: 22px;
}
.panel,
.dash-grid {
    margin-bottom: 22px;
}
.panel-header,
.panel-body,
.sx-page .panel-body {
    padding: 22px;
}
.panel-header {
    padding-bottom: 16px;
}
.panel-header + .panel-body {
    padding-top: 0;
}
.panel-body > form {
    padding: 0;
}
.panel-body > :last-child {
    margin-bottom: 0;
}
.field {
    margin-bottom: 18px;
}
.field > span {
    margin-bottom: 7px;
}
.form-grid {
    margin-bottom: 18px;
}
.form-actions {
    margin-top: 22px;
    gap: 9px;
}
.filters {
    padding: 14px 22px;
    gap: 11px;
}
.panel-body .filters {
    padding-inline: 0;
}
.data-table th,
.data-table td {
    padding: 16px 18px;
}
.dash-grid-main {
    align-items: start;
    gap: 22px;
}
.dash-grid-main .panel {
    margin-bottom: 0;
}
.workspace-switch {
    margin-bottom: 22px;
    padding: 14px;
}
.workspace-switch small {
    margin-top: 4px;
}
.panel-body h3 {
    margin: 22px 0 14px;
}
.panel-body h2 {
    margin: 22px 0 14px;
}
.panel-body h2:first-child {
    margin-top: 0;
}
.panel-body hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 22px 0;
}
.table-wrap {
    position: relative;
}
.scroll-hint {
    display: none;
    padding: 7px 18px;
    background: #edf3ff;
    color: #29436b;
    font-size: 12px;
    text-align: right;
    border-block: 1px solid #dbe3ef;
}
.table-wrap.has-scroll {
    box-shadow: inset -7px 0 7px -7px #10245a80;
}
.has-scroll + .scroll-hint {
    display: block;
}
.page-heading > div,
.panel,
.panel-header > h2,
.dash-kpi,
.sx-definition dd {
    min-width: 0;
    overflow-wrap: anywhere;
}
.sx-definition dd {
    max-width: 75%;
    white-space: normal;
}
.dash-kpi strong,
.sx-stat-strip strong {
    overflow-wrap: anywhere;
}
.page-content > form {
    margin-bottom: 22px;
}
.template-options {
    margin-bottom: 18px;
}
.profile-site .service-chips > div {
    gap: 11px;
}
.auth-form-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 18px;
}
.dash-range {
    gap: 11px;
}
.date-field {
    position: relative;
}
.date-error {
    line-height: 1.5;
}
.profile-site .date-control {
    border-color: var(--border, #deded6);
}
.profile-site .date-input {
    margin: 0;
}
.home-site .hero-copy,
.home-site .hero-photo {
    min-width: 0;
}
.home-site h1,
.home-site h2,
.home-site p {
    overflow-wrap: anywhere;
}
@media (max-width: 1250px) {
    .page-content {
        padding: 25px;
    }
}
@media (max-width: 1000px) {
    .page-content {
        padding: 22px;
    }
}
@media (max-width: 899px) {
    .auth-layout {
        display: flex;
        flex-direction: column;
    }
    .auth-hero {
        display: block;
        height: 168px;
        min-height: 168px;
        flex: 0 0 168px;
    }
    .auth-hero-content {
        padding: 18px;
    }
    .auth-hero::before {
        background: linear-gradient(180deg, #0c2048e6, #0c2048b3);
    }
    .auth-hero-copy {
        margin-top: 14px;
    }
    .auth-story-title,
    .auth-hero-copy p,
    .auth-eyebrow {
        display: none;
    }
    .auth-hero-copy .auth-mobile-title {
        display: block;
        font-size: 25px;
        line-height: 1.3;
        margin: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .auth-photo-agent-login img,
    .auth-photo-admin-login img {
        object-position: center 70%;
    }
    .auth-photo-reset img {
        object-position: center 75%;
    }
    .auth-form-side {
        padding: 22px 18px;
        display: block;
    }
    .auth-form-center {
        padding: 0;
    }
}
#confirm-modal .btn {
    min-width: 44px;
    min-height: 44px;
}
@media (pointer: coarse) {
    .app-frame .btn,
    .auth-layout .btn,
    .btn,
    .icon-btn,
    .avatar-button,
    .nav-link,
    .tab,
    .pagination a,
    .topbar-popover a,
    .topbar-popover button {
        min-width: 44px;
        min-height: 44px;
    }
}
@media (max-width: 767px) {
    .sx-stat-strip.masters-settlement-stats > div strong {
        font-size: clamp(16px, 4.8vw, 23px);
    }
    .app-frame .form-actions .btn {
        flex: 1 1 160px;
    }
    .sidebar .sidebar-brand {
        min-height: 44px;
    }
    .home-site .wordmark,
    .home-site .header-actions > a,
    .profile-site .profile-consent a {
        display: inline-flex;
        min-height: 44px;
        min-width: 44px;
        align-items: center;
    }
    .app-frame .sx-page .field select,
    .app-frame .sx-page .field textarea {
        font-size: 16px;
    }
    .profile-site .service-chip {
        display: block;
    }
    .profile-site .service-chip > span {
        width: 100%;
    }
    .tabs {
        flex-wrap: wrap;
        overflow: visible;
        gap: 11px;
    }
    .tabs .tab {
        flex: 1 1 25%;
        text-align: center;
        justify-content: center;
    }
    .page-content a,
    .auth-layout a {
        display: inline-flex;
        align-items: center;
        min-width: 44px;
        min-height: 44px;
    }
    .page-content .template-card-content a {
        display: inline;
    }
    .page-content {
        padding: 22px 18px;
    }
    .panel-header,
    .panel-body,
    .sx-page .panel-body {
        padding: 18px;
    }
    .panel-header + .panel-body {
        padding-top: 0;
    }
    .data-table th,
    .data-table td {
        padding-inline: 14px;
    }
    .app-frame .btn,
    .auth-layout .btn,
    .icon-btn,
    .avatar-button,
    .dash-range button,
    .tab,
    .nav-link,
    .pagination a,
    .template-card > a,
    .topbar-popover a,
    .topbar-popover button,
    .auth-links a {
        min-height: 44px;
        min-width: 44px;
    }
    .pagination a,
    .auth-links a,
    .template-card > a,
    .topbar-popover a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .field input:not([type="checkbox"]):not([type="radio"]),
    .field select,
    .field textarea,
    .auth-layout input:not([type="checkbox"]):not([type="radio"]) {
        min-height: 44px;
        font-size: 16px;
    }
    .sidebar {
        max-height: 100dvh;
        overflow-y: auto;
    }
    .modal {
        max-width: calc(100vw - 36px);
        max-height: calc(100dvh - 36px);
        overflow: auto;
    }
    .table-wrap input[type="checkbox"] {
        width: 44px;
        height: 44px;
        transform: none;
        appearance: none;
        border: 12px solid transparent;
        border-radius: 15px;
        background: linear-gradient(white, white) padding-box;
        box-shadow: inset 0 0 0 1px #8b9cb6;
        margin: -7px;
    }
    .table-wrap input[type="checkbox"]:checked {
        background: #0757ff padding-box;
    }
    label:has(> input[type="checkbox"]),
    label:has(> input[type="radio"]) {
        min-height: 44px;
        display: flex;
        align-items: center;
        gap: 11px;
    }
    .app-frame label.template-card {
        display: block;
    }
    .home-site .home-container {
        padding-inline: 18px;
    }
    .home-site a,
    .profile-site a,
    .home-site summary,
    .profile-site summary {
        min-height: 44px;
    }
}
