body {
    min-height: 100vh;
}

.auth-shell {
    background: #031733;
}

[data-bs-theme="dark"] .auth-shell {
    background: #070b12;
}

.auth-card {
    background: #102a4c;
}

[data-bs-theme="dark"] .auth-card {
    background: #111827;
}

.app-sidebar-shell {
    background: var(--bs-dark);
    color: var(--bs-white);
}

[data-bs-theme="dark"] .app-sidebar-shell {
    background: #0b1220;
}

.app-sidebar-link {
    color: var(--bs-white);
    border-radius: var(--bs-border-radius);
}

.app-sidebar-link:hover,
.app-sidebar-link:focus,
.app-sidebar-link.active {
    color: var(--bs-white);
    background: rgba(255, 255, 255, .08);
}

.sidebar-shell {
    width: 160px;
}

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

.navbar {
    position: relative;
    z-index: 1030;
}

.app-navbar-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.app-notification-badge {
    transform: translate(-80%, 20%) !important;
}

.app-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bs-border-radius);
    background: var(--bs-dark);
    color: var(--bs-white);
    min-height: 2.5rem;
    padding: .375rem .625rem;
    max-width: 160px;
    max-height: 60px;
    overflow: hidden;
}

.app-brand-mark-logo {
    width: auto;
    background: transparent;
    padding: 0;
}

.app-brand-mark-text {
    font-weight: 600;
    line-height: 1.1;
    max-width: 160px;
    white-space: normal;
}

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

.dashboard-card {
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.small-label {
    font-size: .78rem;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.status-dot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.status-success {
    background: var(--bs-success);
}

.status-dot.status-warning {
    background: var(--bs-warning);
}

.status-dot.status-danger {
    background: var(--bs-danger);
}

.table-light {
    --bs-table-bg: var(--bs-tertiary-bg);
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
}

.settings-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: var(--bs-border-radius);
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
    font-size: 1.25rem;
}

.settings-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.settings-sidebar {
    position: sticky;
    top: 1rem;
    overflow: hidden;
}

.settings-content {
    min-width: 0;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    color: var(--bs-body-color);
    text-decoration: none;
    border-radius: var(--bs-border-radius);
}

.settings-nav-link i {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--bs-secondary-color);
}

.settings-nav-link:hover,
.settings-nav-link:focus,
.settings-nav-link.active {
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.settings-nav-link.active i {
    color: var(--bs-primary);
}

[data-bs-theme="dark"] .shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .45) !important;
}

.app-search {
    width: min(360px, 34vw);
}

.global-search-results {
    position: absolute;
    top: calc(100% + .35rem);
    right: 0;
    width: min(420px, 90vw);
    z-index: 1090;
    max-height: 420px;
    overflow: auto;
}

.client-summary-header {
    top: 0;
    z-index: 1010;
}

.client-summary-shell {
    position: relative;
}

.client-summary-edit {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.client-detail-shell {
    top: 0;
    z-index: 1010;
}

.client-detail-hero {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, .10), transparent 28rem),
        linear-gradient(180deg, rgba(248, 249, 250, .96), rgba(255, 255, 255, 1));
    box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .08);
}

.client-detail-avatar,
.client-member-preview-avatar,
.client-member-card-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: 0 0 auto;
}

.client-detail-avatar {
    background: linear-gradient(135deg, rgba(13, 110, 253, .18), rgba(32, 201, 151, .22));
    color: var(--bs-primary-text-emphasis);
    font-size: 1rem;
}

.client-detail-eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, .05);
    color: var(--bs-secondary-color);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .35rem .65rem;
    text-transform: uppercase;
}

.client-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    color: var(--bs-secondary-color);
    font-size: .92rem;
}

.client-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
}

.client-detail-panel,
.client-product-card,
.client-member-card,
.client-member-preview {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
}

.client-detail-panel {
    padding: 1rem;
}

.client-detail-panel-label,
.client-member-card-label {
    color: var(--bs-secondary-color);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.client-member-preview,
.client-member-card {
    box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .06);
    transition: transform .16s ease, box-shadow .16s ease;
}

.client-member-card .card-body {
    padding: 1rem;
}

.client-member-preview:hover,
.client-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .85rem 1.35rem rgba(15, 23, 42, .10);
}

.client-member-preview-avatar,
.client-member-card-avatar {
    background: linear-gradient(135deg, rgba(13, 110, 253, .12), rgba(255, 193, 7, .20));
    color: var(--bs-primary-text-emphasis);
}

.client-member-preview-avatar {
    width: 2.75rem;
    height: 2.75rem;
}

.client-member-card-avatar {
    width: 3rem;
    height: 3rem;
}

.client-member-card-section {
    display: block;
    margin-top: .9rem;
}

.client-product-card {
    padding: .9rem 1rem;
    background: linear-gradient(180deg, rgba(248, 249, 250, .9), rgba(255, 255, 255, 1));
}

.client-alert-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .92rem;
}

.client-empty-panel,
.member-profile-empty-state {
    border: 1px dashed var(--bs-border-color);
    border-radius: .85rem;
    padding: 1rem;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

.member-profile-entry-form {
    border: 1px solid #dce3ee;
    border-radius: .75rem;
    background: #f8fafc;
    padding: .85rem;
}

.member-profile-record-list {
    display: grid;
    gap: .55rem;
}

.member-profile-record {
    display: grid;
    gap: .25rem;
    border: 1px solid #dce3ee;
    border-radius: .65rem;
    background: #fff;
    padding: .75rem;
    color: #334155;
    font-size: .82rem;
}

.client-member-profile-modal .modal-content {
    background: #f8fafc;
}

.client-member-profile-modal .modal-body {
    overflow-y: auto;
}

.client-member-profile-modal .tab-content {
    max-width: 76rem;
}

.client-member-profile-header {
    padding: 1.1rem 1.35rem;
}

.client-member-profile-header-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.client-member-profile-body {
    padding: 1rem 1.35rem 1.35rem;
}

.client-member-profile-avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: #e0f2fe;
    color: #075985;
    font-weight: 800;
}

.client-member-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.client-member-profile-tabs {
    gap: .35rem;
    padding: .35rem;
    border: 1px solid #dce3ee;
    border-radius: .85rem;
    background: #f8fafc;
}

.client-member-profile-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: .65rem;
    color: #475569;
    font-size: .82rem;
    font-weight: 700;
    padding: .55rem .7rem;
}

.client-member-profile-tabs .nav-link.active {
    background: #fff;
    color: var(--bs-primary);
    box-shadow: 0 .4rem 1rem rgba(15, 23, 42, .08);
}

.member-profile-section {
    border: 1px solid var(--bs-border-color);
    border-radius: .85rem;
    background: var(--bs-body-bg);
    padding: 1.1rem;
}

.member-profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.member-profile-list {
    display: grid;
    gap: .9rem;
    margin: 0;
}

.member-profile-list-grid {
    display: flex;
    flex-wrap: wrap;
}

.member-profile-list div {
    display: grid;
    gap: .2rem;
}

.member-profile-list [data-member-inline-edit] {
    position: relative;
}

.member-profile-list dt {
    color: var(--bs-secondary-color);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin: 0;
    text-transform: uppercase;
}

.member-profile-list dd {
    align-items: center;
    display: flex;
    gap: .35rem;
    margin: 0;
    min-height: 2rem;
}

.member-profile-inline-edit-button {
    flex: 0 0 auto;
    line-height: 1;
    opacity: 0;
    padding: .1rem .25rem;
    transition: opacity .16s ease;
}

.member-profile-list [data-member-inline-edit]:hover .member-profile-inline-edit-button,
.member-profile-list [data-member-inline-edit]:focus-within .member-profile-inline-edit-button {
    opacity: 1;
}

.member-profile-inline-editor {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: .35rem;
    min-width: 0;
}

.member-profile-inline-editor .form-control,
.member-profile-inline-editor .form-select {
    min-width: 0;
}

.member-profile-sensitive-input {
    flex: 1 1 auto;
    min-width: 0;
}

.member-profile-sensitive-view-button {
    flex: 0 0 auto;
    line-height: 1;
    padding: .1rem .25rem;
}

.client-header-actions .btn {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-grid;
    place-items: center;
}

.client-dashboard-page {
    max-width: 1640px;
}

.client-record-header {
    background: transparent;
}

.client-back-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--bs-primary);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.client-record-title {
    color: #111827;
    font-size: clamp(1.55rem, 1.2rem + .75vw, 2rem);
    font-weight: 750;
    line-height: 1.15;
}

.client-icon-button {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
}

.client-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.35rem;
    color: #334155;
    font-size: .86rem;
}

.client-record-meta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

.client-tag-label {
    align-self: center;
    color: #64748b;
    font-size: .8rem;
}

.client-type-pill {
    border: 1px solid #d8dee8;
    border-radius: .45rem;
    background: #f8fafc;
    color: #1f2937;
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem .7rem;
}

.client-record-hero {
    border: 1px solid #dce3ee;
    border-radius: 1rem;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, .08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 1.25rem;
}

.client-record-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.client-record-actions-toggle {
    min-width: 8rem;
    font-weight: 600;
}

.client-record-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .85fr);
    gap: 1.25rem;
    align-items: start;
}

.client-record-identity {
    min-width: 0;
}

.client-record-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: .9rem;
}

.client-record-more-toggle {
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
}

.client-record-more-toggle:hover,
.client-record-more-toggle:focus {
    color: var(--bs-primary);
    text-decoration: none;
}

.client-record-more-toggle .show-less-label,
.client-record-more-toggle:not(.collapsed) .show-more-label {
    display: none;
}

.client-record-more-toggle:not(.collapsed) .show-less-label {
    display: inline;
}

.client-record-more-toggle i {
    transition: transform .2s ease;
}

.client-record-more-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.client-record-hero-more {
    grid-column: 1 / -1;
}

.client-agent-summary {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    min-width: 0;
}

.client-record-fact {
    border: 1px solid #e2e8f0;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .82);
    min-width: 0;
    padding: .95rem 1rem;
}

.client-record-fact-value {
    margin-top: .35rem;
}

.client-agent-stack-wrap {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
}

.client-agent-stack {
    display: flex;
    align-items: center;
    padding-left: .35rem;
}

.client-agent-stack-item {
    position: relative;
    margin-left: -.55rem;
}

.client-agent-stack-item:first-child {
    margin-left: 0;
}

.client-agent-stack-item .client-agent-avatar {
    width: 3rem;
    height: 3rem;
    border: 2px solid #fff;
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .14);
}

.client-agent-stack-item.is-primary {
    z-index: 2;
}

.client-agent-stack-badge {
    position: absolute;
    right: -.1rem;
    bottom: -.05rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    border: 2px solid #fff;
    background: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    font-weight: 700;
}

.client-agent-stack-copy {
    min-width: 0;
}

.client-agent-edit-trigger {
    text-decoration: none;
}

.client-agent-edit-trigger:hover {
    color: var(--bs-primary) !important;
}

.client-agent-picker {
    position: relative;
}

.client-agent-picker-selection {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 3rem;
    cursor: pointer;
    flex-wrap: wrap;
    padding-right: 2rem;
}

.client-agent-picker-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.client-agent-picker-placeholder {
    pointer-events: none;
}

.client-agent-picker-caret {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.client-agent-picker.is-open .client-agent-picker-caret {
    transform: translateY(-50%) rotate(180deg);
}

.client-agent-picker-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .65rem;
}

.client-agent-picker-chip.is-primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.client-agent-picker-chip-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.client-agent-picker-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .35rem);
    z-index: 1065;
    border: 1px solid #dce3ee;
    border-radius: .75rem;
    background: #fff;
    overflow: hidden;
}

.client-agent-picker-options {
    max-height: 16rem;
    overflow-y: auto;
    padding: .35rem;
}

.client-agent-picker-option {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    border: 0;
    border-radius: .6rem;
    background: transparent;
    text-align: left;
    padding: .6rem .7rem;
}

.client-agent-picker-option:hover,
.client-agent-picker-option:focus-visible {
    background: #f8fafc;
    outline: none;
}

.client-agent-picker-option.is-selected {
    background: #eff6ff;
}

.client-agent-picker-check {
    width: 1rem;
    color: transparent;
    flex: 0 0 auto;
}

.client-agent-picker-option.is-selected .client-agent-picker-check {
    color: #2563eb;
}

.client-agent-picker-option-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.client-create-offcanvas {
    --bs-offcanvas-height: 100%;
}

.client-create-offcanvas .offcanvas-body.client-create-offcanvas-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

.client-create-offcanvas .offcanvas-footer {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.communication-actions-menu {
    width: min(24rem, calc(100vw - 2rem));
    border-radius: .9rem;
    border-color: #dce3ee;
}

.communication-actions-menu .dropdown-item {
    white-space: normal;
}

.communication-actions-menu .dropdown-item:disabled {
    opacity: .6;
}

.communication-actions-menu .dropdown-header {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}

.communication-log-item {
    overflow: hidden;
    border-radius: .75rem;
    background: #fff;
    border: 1px solid #dce3ee;
}

.communication-log-item + .communication-log-item {
    margin-top: .85rem;
}

.communication-log-toggle {
    width: 100%;
    border: 0;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    text-align: left;
}

.communication-log-main {
    flex: 1 1 auto;
    min-width: 0;
}

.communication-log-side {
    flex: 0 0 auto;
    min-width: 10rem;
}

.communication-log-stats-summary {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
    font-size: .78rem;
    color: #475569;
}

.communication-log-stats-summary > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .1rem;
}

.communication-log-stats-summary strong {
    font-size: .92rem;
    color: #0f172a;
}

.communication-log-stats-label {
    text-transform: uppercase;
    letter-spacing: .04em;
}

.communication-log-toggle.is-active {
    box-shadow: inset 0 -1px 0 #e7edf5;
    background: #f8fbff;
}

.communication-layout {
    align-items: start;
}

.communication-message-list {
    min-width: 0;
}

.communication-list-footer {
    min-height: 1.5rem;
}

[data-communications-load-more-sentinel] {
    height: 1px;
}

@media (max-width: 767.98px) {
    .communication-log-toggle {
        flex-direction: column;
    }

    .communication-log-side {
        width: 100%;
        min-width: 0;
        text-align: left !important;
    }

    .communication-log-stats-summary {
        justify-content: flex-start;
    }

    .communication-log-stats-summary > div {
        align-items: flex-start;
    }
}

.communication-log-toggle:hover,
.communication-log-toggle:focus {
    background: #f8fbff;
    outline: none;
}

.communication-log-toggle-copy {
    color: #475569;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.communication-log-body {
    padding: 1rem;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    border-top: 1px solid #e7edf5;
}

.communication-stats-grid dt,
.communication-stats-grid dd {
    margin-bottom: .4rem;
}

.communication-email-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    background: #fff;
}

.communication-email-meta span,
.communication-email-meta strong {
    display: block;
}

.communication-email-meta span {
    font-size: .76rem;
    margin-bottom: .2rem;
}

.communication-email-meta strong {
    font-size: .95rem;
    color: #0f172a;
    word-break: break-word;
}

.communication-email-frame-shell,
.communication-email-fallback,
.communication-record-copy {
    border: 1px solid #e2e8f0;
    border-radius: .85rem;
    background: #fff;
}

.communication-email-frame-shell {
    padding: .35rem;
}

.communication-email-frame {
    width: 100%;
    min-height: 26rem;
    border: 0;
    border-radius: .6rem;
    background: #fff;
}

.communication-email-fallback,
.communication-record-copy {
    padding: 1rem 1.1rem;
    line-height: 1.7;
    color: #1e293b;
    white-space: normal;
    word-break: break-word;
}

.client-tabs-shell {
    border: 1px solid #dce3ee;
    border-radius: .5rem;
    background: #fff;
    overflow-x: auto;
}

.client-record-tabs {
    gap: 0;
    padding: 0 .75rem;
}

.client-record-tabs .nav-link {
    border-radius: 0;
    border-bottom: 2px solid transparent;
    color: #334155;
    font-size: .86rem;
    padding: .85rem 1.1rem;
}

.client-record-tabs .nav-link.active {
    background: transparent;
    border-bottom-color: var(--bs-primary);
    color: var(--bs-primary);
    font-weight: 700;
}

.client-overview-dashboard {
    color: #111827;
}

.client-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .85rem;
}

.client-kpi-card {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    min-height: 5.8rem;
    border: 1px solid #dce3ee;
    border-radius: .5rem;
    background: #fff;
    padding: .9rem 1rem;
    text-align: left;
}

.client-kpi-icon {
    width: 3rem;
    height: 3rem;
    border-radius: .8rem;
    display: inline-grid;
    place-items: center;
    font-size: 1.45rem;
}

.client-kpi-icon-success {
    background: #dcfce7;
    color: #15803d;
}

.client-kpi-icon-primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.client-kpi-icon-warning {
    background: #ffedd5;
    color: #f97316;
}

.client-kpi-icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.client-kpi-icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.client-kpi-icon-teal {
    background: #ccfbf1;
    color: #0f766e;
}

.client-kpi-copy {
    display: grid;
    min-width: 0;
}

.client-kpi-value {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
}

.client-kpi-label {
    color: #334155;
    font-size: .82rem;
}

.client-kpi-action,
.client-inline-action {
    color: var(--bs-primary);
    font-size: .78rem;
    font-weight: 700;
}

.client-overview-grid {
    display: grid;
    grid-template-columns: minmax(17rem, .82fr) minmax(32rem, 1.45fr) minmax(20rem, .95fr);
    gap: .85rem;
    align-items: start;
}

.client-overview-left,
.client-overview-main,
.client-overview-right {
    display: grid;
    gap: .85rem;
}

.client-dashboard-card {
    border: 1px solid #dce3ee;
    border-radius: .5rem;
    background: #fff;
    padding: .95rem 1rem;
}

.client-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}

.client-card-header h3 {
    margin: 0;
    color: #111827;
    font-size: .95rem;
    font-weight: 800;
}

.client-alert-box {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .75rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    padding: .85rem;
    text-align: left;
}

.client-alert-box-danger {
    border-color: #fecaca;
    background: #fff1f2;
}

.client-alert-box-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.client-alert-box-info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.client-alert-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    display: inline-grid;
    place-items: center;
    background: #fff;
}

.client-snapshot-list {
    display: grid;
    gap: .8rem;
    margin: 0;
}

.client-snapshot-list div {
    display: grid;
    grid-template-columns: minmax(7rem, .9fr) minmax(0, 1.1fr);
    gap: .85rem;
}

.client-snapshot-list dt {
    color: #64748b;
    font-size: .8rem;
    font-weight: 500;
}

.client-snapshot-list dd {
    margin: 0;
    color: #111827;
    font-size: .82rem;
}

.client-member-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.75rem, 9.75rem));
    gap: .7rem;
    justify-content: start;
}

.client-household-card,
.client-household-add {
    min-height: 9.35rem;
    border: 1px solid #dce3ee;
    border-radius: .5rem;
    background: #fff;
    padding: .75rem;
    text-align: center;
}

.client-household-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: .25rem;
}

.client-household-avatar {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    margin-bottom: .35rem;
    background: #e0f2fe;
    color: #075985;
    font-weight: 800;
}

.client-household-actions {
    display: flex;
    justify-content: center;
    gap: .6rem;
    color: var(--bs-primary);
    margin-top: .45rem;
}

.client-household-add {
    display: grid;
    place-items: center;
    align-content: center;
    gap: .55rem;
    border-style: dashed;
    color: var(--bs-primary);
    font-weight: 700;
}

.client-dashboard-table {
    font-size: .78rem;
}

.client-dashboard-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
}

.client-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.85rem, 1fr));
    gap: .55rem;
}

.client-folder-tile,
.client-upload-tile {
    min-height: 4.95rem;
    border: 1px solid #dce3ee;
    border-radius: .5rem;
    background: #fff;
    display: grid;
    align-content: center;
    gap: .2rem;
    padding: .55rem;
    text-align: center;
}

.client-folder-placeholder {
    opacity: .78;
}

.client-documents-workspace {
    max-width: 100%;
}

.client-documents-folder-grid {
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.client-document-folder-tile {
    min-height: 6rem;
}

.client-document-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: .7rem;
}

.client-document-file-card {
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    border: 1px solid #dce3ee;
    border-radius: .65rem;
    background: #fff;
    padding: .8rem;
    color: #111827;
    text-decoration: none;
}

.client-document-file-icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: .65rem;
    display: inline-grid;
    place-items: center;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.25rem;
}

.client-document-empty {
    grid-column: 1 / -1;
    min-height: 12rem;
    border: 1px dashed #dce3ee;
    border-radius: .85rem;
    background: #f8fafc;
    color: #64748b;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .35rem;
    text-align: center;
}

.client-document-empty i {
    font-size: 2rem;
}

.client-folder-tile i {
    color: #f59e0b;
    font-size: 1.35rem;
}

.client-upload-tile {
    border-style: dashed;
    color: var(--bs-primary);
    font-weight: 700;
}

.client-recent-files {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .55rem;
}

.client-file-chip {
    display: grid;
    gap: .2rem;
    min-width: 0;
    border: 1px solid #dce3ee;
    border-radius: .5rem;
    padding: .55rem;
    color: #111827;
    font-size: .75rem;
    text-decoration: none;
}

.client-file-chip i {
    color: #ef4444;
}

.client-activity-list,
.client-task-list {
    display: grid;
    gap: .95rem;
}

.client-activity-row {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr) auto;
    align-items: start;
    gap: .7rem;
}

.client-activity-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .45rem;
    display: inline-grid;
    place-items: center;
    background: #eff6ff;
    color: var(--bs-primary);
}

.client-task-card {
    min-height: 22rem;
}

.client-task-row {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr) auto;
    align-items: start;
    gap: .75rem;
    font-size: .84rem;
}

.client-mobile-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    padding: .75rem .75rem calc(.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(248, 249, 250, 0), rgba(248, 249, 250, .94) 28%, rgba(248, 249, 250, .98) 100%);
    backdrop-filter: blur(14px);
}

.client-mobile-actionbar-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4.25rem, 1fr));
    gap: .65rem;
}

.client-mobile-action {
    min-height: 4.1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    text-decoration: none;
    box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .08);
}

.client-mobile-action i {
    font-size: 1.1rem;
}

.client-mobile-action span {
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
}

.client-mobile-action:disabled {
    opacity: .55;
    box-shadow: none;
}

.client-mobile-action-primary {
    border-color: rgba(13, 110, 253, .24);
    background: var(--bs-primary);
    color: #fff;
}

.client-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
}

.client-utility-sidebar {
    position: sticky;
    top: 1rem;
}

.border-dashed {
    border-style: dashed !important;
}

.client-list-row:hover {
    background: var(--bs-tertiary-bg);
}

.client-list-avatar,
.client-agent-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.client-list-avatar {
    background: linear-gradient(135deg, rgba(13, 110, 253, .18), rgba(32, 201, 151, .18));
    color: var(--bs-primary-text-emphasis);
    font-weight: 700;
}

.client-agent-avatar {
    object-fit: cover;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.client-agent-avatar-fallback {
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    font-size: .75rem;
    font-weight: 700;
}

.client-agent-chip {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}

.client-agent-chip .small {
    min-width: 0;
}

.min-w-0 {
    min-width: 0;
}

.company-color-swatch {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .5rem;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, .12);
}

.company-logo-preview-shell {
    width: min(200px, 100%);
    min-height: 76px;
    padding: .75rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.company-logo-preview-fallback {
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--bs-body-color);
}

.company-favicon-preview-shell {
    width: 76px;
    height: 76px;
    border: 1px dashed var(--bs-border-color);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(16, 38, 31, .18));
    display: grid;
    place-items: center;
    overflow: hidden;
}

.company-favicon-preview-shell.has-image {
    background: transparent;
}

.company-favicon-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-favicon-preview-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-body-color);
}

.fallback-mailbox-hero {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, .08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-color: #dce3ee !important;
}

.fallback-mailbox-brand {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    border: 1px solid #dce3ee;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.fallback-mailbox-brand svg,
.fallback-mailbox-brand img {
    width: 2rem;
    height: 2rem;
    display: block;
}

.fallback-mailbox-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .45rem;
}

.fallback-mailbox-brand-text {
    font-size: .92rem;
    font-weight: 700;
    color: #1f2937;
}

.browser-favicon-preview-svg {
    display: block;
    width: 100%;
    height: auto;
}

.catalog-filter-pill {
    position: relative;
}

.catalog-filter-pill[open] {
    z-index: 1095;
}

.catalog-filter-pill summary {
    list-style: none;
}

.catalog-filter-pill summary::-webkit-details-marker {
    display: none;
}

.catalog-filter-popover {
    position: absolute;
    top: calc(100% + .6rem);
    right: 0;
    z-index: 1096;
    width: min(20rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .18);
    overflow-wrap: anywhere;
}

.catalog-filter-pill:first-child .catalog-filter-popover {
    left: 0;
    right: auto;
}

[data-catalog-filter]:not([open]) .catalog-filter-popover {
    display: none;
}

.policy-filter-scroll {
    max-height: 250px;
    overflow: auto;
}

.provider-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    flex: 0 0 auto;
}

.provider-logo-placeholder {
    display: grid;
    place-items: center;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

.provider-lines-list {
    max-height: 220px;
    overflow: auto;
}

.container-fluid-lg {
    width: 100%;
    margin: 0 auto;
}

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

    .settings-sidebar {
        position: static;
    }

    .client-summary-header,
    .client-utility-sidebar {
        position: static;
    }

    .client-detail-actions {
        justify-content: flex-start;
    }

    .client-record-side {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .client-record-hero {
        padding: 1rem;
    }

    .client-record-hero-top,
    .client-agent-stack-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .client-record-hero-main {
        grid-template-columns: 1fr;
    }

    .client-record-actions-toggle {
        width: 100%;
    }

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

    .client-overview-grid {
        grid-template-columns: 1fr;
    }

    .client-member-strip,
    .client-folder-grid,
    .client-recent-files {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-member-profile-modal .modal-body {
        padding-inline: 1rem;
    }

    .client-member-profile-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .client-member-profile-tabs .nav-link {
        white-space: nowrap;
    }

    .client-document-file-grid {
        grid-template-columns: 1fr;
    }

    .client-snapshot-list div {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .client-workspace {
        padding-bottom: 6.5rem;
    }
}

@media (min-width: 992px) {
    .client-mobile-actionbar {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .client-record-hero-main {
        grid-template-columns: 1fr;
    }

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

    .client-overview-grid {
        grid-template-columns: minmax(17rem, .85fr) minmax(32rem, 1.45fr);
    }

    .client-overview-right {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-member-strip,
    .client-folder-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.crm-timeline-item {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.crm-timeline-item::before {
    content: '';
    position: absolute;
    top: 0.35rem;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--bs-primary);
    border-radius: 999px;
}

.health-quote-modal {
    background:
        radial-gradient(circle at top center, rgba(124, 58, 237, .2), transparent 35%),
        radial-gradient(circle at bottom center, rgba(37, 99, 235, .14), transparent 42%),
        linear-gradient(180deg, #0a1020 0%, #0b1323 100%);
    color: #f8fafc;
}

.health-quote-shell {
    min-height: 100vh;
    padding: 3rem 2rem;
}

.health-quote-frame {
    max-width: 1380px;
    margin: 0 auto;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 2rem;
    padding: 2.5rem;
    background:
        linear-gradient(145deg, rgba(10, 18, 37, .96), rgba(8, 15, 29, .96)),
        #0b1323;
    box-shadow:
        0 2rem 5rem rgba(2, 6, 23, .45),
        0 0 0 1px rgba(129, 140, 248, .08) inset;
}

.health-quote-kicker {
    display: inline-flex;
    align-items: center;
    padding: .5rem 1rem;
    border-radius: .8rem;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(91, 33, 182, .22);
    border: 1px solid rgba(167, 139, 250, .45);
}

.health-quote-title {
    font-size: clamp(2.6rem, 5vw, 4.3rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
}

.health-quote-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: rgba(226, 232, 240, .72);
}

.health-quote-close {
    opacity: .9;
}

.health-quote-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .85rem 1.15rem;
    border-radius: 1rem;
    background: rgba(76, 29, 149, .2);
    border: 1px solid rgba(129, 140, 248, .3);
    color: #c4b5fd;
    font-weight: 600;
}

.health-quote-status {
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, .68);
    border: 1px solid rgba(148, 163, 184, .18);
    color: rgba(226, 232, 240, .78);
}

.health-quote-progress {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.health-quote-progress .btn {
    padding: .75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .24);
    color: rgba(226, 232, 240, .78);
    background: rgba(15, 23, 42, .5);
}

.health-quote-progress .btn.active,
.health-quote-progress .btn.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, rgba(67, 56, 202, .92), rgba(79, 70, 229, .92));
    border-color: rgba(129, 140, 248, .72);
}

.health-quote-panel {
    padding: 2rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(148, 163, 184, .25);
    background: linear-gradient(180deg, rgba(7, 14, 28, .72), rgba(10, 20, 38, .86));
    box-shadow: 0 1rem 2rem rgba(2, 6, 23, .2);
}

.health-quote-panel-title {
    margin-bottom: 1.8rem;
    font-size: clamp(1.7rem, 2.2vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.health-quote-label {
    margin-bottom: .7rem;
    color: rgba(226, 232, 240, .88);
    font-size: 1rem;
}

.health-quote-input {
    min-height: 4.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, .45);
    background: rgba(15, 23, 42, .68);
    color: #fff;
    font-size: 1.05rem;
    padding: 1rem 1.2rem;
}

.health-quote-input:focus {
    background: rgba(15, 23, 42, .8);
    color: #fff;
    border-color: rgba(129, 140, 248, .75);
    box-shadow: 0 0 0 .25rem rgba(99, 102, 241, .18);
}

.health-quote-button {
    min-height: 4.5rem;
    border: 0;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.health-quote-button-primary {
    color: #fff;
    background: linear-gradient(135deg, #3343d4, #4f5be8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.health-quote-button-success {
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #10b981);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}

.health-quote-check-grid {
    display: grid;
    gap: 1rem;
}

.health-quote-check {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 3.25rem;
    color: rgba(226, 232, 240, .86);
    font-size: 1rem;
}

.health-quote-check .form-check-input {
    width: 1.7rem;
    height: 1.7rem;
    margin-top: 0;
    border-radius: .45rem;
    border-color: rgba(148, 163, 184, .55);
    background-color: rgba(15, 23, 42, .7);
}

.health-quote-results-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.health-quote-back {
    color: #fff;
    padding: .75rem 0;
    border: 0;
    background: transparent;
    font-size: 1rem;
}

.health-quote-results-title {
    font-size: clamp(2rem, 3vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.health-quote-plan-count {
    display: inline-flex;
    align-items: center;
    padding: .7rem 1rem;
    border-radius: .9rem;
    border: 1px solid rgba(245, 158, 11, .45);
    background: rgba(146, 64, 14, .38);
    color: #fbbf24;
    font-weight: 800;
    text-transform: uppercase;
}

.health-quote-sort {
    min-height: 3.9rem;
    min-width: 13.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, .36);
    background: rgba(15, 23, 42, .8);
    color: #fff;
}

.quote-results-shell {
    min-height: 320px;
}

.health-quote-empty-state {
    background: rgba(113, 63, 18, .42);
    color: #fde68a;
}

.health-quote-line-badge {
    display: inline-flex;
    align-items: center;
    padding: .45rem .85rem;
    border-radius: .8rem;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .65);
    color: rgba(226, 232, 240, .84);
    font-size: .9rem;
}

.health-plan-card {
    height: 100%;
    border-radius: 1.6rem;
    border: 1px solid rgba(148, 163, 184, .38);
    background: linear-gradient(180deg, rgba(13, 25, 43, .92), rgba(9, 18, 30, .98));
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.health-plan-card:hover {
    border-color: rgba(251, 191, 36, .42);
    box-shadow: 0 1.2rem 2.4rem rgba(2, 6, 23, .34);
    transform: translateY(-2px);
}

.health-plan-card.is-selected {
    border-color: rgba(96, 165, 250, .88);
    box-shadow: 0 0 0 .18rem rgba(96, 165, 250, .14);
}

.health-plan-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

.health-plan-tier {
    margin-bottom: 1rem;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.health-plan-name {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 2vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
    color: #f8fafc;
}

.health-plan-meta {
    color: rgba(226, 232, 240, .62);
    font-size: 1rem;
}

.health-plan-divider {
    margin: 1.7rem 0;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.health-plan-price {
    font-size: clamp(2.5rem, 3vw, 3.9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: #fff;
}

.health-plan-price span {
    margin-left: .3rem;
    font-size: .45em;
    font-weight: 500;
    color: rgba(226, 232, 240, .72);
}

.health-plan-price-label {
    margin-top: .85rem;
    color: rgba(226, 232, 240, .58);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.health-plan-subsidy {
    color: #4ade80;
    font-size: 1rem;
}

.health-plan-subsidy strong {
    display: block;
    margin-top: .35rem;
    font-size: clamp(1.4rem, 1.8vw, 2rem);
    font-weight: 700;
}

.health-plan-action {
    min-height: 5rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.health-plan-action-primary {
    color: #fff;
    border: 1px solid rgba(96, 165, 250, .18);
    background: linear-gradient(180deg, rgba(37, 99, 235, .2), rgba(30, 64, 175, .28));
}

.health-plan-action-secondary {
    min-width: 10.5rem;
    color: #fff;
    border: 1px solid rgba(148, 163, 184, .65);
    background: transparent;
}

.health-quote-question-card {
    padding: 2.25rem;
    border-radius: 1.8rem;
    background: #fff;
    color: #18181b;
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, .14);
}

@media (max-width: 991.98px) {
    .health-quote-shell {
        padding: 1rem;
    }

    .health-quote-frame {
        padding: 1.2rem;
        border-radius: 1.4rem;
    }

    .health-quote-panel,
    .health-plan-card-inner {
        padding: 1.35rem;
    }

    .health-quote-results-header {
        align-items: flex-start;
    }

    .health-plan-action-secondary {
        min-width: 0;
    }
}

.health-quote-modal-content {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at top center, rgba(124, 58, 237, .12), transparent 35%),
        linear-gradient(180deg, #0b1323 0%, #0d172a 100%);
    color: #f8fafc;
}

.health-quote-modal-header {
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: rgba(10, 15, 28, .72);
}

.health-quote-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.health-quote-shell {
    min-height: auto;
    padding: 0;
}

.health-quote-frame {
    max-width: 100%;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 1.25rem;
    padding: 1.5rem;
    background:
        linear-gradient(145deg, rgba(10, 18, 37, .92), rgba(8, 15, 29, .94)),
        #0b1323;
    box-shadow: 0 1rem 2rem rgba(2, 6, 23, .22);
}

.health-quote-hero {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.health-quote-title {
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    margin-bottom: 0;
}

.health-quote-subtitle {
    color: rgba(226, 232, 240, .76);
}

.health-quote-chip {
    background: rgba(76, 29, 149, .16);
}

.health-quote-status {
    background: rgba(15, 23, 42, .58);
}

.health-quote-panel {
    border-radius: 1.25rem;
}

.health-plan-card {
    overflow: hidden;
}

.health-plan-action-secondary:hover,
.health-plan-action-secondary:focus,
.health-plan-action-primary:hover,
.health-plan-action-primary:focus,
.health-quote-button:hover,
.health-quote-button:focus {
    color: #fff;
}

@media (max-width: 991.98px) {
    .health-quote-modal-body {
        padding: 1rem;
    }

    .health-quote-frame {
        padding: 1rem;
        border-radius: 1rem;
    }
}

.policy-start-modal-content {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, .08), transparent 28%),
        linear-gradient(180deg, rgba(248, 249, 250, 1) 0%, rgba(233, 236, 239, .92) 100%);
}

.policy-start-modal-header,
.policy-start-modal-footer {
    padding: 1.25rem 1.5rem;
    border-color: rgba(33, 37, 41, .08);
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(12px);
}

.policy-start-modal-header {
    align-items: flex-start;
}

.policy-start-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.policy-start-modal-shell {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 1.5rem;
    min-height: 100%;
}

.policy-start-sidebar-card,
.policy-start-panel,
.policy-start-summary-card {
    border: 1px solid rgba(33, 37, 41, .08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 .9rem 2.4rem rgba(33, 37, 41, .08);
}

.policy-start-sidebar-card,
.policy-start-panel {
    padding: 1.25rem;
}

.policy-start-panel {
    min-height: calc(100vh - 13rem);
}

.policy-start-step-button {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem .9rem;
    border: 1px solid rgba(33, 37, 41, .08);
    border-radius: 1rem;
    background: #fff;
    text-align: left;
}

.policy-start-step-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, .1);
    color: #0d6efd;
    font-weight: 700;
}

.policy-start-step-button strong {
    font-size: .95rem;
    font-weight: 600;
}

.policy-start-step-button.active,
.policy-start-step-button.is-complete {
    border-color: rgba(13, 110, 253, .28);
}

.policy-start-step-button.active {
    background: rgba(13, 110, 253, .08);
}

.policy-start-step-button.is-complete span {
    background: rgba(25, 135, 84, .14);
    color: #198754;
}

.policy-start-kicker {
    margin-bottom: .75rem;
    color: #6c757d;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.policy-start-choice,
.policy-start-summary-card,
.policy-start-checklist {
    padding: 1rem 1.1rem;
}

.policy-start-choice {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(13, 110, 253, .22);
    border-radius: 1rem;
    background: rgba(13, 110, 253, .05);
}

.policy-start-checklist {
    display: grid;
    gap: .85rem;
    border: 1px solid rgba(33, 37, 41, .08);
    border-radius: 1rem;
    background: #fff;
}

.policy-start-action {
    min-width: 160px;
}

@media (max-width: 991.98px) {
    .policy-start-modal-body {
        padding: 1rem;
    }

    .policy-start-modal-shell {
        grid-template-columns: 1fr;
    }

    .policy-start-panel {
        min-height: auto;
    }
}
