:root {
    --crm-primary: #0d6efd;
    --crm-primary-dark: #0a4fc6;
    --crm-bg: #eef3f9;
    --crm-text: #112132;
    --crm-muted: #6b7a8a;
    --crm-card: #ffffff;
    --crm-border: rgba(17, 33, 50, 0.08);
    --crm-shadow: 0 14px 34px rgba(17, 33, 50, 0.08);
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.16), transparent 24rem),
        linear-gradient(180deg, #f7fbff 0%, var(--crm-bg) 50%, #eef2f7 100%);
    color: var(--crm-text);
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.crm-shell {
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.crm-app-body {
    background: var(--crm-bg);
}

.crm-guest-body {
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.22), transparent 26rem),
        radial-gradient(circle at bottom right, rgba(17, 33, 50, 0.12), transparent 24rem),
        linear-gradient(180deg, #f5f9ff 0%, #e7eef8 46%, #dfe8f5 100%);
}

.crm-topbar,
.crm-bottom-nav,
.crm-card,
.crm-page-card,
.crm-onboarding-card,
.crm-action-strip,
.crm-mobile-fab {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--crm-border);
    box-shadow: var(--crm-shadow);
}

.crm-settings-mobile-back {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.crm-card,
.crm-page-card,
.crm-onboarding-card,
.crm-action-strip {
    border-radius: 1.5rem;
}

.crm-desktop-navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
}

.crm-navbar-brand {
    min-width: 0;
}

.crm-navbar-mark {
    width: auto;
    min-height: 2.5rem;
    max-width: 160px;
    max-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--crm-text);
    overflow: hidden;
}

.crm-navbar-mark-text {
    max-width: 220px;
    font-weight: 700;
    line-height: 1.1;
    white-space: normal;
}

.crm-navbar-logo {
    display: block;
    max-width: 160px;
    max-height: 60px;
    width: auto;
    height: auto;
}

.crm-logo-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--crm-primary), var(--crm-primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.crm-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.crm-desktop-sidebar {
    width: 160px;
    background: #112132;
    color: #fff;
    flex: 0 0 160px;
}

.crm-sidebar-shell {
    background: #112132;
    color: #fff;
}

.crm-app-sidebar-link {
    color: #fff;
    border-radius: 0.75rem;
}

.crm-app-sidebar-link:hover,
.crm-app-sidebar-link:focus,
.crm-app-sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.crm-main-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.crm-content-shell {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.crm-content-shell--plain {
    padding: 0;
}

.crm-onboarding-screen {
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-onboarding-card {
    position: relative;
}

.crm-onboarding-logout {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
}

.crm-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    color: var(--crm-text);
    text-decoration: none;
    font-weight: 600;
}

.crm-nav-link.active,
.crm-nav-link:hover {
    background: rgba(13, 110, 253, 0.1);
    color: var(--crm-primary-dark);
}

.crm-stat-value {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
}

.crm-muted {
    color: var(--crm-muted);
}

.crm-list-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(17, 33, 50, 0.06);
}

.crm-circle-action {
    min-width: 4.25rem;
    min-height: 4.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.9rem 1.15rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.crm-circle-action span {
    font-size: 0.82rem;
    line-height: 1;
}

.crm-customer-action-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.crm-customer-action-strip form,
.crm-customer-action-strip .crm-circle-action {
    min-width: 0;
}

.crm-customer-action-strip .crm-circle-action {
    min-height: 4.25rem;
    white-space: nowrap;
}

.crm-icon-action {
    width: 2.85rem;
    height: 2.85rem;
    min-width: 2.85rem;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.crm-icon-action i {
    font-size: 1.25rem;
    line-height: 1;
}

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

.crm-scroll-card {
    max-height: 350px;
    overflow: auto;
}

.crm-note-offcanvas {
    height: 75vh !important;
    border-radius: 1.25rem 1.25rem 0 0;
}

.crm-note-offcanvas-open {
    overflow: hidden;
}

.crm-note-offcanvas .offcanvas-body {
    display: flex;
}

.crm-note-offcanvas__textarea {
    height: 100%;
    min-height: 100%;
    width: 100%;
    border: 0;
    border-radius: 0;
    resize: none;
}

.crm-note-recorder-overlay,
.crm-note-unsaved-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.crm-note-recorder-overlay {
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.2), transparent 12rem),
        linear-gradient(135deg, rgba(185, 28, 28, 0.96), rgba(127, 29, 29, 0.96));
}

.crm-note-recording-icon {
    font-size: 4rem;
    line-height: 1;
    animation: crm-recording-pulse 1.2s ease-in-out infinite;
}

.crm-note-recording-label {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.crm-note-recording-timer {
    margin-top: 0.35rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: clamp(2rem, 8vw, 3.25rem);
    font-weight: 800;
}

.crm-note-unsaved-overlay {
    background: rgba(248, 249, 250, 0.88);
    backdrop-filter: blur(6px);
}

.crm-note-unsaved-card {
    width: min(100%, 24rem);
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(17, 33, 50, 0.12);
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(17, 33, 50, 0.18);
}

.crm-note-mic-permission-needed {
    pointer-events: auto;
}

@keyframes crm-recording-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.72;
    }
}

@media (min-width: 992px) {
    .offcanvas.offcanvas-bottom.crm-note-offcanvas {
        position: fixed;
        top: auto;
        right: 20px;
        bottom: 0;
        left: auto;
        width: min(28rem, calc(100vw - 3rem));
        height: min(75vh, 42rem) !important;
        border-radius: 0.75rem 0.75rem 0 0;
        box-shadow: 0 18px 50px rgba(17, 33, 50, 0.24);
    }

    .offcanvas.offcanvas-bottom.crm-note-offcanvas {
        transform: translateY(calc(100% + 1rem));
    }

    .offcanvas.offcanvas-bottom.crm-note-offcanvas.show,
    .offcanvas.offcanvas-bottom.crm-note-offcanvas.showing {
        transform: none;
    }

    .crm-note-offcanvas .offcanvas-footer .rounded-lg-pill {
        border-radius: 50rem !important;
    }
}

.crm-message-thread.active {
    border-color: rgba(13, 110, 253, 0.35);
    background: rgba(13, 110, 253, 0.08);
}

.crm-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    width: min(calc(100% - 1.5rem), 32rem);
    border-radius: 1.5rem;
    z-index: 1030;
}

.crm-bottom-nav .nav-link {
    color: var(--crm-text);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
}

.crm-bottom-nav .nav-link.active {
    color: var(--crm-primary-dark);
}

.crm-placeholder-card {
    min-height: 10rem;
}

.crm-topbar-actions .btn {
    border-radius: 999px;
}

.crm-avatar {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: rgba(13, 110, 253, 0.12);
    color: var(--crm-primary-dark);
}

.crm-system-log {
    min-height: 280px;
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
    background: #08111f;
    color: #d7e3f4;
    border-radius: 1rem;
    padding: 1rem;
}

.crm-auth-screen {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: stretch;
}

.crm-auth-stage {
    width: min(100%, 72rem);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 30rem);
    gap: 1.5rem;
    align-items: stretch;
}

.crm-auth-hero,
.crm-auth-sheet {
    border-radius: 2rem;
    overflow: hidden;
}

.crm-auth-hero {
    position: relative;
    padding: clamp(1.75rem, 3vw, 3rem);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 18rem),
        linear-gradient(145deg, #12345a 0%, #0f5cc0 58%, #6ec6ff 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 38rem;
    box-shadow: 0 20px 60px rgba(8, 17, 31, 0.18);
}

.crm-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    align-self: flex-start;
    padding: 0.45rem 1rem 0.45rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.crm-auth-badge-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0b3b73;
    background: #fff;
}

.crm-auth-badge-label {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.crm-auth-copy {
    max-width: 32rem;
    margin: auto 0;
}

.crm-auth-logo-wrap {
    align-self: flex-start;
}

.crm-auth-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 700;
    opacity: 0.78;
    margin-bottom: 0.9rem;
}

.crm-auth-copy h1,
.crm-auth-sheet h2 {
    margin: 0;
    font-weight: 800;
    line-height: 1.02;
}

.crm-auth-copy h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    max-width: 12ch;
}

.crm-auth-copy p {
    margin: 1.15rem 0 0;
    max-width: 28rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.crm-auth-meta {
    display: grid;
    gap: 0.85rem;
    max-width: 24rem;
}

.crm-auth-meta-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

.crm-auth-meta-item i {
    font-size: 1.1rem;
}

.crm-auth-sheet {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(17, 33, 50, 0.08);
    box-shadow: 0 24px 50px rgba(17, 33, 50, 0.12);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.crm-auth-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.crm-auth-pill {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.crm-auth-form {
    display: grid;
    gap: 1rem;
}

.crm-auth-field .form-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--crm-muted);
    margin-bottom: 0.55rem;
}

.crm-auth-field .form-control {
    border-radius: 1.2rem;
    border: 1px solid rgba(17, 33, 50, 0.09);
    background: #f6f9fc;
    padding: 1rem 1.1rem;
    box-shadow: none;
}

.crm-auth-field .form-control:focus {
    border-color: rgba(13, 110, 253, 0.4);
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.crm-auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: #f7f9fc;
    border: 1px solid rgba(17, 33, 50, 0.06);
}

.crm-auth-remember .form-check-input {
    width: 3rem;
    height: 1.6rem;
    border-radius: 999px;
}

.crm-auth-submit {
    margin-top: 0.25rem;
    border-radius: 1.2rem;
    padding: 1rem 1.4rem;
    font-weight: 700;
}

.crm-auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(17, 33, 50, 0.08);
}

.crm-login-mobile {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-login-mobile__shell {
    width: min(100%, 28rem);
    margin: 0 auto;
    display: grid;
    gap: 1.1rem;
}

.crm-login-mobile__brand {
    padding: 1rem 0.5rem 0;
    text-align: center;
}

.crm-login-mobile__logo {
    width: min(13rem, 52vw);
    height: auto;
    display: block;
    margin: 0 auto 1.25rem;
}

.crm-login-mobile__eyebrow,
.crm-login-mobile__label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
}

.crm-login-mobile__eyebrow {
    color: rgba(17, 33, 50, 0.58);
    margin-bottom: 0.85rem;
}

.crm-login-mobile__title {
    margin: 0;
    font-size: clamp(2rem, 7vw, 2.7rem);
    font-weight: 800;
    line-height: 0.98;
    color: var(--crm-text);
}

.crm-login-mobile__subtitle {
    margin: 0.85rem auto 0;
    max-width: 18rem;
    color: var(--crm-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.crm-login-mobile__card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(17, 33, 50, 0.08);
    border-radius: 2rem;
    box-shadow: 0 24px 50px rgba(17, 33, 50, 0.12);
    padding: 1.3rem;
}

.crm-login-mobile__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.crm-login-mobile__label {
    color: var(--crm-muted);
    margin-bottom: 0.55rem;
}

.crm-login-mobile__card-head h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--crm-text);
}

.crm-login-mobile__switch-link {
    color: var(--crm-primary-dark);
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    align-self: center;
}

.crm-login-mobile__switch-link:hover,
.crm-login-mobile__switch-link:focus-visible {
    color: var(--crm-primary);
    text-decoration: underline;
}

.crm-login-mobile__icon {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(13, 110, 253, 0.14), rgba(13, 110, 253, 0.04));
    color: var(--crm-primary-dark);
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.crm-login-mobile__form {
    display: grid;
    gap: 1rem;
}

.crm-login-mobile__panel[hidden] {
    display: none !important;
}

.crm-login-mobile__field .form-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--crm-muted);
    margin-bottom: 0.55rem;
}

.crm-login-mobile__field .form-control {
    border-radius: 1.15rem;
    border: 1px solid rgba(17, 33, 50, 0.09);
    background: #f6f9fc;
    padding: 1rem 1.1rem;
    font-size: 1rem;
    box-shadow: none;
}

.crm-login-mobile__field .form-control:focus {
    border-color: rgba(13, 110, 253, 0.4);
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.crm-login-mobile__remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    background: #f7f9fc;
    border: 1px solid rgba(17, 33, 50, 0.06);
}

.crm-login-mobile__remember .form-check-input {
    width: 3rem;
    height: 1.6rem;
    border-radius: 999px;
    flex: 0 0 auto;
}

.crm-login-mobile__submit {
    margin-top: 0.15rem;
    border-radius: 1.15rem;
    padding: 1rem 1.4rem;
    font-weight: 700;
}

.crm-login-mobile__recaptcha {
    min-height: 78px;
    display: flex;
    justify-content: center;
}

.crm-tenant-select-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.crm-tenant-select-body {
    background: var(--crm-bg);
}

.crm-tenant-select-screen {
    min-height: 100vh;
    padding: clamp(1.25rem, 4vw, 3rem);
}

.crm-tenant-select-shell {
    width: min(100%, 68rem);
    margin: 0 auto;
}

.crm-tenant-select-signout {
    white-space: nowrap;
    text-decoration: none;
}

.crm-tenant-select-signout:hover,
.crm-tenant-select-signout:focus-visible {
    text-decoration: underline;
}

.crm-tenant-select-card:hover,
.crm-tenant-select-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(17, 33, 50, 0.12);
    border-color: rgba(13, 110, 253, 0.2);
}

.crm-tenant-select-card .card-body {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-height: 100%;
    padding: 1.5rem;
}

.crm-tenant-select-card__logo {
    width: 100%;
    min-height: 8rem;
    border-radius: 1.25rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(13, 110, 253, 0.08), rgba(110, 198, 255, 0.18));
    overflow: hidden;
}

.crm-tenant-select-card__logo img {
    max-width: 100%;
    max-height: 4.75rem;
    object-fit: contain;
}

.crm-tenant-select-card__logo--fallback {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--crm-primary-dark);
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 6.25rem;
    }

    .crm-guest-body {
        padding-bottom: 0;
    }

    .crm-tenant-select-body {
        padding-bottom: 0;
    }

    .crm-topbar {
        border-radius: 0;
        margin-bottom: 0.75rem !important;
        border-left: 0;
        border-right: 0;
    }

    .crm-page-card,
    .crm-card,
    .crm-action-strip {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .crm-customer-action-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .crm-customer-action-strip form,
    .crm-customer-action-strip .crm-circle-action {
        width: 100%;
    }

    .crm-customer-action-strip .crm-circle-action {
        min-height: 3.4rem;
        padding: 0.65rem 0.75rem;
        flex-direction: row;
        gap: 0.4rem;
        font-size: 1.25rem;
    }

    .crm-customer-action-strip .crm-circle-action span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.82rem;
    }

    .crm-bottom-nav {
        left: 0;
        right: 0;
        transform: none;
        bottom: 0;
        width: 100%;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .crm-desktop-sidebar {
        display: none;
    }

    .crm-content-shell {
        padding: 0 !important;
    }

    .crm-auth-screen {
        min-height: 100vh;
    }

    .crm-auth-stage {
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
    }

    .crm-auth-hero {
        min-height: auto;
        border-radius: 0;
        padding: 1.5rem 1.25rem 1rem;
    }

    .crm-auth-copy,
    .crm-auth-meta {
        display: none;
    }

    .crm-auth-logo-wrap {
        width: 100%;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
    }

    .crm-auth-logo-wrap img {
        max-width: min(220px, 62vw);
    }

    .crm-auth-sheet {
        position: relative;
        margin-top: 0;
        border-radius: 2rem 2rem 0 0;
        padding: 1.35rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }

    .crm-auth-sheet-header {
        margin-bottom: 1.15rem;
    }

    .crm-auth-remember {
        align-items: flex-start;
    }

    .crm-login-mobile {
        min-height: 100vh;
    }

    .crm-login-mobile__shell {
        width: 100%;
        gap: 0.85rem;
    }

    .crm-login-mobile__brand {
        padding: 0.5rem 0.5rem 0;
    }

    .crm-login-mobile__card {
        border-radius: 1.75rem 1.75rem 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 1.2rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
    }

    .crm-login-mobile__field .form-control,
    .crm-login-mobile__field .btn,
    #verification_code {
        font-size: 1.1rem;
    }

    .crm-login-mobile__remember {
        align-items: flex-start;
    }
}

@media (min-width: 992px) {
    .crm-bottom-nav {
        display: none;
    }

    .crm-topbar {
        display: none;
    }

    .crm-auth-sheet {
        padding: 2rem;
    }

    .crm-login-mobile__shell {
        width: min(100%, 56rem);
        grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 26rem);
        gap: 1.5rem;
        align-items: center;
    }

    .crm-login-mobile__brand {
        text-align: left;
        padding: 1rem 1rem 1rem 0;
    }

    .crm-login-mobile__logo {
        margin: 0 0 1.5rem;
    }

    .crm-login-mobile__subtitle {
        margin-left: 0;
    }

    .crm-login-mobile__card {
        padding: 1.75rem;
    }
}
