html, body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f7fb;
    color: #172033;
}

.mud-main-content {
    min-height: 100vh;
    padding: 0;
}

.top-header {
    height: 64px;
    background: linear-gradient(90deg, #172554 0%, #2563eb 52%, #6d28d9 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

.brand-mark .brand-logo-img {
    box-sizing: border-box;
    display: block;
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
    padding: 2px 4px;
}

.customer-brand .customer-logo-img {
    box-sizing: border-box;
    display: block;
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    padding: 2px 4px;
}

@media (max-width: 640px) {
    .customer-brand .customer-logo-img {
        width: 34px;
        height: 34px;
        max-width: 34px;
        max-height: 34px;
        padding: 1px 3px;
    }
}

.user-avatar {
    margin-left: 12px;
    background: #eef2ff !important;
    color: #1e1b4b !important;
}

.mobile-menu {
    display: none;
}

.side-nav {
    width: 272px !important;
    border-right: 1px solid #e3e8f2;
    background: #ffffff !important;
}

.nav-menu {
    padding: 22px 14px;
}

.nav-label {
    display: block;
    padding: 0 12px 10px;
    color: #64748b;
    letter-spacing: .08em;
}

.mud-nav-link {
    border-radius: 8px;
    margin: 3px 0;
    color: #334155 !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.mud-nav-link:hover {
    background: #eef4ff !important;
    color: #1d4ed8 !important;
    transform: translateX(2px);
}

.mud-nav-link.active {
    background: linear-gradient(90deg, #dbeafe 0%, #eef2ff 100%) !important;
    color: #1e40af !important;
    font-weight: 700;
}

.main-content {
    padding: 88px 28px 36px;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, .13), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
}

.workspace,
.quote-shell {
    width: 100%;
}

.page-hero {
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    margin-bottom: 22px;
    padding: 22px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 52%, rgba(255,255,255,.45) 100%),
        url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1400&q=80") center/cover;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.breadcrumb-row {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 20px;
}

.page-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 24px;
    align-items: center;
}

.page-hero h3 {
    color: #0f172a;
    font-weight: 750;
    letter-spacing: 0;
    margin: 7px 0;
}

.section-title-row {
    gap: 10px;
}

.section-icon {
    color: #2563eb;
}

.hero-visual {
    min-height: 116px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .90), rgba(124, 58, 237, .88)),
        url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=80") center/cover;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 18px 34px rgba(37, 99, 235, .24);
}

.enterprise-card,
.quote-header,
.quote-panel,
.kpi-card {
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.enterprise-card:hover,
.kpi-card:hover,
.quote-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(30, 64, 175, 0.11);
    border-color: #c8d7f4;
}

.enterprise-card {
    padding: 24px;
}

.quote-panel {
    padding: 24px;
    margin-bottom: 18px;
}

.quote-panel.compact {
    padding: 16px 20px;
}

.summary {
    border-color: #b9dfcf;
}

.kpi-card {
    padding: 20px;
    min-height: 126px;
}

.kpi-card .mud-typography-caption {
    color: #64748b;
    font-weight: 650;
}

.kpi-card h4 {
    color: #0f172a;
    font-weight: 760;
}

.kpi-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #2563eb;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.metric-grid {
    margin-bottom: 8px;
}

.reports-section-grid {
    margin-bottom: 8px;
}

.reports-card {
    margin-bottom: 18px;
}

.ai-recommendations-card {
    margin: 12px 0 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(246, 249, 255, .96)),
        linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(124, 58, 237, .08));
}

.ai-card-heading {
    align-items: flex-start !important;
}

.ai-insight-card {
    min-height: 100%;
    padding: 18px;
    border: 1px solid #dbe5f4;
    border-radius: 8px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ai-insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(30, 64, 175, .10);
    border-color: #bcd0f5;
}

.ai-insight-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #2563eb;
}

.ai-insight-card.primary::before {
    background: linear-gradient(90deg, #16a34a, #2563eb);
}

.ai-insight-card.secondary::before {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.ai-insight-card.warning::before {
    background: linear-gradient(90deg, #f59e0b, #7c3aed);
}

.ai-insight-card h6 {
    color: #0f172a;
    font-weight: 760;
}

.ai-rule-expression {
    padding: 12px 14px;
    border: 1px solid #d7e1f2;
    border-radius: 8px;
    background: #f8fbff;
    color: #1e293b;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ai-impact-row {
    gap: 12px;
}

.ai-impact-row .mud-typography-caption {
    color: #4f46e5;
    font-weight: 750;
}

.track-report-card {
    min-height: 236px;
    overflow: hidden;
    position: relative;
}

.track-report-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #2563eb;
}

.track-report-card.smart::before {
    background: #16a34a;
}

.track-report-card.standard::before {
    background: #2563eb;
}

.track-report-card.agent::before {
    background: #f59e0b;
}

.track-report-card.decline::before {
    background: #dc2626;
}

.track-report-card h4 {
    color: #0f172a;
    font-weight: 800;
}

.card-heading {
    gap: 18px;
    margin-bottom: 18px;
}

.table-search {
    max-width: 280px;
}

.modern-table {
    overflow: hidden;
}

.modern-table th {
    color: #475569;
    font-weight: 700;
    background: #f8fafc;
}

.modern-table tr {
    transition: background .16s ease;
}

.modern-table tbody tr:hover {
    background: #f1f6ff !important;
}

.gradient-card {
    min-height: 100%;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(29, 78, 216, .94), rgba(109, 40, 217, .92)),
        url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=900&q=80") center/cover;
}

.gradient-card .mud-typography,
.gradient-card .mud-typography-body2 {
    color: #ffffff;
}

.bar-meter {
    width: 100%;
    height: 10px;
    margin: 24px 0;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
    overflow: hidden;
}

.bar-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ffffff;
}

.journey-card {
    min-height: 230px;
}

.workflow-card {
    min-height: 100%;
}

.workflow-stepper {
    margin-top: 16px;
}

.tab-panel {
    padding-top: 18px;
}

.save-message {
    display: block;
    min-height: 20px;
    margin-top: 12px;
    color: #2563eb;
}

.header-row,
.progress-meta,
.config-actions {
    gap: 16px;
}

.journey-chip {
    font-weight: 800;
}

.smart-track-chip {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.standard-track-chip {
    background: #dbeafe !important;
    color: #1e40af !important;
}

.agent-track-chip {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.decline-track-chip {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.intake-track-chip {
    background: #ede9fe !important;
    color: #5b21b6 !important;
}

.config-panels .mud-expand-panel {
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: #ffffff;
}

@media (max-width: 640px) {
    .mobile-menu {
        display: inline-flex;
    }

    .brand-mark {
        min-width: 0;
    }

    .brand-mark .brand-logo-img {
        width: 34px;
        height: 34px;
        max-width: 34px;
        max-height: 34px;
        padding: 1px 3px;
    }

    .brand-mark .mud-typography-caption {
        display: none;
    }

    .main-content {
        padding: 80px 12px 24px;
    }

    .page-hero {
        padding: 16px;
    }

    .page-hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 80px;
    }

    .quote-header,
    .quote-panel,
    .enterprise-card {
        padding: 16px;
    }

    .header-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .card-heading,
    .config-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .table-search {
        max-width: 100%;
    }
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.customer-app {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 52%, #f7f9fc 100%);
}

.customer-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(16px, 5vw, 56px);
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(203, 213, 225, .76);
    backdrop-filter: blur(18px);
}

.customer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .25);
}

.customer-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
    padding: clamp(28px, 7vw, 76px) clamp(16px, 5vw, 64px) 24px;
}

.customer-hero-copy h2 {
    max-width: 760px;
    margin: 18px 0 14px;
    color: #0f172a;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.02;
    font-weight: 820;
    letter-spacing: 0;
}

.customer-hero-copy .mud-typography-body1 {
    max-width: 620px;
    color: #475569;
    font-size: 1.08rem;
}

.customer-proof-row {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.customer-proof-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #1e3a8a;
    background: #ffffff;
    border: 1px solid #dbe7ff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.customer-hero-image {
    min-height: 310px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(29, 78, 216, .15), rgba(124, 58, 237, .12)),
        url("https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&w=1000&q=80") center/cover;
    box-shadow: 0 26px 60px rgba(30, 64, 175, .20);
    border: 1px solid rgba(255,255,255,.72);
}

.customer-quote-shell {
    padding: 18px clamp(12px, 4vw, 40px) 54px;
}

.customer-form-card,
.customer-side-card {
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 22px 54px rgba(15, 23, 42, .08);
}

.customer-form-card {
    padding: clamp(18px, 3vw, 30px);
}

.customer-form-heading {
    gap: 16px;
    margin-bottom: 18px;
}

.customer-form-card .quote-panel {
    box-shadow: none;
    border-color: #e5edf8;
}

.customer-form-card .quote-panel:hover {
    transform: none;
    box-shadow: none;
}

.customer-loading {
    margin: 20px 0;
}

.journey-loader {
    margin: 18px 0;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(255, 255, 255, .98)),
        radial-gradient(circle at top right, rgba(124, 58, 237, .12), transparent 34%);
    text-align: center;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.journey-loader-copy {
    max-width: 560px;
}

.journey-loader-copy .mud-typography-h6 {
    color: #172554;
    font-weight: 800;
}

.journey-loader-copy .mud-typography-body2 {
    color: #475569;
}

.journey-loader-bar {
    width: min(420px, 100%);
    margin-top: 8px;
}

.journey-loader-checks {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.journey-integration-steps {
    width: min(520px, 100%);
    margin-top: 8px;
}

.journey-integration-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    color: #64748b;
    background: rgba(255, 255, 255, .76);
    text-align: left;
}

.journey-integration-step.active {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}

.journey-integration-step .mud-icon-root {
    flex: 0 0 auto;
}

.journey-integration-step span {
    min-width: 0;
    font-weight: 700;
}

.bind-button {
    height: 48px;
    margin-top: 12px;
}

.customer-side-card {
    padding: 22px;
}

.customer-side-card.highlight {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(29, 78, 216, .96), rgba(109, 40, 217, .92)),
        url("https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?auto=format&fit=crop&w=900&q=80") center/cover;
}

.customer-side-card.highlight .mud-typography,
.customer-side-card.highlight .mud-icon-root {
    color: #ffffff;
}

.customer-side-card.highlight .mud-icon-root {
    font-size: 42px;
    margin-bottom: 14px;
}

.smart-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(22px, 5vw, 52px);
    align-items: center;
    padding: clamp(28px, 7vw, 76px) clamp(16px, 5vw, 64px) 24px;
    position: relative;
}

.smart-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(248, 251, 255, .98) 0%, rgba(248, 251, 255, .88) 44%, rgba(248, 251, 255, .35) 100%),
        url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80") center/cover;
    border-bottom: 1px solid rgba(203, 213, 225, .72);
}

.smart-hero > * {
    position: relative;
    z-index: 1;
}

.smart-hero-copy h2 {
    max-width: 760px;
    margin: 18px 0 14px;
    color: #0f172a;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.03;
    font-weight: 820;
    letter-spacing: 0;
}

.smart-hero-copy .mud-typography-body1 {
    max-width: 650px;
    color: #475569;
    font-size: 1.08rem;
}

.smart-route-card,
.smart-hero-panel {
    border-radius: 8px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .88), rgba(30, 64, 175, .82)),
        url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=900&q=80") center/cover;
    box-shadow: 0 26px 60px rgba(30, 64, 175, .22);
    border: 1px solid rgba(255,255,255,.35);
    color: #ffffff;
}

.smart-route-card .mud-typography,
.smart-hero-panel .mud-typography {
    color: #ffffff;
    margin-bottom: 14px;
}

.smart-hero-panel {
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .88), rgba(29, 78, 216, .84)),
        url("https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=900&q=80") center/cover;
}

.smart-hero-panel .mud-typography-h3 {
    font-size: clamp(2.6rem, 6vw, 4.7rem);
    line-height: .95;
    margin: 8px 0 10px;
    font-weight: 850;
}

.smart-hero-panel-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.smart-hero-panel-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.route-pill {
    padding: 12px 14px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 700;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
}

.route-pill.smart {
    color: #bbf7d0;
}

.route-pill.standard {
    color: #bfdbfe;
}

.route-pill.agent {
    color: #fde68a;
}

.route-pill.decline {
    color: #fecaca;
}

.smart-form-card {
    position: relative;
    overflow: hidden;
}

.smart-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
}

.smart-side-highlight {
    background:
        linear-gradient(135deg, rgba(29, 78, 216, .95), rgba(14, 165, 233, .86)),
        url("https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?auto=format&fit=crop&w=900&q=80") center/cover !important;
}

.smart-track-side {
    background:
        linear-gradient(135deg, rgba(22, 101, 52, .95), rgba(14, 165, 233, .82)),
        url("https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?auto=format&fit=crop&w=900&q=80") center/cover !important;
}

.standard-track-side {
    background:
        linear-gradient(135deg, rgba(30, 64, 175, .95), rgba(37, 99, 235, .82)),
        url("https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?auto=format&fit=crop&w=900&q=80") center/cover !important;
}

.agent-track-side {
    background:
        linear-gradient(135deg, rgba(146, 64, 14, .95), rgba(217, 119, 6, .82)),
        url("https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?auto=format&fit=crop&w=900&q=80") center/cover !important;
}

.decline-track-side {
    background:
        linear-gradient(135deg, rgba(127, 29, 29, .95), rgba(190, 18, 60, .82)),
        url("https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?auto=format&fit=crop&w=900&q=80") center/cover !important;
}

.smart-install-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, #eef6ff, #ffffff);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.smart-install-copy {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.smart-install-copy > .mud-icon-root {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.smart-install-copy .mud-typography-subtitle1 {
    font-weight: 800;
    color: #172554;
}

.smart-install-copy .mud-typography-body2 {
    color: #475569;
}

.schema-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

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

.schema-field .mud-input-control {
    margin-top: 0;
    margin-bottom: 0;
}

.schema-field .mud-input-root {
    min-height: 52px;
    background: #ffffff;
}

.schema-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
}

.schema-continue-button {
    min-height: 48px;
    min-width: 190px;
}

.smart-outcome-alert {
    margin-top: 14px;
}

.integration-status-panel {
    margin-top: 18px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.integration-chip-row {
    flex-wrap: wrap;
    gap: 12px;
}

.integration-result-chip {
    min-height: 42px;
    padding: 0 14px !important;
    font-size: .96rem !important;
    font-weight: 800;
}

.smart-outcome-card {
    margin-top: 18px;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #dfe6ee;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .07);
}

.smart-outcome-card.AgentHandOff {
    border-color: #bae6fd;
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
}

.agent-context-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    color: #075985;
    font-weight: 700;
}

.smart-outcome-card.MonetizeDecline {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.rule-editor-card {
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.rule-editor-heading,
.condition-chip-row,
.add-condition-row {
    gap: 12px;
}

.condition-chip-row {
    flex-wrap: wrap;
    min-height: 42px;
}

.condition-editor-shell {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: visible;
    background: #ffffff;
}

.condition-table-header,
.condition-editor-row {
    display: grid;
    grid-template-columns: 120px minmax(145px, 1fr) minmax(130px, .82fr) minmax(115px, .68fr) 42px;
    gap: 10px;
    align-items: center;
}

.condition-table-header {
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.condition-editor-row {
    min-height: 64px;
    padding: 9px 14px;
    border-bottom: 1px solid #edf2f7;
    transition: background .2s ease, opacity .2s ease;
}

.condition-editor-row:last-child {
    border-bottom: 0;
}

.condition-editor-row:hover {
    background: #f8fbff;
}

.condition-editor-row.disabled-condition {
    opacity: .72;
    background: #f8fafc;
}

.condition-empty-state {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    color: #475569;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.condition-empty-state .mud-icon-root {
    flex: 0 0 auto;
    color: #2563eb;
}

.condition-empty-state .mud-typography-subtitle2 {
    font-weight: 800;
    color: #1e293b;
}

.condition-toggle-column {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.condition-toggle-column .mud-checkbox,
.condition-toggle-column .mud-button-root {
    margin: 0 !important;
    padding: 0 !important;
}

.condition-status-chip {
    min-width: 58px;
    justify-content: center;
}

.condition-field-column,
.condition-operator-column,
.condition-value-column {
    min-width: 0;
}

.condition-field-column .mud-input-control,
.condition-operator-column .mud-input-control,
.condition-value-column .mud-input-control {
    margin-top: 0;
    margin-bottom: 0;
}

.condition-field-column .mud-input-root,
.condition-operator-column .mud-input-root,
.condition-value-column .mud-input-root {
    background: #ffffff;
}

.condition-action-column {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.condition-actions {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 1200px) {
    .condition-table-header {
        display: none;
    }

    .condition-editor-row {
        grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr) 42px;
        gap: 10px 12px;
        padding: 12px 14px;
    }

    .condition-toggle-column {
        grid-column: 1 / 2;
    }

    .condition-field-column {
        grid-column: 2 / 3;
    }

    .condition-operator-column {
        grid-column: 3 / 4;
    }

    .condition-value-column {
        grid-column: 2 / 4;
        grid-row: 2 / 3;
    }

    .condition-action-column {
        grid-column: 4 / 5;
        grid-row: 1 / 2;
        align-self: center;
    }
}

.add-condition-row {
    align-items: flex-end !important;
}

.customer-rating {
    background: linear-gradient(135deg, #ffffff, #f4f7ff);
}

.rating-stars {
    margin: 8px 0;
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 22px;
}

@media (max-width: 900px) {
    .customer-hero,
    .smart-hero {
        grid-template-columns: 1fr;
    }

    .smart-hero {
        padding-top: 28px;
    }

    .customer-hero-image {
        min-height: 180px;
        order: -1;
    }

    .smart-route-card,
    .smart-hero-panel {
        order: -1;
    }

    .customer-form-heading {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .smart-install-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .smart-install-banner .mud-button-root {
        width: 100%;
    }

    .schema-field-grid {
        grid-template-columns: 1fr;
    }

    .condition-editor-row {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 10px 12px;
        padding: 12px;
        min-height: auto;
    }

    .condition-toggle-column,
    .condition-field-column,
    .condition-operator-column,
    .condition-value-column {
        grid-column: 1 / 2;
    }

    .condition-action-column {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        align-self: start;
    }
}

@media (max-width: 640px) {
    .customer-header {
        align-items: flex-start;
        padding: 12px 14px;
    }

    .customer-header-actions {
        gap: 6px;
    }

    .customer-header-actions .mud-button-label {
        font-size: .8rem;
    }

    .customer-brand .mud-typography-caption {
        display: none;
    }

    .customer-hero {
        padding-top: 22px;
    }

    .customer-proof-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .customer-proof-row span {
        justify-content: center;
    }

    .customer-quote-shell {
        padding-bottom: 32px;
    }

    .smart-hero-copy h2 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .schema-form-actions {
        display: block;
    }

    .schema-continue-button {
        width: 100%;
    }
}
