/* Quantum Marble. Shared visual system based on the supplied identity board. */
:root {
    --qm-primary: #0a2a66;
    --qm-primary-hover: #071f4c;
    --qm-gold: #d4af37;
    --qm-gold-light: #f3dda0;
    --qm-mint: var(--qm-gold);
    --qm-stone: #d6d8dd;
    --qm-ink: #2b2f33;
    --qm-charcoal: #2b2f33;
    --qm-paper: #f8faf9;
    --qm-marble: #f8faf9;
    --qm-muted: #5b6474;
    --qm-border: #dfe1e5;
    --qm-deep: #061a3d;
    --qm-surface: #ffffff;
    --qm-shadow: 0 1px 0 #ffffff inset, 0 -3px 0 rgba(0, 23, 65, .035) inset, 0 2px 4px rgba(18, 30, 52, .025), 0 12px 30px rgba(18, 30, 52, .055);
    --qm-elevation: var(--qm-shadow);
    --qm-radius: 20px;
    --qr-brand-primary: var(--qm-primary);
    --qr-brand-primary-dark: var(--qm-primary-hover);
    --qr-brand-ink: var(--qm-deep);
    --qr-font-arabic: "Tajawal", Tahoma, sans-serif;
    --qr-font-latin: "Montserrat", "Segoe UI", sans-serif;
    --qr-sidebar-width: 272px;
    --bs-primary: #0a2a66;
    --bs-primary-rgb: 10, 42, 102;
    --bs-body-color: #2b2f33;
    --bs-body-bg: #f8faf9;
    --bs-border-color: #dfe1e5;
    --bs-font-sans-serif: "Tajawal", "Montserrat", system-ui, sans-serif;
    --qm-marble-texture: url("images/brand/marble-veins.svg");
}

.qm-icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.qm-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.qm-status-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.qm-status-success { background: #e7edf7; border-color: #d6deee; color: #264173; }
.qm-status-active { background: #e3e9f3; border-color: #d1daea; color: #002467; }
.qm-status-warning { background: #fff6e5; border-color: #f3e7cd; color: #956b24; }
.qm-status-danger { background: #fff0ef; border-color: #f6dcd8; color: #b15043; }
.qm-status-neutral { background: #f0f1f3; border-color: #e3e5e8; color: #676d77; }

/* Approved navy/gold identity. The artwork is the supplied PNG, embedded unchanged. */
.qm-brand-lockup { display: block; width: 164px; max-width: 100%; height: auto; object-fit: contain; }
.qm-brand-full { width: 100%; justify-content: center; }
.qm-brand-light .qm-brand-names strong { color: var(--qm-primary); }
.qm-brand-light .qm-brand-names small { color: #8a6914; }
.qm-brand-dark .qm-brand-names small { color: var(--qm-gold-light); }

@media screen {
    .btn.btn-primary { --bs-btn-color: #071f4c; --bs-btn-bg: #d4af37; --bs-btn-border-color: #c4a02a; --bs-btn-hover-color: #061a3d; --bs-btn-hover-bg: #e4c562; --bs-btn-hover-border-color: #c2a044; --bs-btn-active-color: #061a3d; --bs-btn-active-bg: #c49b28; --bs-btn-active-border-color: #a88120; --bs-btn-disabled-color: #132a50; --bs-btn-disabled-bg: #dfcc91; --bs-btn-disabled-border-color: #d0b86c; }
}

@media screen {
    html { scroll-behavior: smooth; }
    html, body { min-width: 0; min-height: 100%; background: var(--qm-paper); color: var(--qm-ink); }
    body { margin: 0; -webkit-font-smoothing: antialiased; }
    html[dir="rtl"] body, html[dir="rtl"] :is(h1, h2, h3, h4, h5, h6, .btn, .table, .form-control, .form-select) { font-family: var(--qr-font-arabic); }
    html[dir="ltr"] body, html[dir="ltr"] :is(h1, h2, h3, h4, h5, h6, .btn, .table, .form-control, .form-select) { font-family: var(--qr-font-latin); }
    button, input, select, textarea { font: inherit; }
    a { text-underline-offset: 4px; }
    ::selection { background: #bdceee; color: #061a3d; }
    :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #486bac; outline-offset: 4px; }
    h1[tabindex="-1"]:focus { outline: none; }
    .qm-skip-link { position: fixed; inset-block-start: 12px; inset-inline-start: 32px; z-index: 1200; transform: translateY(-160%); padding: 12px 18px; border-radius: 12px; background: white; color: var(--qm-primary); font-weight: 700; }
    .qm-skip-link:focus { transform: translateY(0); }
    .qm-directional-icon { transition: transform .2s ease; }
    [dir="rtl"] .qm-directional-icon { transform: rotate(180deg); }
    .qm-brand-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--qm-mint); box-shadow: 0 0 0 4px rgb(127 158 215 / 10%); }

    /* Navigation floats above the marble workspace. Logical properties preserve RTL/LTR. */
    .qr-shell { display: block; min-height: 100dvh; background: radial-gradient(ellipse at 12% 0, #e8ecf2 0, transparent 47%), #f4f5f7; }
    .qr-shell .qr-sidebar { position: fixed; top: 16px; bottom: 16px; left: auto; right: auto; inset-inline-start: 16px; width: var(--qr-sidebar-width); height: calc(100dvh - 32px); min-height: 0; padding: 22px 14px 14px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #223b68 !important; border-radius: 24px; background: radial-gradient(ellipse at 100% 0, rgb(127 158 215 / 12%), transparent 54%), linear-gradient(160deg, #001b4d 0%, #001844 50%, #001234 100%) !important; box-shadow: 0 1px 0 rgb(255 255 255 / 12%) inset, 0 20px 45px rgb(0 19 54 / 16%), 4px 0 0 #dcdfe4; z-index: 80; }
    .qr-shell .qr-sidebar::before { content: ""; position: absolute; top: -180px; inset-inline-end: -145px; width: 330px; height: 330px; border: 1px solid rgb(166 187 227 / 9%); border-radius: 72px; transform: rotate(35deg); pointer-events: none; }
    .qr-shell .qr-brand { position: relative; margin: 0; padding: 0 3px 20px; gap: 12px; border-color: rgb(180 199 233 / 14%); border-radius: 0; background: transparent; box-shadow: none; }
    .qr-shell .qr-brand > small { margin: 0; font-size: 11px; font-weight: 400; color: #9baac7; }
    .qm-brand { gap: 10px; }
    .qm-brand-names strong { font-family: var(--qr-font-latin); letter-spacing: -.5px; }
    .qm-brand-sidebar { justify-content: flex-start; }
    .qm-brand-sidebar .qm-brand-symbol { width: 53px; height: 53px; filter: drop-shadow(0 4px 5px rgb(0 0 0 / 20%)); }
    .qm-brand-sidebar .qm-brand-names strong { font-size: 12px; letter-spacing: -.5px; }
    .qm-brand-sidebar .qm-brand-names small { color: #c1cde3; font-size: 12px; margin-top: 4px; }
    .qr-shell .qr-sidebar nav { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; margin: 15px 0; padding: 0 2px 5px; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #39507c transparent; }
    .qr-shell .qr-sidebar nav a { position: relative; min-height: 43px; padding: 9px 11px; display: flex; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 12px; color: #c6cfe0; font-size: 13px; font-weight: 500; line-height: 1.45; text-decoration: none; transition: background .18s, border-color .18s, color .18s; }
    .qr-shell .qr-sidebar nav a:hover { transform: none; color: white; background: rgb(127 158 215 / 9%) !important; border-color: rgb(151 178 228 / 14%); }
    .qr-shell .qr-sidebar nav a.active { background: linear-gradient(125deg, #082f76, #00215d) !important; border: 1px solid #2c4d8b; color: white !important; box-shadow: 0 1px 0 rgb(255 255 255 / 12%) inset, 0 4px 12px rgb(0 11 30 / 18%); font-weight: 700; }
    .qr-shell .qr-sidebar nav a.active::after { content: ""; position: absolute; inset-inline-end: 8px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #9bb9f1; transform: translateY(-50%); }
    .qr-shell .qm-nav-icon { width: 21px; height: 21px; flex: 0 0 21px; background: none; border-radius: 0; color: #99a9c8; }
    .qr-shell nav a.active .qm-nav-icon { background: none; color: #b8d1ff; }
    .qr-shell .qr-nav-separator { margin: 14px 12px 5px; padding: 0; border: 0; color: #8092b4 !important; font-size: 10px; font-weight: 500; letter-spacing: .02em; }
    .qr-shell .qr-sidebar-footer { position: relative; margin-top: auto; padding: 10px 7px 0; border-top: 1px solid rgb(179 195 224 / 15%); background: transparent; }
    .qr-shell .qr-sidebar-user { padding: 5px 5px 7px; }
    .qr-shell .qr-sidebar-user strong { color: #f5f9ff; font-size: 13px; }
    .qr-shell .qr-sidebar-user span { color: #a4b1c9; font-size: 11px; }
    .qr-shell .qr-logout-link { display: flex; gap: 9px; align-items: center; min-height: 33px; padding: 5px; color: #b8c2d4; font-size: 12px; }
    .qr-shell .qr-stage { display: flex; align-items: center; justify-content: center; gap: 9px; position: static; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid rgb(179 195 224 / 8%); border-radius: 0; background: none; color: #b0bdd5; font: 600 9px var(--qr-font-latin); letter-spacing: .08em; }
    .qr-shell .qr-stage > span:last-child { color: #7b8598; font-size: 8px; letter-spacing: 0; }
    .qr-shell[dir] .qr-main { width: auto; margin: 0; margin-inline-start: calc(var(--qr-sidebar-width) + 32px); min-width: 0; min-height: 100dvh; }
    .qr-shell .qr-topbar { position: sticky; top: 0; z-index: 40; height: 88px; min-height: 88px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 30px; background: rgb(248 249 250 / 94%) !important; border-bottom: 1px solid #e2e4e8 !important; backdrop-filter: blur(16px); }
    .qr-topbar .qr-mobile-topbar-start { gap: 14px; min-width: 0; }
    .qr-shell .qr-topbar-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
    .qr-shell .qr-topbar-brand .qm-topbar-eyebrow { display: block; margin: 0; color: #828893; font-size: 10px; font-weight: 500; line-height: 1.4; letter-spacing: .02em; }
    .qr-shell .qr-topbar .qm-topbar-title { font-size: 19px; font-weight: 700; color: #263145; line-height: 1.4; white-space: nowrap; }
    .qr-shell .qr-sidebar-toggle { width: 36px; height: 36px; border-radius: 10px; color: #5b6474; border-color: #dde0e5; background: #ffffff; box-shadow: 0 2px 3px #e6e8ec; }
    .qr-shell .qr-account-session { gap: 15px; flex-wrap: nowrap; flex-shrink: 0; }
    .qr-shell .qr-account-caption { display: none; }
    .qr-shell .qr-session-account-info { display: flex; flex-direction: column; gap: 3px; border: 0; padding: 0; min-width: 0; }
    .qr-shell .qr-session-account-info strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: #364257; }
    .qr-shell .qr-session-account-info small { font: 500 9px var(--qr-font-latin); color: #898e98; }
    .qr-shell .qr-topbar .qm-user-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; margin: 0; border: 1px solid white; border-radius: 13px; background: linear-gradient(140deg, #e4e9f3, #bcc5d7); box-shadow: 0 2px 0 #a7aeba, 0 4px 10px #dde0e5; font: 700 13px var(--qr-font-arabic); color: #344564; }
    .qr-shell .qr-topbar-logout { display: inline-flex; width: 33px; height: 36px; padding: 5px; gap: 0; justify-content: center; align-items: center; border: 0; background: transparent; color: #808795; border-radius: 8px; box-shadow: none; }
    .qr-shell .qr-topbar-logout:hover { color: #a14c42; background: #fff0ed; }
    .qr-topbar-logout .qr-topbar-logout-text { display: none; }
    .qr-shell .qr-topbar .qm-topbar-create { min-height: 35px; padding: 7px 12px; font-size: 12px; }
    .qr-shell .qr-topbar span { margin-inline: 0; }
    .qr-language-switch { gap: 2px; padding: 3px; border-color: #e0e3e7; border-radius: 10px; background: #f4f5f7; box-shadow: 0 1px 2px #e9eaed inset; }
    .qr-language-switch button { min-height: 27px; padding: 4px 8px; color: #7a818d; border-radius: 7px; font-size: 10px; }
    .qr-language-switch button.active { color: #0a2a66; background: white; box-shadow: 0 1px 3px #dadde2; }
    .qr-language-switch > span { display: none; }
    .qr-shell .qr-content { min-width: 0; padding: 22px 30px 40px; background: transparent; outline: none; }

    /* Consistent, tactile surfaces across every application module. */
    .qm-page, .qm-general-page, .qm-dashboard { max-width: 1640px; min-width: 0; margin-inline: auto; }
    .qm-page.container-fluid { padding: 0 !important; }
    .qr-content :is(.card, .qr-card, .qr-stat, .qr-sub-card, .qr-users-kpi, .qr-owner-kpi, .qm-dashboard-panel, .qm-dashboard-kpi, .qm-dashboard-empty, .qm-legacy-notice) { min-width: 0; border: 1px solid var(--qm-border); border-radius: var(--qm-radius); background: linear-gradient(145deg, #ffffff 75%, #fafbfc); box-shadow: var(--qm-shadow); }
    .qr-content .card.p-3 { padding: 24px !important; }
    .qr-content .qr-card { padding: 24px; }
    .qr-content :is(h2, h3, h4, h5, h6) { color: #2e3a50; font-weight: 700; letter-spacing: -.2px; }
    .qr-content :is(.card h4, .card h5, .qr-card h5) { margin-bottom: 19px; font-size: 18px; }
    .qr-content :is(.text-muted, .qr-section-title > span) { color: var(--qm-muted) !important; }
    .qr-page-head { align-items: center; padding: 8px 2px 22px; margin-bottom: 7px; }
    .qr-page-head h1 { margin: 7px 0; font-size: clamp(24px, 2.5vw, 31px); color: #23314b; font-weight: 800; }
    .qr-page-head p { max-width: 780px; color: #797f8b; font-size: 13px; line-height: 1.8; }
    .qr-page-eyebrow, .qr-users-eyebrow { color: #798396; font: 600 10px var(--qr-font-latin); letter-spacing: .15em; }
    .qr-content :is(label, .form-label), .qr-auth-card label, .qr-register-form-card label { margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #586171; }
    .qr-content :is(.form-control, .form-select), .qr-auth-card .form-control, .qr-register-form-card :is(.form-control, .form-select) { min-height: 43px; border: 1px solid #dde0e5; border-radius: 10px; padding-block: 10px; background-color: #fbfbfc; color: #2b3649; font-size: 13px; box-shadow: 0 2px 3px rgb(30 43 66 / 3%) inset; transition: border-color .18s, box-shadow .18s; }
    .qr-content :is(.form-control, .form-select):focus, .qr-auth-card .form-control:focus, .qr-register-form-card :is(.form-control, .form-select):focus { border-color: #5f79a8; background-color: white; box-shadow: 0 0 0 3px rgb(127 158 215 / 22%); outline: none; }
    :is(.form-control, .form-select)::placeholder { color: #a6aab1; opacity: 1; }
    .qr-content :is(.form-control-sm, .form-select-sm) { min-height: 36px; padding-block: 6px; font-size: 12px; }
    .qr-content .form-check-input:checked { border-color: #0a2a66; background-color: #0a2a66; }
    .qr-content .form-check-input { box-shadow: 0 1px 2px rgb(30 43 66 / 8%) inset; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.5; transition: transform .16s, box-shadow .16s, background-color .16s; }
    .btn-primary, .btn-success { --bs-btn-color: #ffffff; --bs-btn-bg: #0a2a66; --bs-btn-border-color: #0a2a66; --bs-btn-hover-bg: #00276e; --bs-btn-hover-border-color: #00276e; --bs-btn-active-bg: #071f4c; --bs-btn-active-border-color: #071f4c; --bs-btn-disabled-bg: #0a2a66; --bs-btn-disabled-border-color: #0a2a66; background-image: linear-gradient(180deg, rgb(255 255 255 / 7%), transparent); box-shadow: 0 1px 0 rgb(255 255 255 / 17%) inset, 0 3px 0 #00163f, 0 6px 12px rgb(0 26 75 / 12%); }
    .btn-primary:hover:not(:disabled), .btn-success:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / 17%) inset, 0 4px 0 #00163f, 0 9px 17px rgb(0 26 75 / 15%); }
    .btn-outline-primary, .btn-outline-success { --bs-btn-color: #0a2a66; --bs-btn-border-color: #b4bdcf; --bs-btn-hover-bg: #e8edf6; --bs-btn-hover-color: #0a2a66; --bs-btn-hover-border-color: #788cb2; --bs-btn-active-color: #0a2a66; --bs-btn-active-bg: #d6ddeb; --bs-btn-active-border-color: #788cb2; background-color: #fafcff; box-shadow: 0 2px 0 #dce0e8; }
    .btn-light, .btn-outline-secondary { --bs-btn-color: #586070; --bs-btn-border-color: #dbdde2; --bs-btn-hover-color: #0a2a66; --bs-btn-hover-bg: #eef0f5; --bs-btn-hover-border-color: #bbc3d3; background-color: white; box-shadow: 0 2px 0 #e4e6e9; }
    .btn-sm { min-height: 31px; padding: 5px 10px; border-radius: 8px; font-size: 12px; }
    .btn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
    .btn:disabled, .btn.disabled { transform: none; box-shadow: none; opacity: .5; }
    .qr-content .table-responsive { width: 100%; max-width: 100%; border: 1px solid #e6e8eb; border-radius: 13px; overscroll-behavior-x: contain; }
    .qr-content .table { --bs-table-bg: transparent; --bs-table-striped-bg: #f7f8fa; --bs-table-hover-bg: #f0f2f7; width: 100%; margin-bottom: 0; font-size: 13px; color: #505866; vertical-align: middle; }
    .qr-content .table thead th { padding: 13px 14px; border: 0; border-bottom: 1px solid #e1e4e8; background: #f1f3f6; color: #737c8c; font-size: 11px; font-weight: 600; white-space: nowrap; }
    .qr-content .table td { padding: 14px; border-color: #eeeff1; background-color: transparent; font-weight: 500; }
    .qr-content .table tbody tr:last-child > td { border-bottom: 0; }
    .qr-content .table tbody tr:hover > td { background-color: #f6f7fa; }
    .qr-customers-page .table { min-width: 720px; }
    .qr-customers-page .table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
    .qr-customers-page .table td:nth-child(2) { min-width: 150px; }
    .qr-content .table .form-control, .qr-content .table .form-select { min-width: 64px; }
    .qr-content .alert { padding: 13px 17px; border-radius: 12px; font-size: 13px; line-height: 1.8; }
    .qr-content .alert-warning { border-color: #efdfbd; background: #fffbf1; color: #8a713e; }
    .qr-content .alert-info { border-color: #d1d8e6; background: #edf0f7; color: #586070; }
    .qr-content .alert-success { border-color: #cfd8e9; background: #edf1f9; color: #364c75; }
    .qr-content .alert-danger { border-color: #f0d5cf; background: #fff4f1; color: #a55d4e; }
    .qr-content .badge { padding: 7px 10px; border-radius: 7px; font-size: 11px; font-weight: 600; }
    .qr-content .badge.bg-secondary { background-color: #eaebee !important; color: #60697a; }
    .qr-content .bg-light { background: #f1f3f7 !important; }
    .qr-content :is(.qr-users-kpis, .qr-owner-kpis) { gap: 16px; }
    .qr-content :is(.qr-stat strong, .qr-users-kpi strong, .qr-owner-kpi strong) { color: #0a2a66; font-variant-numeric: tabular-nums; }
    .qm-stock-cell { display: flex; align-items: center; gap: 11px; }
    .qm-material-swatch { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #e0e2e6; border-radius: 8px; background: var(--qm-marble-texture) 25% 60% / 170px, white; box-shadow: 2px 3px 0 #cbcfd6, 3px 5px 7px #e6e8ec; transform: rotate(-6deg); }
    .qm-stock-cell strong, .qm-stock-cell small { display: block; }
    .qm-stock-cell strong { color: #2c3c5a; font: 600 12px var(--qr-font-latin); }
    .qm-stock-cell small { margin-top: 3px; color: #898e98; font-size: 11px; }

    /* Section headers echo the navy and gold edge and layered stone of the supplied logo. */
    .qm-section-banner { min-height: 126px; gap: 19px; margin-bottom: 24px; padding: 25px 28px; border: 1px solid #24437d; border-radius: 21px; color: white; background: radial-gradient(ellipse at 0 10%, #294579 0, transparent 58%), linear-gradient(110deg, #001948, #00215f); box-shadow: 0 1px 0 rgb(255 255 255 / 17%) inset, 0 5px 0 #00153d, 0 14px 26px rgb(0 25 72 / 12%); }
    .qm-banner-icon { width: 55px; height: 55px; flex: 0 0 55px; border-radius: 15px; border-color: #526c9b; background: linear-gradient(135deg, #37558d, #122e62); color: #c1d4f8; box-shadow: 0 1px 0 rgb(255 255 255 / 15%) inset, 0 4px 0 #001b4d, 0 8px 15px rgb(0 7 20 / 12%); }
    .qm-banner-eyebrow { margin-bottom: 8px; color: #94a6c8; font: 500 9px var(--qr-font-latin); letter-spacing: .15em; }
    .qm-banner-title { margin: 0; color: white; font-size: clamp(22px, 2.3vw, 29px); font-weight: 700; line-height: 1.4; }
    .qm-banner-copy p { margin: 6px 0 0; color: #becadf; font-size: 12px; }
    .qm-banner-pattern { top: -12px; inset-inline-end: 35px; width: 175px; height: 170px; display: block; transform: rotate(-30deg) skewY(10deg); opacity: .23; }
    .qm-banner-pattern i { position: absolute; width: 132px; height: 78px; border: 1px solid #e3e9f3; border-radius: 8px; background: var(--qm-marble-texture) center / 300px; box-shadow: 0 7px 0 #a4abb8, 0 12px 20px rgb(0 7 20 / 16%); }
    .qm-banner-pattern i:nth-child(1) { top: 6px; left: 35px; }
    .qm-banner-pattern i:nth-child(2) { top: 48px; left: 20px; }
    .qm-banner-pattern i:nth-child(3) { top: 90px; left: 5px; }

    /* Actual CSS 3D stone geometry: one surface, two 18px edges per slab. */
    .qm-marble-sculpture { position: relative; width: 370px; height: 260px; max-width: 100%; margin-inline: auto; perspective: 1000px; isolation: isolate; pointer-events: none; }
    .qm-sculpture-halo { position: absolute; inset: -20px; background: radial-gradient(ellipse, rgb(127 158 215 / 17%), transparent 65%); z-index: -1; }
    .qm-sculpture-orbit { position: absolute; top: 8px; left: 18px; width: 335px; height: 240px; border: 1px solid rgb(198 212 237 / 14%); border-radius: 50%; transform: rotate(-28deg); }
    .qm-sculpture-orbit.orbit-two { top: 22px; left: 44px; width: 283px; height: 208px; border-style: dashed; opacity: .6; }
    .qm-sculpture-shadow { position: absolute; top: 180px; left: 63px; width: 245px; height: 56px; border-radius: 50%; background: #000f2a; filter: blur(20px); opacity: .48; transform: rotate(-16deg); }
    .qm-stone-solid { position: absolute; width: 235px; height: 151px; transform: rotateX(53deg) rotateZ(-37deg); transform-style: preserve-3d; }
    .qm-stone-surface { position: absolute; inset: 0; border: 1px solid rgb(255 255 255 / 65%); border-radius: 3px; background: linear-gradient(130deg, rgb(255 255 255 / 15%), rgb(189 194 204 / 16%)), var(--qm-marble-texture) center / cover; box-shadow: 0 0 0 1px #dbdee3, 0 8px 25px rgb(0 8 24 / 19%); backface-visibility: hidden; }
    .qm-stone-edge { position: absolute; background: linear-gradient(180deg, #c2c7cf, #9da2ac); border: 1px solid #b6bac2; backface-visibility: hidden; }
    .qm-stone-edge.edge-front { top: 100%; left: 0; width: 100%; height: 18px; transform-origin: top; transform: rotateX(-90deg); }
    .qm-stone-edge.edge-side { left: 100%; top: 0; width: 18px; height: 100%; transform-origin: left; transform: rotateY(90deg); background: linear-gradient(90deg, #9da2ac, #818895); }
    .qm-stone-solid.stone-back { left: 104px; top: 6px; }
    .qm-stone-solid.stone-middle { left: 73px; top: 66px; }
    .qm-stone-solid.stone-front { left: 42px; top: 126px; }
    .stone-middle .qm-stone-surface { background-position: 80% 40%; background-size: 145%; }
    .stone-front .qm-stone-surface { background-position: 10% 50%; background-size: 120%; }
    .qm-stone-inlay { position: absolute; inset: 0 30% 0 auto; width: 13px; border-inline: 1px solid #b3ceff; background: linear-gradient(90deg, #09275e, #7194d5 38%, #e0ebff 52%, #204487 70%, #001d52); box-shadow: 0 0 17px rgb(125 171 255 / 48%); }
    .qm-sculpture-caption { position: absolute; top: 244px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #8a9ab9; font: 500 8px var(--qr-font-latin); letter-spacing: .2em; direction: ltr; }

    /* Factory dashboard. Data continues to come from the existing API. */
    .qm-dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr); align-items: center; min-height: 300px; gap: 14px; padding: 33px 36px; border: 1px solid #354f7e; border-radius: 24px; background: radial-gradient(ellipse at 16% 22%, rgb(140 160 198 / 16%), transparent 50%), linear-gradient(118deg, #00153b 0%, #001d53 65%, #07255e 100%); box-shadow: 0 1px 0 rgb(255 255 255 / 12%) inset, 0 5px 0 #00163f, 0 19px 30px rgb(0 19 54 / 12%); }
    .qm-dashboard-hero::before { content: ""; position: absolute; top: -115px; inset-inline-start: -70px; width: 330px; height: 330px; border: 1px solid rgb(184 201 232 / 8%); border-radius: 65px; transform: rotate(40deg); pointer-events: none; }
    .qm-dashboard-eyebrow { display: flex; align-items: center; gap: 10px; color: #b2bdd2; font: 500 9px var(--qr-font-latin); letter-spacing: .15em; }
    .qm-dashboard-hero h1 { margin: 20px 0 12px; color: #ffffff; font-size: clamp(30px, 3.2vw, 43px); font-weight: 700; line-height: 1.38; letter-spacing: -.7px; }
    .qm-dashboard-hero h1 > span { color: #a9bcdf; }
    .qm-dashboard-hero p { max-width: 500px; color: #bdc6d7; font-size: 13px; line-height: 1.9; }
    .qm-dashboard-hero-actions { gap: 11px; margin-top: 24px; }
    .qm-dashboard-hero-actions .btn { min-height: 39px; border-radius: 10px; padding: 9px 15px; font-size: 12px; }
    .qm-dashboard-hero-actions .btn-light { color: #20355b; border-color: #aebad1; background: linear-gradient(180deg, #d4def1, #bacae7); box-shadow: 0 1px 0 #ffffff inset, 0 3px 0 #8797b4, 0 7px 14px rgb(0 7 20 / 12%); }
    .qm-dashboard-hero-actions .btn-outline-light { color: #d6dce7; border-color: #5a6b8b; background: rgb(224 233 249 / 4%); box-shadow: 0 2px 0 #00163e; }
    .qm-dashboard-hero .qm-dashboard-hero-art { position: relative; inset: auto; width: 355px; height: 260px; min-height: 260px; max-width: 100%; opacity: 1; filter: none; align-self: center; z-index: 0; }
    .qm-dashboard-actions { gap: 12px; margin: 23px 0 30px; }
    .qm-dashboard-actions a { position: relative; min-height: 65px; padding: 14px; gap: 11px; border: 1px solid #dfe1e6; border-radius: 13px; background: #ffffff; box-shadow: 0 1px 0 #ffffff inset, 0 3px 0 #e2e5e9, 0 8px 18px rgb(23 36 61 / 3%); color: #3e4b62; font-size: 13px; font-weight: 700; }
    .qm-dashboard-actions a:hover { transform: translateY(-3px); border-color: #b8c1d2; box-shadow: 0 5px 0 #dbdde2, 0 12px 22px rgb(23 36 61 / 7%); }
    .qm-dashboard-actions a > span { width: 35px; height: 35px; flex: 0 0 35px; border: 1px solid #dfe3eb; border-radius: 10px; background: linear-gradient(145deg, #f1f4f9, #e0e5ee); color: #6b7689; box-shadow: 0 2px 0 #d3d6dc; }
    .qm-dashboard-actions .qm-shortcut-arrow { margin-inline-start: auto; color: #a2a9b6; }
    .qm-dashboard-section-heading { margin-bottom: 17px; }
    .qm-dashboard-section-heading h2 { color: #303d54; font-size: 21px; }
    .qm-dashboard-section-heading p { color: #8c929c; font-size: 12px; }
    .qm-dashboard-section-heading .btn { min-height: 33px; padding: 6px 12px; font-size: 11px; }
    .qm-dashboard-kpis { gap: 15px; margin-bottom: 25px; }
    .qm-dashboard-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 167px; padding: 21px 19px; border-radius: 17px; overflow: hidden; }
    .qm-dashboard-kpi::after { content: ""; position: absolute; inset-inline-end: -24px; bottom: -25px; width: 92px; height: 92px; border: 1px solid #e9ecf1; border-radius: 21px; transform: rotate(35deg); }
    .qm-dashboard-kpi:hover { transform: translateY(-3px); border-color: #bcc4d3; }
    .qm-dashboard-kpi .qm-kpi-symbol { width: 33px; height: 33px; margin: 0 0 3px; border-radius: 10px; background: linear-gradient(140deg, #e8ecf4, #d9dfeb); color: #687a9c; box-shadow: 0 2px 0 #c4ccda; }
    .qm-dashboard-kpi > span:not(.qm-kpi-symbol) { font-size: 12px; font-weight: 500; color: #7e8591; }
    .qm-dashboard-kpi strong { font: 700 clamp(25px, 2.5vw, 33px)/1.15 var(--qr-font-latin); color: #34415a; font-variant-numeric: tabular-nums; }
    .qm-dashboard-kpi small { font-size: 10px; color: #949aa6; }
    .qr-content .qm-dashboard-kpi-emphasis { background: linear-gradient(140deg, #e1e7f2, #eff2f9); border-color: #ccd5e5; }
    .qm-dashboard-panel { padding: 23px; border-radius: 18px; }
    .qm-dashboard-panel-head h2 { font-size: 18px; color: #364258; }
    .qm-dashboard-panel-head p { color: #8f959f; font-size: 11px; }
    .qm-dashboard-panel-head a { font-size: 11px; font-weight: 600; color: #717c90; }
    .qm-dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(275px, .85fr); gap: 19px; }
    .qr-content .qm-dashboard-table td { padding-block: 17px; }
    .qr-content .qm-job-number { color: #4d5d7c; font: 600 11px var(--qr-font-latin); }
    .qm-dashboard-flow { gap: 10px; }
    .qm-dashboard-flow a { padding: 10px; border-color: #e4e8ee; border-radius: 11px; background: #f9fafd; color: #606a7b; font-size: 12px; }
    .qm-dashboard-flow a span { width: 29px; height: 29px; border-radius: 8px; background: #e7ecf4; color: #727c90; font: 600 10px var(--qr-font-latin); box-shadow: 0 2px 0 #d4dae6; }
    .qm-dashboard-note { margin-top: 17px; padding: 12px; border-color: #eee5d3; background: #fcfaf3; color: #9c8b64; font-size: 10px; }
    .qm-dashboard-empty { min-height: 240px; padding: 30px; gap: 12px; }
    .qm-dashboard-empty h3 { color: #3f4d67; }
    .qm-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 3px; border: 1px solid #d9dee8; border-radius: 18px; background: #e9edf5; color: #768093; box-shadow: 0 4px 0 #cfd5e1; }

    /* Workflow cards, forms and supporting account screens share the same material. */
    .qm-workflow-stage { position: relative; padding: 25px !important; overflow: hidden; }
    .qm-workflow-stage::after { content: ""; position: absolute; top: -27px; inset-inline-end: -27px; width: 105px; height: 105px; border: 1px solid #e8ecf2; border-radius: 22px; transform: rotate(34deg); pointer-events: none; }
    .qm-workflow-stage .qm-workflow-step { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
    .qm-workflow-step > span { color: #a0a7b3; font: 600 11px var(--qr-font-latin); letter-spacing: .1em; }
    .qm-workflow-step > .qm-icon { padding: 10px; width: 43px; height: 43px; border: 1px solid #d5dbe7; border-radius: 12px; background: #eaeef6; color: #6d778a; box-shadow: 0 3px 0 #ced5e3; }
    .qm-workflow-stage h5 { font-size: 18px; }
    .qm-workflow-stage p { line-height: 1.9; min-height: 44px; }
    .qm-workflow-stage .btn { margin-top: 13px !important; }
    .qm-page-marble :is(.card h3) { font-family: var(--qr-font-latin); color: #41516e; font-size: 30px; }
    .qm-page-marble svg[viewBox="0 0 1000 600"] { margin-top: 12px; padding: 12px; border: 1px solid #d9dce2 !important; border-radius: 14px; background: #edeff4 !important; box-shadow: 0 2px 7px rgb(32 46 71 / 8%) inset; }
    .qr-register-page, .qr-payment-result-page, .qr-auth-layout { background: radial-gradient(ellipse at 15% 10%, #e0e4ec, transparent 50%), #f3f5f8; }
    .qr-register-shell { max-width: 1280px; }
    :is(.qr-register-form-card, .qr-register-plan-v2, .qr-payment-result-card, .qr-renew-card, .qr-subscription-status) { border-color: #dddfe4; border-radius: 21px; box-shadow: var(--qm-shadow); }
    .qr-register-plan-v2 { background: linear-gradient(140deg, #001b4c, #00153d); }
    .qr-auth-language { top: 25px; inset-inline-end: 28px; }

    /* Sign in: dimensional marble and navy and gold, with a quiet, readable form. */
    .qm-general-page.qr-auth-page { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr); width: 100%; max-width: none; min-height: 100dvh; }
    .qm-general-page .qr-auth-hero { position: relative; display: flex; align-items: center; min-height: 100dvh; padding: 55px clamp(35px, 5vw, 82px); background: radial-gradient(ellipse at 15% 60%, #283f6b 0, transparent 65%), linear-gradient(150deg, #00153b, #001d53 64%, #162a4f); color: white; }
    .qm-general-page .qr-auth-hero::after { content: ""; inset: auto -120px -160px auto; width: 420px; height: 420px; border: 1px solid rgb(204 217 241 / 10%); border-radius: 90px; transform: rotate(35deg); background: none; }
    .qr-auth-hero .qr-auth-hero-inner { width: 100%; max-width: 640px; margin-inline: auto; }
    .qr-auth-hero .qm-brand-sidebar { justify-content: flex-start; margin-bottom: 35px; }
    .qr-auth-hero .qm-brand-symbol { width: 64px; height: 64px; }
    .qr-auth-hero .qm-brand-names strong { font-size: 18px; }
    .qr-auth-hero .qm-brand-names small { font-size: 14px; }
    .qm-auth-eyebrow { display: block; margin-top: 20px; color: #a9b5ca; font-size: 12px; font-weight: 400; letter-spacing: .02em; }
    .qr-auth-hero h1 { position: relative; margin: 16px 0 16px; font-size: clamp(33px, 3.6vw, 53px); line-height: 1.32; letter-spacing: -.8px; font-weight: 700; }
    .qr-auth-hero h1 > span { color: #aabbdc; }
    .qr-auth-hero p { max-width: 470px; margin: 0; color: #bfc4cd; font-size: 14px; line-height: 1.9; }
    .qm-auth-sculpture { width: 375px; height: 260px; margin-block: 9px 17px; }
    .qm-auth-values { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 15px; border-top: 1px solid rgb(201 213 234 / 15%); }
    .qm-auth-values span { display: inline-flex; gap: 8px; align-items: center; color: #bac3d5; font-size: 11px; }
    .qm-auth-values .qm-icon { color: #889abb; }
    .qr-trial-pill { margin-top: 21px; border-color: #546584; border-radius: 9px; padding: 7px 12px; background: rgb(170 190 228 / 7%); color: #9fb4da; font-size: 12px; font-weight: 500; }
    .qr-auth-panel { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 72px 40px 48px; background: linear-gradient(rgb(247 248 250 / 94%), rgb(242 244 248 / 97%)), var(--qm-marble-texture) center / cover; }
    .qm-general-page .qr-auth-card { width: min(465px, 100%); padding: 35px; border: 1px solid #dce0e8; border-radius: 23px; background: linear-gradient(150deg, #ffffff, #fbfcfe); box-shadow: 0 1px 0 white inset, 0 5px 0 #dde2eb, 0 24px 65px rgb(29 49 86 / 8%); }
    .qr-auth-card > .qm-brand { margin-bottom: 7px; }
    .qr-auth-card .qm-brand-names strong { font-size: 13px; }
    .qr-auth-card .qm-brand-symbol { width: 39px; height: 39px; }
    .qr-auth-heading { margin: 25px 0 28px; }
    .qr-auth-heading h2 { margin-bottom: 8px; color: #313d52; font-size: 28px; font-weight: 800; }
    .qr-auth-heading p { color: #868d9a; font-size: 12px; line-height: 1.8; }
    .qr-auth-card .form-control-lg { min-height: 49px; padding-block: 12px; font-size: 13px; }
    .qm-input-with-icon { position: relative; }
    .qm-input-with-icon > .qm-icon { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); color: #939baa; z-index: 1; }
    .qr-auth-card .qm-input-with-icon .form-control { padding-inline-start: 45px; }
    [dir="rtl"] .qr-auth-card .qm-input-with-icon input[dir="ltr"] { padding-right: 45px; padding-left: 15px; }
    .qr-auth-card .qm-password-field .form-control { padding-inline-end: 46px; }
    .qm-password-toggle { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 33px; height: 33px; border: 0; border-radius: 8px; background: transparent; color: #848e9f; }
    .qm-password-toggle:hover { background: #e8ecf4; color: #4e5f7f; }
    .qr-auth-card .btn-lg { min-height: 48px; margin-top: 9px; border-radius: 11px; font-size: 14px; }
    .qr-auth-card .btn-lg .qm-icon { margin-inline-start: auto; }
    .qr-login-account-note { margin-top: 25px; padding: 14px 15px; border: 1px solid #dfe4ec; border-radius: 11px; background: #f2f5fa; font-size: 11px; line-height: 1.8; color: #808999; }
    .qr-login-account-note strong { display: block; margin-bottom: 4px; color: #6e798d; font-weight: 700; font-size: 12px; }
    .qr-auth-card .alert { border-radius: 11px; font-size: 11px; line-height: 1.7; }
    .qr-auth-card .qr-system-health-error { padding: 12px; border-color: #eeded3; background: #fdf7f0; color: #a18068; }
    .qr-auth-register-link { gap: 7px; margin-top: 23px; padding-top: 20px; border-color: #e7ebf1; font-size: 12px; color: #838c9c; }
    .qr-auth-register-link a { color: #526588; }
    .qr-auth-offer { padding: 12px; background: #e8edf7; color: #6f798d; font-size: 11px; }
    .qr-auth-offer strong { color: #485877; }
    .qr-app-loading, .qr-wasm-loading { background: radial-gradient(ellipse at center, #e7ecf5, #f7f8fa); color: #43567a; }
    .qr-loading-logo { filter: drop-shadow(0 7px 4px rgb(31 47 78 / 13%)); }
    .qr-brand-spinner { color: #48618e; }
    /* Small labels stay readable on white and marble surfaces. */
    .qr-shell .qr-logout-link { border: 1px solid transparent; background: transparent; color: #b8c2d4 !important; }
    .qr-shell .qr-topbar-brand .qm-topbar-eyebrow { color: #606a7b; }
    .qr-shell .qr-session-account-info small { color: #616b7c; }
    .qm-dashboard-kpi > span:not(.qm-kpi-symbol) { color: #58606f; }
    .qm-dashboard-kpi small { color: #636b7b; }
    .qm-dashboard-section-heading p, .qm-dashboard-panel-head p { color: #646d7d; }
    .qm-dashboard-panel-head a { color: #354c78; }
    .qr-content .table thead th { color: #596171; }
    .qm-stock-cell small, .qr-page-head p { color: #636c7c; }
    .qr-auth-heading p, .qr-login-account-note { color: #5e6777; }
    .qr-login-account-note strong { color: #3a4e74; }
    .qm-dashboard-note { color: #7f6d47; }
    .btn .qm-status { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
    .btn .qm-status-dot { display: none; }
    .qr-content input[dir="ltr"], .qr-auth-card input[dir="ltr"] { text-align: left; }
}

@media screen and (min-width: 761px) {
    .qr-shell.qr-sidebar-collapsed .qr-sidebar { display: none; }
    .qr-shell.qr-sidebar-collapsed .qr-main { width: 100%; margin: 0; }
}
@media screen and (max-width: 1330px) {
    :root { --qr-sidebar-width: 250px; }
    .qr-shell .qr-topbar { padding-inline: 23px; }
    .qr-shell .qr-content { padding-inline: 23px; }
    .qr-shell .qr-account-session { gap: 12px; }
    .qr-shell .qr-session-account-info strong { max-width: 118px; }
    .qm-dashboard-hero { grid-template-columns: minmax(0, 1.1fr) minmax(240px, .8fr); padding: 30px; }
    .qm-dashboard-hero h1 { font-size: 35px; }
    .qm-dashboard-hero .qm-dashboard-hero-art { width: 300px; transform: scale(.9); transform-origin: center; }
    .qm-dashboard-actions a { padding: 12px; gap: 9px; font-size: 12px; }
    .qm-dashboard-actions .qm-shortcut-arrow { display: none; }
    .qm-dashboard-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
    .qm-dashboard-kpi { min-height: 161px; padding: 17px 13px; }
    .qm-dashboard-kpi strong { font-size: 26px; }
    .qm-dashboard-kpi > span:not(.qm-kpi-symbol) { font-size: 11px; }
    .qm-dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr); gap: 15px; }
    .qm-dashboard-panel { padding: 19px 16px; }
}
@media screen and (max-width: 1100px) {
    :root { --qr-sidebar-width: 235px; }
    .qr-shell .qr-sidebar { padding-inline: 12px; }
    .qm-brand-sidebar .qm-brand-names strong { font-size: 10px; }
    .qr-shell .qr-topbar .qm-topbar-create { display: none; }
    .qr-shell .qr-session-account-info { display: none; }
    .qm-dashboard-hero { grid-template-columns: minmax(0, 1fr) minmax(200px, .7fr); gap: 0; padding: 26px; }
    .qm-dashboard-hero h1 { font-size: 30px; }
    .qm-dashboard-hero p { font-size: 12px; }
    .qm-dashboard-hero .qm-dashboard-hero-art { width: 240px; margin-inline-start: -30px; transform: scale(.76); }
    .qm-dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qm-dashboard-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qm-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .qm-general-page.qr-auth-page { grid-template-columns: minmax(0, 1fr) minmax(390px, .95fr); }
    .qm-general-page .qr-auth-hero { padding-inline: 35px; }
    .qm-auth-values { gap: 12px; }
    .qm-auth-values span { font-size: 10px; }
    .qr-auth-panel { padding-inline: 27px; }
    .qm-general-page .qr-auth-card { padding: 29px; }
}
@media screen and (max-width: 760px) {
    .qr-shell { min-height: 100dvh; }
    .qr-shell .qr-main, html[dir="ltr"] .qr-shell .qr-main, html[dir="rtl"] .qr-shell .qr-main { width: 100%; margin: 0; }
    .qr-shell .qr-sidebar, .qr-shell[dir="rtl"] .qr-sidebar, .qr-shell[dir="ltr"] .qr-sidebar { position: fixed; top: 10px; bottom: 10px; left: auto; right: auto; inset-inline-start: 10px; width: min(290px, calc(100vw - 40px)); height: calc(100dvh - 20px); padding: 22px 14px 14px; border-radius: 22px; z-index: 110; transition: transform .2s ease, visibility .2s; }
    .qr-shell[dir="rtl"] .qr-sidebar { transform: translateX(calc(100% + 25px)); }
    .qr-shell[dir="ltr"] .qr-sidebar { transform: translateX(calc(-100% - 25px)); }
    .qr-shell .qr-sidebar:not(.mobile-open) { visibility: hidden; }
    .qr-shell .qr-sidebar.mobile-open { visibility: visible; transform: translateX(0) !important; }
    .qr-shell .qr-sidebar nav { max-height: none; overflow-y: auto; padding: 0 2px 5px; }
    .qm-brand-sidebar .qm-brand-names strong { font-size: 12px; }
    .qr-shell .qr-brand > small { font-size: 11px; }
    .qr-shell .qr-mobile-close-btn { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #3e547d; border-radius: 9px; background: #0c2655; color: #bac6dc; }
    .qr-shell .qr-mobile-backdrop { position: fixed; inset: 0; display: block; z-index: 100; border: 0; background: rgb(0 11 30 / 46%); backdrop-filter: blur(4px); }
    .qr-shell .qr-topbar { height: 72px; min-height: 72px; padding: 12px 17px; gap: 9px; flex-wrap: nowrap; }
    .qr-shell .qr-topbar-brand .qm-topbar-eyebrow { display: block !important; font-size: 9px; }
    .qr-shell .qr-topbar .qm-topbar-title { font-size: 16px; }
    .qr-shell .qr-mobile-topbar-start { gap: 10px; }
    .qr-shell .qr-account-session { gap: 9px; }
    .qr-shell .qr-topbar .qm-user-avatar { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; font-size: 11px; }
    .qr-shell .qr-topbar-logout { width: 27px !important; height: 32px; padding: 3px; }
    .qr-shell .qr-mobile-menu-btn { display: flex; width: 32px; height: 34px; padding: 8px 6px; border: 1px solid #dddfe4; border-radius: 9px; background: white; box-shadow: 0 2px 0 #e3e5e9; }
    .qr-mobile-menu-btn span { height: 1.5px; border-radius: 2px; background: #53627e; }
    .qr-shell .qr-sidebar-toggle { display: none; }
    .qr-shell .qr-content { padding: 18px 16px 30px; }
    .qr-content .card.p-3, .qr-content .qr-card { padding: 18px !important; }
    .qr-content .row { --bs-gutter-x: 1rem; }
    .qm-section-banner { min-height: 115px; margin-bottom: 21px; padding: 21px 19px; gap: 14px; border-radius: 17px; }
    .qm-banner-icon { width: 45px; height: 45px; flex-basis: 45px; border-radius: 12px; }
    .qm-banner-icon .qm-icon { width: 23px; height: 23px; }
    .qm-banner-title { font-size: 23px; }
    .qm-banner-eyebrow { font-size: 8px; letter-spacing: .12em; }
    .qm-banner-copy p { font-size: 11px; line-height: 1.7; }
    .qm-banner-pattern { inset-inline-end: -60px; opacity: .12; }
    .qm-dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(170px, .8fr); min-height: 270px; padding: 25px; border-radius: 19px; }
    .qm-dashboard-eyebrow { font-size: 8px; letter-spacing: .1em; }
    .qm-dashboard-hero h1 { font-size: 31px; }
    .qm-dashboard-hero p { font-size: 12px; }
    .qm-dashboard-hero .qm-dashboard-hero-art { position: relative; top: auto; inset-inline-end: auto; margin-inline-start: -50px; width: 220px; height: 260px; opacity: 1; transform: scale(.7); }
    .qm-dashboard-hero-actions .btn { padding: 8px 11px; min-height: 35px; font-size: 11px; }
    .qm-dashboard-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 27px; }
    .qm-dashboard-actions a { min-height: 62px; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 11px; font-size: 12px; text-align: start; }
    .qm-dashboard-actions a > span { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; }
    .qm-dashboard-actions a > span .qm-icon { width: 19px; height: 19px; }
    .qm-dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
    .qm-dashboard-kpi { min-height: 155px; padding: 17px 14px; }
    .qm-dashboard-panel-head { flex-wrap: wrap; row-gap: 9px; }
    .qm-dashboard-panel-head h2 { font-size: 18px; }
    .qm-dashboard-section-heading { align-items: center; }
    .qm-dashboard-section-heading h2 { font-size: 21px; }
    .qr-content .table thead th, .qr-content .table td { padding-inline: 11px; }
    .qr-content .table-responsive .table { min-width: 510px; }
    .qr-content .card > table.table { display: block; max-width: 100%; overflow-x: auto; }
    .qm-general-page.qr-auth-page { grid-template-columns: 1fr; }
    .qm-general-page .qr-auth-hero { display: block; min-height: auto; padding: 35px 27px 27px; }
    .qr-auth-hero .qm-brand-sidebar { margin-bottom: 23px; }
    .qr-auth-hero .qm-brand-names strong { font-size: 14px; }
    .qr-auth-hero .qm-brand-symbol { width: 48px; height: 48px; }
    .qr-auth-hero h1 { font-size: 35px; max-width: 440px; }
    .qr-auth-hero p { max-width: 540px; font-size: 12px; }
    .qm-auth-sculpture { position: absolute; top: 45px; inset-inline-end: -110px; width: 315px; height: 260px; transform: scale(.6); opacity: .13; z-index: -1; }
    .qm-auth-values { gap: 15px; margin-top: 22px; padding-top: 17px; }
    .qr-trial-pill { margin-top: 16px; padding: 6px 10px; font-size: 11px; }
    .qr-auth-panel { padding: 28px 20px 40px; }
    .qm-general-page .qr-auth-card { width: min(480px, 100%); padding: 27px; }
    .qr-auth-language { top: 23px; inset-inline-end: 19px; }
    .qr-auth-language .qr-language-switch { border-color: #5a6b8b; background: #1c335e; }
    .qr-auth-language .qr-language-switch button { color: #c2cada; }
    .qr-auth-language .qr-language-switch button.active { background: #bdcbe5; color: #32415e; }
}
@media screen and (max-width: 520px) {
    .qr-shell .qr-topbar .qm-topbar-title { font-size: 14px; }
    .qr-shell .qr-topbar .qm-user-avatar { display: none; }
    .qr-shell .qr-topbar .qr-topbar-logout { display: none; }
    .qr-shell .qr-language-switch button { min-height: 25px; padding: 4px 6px !important; font-size: 9px !important; }
    .qr-shell .qr-topbar-brand .qm-topbar-eyebrow { font-size: 8px; }
    .qr-shell .qr-content { padding-inline: 13px; }
    .qm-dashboard-hero { display: block; min-height: 300px; padding: 25px 22px; }
    .qm-dashboard-hero-copy { max-width: 100%; position: relative; z-index: 1; }
    .qm-dashboard-hero h1 { max-width: 300px; margin-top: 20px; font-size: 31px; }
    .qm-dashboard-hero p { max-width: 290px; font-size: 12px; }
    .qm-dashboard-hero .qm-dashboard-hero-art { position: absolute; top: 25px; inset-inline-end: -110px; width: 240px; height: 260px; margin: 0; transform: scale(.7); opacity: .13; }
    .qm-dashboard-hero-actions { margin-top: 22px; gap: 8px; }
    .qm-dashboard-actions { gap: 9px; }
    .qm-dashboard-actions a { min-height: 82px; padding: 11px 5px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 11px; }
    .qm-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .qm-dashboard-kpi { min-height: 155px; }
    .qm-dashboard-kpi-emphasis { grid-column: 1 / -1; min-height: 148px; }
    .qm-dashboard-section-heading { align-items: flex-start; gap: 9px; }
    .qm-dashboard-section-heading h2 { font-size: 20px; }
    .qm-dashboard-section-heading p { max-width: 220px; font-size: 11px; }
    .qm-dashboard-section-heading .btn { padding-inline: 9px; min-height: 31px; }
    .qm-section-banner { padding: 20px 16px; gap: 12px; }
    .qm-banner-title { font-size: 21px; }
    .qm-banner-eyebrow { font-size: 7px; }
    .qm-banner-copy p { max-width: 250px; font-size: 10px; }
    .qr-page-head { align-items: flex-start; gap: 15px; }
    .qr-page-head > .btn { align-self: flex-start; flex-shrink: 0; font-size: 11px; padding-inline: 11px; }
    .qr-page-head h1 { font-size: 26px; }
    .qr-page-head p { font-size: 12px; }
    .qr-content .card.p-3, .qr-content .qr-card { padding: 16px !important; }
    .qr-auth-hero .qm-brand-names strong { font-size: 12px; }
    .qr-auth-hero .qm-brand-names small { font-size: 11px; }
    .qr-auth-hero h1 { font-size: 33px; }
    .qm-auth-eyebrow { margin-top: 15px; font-size: 10px; }
    .qm-auth-values { gap: 13px; }
    .qm-auth-values span { font-size: 10px; }
    .qm-auth-values .qm-icon { width: 14px; height: 14px; }
    .qm-general-page .qr-auth-hero { padding: 30px 23px 25px; }
    .qr-auth-hero .qm-brand { max-width: calc(100% - 70px); }
    .qr-auth-panel { padding-inline: 14px; }
    .qm-general-page .qr-auth-card { padding: 25px 22px; }
    .qr-auth-card .qm-brand-names strong { font-size: 12px; }
    .qr-auth-heading h2 { font-size: 27px; }
    .qr-auth-language { inset-inline-end: 15px; top: 22px; }
}
@media screen and (max-width: 360px) {
    .qr-shell .qr-topbar { padding-inline: 12px; gap: 6px; }
    .qr-shell .qr-mobile-topbar-start { gap: 8px; }
    .qr-shell .qr-topbar .qm-topbar-title { font-size: 13px; }
    .qm-dashboard-hero h1 { font-size: 28px; }
    .qm-dashboard-hero-actions .btn { padding-inline: 9px; font-size: 10px; }
    .qr-auth-hero .qm-brand-names strong { font-size: 10px; }
    .qr-auth-hero .qm-brand-symbol { width: 39px; height: 39px; }
    .qm-auth-values { gap: 10px; }
    .qm-auth-values span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .qr-shell *, .qr-auth-page *, .qr-register-page * { animation: none !important; transition: none !important; }
}
@media print {
    .qm-marble-sculpture, .qm-skip-link, .qm-topbar-create { display: none !important; }
    .qm-status { border-color: #cccccc; background: white; color: #222222; }
}

/* Gold accents identify primary actions; blue remains the navigation and content anchor. */
@media screen {
    .btn.btn-primary { background-image: linear-gradient(155deg, #f2d77d 0%, #d4af37 58%, #b58c22 100%); box-shadow: 0 1px 0 rgb(255 255 255 / 45%) inset, 0 3px 0 #99751d, 0 7px 16px rgb(155 115 20 / 16%); }
    .btn.btn-primary:hover { background-image: linear-gradient(155deg, #fae6a2, #dfbd55 60%, #bd9730); }
    .btn.btn-primary:active { background-image: linear-gradient(155deg, #ddbd5d, #c39b2d); }
    .btn.btn-primary:disabled { background-image: none; }
    .qr-shell .qr-sidebar { border-color: #284575 !important; background: radial-gradient(ellipse at 100% 0, rgb(212 175 55 / 10%), transparent 54%), linear-gradient(160deg, #0a2a66, #071f4c 55%, #04142f) !important; }
    .qr-shell .qr-sidebar nav a.active { background: linear-gradient(125deg, #1b407c, #0c2c63) !important; border-color: #8e773b; box-shadow: inset 3px 0 0 #d4af37, 0 5px 14px rgb(0 10 30 / 16%); }
    [dir="rtl"] .qr-shell .qr-sidebar nav a.active { box-shadow: inset -3px 0 0 #d4af37, 0 5px 14px rgb(0 10 30 / 16%); }
    .qr-shell .qr-sidebar nav a.active::after, .qm-brand-dot { background: #e8c968; }
    .qr-shell nav a.active .qm-nav-icon, .qr-shell .qr-stage .qm-brand-dot { color: #f3dda0; }
    .qr-shell .qm-brand-sidebar .qm-brand-names small { color: #eed692; }
    .qm-dashboard-hero, .qm-general-page .qr-auth-hero { background: radial-gradient(ellipse at 16% 22%, rgb(212 175 55 / 10%), transparent 55%), linear-gradient(125deg, #061a3d, #0a2a66 65%, #123875); }
    .qm-dashboard-hero h1 > span, .qr-auth-hero h1 > span { color: #f3dda0; }
    .qm-stone-inlay { border-inline-color: #ffe9a7; background: linear-gradient(90deg, #8e6417, #d4af37 34%, #fff2c7 51%, #d2a334 72%, #99721c); box-shadow: 0 0 17px rgb(236 191 62 / 42%); }
    .qm-section-banner { border-inline-start: 4px solid #d4af37; }
    .qm-banner-eyebrow, .qm-auth-values .qm-icon { color: #e4ca7c; }
    .qr-auth-card .qr-auth-heading { margin-top: 16px; }
    .qr-content .form-check-input:checked { background-color: #0a2a66; border-color: #0a2a66; }
    ::selection { background: #f1dda2; color: #061a3d; }
    :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline-color: #b38b20; }
}
@media screen and (max-width: 760px) {
    .qm-brand-lockup { width: 128px; }
}
