:root {
    --bq-bg: #f3f6fb;
    --bq-bg-2: #eaf0f8;
    --bq-sidebar: #111827;
    --bq-sidebar-2: #182235;
    --bq-sidebar-line: rgba(255, 255, 255, 0.08);
    --bq-surface: #ffffff;
    --bq-surface-2: #f8fafc;
    --bq-line: #e2e8f0;
    --bq-line-strong: #cbd5e1;
    --bq-text: #0f172a;
    --bq-muted: #64748b;
    --bq-blue: #2563eb;
    --bq-blue-2: #0ea5e9;
    --bq-blue-soft: #eaf2ff;
    --bq-orange: #f97316;
    --bq-orange-soft: #fff3e8;
    --bq-green: #10b981;
    --bq-red: #ef4444;
    --bq-radius: 10px;
    --bq-radius-lg: 14px;
    --bq-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    --bq-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
}

html,
body {
    direction: rtl;
    min-height: 100%;
    margin: 0;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at 86% 6%, rgba(14, 165, 233, 0.10), transparent 24%),
        linear-gradient(180deg, #f7faff 0%, var(--bq-bg) 100%);
    color: var(--bq-text);
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.leaf {
    display: none;
}

.mud-layout {
    min-height: 100vh;
    background: transparent;
}

.app-topbar {
    top: 16px !important;
    left: 24px !important;
    right: 306px !important;
    width: auto !important;
    height: 68px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: var(--bq-shadow-soft);
    color: var(--bq-text) !important;
    padding-inline: 14px 18px;
    backdrop-filter: blur(12px);
}

.app-title {
    margin-inline-start: 8px;
    margin-inline-end: 14px;
    font-weight: 900;
    letter-spacing: 0;
}

.app-drawer {
    top: 16px !important;
    right: 16px !important;
    height: calc(100vh - 32px) !important;
    width: 274px !important;
    padding: 0;
    color: #fff;
    background: transparent !important;
}

.app-drawer .mud-drawer {
    background: transparent !important;
}

.app-main {
    padding-top: 100px;
    padding-inline-start: 24px;
    padding-inline-end: 306px;
    padding-bottom: 24px;
}

.app-container.desktop-panel {
    position: relative;
    min-height: calc(100vh - 124px);
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.app-container.desktop-panel::before {
    display: none;
}

.mobile-web-shell {
    min-height: 100vh;
    background: var(--bq-bg);
}

.mobile-web-main {
    padding: 10px;
}

.mobile-web-container {
    width: 100%;
    max-width: 560px;
    min-height: calc(100vh - 20px);
    margin-inline: auto;
    padding: 0 !important;
}

.mobile-web-container .page-shell {
    gap: 12px !important;
}

.mobile-toolbar-band {
    padding: 14px;
    border-radius: 14px;
}

.mobile-quick-tabs {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--bq-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--bq-shadow-soft);
    backdrop-filter: blur(12px);
}

.mobile-quick-tabs .mud-button-root {
    min-height: 44px;
    padding-inline: 8px !important;
    font-size: 12px;
}

.page-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.nav-shell {
    min-height: calc(100vh - 32px);
    padding: 14px 0;
    border-radius: 18px;
    background:
        linear-gradient(180deg, var(--bq-sidebar), #0b1220 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
    color: #fff;
    overflow-y: auto;
}

.nav-brand {
    width: 100%;
    text-align: right;
    margin-bottom: 12px;
    padding: 4px 18px 14px;
    border-bottom: 1px solid var(--bq-sidebar-line);
}

.brand-logo {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bq-blue), var(--bq-blue-2));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.brand-logo svg {
    width: 38px;
    height: 38px;
    display: block;
    filter: none;
}

.brand-title {
    margin: 0;
    font-size: 28px !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
    letter-spacing: 0;
    color: #fff;
}

.brand-en {
    direction: ltr;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #93c5fd;
}

.brand-tagline {
    margin-top: 4px !important;
    color: rgba(226, 232, 240, 0.72) !important;
    font-weight: 600 !important;
}

.feature-stack {
    width: calc(100% - 24px);
    margin: 0 auto 10px;
}

.side-feature {
    min-height: 62px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid var(--bq-sidebar-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.side-feature.orange {
    background: rgba(249, 115, 22, 0.10);
    border-color: rgba(251, 146, 60, 0.18);
}

.feature-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.side-feature.orange .feature-icon {
    background: rgba(249, 115, 22, 0.16);
    color: #fed7aa;
}

.side-feature strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 900;
    color: #fff;
}

.side-feature span {
    display: block;
    font-size: 11px;
    line-height: 1.55;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.70);
}

.mud-navmenu {
    color: #fff;
}

.mud-nav-group .mud-nav-link,
.mud-nav-link {
    min-height: 40px;
    margin: 3px 10px;
    border-radius: 10px;
    color: rgba(226, 232, 240, 0.78) !important;
    font-weight: 800;
}

.mud-nav-link.active:not(.mud-nav-link-disabled),
.mud-nav-link:hover {
    background: rgba(37, 99, 235, 0.20) !important;
    color: #fff !important;
}

.mud-nav-group > .mud-nav-link {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff !important;
}

.mud-breadcrumbs {
    color: var(--bq-muted);
    font-weight: 700;
}

.hero-band,
.toolbar-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    padding: 20px 22px;
    color: var(--bq-text);
    background: var(--bq-surface);
    box-shadow: var(--bq-shadow-soft);
    overflow: hidden;
}

.hero-band {
    border-inline-start: 5px solid var(--bq-blue);
}

.toolbar-band {
    min-height: 104px;
    border-inline-start: 5px solid var(--bq-blue);
}

.hero-band .mud-typography,
.toolbar-band .mud-typography {
    color: inherit;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 168px;
    padding: 24px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(14, 165, 233, 0.32), transparent 28%),
        linear-gradient(135deg, #1e3a8a 0%, #172554 55%, #0f172a 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.dashboard-hero.vendor {
    background:
        radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.34), transparent 28%),
        linear-gradient(135deg, #9a3412 0%, #1e293b 58%, #0f172a 100%);
}

.dashboard-hero.store {
    background:
        radial-gradient(circle at 12% 20%, rgba(16, 185, 129, 0.32), transparent 28%),
        linear-gradient(135deg, #0f766e 0%, #1e3a8a 58%, #0f172a 100%);
}

.dashboard-hero .mud-typography {
    color: inherit;
}

.dashboard-hero .mud-typography-overline {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
    letter-spacing: 0;
}

.ops-metric-card {
    min-height: 136px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bq-shadow-soft);
}

.ops-metric-card .mud-typography-h5 {
    font-weight: 900;
    line-height: 1.45;
}

.ops-metric-icon,
.ops-row-icon {
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--bq-blue-soft);
    color: var(--bq-blue);
}

.ops-metric-icon {
    width: 46px;
    height: 46px;
}

.ops-row-icon {
    width: 42px;
    height: 42px;
}

.ops-metric-icon.sky,
.ops-row-icon.sky {
    background: #e0f2fe;
    color: #0284c7;
}

.ops-metric-icon.orange,
.ops-row-icon.orange {
    background: var(--bq-orange-soft);
    color: var(--bq-orange);
}

.ops-metric-icon.green,
.ops-row-icon.green {
    background: #dcfce7;
    color: var(--bq-green);
}

.ops-panel {
    padding: 18px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bq-shadow-soft);
}

.ops-highlight {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.ops-row {
    min-height: 70px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--bq-line);
}

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

.panel-card,
.metric-card,
.filter-panel,
.table-panel,
.form-panel,
.result-panel,
.review-panel,
.empty-workspace,
.legacy-page-card,
.rule-section,
.builder-stepper,
.roadmap-column {
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: var(--bq-surface);
    box-shadow: var(--bq-shadow-soft);
    color: var(--bq-text);
}

.panel-card,
.metric-card,
.form-panel,
.result-panel,
.review-panel,
.empty-workspace {
    padding: 18px;
}

.panel-card {
    min-height: 204px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-card {
    min-height: 136px;
}

.filter-panel,
.table-panel {
    padding: 14px;
}

.quick-filter-row {
    flex-wrap: wrap;
}

.review-heading {
    gap: 12px;
}

.review-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.review-summary-card {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.review-summary-card .mud-icon-root {
    color: var(--bq-blue);
}

.review-summary-card span {
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 700;
}

.review-summary-card strong {
    color: var(--bq-text);
    font-size: 14px;
    line-height: 1.7;
}

.review-warning-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-warning-list span {
    padding: 6px 10px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: var(--bq-orange-soft);
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.review-list {
    height: 100%;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: #fff;
}

.review-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    align-items: start;
    padding: 8px;
    border-radius: 10px;
    background: var(--bq-surface-2);
    color: var(--bq-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.8;
}

.review-item .mud-icon-root {
    margin-top: 2px;
    color: var(--bq-orange);
    font-size: 20px;
}

.mud-button-root {
    border-radius: 10px !important;
    font-weight: 800 !important;
}

.mud-button-filled-primary,
.mud-button-filled-success,
.mud-button-filled-tertiary {
    background: var(--bq-blue) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}

.mud-button-filled-secondary,
.mud-button-filled-info {
    background: var(--bq-orange) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.18);
}

.mud-button-outlined-primary,
.mud-button-outlined-info,
.mud-button-outlined-secondary {
    border-color: var(--bq-line-strong) !important;
    color: var(--bq-blue) !important;
    background: #fff;
}

.mud-chip-root {
    border-radius: 10px !important;
    font-weight: 800;
}

.mud-input-root,
.mud-input-slot,
.mud-input-control {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

.mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-outlined {
    background: #fff;
    border-radius: 10px;
}

.mud-paper.table-panel .mud-table {
    background: transparent;
}

.mud-table-container,
.mud-table,
.mud-table-root {
    background: transparent !important;
}

.mud-table-head {
    background: var(--bq-surface-2);
}

.state-box {
    min-height: 220px;
    justify-content: center;
    padding: 24px;
}

.access-denied-panel {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    text-align: center;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    background: var(--bq-orange-soft);
    box-shadow: var(--bq-shadow-soft);
}

.builder-stepper {
    padding: 18px;
}

.builder-hint {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: var(--bq-blue-soft);
    border: 1px solid #bfdbfe;
}

.template-strip {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff, var(--bq-blue-soft));
}

.template-strip-header {
    gap: 12px;
}

.template-button {
    min-height: 46px;
    justify-content: flex-start;
    border-radius: 10px;
    font-weight: 900;
}

.template-caption {
    display: block;
    min-height: 34px;
    margin-top: 7px;
    color: var(--bq-muted);
    line-height: 1.7;
}

.rule-section {
    padding: 18px;
}

.rule-card {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.preview-result {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: var(--bq-blue-soft);
}

.mini-stat,
.applied-policy {
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    padding: 12px;
    background: var(--bq-surface-2);
}

.store-check-mode,
.store-help-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.store-help-panel {
    background: #fff;
    box-shadow: var(--bq-shadow-soft);
}

.store-help-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--bq-line);
    color: var(--bq-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.8;
}

.store-help-row:last-child {
    border-bottom: 0;
}

.store-help-row .mud-icon-root {
    margin-top: 3px;
    color: var(--bq-blue);
    font-size: 20px;
}

.store-result-heading {
    gap: 12px;
}

.store-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.store-result-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.store-result-card .mud-icon-root {
    color: var(--bq-blue);
}

.store-result-card.discount .mud-icon-root {
    color: var(--bq-orange);
}

.store-result-card.total .mud-icon-root {
    color: var(--bq-green);
}

.store-result-card span {
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 800;
}

.store-result-card strong {
    color: var(--bq-text);
    font-size: 20px;
    line-height: 1.6;
}

.store-applied-policy {
    background: #fff;
}

.legacy-page-card {
    min-height: 142px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.legacy-group-title {
    margin-top: 8px;
    padding-inline: 4px;
    font-weight: 900;
    color: var(--bq-text);
}

.legacy-frame-shell {
    height: calc(100vh - 158px);
    max-width: none;
}

.legacy-frame-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bq-shadow-soft);
    padding: 12px 14px;
}

.legacy-frame {
    width: 100%;
    min-height: 720px;
    height: calc(100vh - 278px);
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bq-shadow-soft);
}

.legacy-migration-alert {
    border-radius: 14px;
    box-shadow: var(--bq-shadow-soft);
}

.legacy-card-actions {
    flex-wrap: wrap;
}

.legacy-metric-card {
    min-height: 128px;
}

.legacy-task-panel {
    padding: 18px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bq-shadow-soft);
}

.legacy-task-meta {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bq-line);
}

.legacy-task-meta:last-child {
    border-bottom: 0;
}

.legacy-task-meta span {
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 800;
}

.legacy-task-meta strong {
    color: var(--bq-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.legacy-task-template {
    direction: rtl;
    margin: 12px 0 0;
    padding: 16px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
    color: var(--bq-text);
    white-space: pre-wrap;
    line-height: 1.9;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 13px;
}

.task-readiness-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.task-readiness-strip span {
    padding: 6px 10px;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 10px;
    background: var(--bq-blue-soft);
    color: var(--bq-blue);
    font-size: 12px;
    font-weight: 900;
}

.legacy-source-preview {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
    max-height: 460px;
    overflow: auto;
    margin: 12px 0 0;
    padding: 16px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: #0f172a;
    color: #e5e7eb;
    white-space: pre;
    line-height: 1.7;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.migration-wave-card {
    height: 100%;
    padding: 18px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bq-shadow-soft);
}

.migration-wave-head {
    gap: 12px;
}

.migration-progress {
    height: 8px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bq-surface-2);
}

.migration-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bq-green), var(--bq-blue));
}

.migration-mini-stat {
    min-height: 72px;
    padding: 10px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.migration-mini-stat span {
    display: block;
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 800;
}

.migration-mini-stat strong {
    display: block;
    margin-top: 4px;
    color: var(--bq-text);
    font-size: 18px;
    font-weight: 900;
}

.migration-mini-stat.done strong {
    color: var(--bq-green);
}

.migration-mini-stat.partial strong {
    color: var(--bq-blue);
}

.migration-mini-stat.pending strong {
    color: var(--bq-orange);
}

.migration-sample-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--bq-line);
    border-radius: 10px;
    background: var(--bq-surface-2);
}

.migration-sample-row span {
    overflow: hidden;
    color: var(--bq-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.migration-actions {
    flex-wrap: wrap;
}

.migration-next-panel {
    padding: 18px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: var(--bq-blue-soft);
    box-shadow: var(--bq-shadow-soft);
}

.migration-next-panel.partial {
    border-color: rgba(37, 99, 235, 0.28);
    background: linear-gradient(135deg, #fff, var(--bq-blue-soft));
}

.factor-detail-row {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bq-line);
}

.factor-detail-row:last-child {
    border-bottom: 0;
}

.factor-detail-row span {
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 800;
}

.factor-detail-row strong {
    color: var(--bq-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
}

.factor-action-panel {
    padding: 18px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bq-shadow-soft);
}

.factor-output-panel {
    padding: 18px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, rgba(16, 185, 129, 0.08));
    box-shadow: var(--bq-shadow-soft);
}

.factor-followup-panel {
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, rgba(37, 99, 235, 0.07));
    box-shadow: var(--bq-shadow-soft);
}

.factor-report-panel {
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bq-shadow-soft);
}

.factor-report-card {
    min-height: 138px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--bq-line);
    border-radius: 14px;
    background: var(--bq-surface-2);
}

.factor-report-card .mud-icon-root {
    color: var(--bq-blue);
}

.factor-report-card strong {
    color: var(--bq-text);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.factor-report-card span {
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 900;
}

.factor-report-card.warning .mud-icon-root {
    color: var(--bq-orange);
}

.factor-report-card.success .mud-icon-root {
    color: var(--bq-green);
}

.factor-report-card.danger .mud-icon-root {
    color: var(--mud-palette-error);
}

.catalog-table-panel {
    overflow: hidden;
}

.catalog-filter-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

.catalog-product-cell {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 220px;
}

.catalog-product-cell img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--bq-line);
    background: var(--bq-surface-2);
}

.catalog-product-cell strong {
    display: block;
    color: var(--bq-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.7;
}

.catalog-product-cell span {
    display: block;
    color: var(--bq-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.6;
}

.catalog-detail-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-detail-hero {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bq-line);
}

.catalog-detail-hero img {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid var(--bq-line);
    background: var(--bq-surface-2);
}

.roundtable-grid-panel,
.roundtable-wheel-panel {
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: var(--bq-surface);
    box-shadow: var(--bq-shadow-soft);
}

.roundtable-grid-panel {
    padding: 14px;
}

.roundtable-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: var(--bq-surface);
}

.roundtable-card-media {
    position: relative;
    min-height: 154px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--bq-surface-2);
}

.roundtable-card-media img {
    width: 100%;
    height: 154px;
    object-fit: cover;
    display: block;
}

.roundtable-card-media .mud-chip {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
}

.roundtable-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.roundtable-card-stats span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 800;
}

.roundtable-card-stats strong {
    color: var(--bq-text);
    font-size: 18px;
    font-weight: 900;
}

.roundtable-score-progress {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.roundtable-wheel-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    padding: 20px;
}

.roundtable-wheel-wrap {
    position: relative;
    width: min(340px, 82vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.roundtable-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border: 10px solid #fff;
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.roundtable-wheel::after {
    content: "";
    position: absolute;
    inset: 38%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.roundtable-wheel span {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 104px;
    margin-inline-start: -52px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
    text-align: center;
    text-shadow: 0 1px 4px rgba(15, 23, 42, 0.42);
}

.roundtable-wheel-pointer {
    position: absolute;
    top: -4px;
    z-index: 2;
    width: 0;
    height: 0;
    border-inline: 16px solid transparent;
    border-top: 0;
    border-bottom: 30px solid var(--bq-orange);
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.22));
}

.roundtable-readiness-panel {
    padding: 16px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: var(--bq-surface);
    box-shadow: var(--bq-shadow-soft);
}

.roundtable-spin-result {
    width: 100%;
    text-align: center;
    font-weight: 900;
}

.roundtable-readiness-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
}

.roundtable-readiness-item.ready {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}

.roundtable-readiness-item.blocked {
    color: #92400e;
    background: rgba(249, 115, 22, 0.12);
}

.roundtable-builder-readiness {
    padding: 16px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: var(--bq-surface);
    box-shadow: var(--bq-shadow-soft);
}

.roundtable-builder-readiness-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
}

.roundtable-builder-readiness-item.ready {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}

.roundtable-builder-readiness-item.blocked {
    color: #92400e;
    background: rgba(249, 115, 22, 0.12);
}

.roundtable-detail-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roundtable-detail-media {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bq-line);
}

.roundtable-detail-media img {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid var(--bq-line);
    background: var(--bq-surface-2);
}

.roundtable-row-actions {
    flex-wrap: wrap;
}

.roundtable-award-action .mud-stack {
    min-width: 100%;
}

.roundtable-admin-actions {
    flex-wrap: wrap;
}

.factor-output-actions {
    flex-wrap: wrap;
}

.factor-action-head {
    gap: 12px;
}

.factor-action-buttons {
    flex-wrap: wrap;
}

.factor-action-card {
    width: min(260px, 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.factor-action-preview {
    display: grid;
    gap: 5px;
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
}

.factor-action-preview strong {
    color: var(--bq-text);
    font-weight: 900;
}

.factor-action-preview small {
    display: block;
    color: var(--bq-orange);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
}

.factor-status-panel {
    padding: 18px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bq-shadow-soft);
}

.factor-completion-panel {
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, var(--bq-blue-soft));
    box-shadow: var(--bq-shadow-soft);
}

.factor-completion-item {
    min-height: 82px;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: #fff;
}

.factor-completion-item .mud-icon-root {
    margin-top: 2px;
    color: var(--bq-orange);
}

.factor-completion-item.done .mud-icon-root {
    color: var(--bq-green);
}

.factor-completion-item strong {
    display: block;
    color: var(--bq-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.7;
}

.factor-completion-item span {
    display: block;
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.8;
}

.factor-status-flow {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.factor-status-step {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
    text-align: center;
}

.factor-status-step .mud-icon-root {
    color: var(--bq-muted);
}

.factor-status-step strong {
    color: var(--bq-text);
    font-size: 12px;
    line-height: 1.6;
}

.factor-status-step span {
    color: var(--bq-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}

.factor-status-step.done {
    border-color: rgba(16, 185, 129, 0.42);
    background: rgba(16, 185, 129, 0.08);
}

.factor-status-step.done .mud-icon-root,
.factor-status-step.done strong {
    color: var(--bq-green);
}

.factor-status-step.current {
    border-color: rgba(37, 99, 235, 0.52);
    background: var(--bq-blue-soft);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.factor-status-step.current .mud-icon-root,
.factor-status-step.current strong {
    color: var(--bq-blue);
}

.factor-status-step.muted {
    opacity: 0.55;
}

.roadmap-stat .mud-typography-h4 {
    font-weight: 900;
    color: var(--bq-blue);
}

.roadmap-column {
    padding: 18px;
}

.roadmap-column.done {
    border-top: 4px solid var(--bq-green);
}

.roadmap-column.active {
    border-top: 4px solid var(--bq-orange);
}

.roadmap-column.pending {
    border-top: 4px solid var(--bq-muted);
}

.roadmap-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--bq-line);
    color: var(--bq-text);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.7;
}

.roadmap-item:last-child {
    border-bottom: 0;
}

.migration-overview-panel {
    border-top: 4px solid var(--bq-green);
}

.migration-overview-progress {
    position: relative;
    min-height: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.migration-overview-progress-bar {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(37, 99, 235, 0.14));
}

.migration-overview-progress strong,
.migration-overview-progress span {
    position: relative;
    z-index: 1;
}

.migration-overview-progress strong {
    color: var(--bq-green);
    font-size: 18px;
    font-weight: 900;
}

.migration-overview-progress span {
    color: var(--bq-muted);
    font-size: 13px;
    font-weight: 800;
}

.migration-overview-card {
    min-height: 178px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: #fff;
}

.migration-overview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.migration-overview-stats span {
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
    border: 1px solid var(--bq-line);
    border-radius: 10px;
    background: var(--bq-surface-2);
    color: var(--bq-muted);
    font-size: 11px;
    font-weight: 800;
}

.migration-overview-stats strong {
    margin-top: 3px;
    color: var(--bq-text);
    font-size: 16px;
    font-weight: 900;
}

.delivery-panel {
    border-top: 4px solid var(--bq-blue);
}

.delivery-head {
    gap: 12px;
}

.delivery-check-card {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.delivery-check-card code {
    direction: ltr;
    display: block;
    margin-top: auto;
    padding: 8px 10px;
    border-radius: 10px;
    background: #0f172a;
    color: #e5e7eb;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-align: left;
    unicode-bidi: plaintext;
}

.delivery-report-summary,
.delivery-check-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.delivery-report-summary span,
.delivery-check-strip span {
    padding: 6px 10px;
    border: 1px solid var(--bq-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 800;
}

.delivery-check-strip span.passed {
    border-color: rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

.delivery-check-strip span.failed {
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.profile-summary-card,
.profile-detail-card {
    padding: 18px;
    border: 1px solid var(--bq-line);
    border-radius: 16px;
    background: var(--bq-surface);
    box-shadow: var(--bq-shadow-soft);
}

.profile-summary-head {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 14px;
    align-items: center;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--bq-blue), var(--bq-blue-2));
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.profile-avatar .mud-icon-root {
    font-size: 40px;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-stat-card {
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.profile-stat-card span {
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 800;
}

.profile-stat-card strong {
    color: var(--bq-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.8;
}

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

.profile-meta-row,
.profile-claim-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--bq-line);
    border-radius: 12px;
    background: var(--bq-surface-2);
}

.profile-meta-row span,
.profile-claim-row span {
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 800;
}

.profile-meta-row strong,
.profile-claim-row strong {
    color: var(--bq-text);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.profile-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-panel-card {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--bq-line);
    border-radius: 14px;
    background: var(--bq-surface-2);
}

.profile-panel-card .mud-icon-root {
    color: var(--bq-blue);
    font-size: 28px;
}

.profile-panel-card strong {
    color: var(--bq-text);
    font-size: 14px;
    font-weight: 900;
}

.profile-panel-card span {
    color: var(--bq-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
}

.profile-panel-card .mud-button-root {
    margin-top: auto;
}

.profile-panel-card.allowed {
    border-color: rgba(16, 185, 129, 0.28);
    background: linear-gradient(180deg, #fff, rgba(16, 185, 129, 0.06));
}

.profile-panel-card.blocked {
    opacity: 0.72;
}

.ltr {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
    font-family: "Inter", Consolas, monospace;
}

#blazor-error-ui {
    background: #b91c1c;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .reload {
    color: #fff;
    margin-inline-start: 12px;
}

@media (max-width: 1200px) {
    .app-topbar {
        right: 20px !important;
        left: 20px !important;
    }

    .app-drawer {
        right: 0 !important;
        background: transparent !important;
    }

    .app-main {
        padding-inline: 20px;
    }

    .nav-shell {
        border-radius: 0 18px 18px 0;
    }
}

@media (max-width: 768px) {
    .app-topbar {
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        height: 58px;
        border-radius: 14px;
    }

    .app-main {
        padding: 82px 10px 16px;
    }

    .app-container.desktop-panel {
        min-height: calc(100vh - 98px);
    }

    .hero-band,
    .toolbar-band,
    .legacy-frame-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .mobile-web-container .toolbar-band {
        min-height: auto;
        padding: 14px;
        border-radius: 14px;
    }

    .mobile-web-container .ops-metric-card {
        min-height: 96px;
        grid-template-columns: 40px 1fr;
        padding: 12px;
    }

    .mobile-web-container .ops-metric-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .mobile-web-container .filter-panel,
    .mobile-web-container .table-panel,
    .mobile-web-container .form-panel,
    .mobile-web-container .result-panel,
    .mobile-web-container .catalog-table-panel,
    .mobile-web-container .factor-report-panel,
    .mobile-web-container .factor-action-panel,
    .mobile-web-container .factor-output-panel,
    .mobile-web-container .factor-followup-panel,
    .mobile-web-container .factor-status-panel,
    .mobile-web-container .store-help-panel {
        border-radius: 14px;
        padding: 12px;
    }

    .mobile-web-container .factor-detail-row {
        grid-template-columns: 92px 1fr;
        gap: 8px;
    }

    .mobile-web-container .factor-action-head {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .mobile-web-container .factor-action-buttons {
        width: 100%;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .mobile-web-container .factor-action-card {
        width: 100%;
        padding: 10px;
    }

    .mobile-web-container .factor-action-preview {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mobile-web-container .factor-action-buttons .mud-button-root,
    .mobile-web-container .factor-output-actions .mud-button-root,
    .mobile-web-container .toolbar-actions .mud-button-root {
        width: 100%;
    }

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

    .store-result-grid {
        grid-template-columns: 1fr;
    }

    .factor-status-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-panel-grid,
    .profile-stat-grid {
        grid-template-columns: 1fr;
    }

    .profile-meta-row,
    .profile-claim-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .review-summary-grid {
        grid-template-columns: 1fr;
    }

    .factor-status-flow {
        grid-template-columns: 1fr;
    }
}

.auth-page {
    min-height: calc(100vh - 96px);
    padding: 32px 12px;
}

.auth-page-modern {
    background:
        linear-gradient(135deg, rgba(5, 150, 105, .08), rgba(14, 165, 233, .08)),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 28px;
}

.auth-shell {
    width: min(100%, 1120px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
    gap: 24px;
    align-items: stretch;
}

.auth-intro {
    min-height: 520px;
    padding: 34px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 24px;
    background:
        linear-gradient(140deg, rgba(15, 23, 42, .94), rgba(30, 41, 59, .88)),
        radial-gradient(circle at top right, rgba(34, 197, 94, .25), transparent 36%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.auth-shell.vendor .auth-intro {
    background:
        linear-gradient(140deg, rgba(88, 28, 135, .95), rgba(124, 58, 237, .84)),
        radial-gradient(circle at top right, rgba(251, 146, 60, .28), transparent 34%);
}

.auth-shell.store .auth-intro {
    background:
        linear-gradient(140deg, rgba(20, 83, 45, .95), rgba(13, 148, 136, .82)),
        radial-gradient(circle at top right, rgba(56, 189, 248, .28), transparent 34%);
}

.auth-intro::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -110px;
    border-radius: 999px;
    border: 46px solid rgba(255, 255, 255, .08);
}

.auth-intro .mud-typography {
    position: relative;
    z-index: 1;
}

.auth-route-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.auth-panel-button {
    min-height: 46px;
    border-radius: 14px;
    white-space: nowrap;
}

.auth-guard-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.auth-guard-list > div {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .9);
}

.auth-card {
    width: min(100%, 480px);
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.auth-card-enterprise {
    width: 100%;
    min-height: 520px;
    border-radius: 24px;
    display: flex;
    align-items: center;
}

.auth-card-compact {
    width: min(100%, 360px);
}

.auth-options {
    gap: 12px;
    flex-wrap: wrap;
}

.auth-footer-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-intro,
    .auth-card-enterprise {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .auth-page-modern {
        border-radius: 0;
        padding: 12px;
    }

    .auth-intro,
    .auth-card {
        padding: 20px;
        border-radius: 18px;
    }

    .auth-route-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .app-topbar,
    .app-drawer,
    .mud-breadcrumbs,
    .toolbar-actions,
    .mobile-quick-tabs,
    .factor-completion-panel,
    .factor-action-panel,
    .factor-output-panel,
    .factor-followup-panel,
    .delivery-panel,
    .access-denied-panel {
        display: none !important;
    }

    .app-main {
        padding: 0 !important;
    }

    .app-container.desktop-panel,
    .page-shell,
    .factor-print-scope {
        max-width: none !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .toolbar-band,
    .ops-metric-card,
    .form-panel,
    .table-panel,
    .factor-status-panel {
        break-inside: avoid;
        border: 1px solid #d1d5db !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .toolbar-band {
        min-height: auto;
        padding: 10px 0 14px;
        border-width: 0 0 1px !important;
    }

    .ops-metric-card {
        min-height: auto;
        padding: 10px;
    }

    .ops-metric-icon {
        display: none;
    }

    .factor-status-flow {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mud-table-root,
    .mud-table,
    .mud-table-container {
        box-shadow: none !important;
    }

    .mud-button-root,
    .mud-chip-root {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
