:root {
    --zenisk-primary: #940b92;
    --zenisk-primary-dark: #5e2a8e;
    --zenisk-accent: #da0c81;
    --zenisk-secondary: #e95793;
    --zenisk-soft: #fff7fb;
    --zenisk-surface: #f8f6fb;
    --zenisk-border: #eadfea;
}

html, body {
    font-family: "Google Sans Flex", Roboto, "Segoe UI", Arial, sans-serif;
    color: #111827;
    overflow-x: hidden;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: .6rem 1.25rem .7rem;
    background: #fff3cd;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: .5rem;
    right: .75rem;
    cursor: pointer;
}

.navigation-busy-indicator {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgba(248, 246, 251, .58);
    backdrop-filter: blur(1px);
}

.navigation-busy-indicator.active {
    display: grid;
}

.navigation-busy-dialog {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 48px;
    padding: .65rem .9rem;
    border: 1px solid var(--zenisk-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(44, 20, 70, .16);
    color: #343b4a;
    font-size: .9rem;
    font-weight: 600;
}

.navigation-busy-spinner {
    width: 19px;
    height: 19px;
    border: 3px solid #eadfea;
    border-top-color: var(--zenisk-primary);
    border-radius: 50%;
    animation: navigation-busy-spin .72s linear infinite;
}

@keyframes navigation-busy-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .navigation-busy-spinner {
        animation-duration: 1.4s;
    }
}

a {
    color: var(--zenisk-accent);
}

h1[tabindex="-1"]:focus {
    outline: none;
}

.eyebrow {
    display: inline-block;
    color: #64748b;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .6rem;
    margin-bottom: .75rem;
}

.broker-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: .75rem;
    max-width: 560px;
}

.broker-action-grid .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.metric-card,
.panel,
.loading-panel {
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.metric-card {
    padding: .75rem;
    min-width: 0;
}

.metric-card span,
.metric-card small {
    display: block;
    color: #64748b;
}

.metric-card strong {
    display: block;
    margin: .18rem 0;
    font-size: 1.55rem;
    line-height: 1;
    overflow-wrap: anywhere;
    font-weight: 500;
}

.metric-card small {
    overflow-wrap: anywhere;
}

.metric-card.accent {
    border-color: #f7d48b;
    background: #fffaf0;
}

.dashboard-grid,
.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: .65rem;
}

.form-grid.narrow {
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
}

.form-grid.single {
    grid-template-columns: minmax(0, 1fr);
}

.panel {
    padding: .8rem;
    min-width: 0;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .65rem;
}

.panel-heading h2 {
    margin: .1rem 0 0;
    font-size: 1rem;
    font-weight: 500;
}

.panel-heading.compact {
    margin-top: .8rem;
}

.performance-panel {
    scroll-margin-top: 1rem;
}

.section-block {
    margin-top: 16px;
}

.compact-summary {
    margin-top: 14px;
}

.claim-list {
    display: grid;
    gap: 10px;
}

.claim-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #dde5f0;
    border-radius: 8px;
    background: #fff;
}

.claim-card small,
.claim-card p {
    margin: 0;
}

.claim-update {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 220px;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.document-chip-list,
.note-list,
.claim-followup {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
    align-items: center;
}

.document-chip {
    border: 1px solid #e8b8d5;
    border-radius: 999px;
    color: var(--zenisk-primary);
    font-size: .78rem;
    padding: .16rem .5rem;
    text-decoration: none;
}

.client-details-panel {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    margin: 10px 0 14px;
    padding: 12px;
}

.client-details-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.client-details-grid > div,
.client-kyc-downloads {
    display: grid;
    gap: 2px;
}

.client-detail-address {
    grid-column: 1 / -1;
}

.detail-label {
    color: #53627c;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.client-kyc-downloads {
    border-top: 1px solid #e3e8f0;
    margin-top: 12px;
    padding-top: 10px;
}

.posp-toolbar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.compact-upload {
    min-height: 58px;
    min-width: 190px;
    padding: 8px 10px;
}

.claim-followup .form-control,
.claim-followup .form-select {
    max-width: 220px;
}

.compact-form {
    margin-top: 10px;
}

.link-button {
    display: inline-flex;
    margin-top: 12px;
}

.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 1.5rem);
    padding: clamp(1rem, 5vh, 3rem) 1rem;
}

.public-workspace {
    min-height: 100vh;
    padding: .75rem;
    background: var(--zenisk-surface);
}

.public-workspace:has(.login-shell),
.public-workspace:has(.login-wrap) {
    background:
        linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .82)),
        url('/zenisk/assets/hero_bg.png') center / cover fixed;
}

.public-workspace > .panel {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.login-card {
    width: min(100%, 520px);
    padding: 1rem;
    border: 1px solid var(--zenisk-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(94, 42, 142, .12);
}

.login-card h1 {
    margin: .7rem 0 .25rem;
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 600;
}

.login-card > h1,
.login-card > .muted-copy,
.login-card > .auth-card-footer,
.login-card > .customer-login-switch {
    text-align: center;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.login-card > .login-brand {
    display: flex;
    justify-content: center;
}

.registration-required-message {
    width: 100%;
    margin: .8rem 0;
    padding: .75rem 1rem;
    border: 1px solid #dc6b63;
    border-radius: 8px;
    background: #fff3f2;
    color: #9f231b;
    text-align: center;
    font-weight: 600;
}

.registration-required-message a {
    color: #7d1913;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-brand-logo {
    height: 48px;
    object-fit: contain;
    width: 104px;
}

.login-brand small {
    display: block;
    color: #536179;
    font-size: .78rem;
}

.customer-login-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    margin-top: .65rem;
    max-width: none;
}

.customer-login-form .btn {
    min-width: 96px;
    min-height: 34px;
    padding: .35rem .7rem;
    justify-self: center;
    white-space: nowrap;
}

.customer-registration-shell {
    justify-content: center;
    padding-top: clamp(1rem, 6vh, 4rem);
}

.auth-card-footer {
    margin-top: .55rem;
    text-align: center;
}

.auth-card-copyright {
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--zenisk-border);
    color: #697386;
    font-size: .78rem;
}

.zenisk-login-brand img {
    width: 104px;
    height: 48px;
    object-fit: contain;
}

.customer-registration-form {
    display: grid;
    gap: .7rem;
    margin-top: .85rem;
}

.customer-registration-form .btn,
.customer-request-form .btn {
    width: fit-content;
    min-height: 36px;
    padding: .4rem .85rem;
}

.customer-login-switch {
    margin: 1rem 0 0;
    color: #536179;
    font-size: .9rem;
}

.customer-portal-shell {
    min-height: calc(100vh - 1.5rem);
}

.customer-portal-heading {
    align-items: center;
}

.customer-portal-heading h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.customer-logout {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.customer-logout img {
    display: none;
    width: 17px;
    height: 17px;
    filter: invert(19%) sepia(55%) saturate(2857%) hue-rotate(280deg) brightness(82%);
}

.customer-dashboard-intro {
    margin: 1.35rem auto 1.1rem;
    max-width: 720px;
    text-align: center;
}

.customer-dashboard-intro h1 {
    color: var(--zenisk-primary);
    font-size: 1.85rem;
    font-weight: 650;
    margin: .25rem 0 .35rem;
}

.customer-dashboard-intro p {
    color: #5f6673;
    margin: 0;
}

.customer-portal-tiles {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1040px;
}

.customer-portal-tile {
    background: #fff;
    border: 1px solid var(--zenisk-border);
    border-radius: 8px;
    color: #202838;
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    min-height: 190px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.customer-portal-tile:hover,
.customer-portal-tile:focus-visible {
    border-color: var(--zenisk-secondary);
    box-shadow: 0 14px 30px rgba(94, 42, 142, .12);
    color: #202838;
    transform: translateY(-2px);
}

.customer-tile-image {
    background: var(--zenisk-soft);
    display: grid;
    min-width: 0;
    place-items: center;
}

.customer-tile-image img {
    height: 100%;
    object-fit: cover;
    opacity: .82;
    width: 100%;
}

.policies-tile .customer-tile-image img {
    object-fit: contain;
    padding: 12px;
}

.claims-tile .customer-tile-image img {
    height: 112px;
    object-fit: contain;
    padding: 10px;
    width: 112px;
}

.customer-tile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 1.15rem;
}

.customer-tile-kicker {
    color: var(--zenisk-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.customer-tile-content strong {
    color: var(--zenisk-primary-dark);
    font-size: 1.3rem;
    line-height: 1.2;
    margin: .2rem 0 .35rem;
}

.customer-tile-content small {
    color: #5f6673;
    font-size: .85rem;
    line-height: 1.45;
}

.customer-tile-link {
    color: var(--zenisk-primary);
    font-size: .82rem;
    font-weight: 650;
    margin-top: .75rem;
}

.customer-section-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #e5e7eb;
}

.customer-section-tab {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 34px;
    padding: .35rem .55rem;
    border: 0;
    border-radius: 6px;
    color: #5b6474;
    font-size: .82rem;
    font-weight: 550;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.customer-section-tab img {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    filter: invert(35%) sepia(8%) saturate(820%) hue-rotate(179deg) brightness(93%);
}

.customer-section-tab:hover,
.customer-section-tab:focus-visible {
    background: #f5eef9;
    color: var(--zenisk-primary-dark);
}

.customer-section-tab.active {
    background: #f1e8f8;
    color: var(--zenisk-primary-dark);
    font-weight: 650;
}

.customer-section-tab:hover img,
.customer-section-tab:focus-visible img,
.customer-section-tab.active img {
    filter: invert(19%) sepia(55%) saturate(2857%) hue-rotate(280deg) brightness(82%);
}

.customer-mobile-action-bar {
    display: none;
}

.customer-request-section {
    max-width: 920px;
    margin-right: auto;
    margin-left: auto;
}

.customer-request-section .section-heading-row {
    justify-content: center;
    text-align: center;
}

.customer-request-section .section-heading-row > div {
    width: 100%;
    max-width: none;
}

.customer-request-form {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(300px, 1.3fr);
    align-items: start;
    gap: .7rem;
    margin-top: .75rem;
    min-width: 0;
}

.customer-product-picker,
.customer-request-notes {
    grid-column: 1 / -1;
    min-width: 0;
}

.customer-product-picker > .form-label {
    display: block;
    text-align: center;
}

.customer-product-value {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.customer-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .3rem;
    min-width: 0;
    width: 100%;
}

.customer-product-tile {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: .6rem;
    min-height: 82px;
    padding: .65rem .7rem;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #fff;
    color: #202838;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.customer-product-tile:hover,
.customer-product-tile:focus-visible {
    border-color: var(--zenisk-secondary);
    box-shadow: 0 7px 18px rgba(94, 42, 142, .1);
    transform: translateY(-1px);
}

.customer-product-tile.selected {
    border-color: var(--zenisk-primary);
    background: #fcf7ff;
    box-shadow: 0 0 0 2px rgba(148, 11, 146, .1);
}

.customer-product-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 7px;
    background: #f1e8f8;
    color: var(--zenisk-primary-dark);
}

.customer-product-icon img {
    width: 18px;
    height: 18px;
    filter: invert(19%) sepia(55%) saturate(2857%) hue-rotate(280deg) brightness(82%);
}

.customer-product-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .12rem;
}

.customer-product-copy strong {
    font-size: .87rem;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.customer-product-copy small {
    color: #667085;
    font-size: .7rem;
    line-height: 1.2;
}

.customer-product-check {
    position: absolute;
    top: .35rem;
    right: .4rem;
    display: none;
    color: var(--zenisk-primary);
    font-size: .8rem;
    font-weight: 800;
}

.customer-product-tile.selected .customer-product-check {
    display: block;
}

.customer-request-followup {
    grid-column: 1 / -1;
    display: grid;
    gap: .65rem;
    scroll-margin-top: 1rem;
    padding: .75rem;
    border: 1px solid #e0d5ea;
    border-radius: 8px;
    background: #fcfaff;
    min-width: 0;
    box-sizing: border-box;
}

.customer-request-followup,
.customer-request-history {
    width: min(100%, 720px);
    justify-self: center;
}

.customer-selected-product {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}

.customer-selected-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.customer-selected-product > span:last-child {
    display: flex;
    flex-direction: column;
}

.customer-selected-product small {
    color: #667085;
    font-size: .7rem;
}

.customer-selected-product strong {
    color: var(--zenisk-primary-dark);
    font-size: .92rem;
}

.customer-request-documents {
    display: grid;
    gap: .3rem;
    min-width: 0;
}

.customer-request-documents input[type="file"] {
    max-width: 100%;
}

.customer-request-documents > small {
    color: #667085;
    font-size: .73rem;
}

.customer-document-list {
    display: grid;
    gap: .35rem;
    margin-top: .2rem;
}

.customer-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    padding: .45rem .5rem;
    border: 1px solid #e2e5eb;
    border-radius: 7px;
    background: #fff;
}

.customer-document-item > span {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 0 .4rem;
    min-width: 0;
}

.customer-document-item img {
    grid-row: 1 / 3;
    width: 17px;
    height: 17px;
    filter: invert(19%) sepia(55%) saturate(2857%) hue-rotate(280deg) brightness(82%);
}

.customer-document-item strong,
.customer-document-item small {
    overflow-wrap: anywhere;
}

.customer-document-item strong {
    font-size: .8rem;
    font-weight: 600;
}

.customer-document-item small {
    color: #667085;
    font-size: .68rem;
}

.customer-request-submit {
    grid-column: 1 / -1;
    text-align: center;
}

.customer-request-history {
    margin-top: 1.25rem;
}

.customer-request-history h4 {
    margin: 0 0 .5rem;
    font-size: 1rem;
}

.optional-label {
    color: #667085;
    font-size: .78rem;
    font-weight: 400;
}

.customer-request-context {
    display: grid;
    grid-template-columns: minmax(210px, .35fr) 1fr;
    gap: .75rem;
    margin: 0 .75rem .65rem;
    padding: .7rem .8rem;
    border-left: 4px solid var(--zenisk-primary);
    background: var(--zenisk-soft);
}

.customer-request-context strong {
    display: block;
}

.customer-request-context p {
    margin: 0;
    white-space: pre-wrap;
}

.customer-claim-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem .7rem;
    margin-top: .65rem;
}

.customer-claim-form .full-span {
    grid-column: 1 / -1;
}

.customer-claim-form .btn {
    min-width: 110px;
    min-height: 34px;
    padding: .35rem .75rem;
}

.action-cell {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.report-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.report-hero h1 {
    margin: .1rem 0 0;
    font-size: 1.35rem;
    font-weight: 600;
}

.performance-summary {
    margin-bottom: .75rem;
}

.performance-summary-heading {
    margin: .1rem 0 .55rem;
}

.performance-summary-heading h2 {
    margin: .12rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.performance-summary-heading p {
    margin: .2rem 0 0;
}

.monthly-performance-heading {
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid #e6e8ef;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: 96px 150px minmax(180px, 260px) auto;
    align-items: end;
    gap: .5rem;
}

.compact-report-grid {
    margin-top: -.15rem;
}

.report-table-grid {
    margin-top: .75rem;
}

.performance-filter,
.compact-filter {
    display: flex;
    align-items: end;
    gap: .45rem;
}

.performance-filter .form-control {
    min-width: 230px;
}

.compact-filter .form-control {
    width: 96px;
}

.performance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin-bottom: .65rem;
}

.performance-kpi {
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    padding: .6rem .7rem;
    background: #f8fafc;
}

.performance-kpi span {
    display: block;
    color: #64748b;
    font-size: .78rem;
}

.performance-kpi strong {
    display: block;
    margin-top: .1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.performance-kpi.warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.performance-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.chart-card {
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    padding: .65rem;
    min-width: 0;
}

.chart-card h3 {
    margin: 0 0 .35rem;
    font-size: .95rem;
    font-weight: 600;
}

.chart-host {
    min-height: 230px;
}

.panel-disabled {
    background: #f8fafc;
}

.table {
    margin-bottom: 0;
}

.table th {
    color: #64748b;
    font-size: .7rem;
    text-transform: uppercase;
}

.table th,
.table td {
    padding: .42rem .5rem;
}

.form-label {
    margin-bottom: .25rem;
    font-weight: 500;
    color: #334155;
    font-size: .86rem;
}

.form-control {
    border-color: #d9dee8;
    border-radius: 7px;
    padding: .38rem .55rem;
    font-size: .92rem;
}

.form-control-sm {
    min-height: 30px;
    padding: .24rem .45rem;
    font-size: .82rem;
}

.form-control:focus {
    border-color: var(--zenisk-primary);
    box-shadow: 0 0 0 .2rem rgba(148, 11, 146, .12);
}

.form-select:focus {
    border-color: var(--zenisk-primary);
    box-shadow: 0 0 0 .2rem rgba(148, 11, 146, .12);
}

.clearable-input {
    position: relative;
}

.clearable-input .form-control {
    padding-right: 2.25rem;
}

.clear-input-button {
    position: absolute;
    top: 50%;
    right: .4rem;
    width: 1.45rem;
    height: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 1rem;
    line-height: 1;
    transform: translateY(-50%);
}

.clear-input-button:hover,
.clear-input-button:focus {
    background: #dbe4f0;
    color: #0f172a;
}

.btn {
    border-radius: 7px;
    font-weight: 400;
}

.btn:not(.btn-sm) {
    padding: .42rem .75rem;
}

.btn-sm {
    padding: .25rem .5rem;
    font-size: .82rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--zenisk-primary), var(--zenisk-accent));
    border-color: var(--zenisk-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--zenisk-primary-dark);
    border-color: var(--zenisk-primary-dark);
}

.btn-outline-primary {
    border-color: var(--zenisk-primary);
    color: var(--zenisk-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
    background: var(--zenisk-primary);
    border-color: var(--zenisk-primary);
    color: #fff;
}

.status-message {
    display: inline-flex;
    margin-left: .5rem;
    color: #157347;
    font-weight: 700;
}

.form-action-message {
    display: flex;
    margin: .55rem 0 .35rem;
}

.validation-errors,
.validation-summary-errors {
    margin: .55rem 0 .35rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: .14rem .42rem;
    border-radius: 999px;
    background: #eefaf3;
    color: #157347;
    font-size: .72rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.disabled {
    background: #f3f4f6;
    color: #64748b;
}

.status-badge.warning {
    background: #fff7ed;
    color: #b45309;
}

.status-badge.declined {
    background: #fef2f2;
    color: #b91c1c;
}

.table-title,
.table-subtitle {
    display: block;
}

.table-title {
    font-weight: 500;
}

.table-subtitle {
    margin-top: .08rem;
    color: #64748b;
    line-height: 1.35;
}

.entity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    min-width: 220px;
}

.table-actions .form-control-sm {
    width: min(100%, 220px);
}

.selected-row {
    background: #eef6ff;
}

.comparison-group-row td {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .82rem;
    letter-spacing: .02em;
    padding-top: .45rem;
    padding-bottom: .45rem;
}

.coverage-row-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
}

.coverage-row-toggle input {
    width: 1rem;
    height: 1rem;
}

.coverage-hidden-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .55rem;
    color: #64748b;
    font-size: .86rem;
}

.status-message.error-message {
    color: #b42318;
}

.comparison-version-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #64748b;
    font-size: .86rem;
    white-space: nowrap;
}

.comparison-version-toggle input {
    margin: 0;
}

.quote-header {
    margin-bottom: .65rem;
    padding: .8rem;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
}

.quote-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
}

.quote-header h2 {
    margin: .08rem 0 .25rem;
    font-size: 1.12rem;
    font-weight: 500;
}

.queue-filter {
    width: min(100%, 240px);
}

.lob-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.lob-card {
    min-width: 0;
    padding: .75rem;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.lob-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .55rem;
}

.lob-card h3 {
    margin: .2rem 0 0;
    font-size: .98rem;
    font-weight: 500;
}

.lob-code {
    color: #64748b;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
}

.lob-group-title {
    margin: .65rem 0 .3rem;
    color: #334155;
    font-size: .86rem;
    font-weight: 500;
}

.subcategory-list {
    display: grid;
    gap: .3rem;
}

.subcategory-row {
    width: 100%;
    min-height: 38px;
    padding: .45rem .55rem;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    color: #111827;
}

.subcategory-row:hover {
    background: #eef4ff;
    border-color: #bcd2ff;
}

.search-result-list {
    display: grid;
    gap: .3rem;
    margin-top: .5rem;
    max-height: 410px;
    overflow: auto;
}

.search-result-row {
    width: 100%;
    min-height: 42px;
    padding: .45rem .55rem;
    text-align: left;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    color: #111827;
}

.search-result-row:hover,
.search-result-row.selected {
    background: #eef4ff;
    border-color: #9dbdff;
}

.search-result-row span,
.search-result-row small {
    display: block;
}

.search-result-row span {
    font-weight: 500;
}

.search-result-row small {
    margin-top: .15rem;
    color: #64748b;
    line-height: 1.35;
}

.selected-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .65rem;
    padding: .55rem;
    border: 1px solid #dbe8ff;
    border-radius: 8px;
    background: #f5f9ff;
}

.selected-summary span {
    font-weight: 500;
}

.selected-summary small {
    color: #64748b;
    white-space: nowrap;
}

.quote-ready-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-top: .65rem;
}

.quote-ready-panel h2 {
    margin: .15rem 0 .25rem;
    font-size: 1rem;
    font-weight: 500;
}

.quote-detail-panel,
.recent-quotes-panel {
    margin-top: .65rem;
}

.quote-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: .45rem;
}

.quote-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .42rem;
    padding: .55rem .65rem;
}

.quote-summary-card strong {
    margin: 0;
    font-size: 1.3rem;
    text-align: right;
}

.summary-title {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    color: #334155;
    font-size: .78rem;
    font-weight: 500;
}

.summary-title span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 6px;
    background: var(--zenisk-soft);
    color: var(--zenisk-primary);
}

.summary-icon svg {
    width: .8rem;
    height: .8rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quote-table-tools {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .45rem;
    margin-bottom: .5rem;
}

.quote-search {
    width: min(100%, 360px);
}

.quote-page-size {
    width: 110px;
}

.table-filter {
    min-width: 120px;
    margin-top: .22rem;
    text-transform: none;
}

.quote-empty-filter {
    margin: .55rem 0 0;
}

.quote-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .45rem;
    margin-top: .55rem;
    color: #64748b;
    font-size: .9rem;
}

.pagination-actions {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.quote-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.quote-field {
    min-width: 0;
}

.quote-field-wide {
    grid-column: 1 / -1;
}

.quote-field-section {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .65rem;
    margin-top: .25rem;
    padding: .55rem 0 .3rem;
    border-bottom: 1px solid #e6e8ef;
}

.quote-field-section span {
    color: #0f172a;
    font-size: .92rem;
    font-weight: 500;
}

.quote-field-section small {
    max-width: 520px;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.35;
    text-align: right;
}

.field-help {
    display: block;
    margin-top: .15rem;
    color: #64748b;
    line-height: 1.35;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem;
}

.option-check {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    min-height: 34px;
    padding: .42rem .5rem;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    line-height: 1.3;
}

.option-check input {
    margin-top: .15rem;
}

.insurance-submit-panel {
    margin-top: .65rem;
}

.additional-document-upload {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: .65rem;
    margin-bottom: .75rem;
}

.additional-document-upload .btn {
    min-height: 38px;
    white-space: nowrap;
}

.rfq-email-editor-block {
    margin-top: .75rem;
}

.html-editor-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: .4rem;
}

.html-editor-toolbar .btn-sm {
    min-width: 34px;
}

.rfq-email-body-editor {
    min-height: 260px;
    max-height: 520px;
    overflow: auto;
    line-height: 1.45;
    background: #fff;
}

.rfq-email-body-editor[contenteditable="False"],
.rfq-email-body-editor[contenteditable="false"] {
    background: #f8fafc;
    color: #64748b;
}

.rfq-email-body-editor p {
    margin: 0 0 .6rem;
}

.rfq-email-body-editor table {
    width: 100%;
    margin: .45rem 0 .65rem;
    border-collapse: collapse;
}

.rfq-email-body-editor th,
.rfq-email-body-editor td {
    padding: .35rem .45rem;
    border: 1px solid #cbd5e1;
    vertical-align: top;
}

.rfq-email-body-editor th {
    background: #f8fafc;
    font-weight: 600;
}

.insurer-response-panel {
    margin-top: .65rem;
}

.rfq-subject-card {
    display: grid;
    gap: .25rem;
    margin-bottom: .65rem;
    padding: .55rem .65rem;
    border: 1px solid #dbe8ff;
    border-radius: 8px;
    background: #f8fbff;
}

.rfq-subject-card span {
    color: #64748b;
    font-size: .76rem;
}

.rfq-subject-card strong {
    color: #0f172a;
    font-size: .9rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.rfq-document-card {
    display: grid;
    gap: .55rem;
    margin-bottom: .75rem;
    padding: .65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.rfq-document-card h3 {
    margin: .1rem 0;
    font-size: .98rem;
}

.rfq-document-list {
    display: grid;
    gap: .4rem;
}

.rfq-document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .48rem .55rem;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
}

.rfq-document-row div {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

.rfq-document-row strong {
    font-size: .9rem;
    font-weight: 600;
}

.rfq-document-row small {
    color: #64748b;
    font-size: .76rem;
    overflow-wrap: anywhere;
}

.rfq-document-row > span {
    flex: 0 0 auto;
    padding: .18rem .45rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.rfq-document-row.is-available > span {
    color: #047857;
    background: #dcfce7;
}

.rfq-document-row.is-missing > span {
    color: #b45309;
    background: #fef3c7;
}

.comparison-table-wrap {
    margin-bottom: .65rem;
}

.comparison-table th span,
.comparison-table th small {
    display: block;
}

.comparison-table th {
    color: #0f172a;
    font-size: .86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.comparison-table th:first-child {
    font-size: .88rem;
}

.comparison-table th small {
    margin-top: .15rem;
    color: #64748b;
    font-size: .72rem;
    font-weight: 500;
    text-transform: none;
}

.comparison-table td,
.comparison-table th {
    min-width: 118px;
    padding: .36rem .5rem;
}

.comparison-table td {
    font-size: .82rem;
    line-height: 1.25;
}

.comparison-table tbody tr:nth-child(-n + 5) td {
    font-size: .9rem;
    font-weight: 700;
}

.comparison-table td:first-child,
.comparison-table th:first-child {
    min-width: 180px;
    color: #0f172a;
    font-weight: 400;
}

.comparison-table th:first-child,
.comparison-table tbody tr:nth-child(-n + 5) td:first-child {
    font-weight: 700;
}

.comparison-group-row td:first-child {
    font-weight: 800;
}

.inbound-review-panel {
    margin-top: .8rem;
}

.inbound-email-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .55rem;
    margin-bottom: .65rem;
}

.inbound-email-grid p,
.email-preview p,
.review-note p {
    margin-bottom: 0;
}

.email-preview,
.review-note {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: .65rem;
    margin-bottom: .65rem;
    background: #f8fafc;
}

.coverage-symbol {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 600;
}

.coverage-symbol.included {
    color: #157347;
    background: #eaf8ef;
}

.coverage-symbol.excluded {
    color: #b42318;
    background: #fef0f0;
}

.coverage-text-with-icon {
    display: inline-flex;
    align-items: flex-start;
    gap: .35rem;
}

.coverage-text-with-icon .coverage-symbol {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    font-size: .72rem;
    line-height: 1;
}

.coverage-symbol.conditional {
    color: #8a5a00;
    background: #fff6db;
}

.coverage-editing-label {
    color: #166534 !important;
    font-weight: 700 !important;
}

.coverage-inline-editor {
    display: inline-flex;
    gap: .28rem;
}

.coverage-edit-button {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
}

.coverage-edit-button.included {
    color: #157347;
}

.coverage-edit-button.excluded {
    color: #b42318;
}

.coverage-edit-button.included.is-selected {
    border-color: #86efac;
    background: #dcfce7;
}

.coverage-edit-button.excluded.is-selected {
    border-color: #fecaca;
    background: #fee2e2;
}

.coverage-edit-button:focus-visible {
    outline: 2px solid var(--zenisk-primary);
    outline-offset: 2px;
}

.coverage-inline-detail {
    display: block;
    max-width: 18rem;
    margin-top: .22rem;
    color: #475569;
    font-size: .72rem;
    line-height: 1.25;
}

.coverage-text {
    display: inline-block;
    max-width: 18rem;
    color: #0f172a;
    font-size: .78rem;
    line-height: 1.25;
}

.coverage-note {
    color: #475569;
}

.coverage-valid-existing {
    color: #0f766e;
    font-weight: 700;
}

.manual-upload-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .75rem;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
}

.ai-reading-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(2px);
}

.ai-reading-dialog {
    display: grid;
    justify-items: center;
    gap: .75rem;
    width: min(92vw, 380px);
    padding: 1.1rem;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .2);
    text-align: center;
}

.ai-reading-dialog strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
}

.ai-reading-dialog p {
    margin: .2rem 0 0;
    color: #475569;
    font-size: .88rem;
}

.ai-reading-spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #f3d6e7;
    border-top-color: var(--zenisk-primary);
    border-radius: 50%;
    animation: ai-reading-spin .8s linear infinite;
}

.ai-reading-bar {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
}

.ai-reading-bar span {
    position: absolute;
    inset-block: 0;
    left: -35%;
    width: 35%;
    border-radius: inherit;
    background: var(--zenisk-primary);
    animation: ai-reading-progress 1.25s ease-in-out infinite;
}

@keyframes ai-reading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ai-reading-progress {
    0% {
        left: -35%;
    }

    100% {
        left: 100%;
    }
}

.button-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: .45rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -.14em;
    animation: ai-reading-spin .75s linear infinite;
}

.btn[aria-busy="True"],
.btn[aria-busy="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .1rem;
}

.loading-panel {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.loading-panel::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e8b8d5;
    border-top-color: var(--zenisk-primary);
    border-radius: 50%;
    animation: ai-reading-spin .75s linear infinite;
}

.manual-upload-panel > div {
    min-width: 0;
}

.coverage-decision-grid {
    display: grid;
    gap: .35rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.coverage-decision-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    align-items: center;
    gap: .45rem;
    padding: .38rem .45rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.coverage-decision-check {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    margin: 0;
    font-size: .84rem;
    font-weight: 600;
}

.coverage-decision-check span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-hint {
    display: block;
    margin-top: .25rem;
    color: #64748b;
    font-size: .82rem;
}

@media (max-width: 640px) {
    .manual-upload-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .coverage-decision-row {
        grid-template-columns: 1fr;
    }

    .response-email-audit-row {
        grid-template-columns: 1fr;
    }

    .response-document-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .response-document-row small {
        margin-left: 0;
    }
}

.response-action-list {
    display: grid;
    gap: .35rem;
    margin-bottom: .65rem;
}

.response-action-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .55rem;
    border: 1px solid #edf0f6;
    border-radius: 8px;
}

.response-action-row span {
    font-weight: 500;
}

.response-action-row small {
    color: #64748b;
    margin-right: auto;
}

.response-audit-panel {
    margin-top: .65rem;
}

.response-audit-block {
    display: grid;
    gap: .45rem;
    margin-top: .55rem;
}

.response-document-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.response-document-row small {
    margin-left: auto;
}

.response-email-audit-list {
    display: grid;
    gap: .5rem;
}

.response-email-audit-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: .65rem;
    padding: .55rem;
    border: 1px solid #edf0f6;
    border-radius: 8px;
    background: #fff;
}

.response-email-audit-row span,
.response-email-audit-row small {
    display: block;
}

.response-email-audit-row small {
    color: #64748b;
    overflow-wrap: anywhere;
}

.response-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

.response-attachment-list.compact {
    min-width: 180px;
}

.response-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    padding: .18rem .28rem .18rem .45rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
}

.response-attachment-chip span {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.response-attachment-chip small {
    color: #64748b;
    font-size: .72rem;
    white-space: nowrap;
}

.decision-panel {
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid #edf0f6;
}

.policy-login-upload-list {
    display: grid;
    gap: .55rem;
    margin-top: .6rem;
}

.policy-login-upload-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(220px, 1.6fr);
    align-items: center;
    gap: .6rem;
    padding: .55rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.policy-login-upload-row strong,
.policy-login-upload-row small {
    display: block;
}

.policy-login-upload-row small {
    color: #64748b;
    font-size: .76rem;
}

.policy-login-upload-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
}

.office-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin-bottom: .65rem;
}

.office-check {
    min-height: 54px;
}

.office-check span,
.office-check small,
.office-check strong {
    display: block;
}

.office-check strong {
    color: #0f172a;
    font-weight: 500;
}

.office-check small {
    margin-top: .2rem;
    color: #64748b;
}

.office-recipient-list {
    display: grid;
    gap: .1rem;
    margin-top: .3rem;
}

.office-recipient-list small {
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.member-empty-state {
    padding: .55rem .65rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    background: #f8fafc;
}

.fire-route-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .4rem;
    padding: .5rem .6rem;
    border: 1px solid #d7e4f7;
    border-radius: 8px;
    background: #f8fbff;
}

.fire-route-card span {
    color: #64748b;
    font-size: .76rem;
}

.fire-route-card strong {
    color: #174ea6;
    font-size: .84rem;
    font-weight: 500;
    text-align: right;
}

.insured-member-list {
    display: grid;
    gap: .85rem;
}

.insured-member-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: .85rem;
    padding: .85rem;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    background: #fff;
}

.insured-member-title {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.insured-member-title span {
    color: #0f172a;
    font-size: .92rem;
    font-weight: 500;
}

.insured-member-title small,
.member-input span {
    color: #64748b;
    font-size: .76rem;
}

.insured-member-fields {
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) repeat(5, minmax(110px, 1fr));
    gap: .65rem;
}

.member-input {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.quote-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}

.quote-button-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    gap: .45rem;
}

.quote-button-row .btn {
    white-space: nowrap;
}

.kyc-panel {
    margin-top: .75rem;
    padding-top: .65rem;
    border-top: 1px solid #edf0f6;
}

.kyc-list {
    margin-top: .65rem;
}

.subcategory-row span,
.subcategory-row small {
    display: block;
}

.subcategory-row span {
    font-weight: 500;
}

.subcategory-row small {
    margin-top: .15rem;
    color: #64748b;
    line-height: 1.35;
}

.chart-list {
    display: grid;
    gap: .6rem;
}

.chart-row {
    display: grid;
    gap: .4rem;
}

.chart-row span,
.company-row span {
    font-weight: 500;
}

.bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--zenisk-primary), var(--zenisk-secondary));
}

.company-list {
    display: grid;
    gap: .4rem;
}

.company-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    padding: .5rem 0;
    border-bottom: 1px solid #edf0f6;
}

.company-row small {
    color: #64748b;
    white-space: nowrap;
}

.policy-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 420px) auto;
    align-items: end;
    gap: .75rem;
    margin-bottom: .75rem;
}

.policy-toolbar-stat {
    justify-self: end;
    display: grid;
    min-width: 92px;
    padding: .5rem .65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.policy-toolbar-stat span {
    font-size: 1.25rem;
    font-weight: 700;
}

.policy-toolbar-stat small {
    color: var(--muted);
}

.policy-table td {
    vertical-align: top;
}

.policy-ai-review {
    display: grid;
    gap: .65rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}

.contact-editor {
    display: grid;
    gap: .5rem;
    padding: .65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.contact-editor-heading,
.contact-editor-row {
    display: grid;
    gap: .5rem;
    align-items: center;
}

.contact-editor-heading {
    grid-template-columns: minmax(0, 1fr) auto;
}

.contact-editor-heading h3 {
    margin: .1rem 0 0;
    font-size: 1rem;
}

.contact-editor-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto auto;
}

.contact-static-field {
    display: flex;
    align-items: center;
    color: #64748b;
    background: #eef2f7;
}

.contact-cc-check {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}

.insurance-office-list {
    display: grid;
    gap: .65rem;
}

.insurance-office-page {
    display: grid;
    gap: .65rem;
    width: 100%;
}

.insurance-office-page.editing {
    grid-template-columns: minmax(0, 1fr);
}

.insurance-office-page.editing > .panel:first-child {
    max-width: 980px;
}

.insurance-office-card {
    display: grid;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.insurance-office-card-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.insurance-office-card-main h3 {
    margin: .1rem 0 .2rem;
    font-size: 1rem;
}

.insurance-office-card-main p,
.insurance-office-address p {
    margin: 0;
    color: #475569;
}

.insurance-office-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
}

.insurance-office-details span,
.insurance-office-address span {
    display: block;
    color: #64748b;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.insurance-office-details strong {
    display: block;
    margin-top: .15rem;
    color: #0f172a;
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.insurance-office-contact-block div {
    margin-top: .2rem;
    color: #0f172a;
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.insurance-office-contact-block small {
    color: #64748b;
    overflow-wrap: anywhere;
}

.insurance-office-address {
    padding-top: .55rem;
    border-top: 1px solid #edf0f6;
}

.insurance-office-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.draft-option-list {
    display: grid;
    gap: .4rem;
}

.draft-option-line {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    justify-content: space-between;
}

.loading-panel {
    padding: .9rem;
    color: #64748b;
}

.muted-copy {
    color: #475569;
    line-height: 1.35;
    margin-bottom: 0;
}

.motor-ai-panel,
.health-ai-panel {
    display: grid;
    gap: .65rem;
    margin-bottom: .75rem;
    padding: .65rem;
    border: 1px solid #d8e2f0;
    border-radius: 8px;
    background: #f8fbff;
}

.quote-document-panel {
    display: grid;
    gap: .45rem;
    margin-bottom: .75rem;
    padding: .65rem;
    border: 1px solid #e6e8ef;
    border-radius: 8px;
    background: #fff;
}

.client-ai-panel {
    display: grid;
    gap: .65rem;
    margin-bottom: .75rem;
    padding: .65rem;
    border: 1px solid #d8e2f0;
    border-radius: 8px;
    background: #f8fbff;
}

.motor-ai-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: .5rem;
    align-items: end;
}

.health-ai-upload-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: .5rem;
    align-items: end;
}

.client-ai-upload-grid {
    display: grid;
    grid-template-columns: minmax(150px, .75fr) minmax(0, 1fr) auto;
    gap: .5rem;
    align-items: end;
}

.document-upload-tile {
    display: grid;
    gap: .3rem;
    min-width: 0;
    padding: .55rem;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    background: #fff;
}

.document-upload-tile span {
    color: #334155;
    font-size: .86rem;
    font-weight: 600;
}

.document-upload-tile small {
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-upload-tile input {
    width: 100%;
    font-size: .85rem;
}

.extraction-review-list {
    display: grid;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.extraction-review-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(84px, auto);
    gap: .75rem;
    align-items: center;
    padding: .75rem;
    border-bottom: 1px solid #edf0f6;
}

.extraction-review-row:last-child {
    border-bottom: 0;
}

.extraction-review-row strong,
.extraction-review-row small {
    display: block;
}

.extraction-review-row small {
    color: #64748b;
    overflow-wrap: anywhere;
}

.confidence-pill {
    padding: .2rem .5rem;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: .78rem;
    font-weight: 700;
}

.login-wrap {
    min-height: calc(100vh - 1.5rem);
    display: grid;
    place-items: center;
    padding: clamp(1rem, 5vh, 3rem) 1rem;
}

.login-panel {
    width: min(100%, 420px);
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--zenisk-border);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(94, 42, 142, .12);
}

.login-product-brand {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    text-align: center;
}

.login-product-brand img {
    height: 52px;
    object-fit: contain;
    width: 132px;
}

.login-product-brand span {
    color: #536179;
    font-size: .8rem;
}

.login-panel h2 {
    text-align: center;
}

.login-panel h2 {
    margin: .15rem 0 1rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.brand-mark.large {
    width: 40px;
    height: 40px;
    margin-bottom: .45rem;
}

.dev-credentials {
    display: grid;
    gap: .2rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid #edf0f6;
    color: #64748b;
    font-size: .85rem;
}

.login-help-link {
    margin-top: .85rem;
    text-align: center;
    font-size: .9rem;
}

.validation-message,
.validation-errors {
    color: #b42318;
}

.knowledge-grid {
    grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr);
}

.compact-table th,
.compact-table td {
    padding: .45rem .5rem;
}

.compact-scroll-table {
    max-height: 420px;
    overflow: auto;
}

.compact-section-title {
    margin: 0 0 .55rem;
    font-size: .95rem;
    font-weight: 500;
}

.matrix-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .65rem;
}

.matrix-chip-list span {
    max-width: 100%;
    padding: .18rem .5rem;
    border: 1px solid #ead0e4;
    border-radius: 999px;
    background: var(--zenisk-soft);
    color: #334155;
    font-size: .78rem;
}

.knowledge-feature-table th,
.knowledge-feature-table td {
    padding: .5rem .55rem;
    vertical-align: top;
}

.knowledge-feature-table th:first-child,
.knowledge-feature-table td:first-child {
    min-width: 220px;
}

.knowledge-feature-table th:nth-child(2),
.knowledge-feature-table td:nth-child(2) {
    min-width: 300px;
}

.knowledge-map-controls {
    display: grid;
    gap: .35rem;
}

.compact-check {
    display: flex;
    gap: .35rem;
    align-items: center;
    margin: 0;
    font-size: .82rem;
    color: #475569;
}

@media (max-width: 1100px) {
    .metric-grid,
    .dashboard-grid,
    .form-grid,
    .form-grid.narrow,
    .performance-chart-grid,
    .report-filter-grid,
    .lob-grid,
    .quote-field-grid {
        grid-template-columns: 1fr;
    }

    .additional-document-upload {
        grid-template-columns: 1fr;
    }

    .report-hero {
        align-items: stretch;
        flex-direction: column;
    }

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

    .insurance-office-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .performance-summary-grid {
        grid-template-columns: 1fr;
    }

    .broker-action-grid {
        gap: .4rem;
        margin-bottom: .6rem;
        max-width: none;
    }

    .broker-action-grid .btn {
        min-height: 38px;
        padding: .36rem .45rem;
    }

    .panel-heading,
    .performance-filter,
    .compact-filter,
    .quote-header,
    .quote-ready-panel,
    .quote-table-tools,
    .quote-pagination,
    .selected-summary,
    .lob-card-heading,
    .company-row,
    .insurance-office-card-main {
        align-items: flex-start;
        flex-direction: column;
        gap: .35rem;
    }

    .performance-filter .form-control,
    .compact-filter .form-control {
        width: 100%;
        min-width: 0;
    }

    .metric-card strong {
        font-size: 1.25rem;
    }

    .quote-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .35rem;
    }

    .quote-summary-card {
        gap: .25rem;
        padding: .42rem;
    }

    .quote-summary-card strong {
        font-size: .98rem;
    }

    .summary-title {
        gap: .24rem;
        font-size: .68rem;
    }

    .summary-icon {
        width: 1.1rem;
        height: 1.1rem;
        border-radius: 5px;
    }

    .summary-icon svg {
        width: .68rem;
        height: .68rem;
    }

    .recent-quotes-panel .mobile-hide {
        display: none;
    }

    .recent-quotes-panel .table th,
    .recent-quotes-panel .table td {
        padding: .35rem .3rem;
        font-size: .78rem;
    }

    .recent-quotes-panel .table-actions {
        min-width: 0;
        gap: .25rem;
    }

    .recent-quotes-panel .table-actions .btn,
    .recent-quotes-panel .table-actions .form-control-sm {
        width: 100%;
    }

    .quote-button-row {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .3rem;
    }

    .quote-button-row .btn {
        min-width: 0;
        padding-inline: .25rem;
        font-size: .78rem;
    }

    .quote-search,
    .quote-page-size {
        width: 100%;
    }

    .login-panel,
    .panel {
        padding: .55rem;
    }

    .quote-header {
        padding: .55rem;
    }

    .quote-header h2 {
        font-size: 1rem;
    }

    .option-grid,
    .motor-ai-upload-grid,
    .client-ai-upload-grid,
    .office-check-grid {
        grid-template-columns: 1fr;
    }

    .extraction-review-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .quote-field-section {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .quote-field-section small {
        max-width: none;
        text-align: left;
    }

    .fire-route-card {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .fire-route-card strong {
        text-align: left;
    }

    .insured-member-row,
    .contact-editor-heading,
    .contact-editor-row,
    .insured-member-fields,
    .insurance-office-details {
        grid-template-columns: 1fr;
    }

    .insurance-office-actions {
        justify-content: flex-start;
    }

    .customer-login-form {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .customer-login-form .btn {
        width: fit-content;
    }

    .customer-request-form,
    .customer-request-context {
        grid-template-columns: 1fr;
    }

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

    .customer-request-section,
    .customer-request-form,
    .customer-product-picker,
    .customer-request-followup {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .customer-product-tile {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: .45rem;
        padding: .55rem;
    }

    .customer-selected-product-row {
        align-items: flex-start;
    }

    .customer-claim-form {
        grid-template-columns: 1fr;
    }

    .customer-portal-tiles {
        grid-template-columns: 1fr;
    }

    .customer-portal-tile {
        grid-template-columns: 34% minmax(0, 1fr);
        min-height: 155px;
    }

    .customer-tile-content {
        padding: .9rem;
    }

    .customer-tile-content strong {
        font-size: 1.12rem;
    }

    .customer-section-nav {
        display: flex;
        justify-content: space-between;
        gap: .15rem;
    }

    .customer-section-tab {
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
    }

    .customer-section-tab span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .customer-section-tab img {
        width: 19px;
        height: 19px;
    }

    .customer-portal-shell {
        padding-bottom: 5.75rem;
    }

    .customer-portal-heading {
        align-items: center;
        flex-direction: row;
        gap: .5rem;
    }

    .customer-portal-heading h2 {
        min-width: 0;
        font-size: .95rem;
        overflow-wrap: anywhere;
    }

    .customer-logout {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        justify-content: center;
        padding: 0;
    }

    .customer-logout img {
        display: block;
    }

    .customer-logout span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .customer-mobile-action-bar {
        position: fixed;
        z-index: 30;
        right: .75rem;
        bottom: max(.65rem, env(safe-area-inset-bottom));
        left: .75rem;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: .35rem;
        border: 1px solid var(--zenisk-border);
        border-radius: 8px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 10px 28px rgba(44, 20, 70, .18);
    }

    .customer-mobile-action-bar a {
        display: grid;
        min-height: 48px;
        place-items: center;
        align-content: center;
        gap: .16rem;
        border-radius: 6px;
        color: #5b6474;
        font-size: .68rem;
        font-weight: 650;
        line-height: 1.05;
        text-align: center;
        text-decoration: none;
    }

    .customer-mobile-action-bar img {
        width: 17px;
        height: 17px;
        filter: invert(35%) sepia(8%) saturate(820%) hue-rotate(179deg) brightness(93%);
    }

    .customer-mobile-action-bar a.active {
        background: #f1e8f8;
        color: var(--zenisk-primary-dark);
    }

    .customer-mobile-action-bar a.active img {
        filter: invert(19%) sepia(55%) saturate(2857%) hue-rotate(280deg) brightness(82%);
    }
}

@media (max-width: 430px) {
    .customer-product-grid {
        grid-template-columns: 1fr;
    }
}
