/* Quantum Tailor — the shared identity from the supplied purple and gold brand board.
   Load after the retained platform styles. Fonts and artwork are served locally. */
@font-face {
    font-family: "Cairo";
    src: url("fonts/cairo/Cairo-Variable.ttf") format("truetype");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    --tailor-purple: #4b1d6b;
    --tailor-purple-deep: #2e123f;
    --tailor-purple-hover: #612b82;
    --tailor-gold: #d4af37;
    --tailor-gold-ink: #80600f;
    --tailor-lilac: #e9ddf4;
    --tailor-paper: #f8f7fb;
    --tailor-ink: #1f2937;
    --tailor-muted: #756b80;
    --tailor-border: #e9e3ef;
    --tailor-shadow: 0 4px 24px rgb(54 25 75 / 4%);
    --tailor-accent: var(--tailor-gold);
    --qm-primary: var(--tailor-purple);
    --qm-primary-hover: var(--tailor-purple-hover);
    --qm-gold: var(--tailor-gold);
    --qm-gold-light: #f3dfa1;
    --qm-mint: var(--tailor-gold);
    --qm-stone: var(--tailor-lilac);
    --qm-ink: var(--tailor-ink);
    --qm-charcoal: var(--tailor-ink);
    --qm-paper: var(--tailor-paper);
    --qm-marble: var(--tailor-paper);
    --qm-muted: var(--tailor-muted);
    --qm-border: var(--tailor-border);
    --qm-deep: var(--tailor-purple-deep);
    --qm-surface: #fff;
    --qm-shadow: var(--tailor-shadow);
    --qm-elevation: var(--tailor-shadow);
    --qm-radius: 16px;
    --qm-marble-texture: none;
    --qr-brand-primary: var(--tailor-purple);
    --qr-brand-primary-dark: var(--tailor-purple-deep);
    --qr-brand-primary-soft: #f1eaf7;
    --qr-brand-ink: var(--tailor-ink);
    --qr-font-arabic: "Cairo", Tahoma, sans-serif;
    --qr-font-arabic-heading: "Cairo", Tahoma, sans-serif;
    --qr-font-latin: "Cairo", "Segoe UI", sans-serif;
    --qr-sidebar-width: 264px;
    --bs-font-sans-serif: "Cairo", Tahoma, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-bg: var(--tailor-paper);
    --bs-body-color: var(--tailor-ink);
    --bs-primary: var(--tailor-purple);
    --bs-primary-rgb: 75, 29, 107;
    --bs-link-color: var(--tailor-purple);
    --bs-link-color-rgb: 75, 29, 107;
    --bs-link-hover-color: var(--tailor-purple-hover);
    --bs-link-hover-color-rgb: 97, 43, 130;
    --bs-border-color: var(--tailor-border);
}

html body {
    margin: 0;
    font-family: "Cairo", Tahoma, sans-serif !important;
    color: var(--tailor-ink);
    background: var(--tailor-paper);
    -webkit-font-smoothing: antialiased;
}
html body :is(button, input, select, textarea) { font-family: inherit; }
a { text-underline-offset: 4px; }
::selection { background: var(--tailor-lilac); color: var(--tailor-purple-deep); }
:focus-visible { outline: 3px solid #a779c4; outline-offset: 3px; }
.tailor-skip-link { position: fixed; top: -70px; inset-inline-start: 20px; z-index: 1400; padding: 12px 20px; border-radius: 10px; background: white; color: var(--tailor-purple); box-shadow: var(--tailor-shadow); }
.tailor-skip-link:focus { top: 12px; }
.qm-icon { flex-shrink: 0; }
html[dir="rtl"] .qm-directional-icon { transform: rotate(180deg); }

/* Signature, available in light and dark versions. */
.qm-brand.tailor-brand { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; direction: ltr; max-width: 100%; text-align: left; }
.tailor-brand .tailor-brand-mark { display: block; width: 62px; height: 57px; flex: 0 0 62px; object-fit: contain; }
.tailor-brand .qm-brand-names { display: flex; flex-direction: column; gap: 5px; min-width: 0; line-height: 1.3; }
.tailor-brand .qm-brand-names strong { font: 750 18px/1.3 "Cairo", sans-serif; color: var(--tailor-purple-deep); white-space: nowrap; letter-spacing: -.6px; }
.tailor-brand .qm-brand-names strong > span { color: var(--tailor-gold-ink); }
.tailor-brand .qm-brand-names small { font: 750 13px/1.6 "Cairo", sans-serif; color: var(--tailor-purple); direction: rtl; text-align: center; white-space: nowrap; }
.tailor-brand.qm-brand-dark .qm-brand-names strong { color: #fff; }
.tailor-brand.qm-brand-dark .qm-brand-names strong > span { color: #e9cb76; }
.tailor-brand.qm-brand-dark .qm-brand-names small { color: #e6d4ef; }
.tailor-brand.qm-brand-full .tailor-brand-mark { width: 78px; height: 70px; flex-basis: 78px; }
.tailor-brand.qm-brand-full .qm-brand-names strong { font-size: 24px; }
.tailor-brand.qm-brand-full .qm-brand-names small { font-size: 16px; }
.tailor-brand.qm-brand-compact .tailor-brand-mark { width: 47px; height: 44px; flex-basis: 47px; }
.tailor-brand.qm-brand-compact .qm-brand-names strong { font-size: 16px; }
.tailor-brand.qm-brand-compact .qm-brand-names small { font-size: 11px; }
.tailor-scope { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid #e8d7a6; border-radius: 99px; background: #fcf7e8; color: #806013; font: 750 9px/1.65 "Cairo", sans-serif; white-space: nowrap; letter-spacing: 0; }
.tailor-scope > span { margin: 0; color: inherit; }
.tailor-scope > .qm-icon { color: inherit; }
.tailor-brand .qm-brand-names { gap: 3px; }
.tailor-brand .tailor-brand-scope { align-self: center; padding: 1px 10px; border: 1px solid #e7c969; border-radius: 99px; background: linear-gradient(110deg, #f2d98d, #d4af37); color: #472d0a; font-size: 8px; font-weight: 850; line-height: 1.7; white-space: nowrap; letter-spacing: 0; }
.tailor-brand.qm-brand-full .tailor-brand-scope { padding-inline: 15px; font-size: 10px; }
.tailor-brand.qm-brand-compact .tailor-brand-scope { padding-inline: 7px; font-size: 7px; }

/* Application shell. Logical edges preserve both Arabic and English layouts. */
.qr-shell.tailor-shell { display: flex; min-height: 100dvh; background: var(--tailor-paper); }
.qr-shell.tailor-shell .qr-sidebar {
    position: fixed;
    inset: 0;
    inset-inline-end: auto;
    width: var(--qr-sidebar-width);
    height: 100dvh;
    margin: 0;
    padding: 28px 18px 18px;
    display: flex;
    flex-direction: column;
    border: 0 !important;
    border-radius: 0;
    background: radial-gradient(ellipse at 100% 0, rgb(144 80 165 / 24%), transparent 50%), linear-gradient(178deg, #4b1d6b, #351546 80%) !important;
    color: white;
    box-shadow: none;
    z-index: 100;
}
.qr-shell.tailor-shell .qr-brand { flex-direction: column; align-items: stretch; gap: 14px; padding: 0 1px 22px; margin: 0; border-bottom: 1px solid rgb(233 221 244 / 14%); }
.qr-mobile-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qr-shell.tailor-shell .qr-brand > small { color: #d0badc; font-size: 10px; text-align: center; font-weight: 500; }
.qr-shell.tailor-shell .qr-sidebar nav { display: flex; flex-direction: column; flex: 1; gap: 6px; min-height: 0; margin: 24px 0 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #84519b transparent; }
.qr-shell.tailor-shell .qr-sidebar nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 11px 15px; border: 1px solid transparent; border-radius: 10px; color: #e6d9ed; font-size: 12px; font-weight: 550; line-height: 1.65; text-decoration: none; box-shadow: none; transition: background .18s, color .18s; }
.qr-shell.tailor-shell .qr-sidebar nav a:hover { transform: none; border-color: rgb(233 221 244 / 10%); background: rgb(233 221 244 / 10%) !important; color: white; }
.qr-shell.tailor-shell .qr-sidebar nav a.active { border: 1px solid #ddc6ed; background: linear-gradient(105deg, #e9ddf4, #d9bde9) !important; color: #401755 !important; font-weight: 800; box-shadow: 0 4px 15px rgb(19 5 28 / 10%); }
.qr-shell.tailor-shell .qr-sidebar nav a.active::after { inset-inline-end: 10px; width: 4px; height: 4px; background: var(--tailor-purple); }
.qr-shell.tailor-shell .qm-nav-icon { width: 21px; height: 21px; flex: 0 0 21px; background: none; border: 0; border-radius: 0; color: #ccacd9; }
.qr-shell.tailor-shell nav a.active .qm-nav-icon { color: #4b1d6b; background: none; }
.qr-shell.tailor-shell .qr-nav-separator { margin: 19px 15px 5px; padding: 0; border: 0; color: #bea1ce !important; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.qr-shell.tailor-shell .qr-sidebar-footer { position: relative; flex: 0 0 auto; margin-top: auto; padding: 15px 7px 0; border-top: 1px solid rgb(233 221 244 / 14%); background: none; }
.qr-shell.tailor-shell .qr-sidebar-user { padding: 0 5px 9px; }
.qr-shell.tailor-shell .qr-sidebar-user strong { color: #fff; font-size: 12px; overflow-wrap: anywhere; }
.qr-shell.tailor-shell .qr-sidebar-user span { color: #c9b1d7; font-size: 10px; overflow-wrap: anywhere; }
.qr-shell.tailor-shell .qr-logout-link { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 5px; background: none; border: 0; color: #dcc9e7 !important; font-size: 11px; }
.qr-shell.tailor-shell .qr-logout-link:hover { color: #f3d98b !important; }
.qr-shell.tailor-shell .qr-stage { position: static; display: flex; justify-content: center; gap: 8px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid rgb(233 221 244 / 10%); border-radius: 0; background: none; color: #d8bb65; font: 600 8px "Cairo", sans-serif; letter-spacing: .1em; }
.qr-shell.tailor-shell .qr-stage span { color: #bea7cc; font-size: 8px; letter-spacing: 0; }
.qr-shell.tailor-shell[dir] .qr-main { flex: 1; width: auto; min-width: 0; min-height: 100dvh; margin: 0; margin-inline-start: var(--qr-sidebar-width); }
.qr-shell.tailor-shell .qr-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 80px; min-height: 80px; padding: 14px 32px; border: 0; border-bottom: 1px solid var(--tailor-border) !important; background: rgb(255 255 255 / 96%) !important; box-shadow: none; backdrop-filter: blur(14px); }
.qr-shell.tailor-shell .qr-topbar-brand { display: flex; flex-direction: column; gap: 4px; }
.qr-shell.tailor-shell .tailor-topbar-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.qr-shell.tailor-shell .tailor-topbar-scope { display: inline-flex; margin: 0; color: #806013; }
.qr-shell.tailor-shell .tailor-topbar-scope > span { display: inline; margin: 0; color: inherit; }
.qr-shell.tailor-shell .qr-stage { flex-wrap: wrap; row-gap: 4px; }
.qr-shell.tailor-shell .qr-stage .tailor-footer-scope { flex-basis: 100%; color: #dfc978; text-align: center; font-size: 8px; }
.qr-shell.tailor-shell .qr-topbar-brand .qm-topbar-eyebrow { margin: 0; color: #8e759e; font-size: 8px; font-weight: 650; letter-spacing: .16em; }
.qr-shell.tailor-shell .qr-topbar .qm-topbar-title { color: var(--tailor-purple-deep); font-size: 16px; font-weight: 800; }
.qr-shell.tailor-shell .qr-account-session { display: flex; align-items: center; gap: 15px; }
.qr-shell.tailor-shell .qr-account-caption { max-width: 150px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--tailor-muted); }
.qr-topbar .tailor-avatar { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; margin: 0; border: 1px solid #e4d6ed; border-radius: 50%; background: #f2eaf7; color: var(--tailor-purple); font-size: 15px; font-weight: 800; }
.qr-shell.tailor-shell .qr-content { min-width: 0; padding: 29px 32px 20px; background: var(--tailor-paper); outline: 0; }
.qr-language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--tailor-border); border-radius: 9px; background: #f8f5fb; box-shadow: none; }
.qr-language-switch > span { display: none; }
.qr-language-switch button { min-height: 28px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--tailor-muted); font-size: 10px; font-weight: 600; }
.qr-language-switch button.active { background: #fff; color: var(--tailor-purple); box-shadow: 0 1px 4px rgb(75 29 107 / 10%); }

/* Shared buttons, forms and data surfaces also cover the account and admin pages. */
body .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 16px; border-radius: 9px; font-family: inherit; font-size: 12px; font-weight: 750; line-height: 1.6; transition: background .18s, border-color .18s, box-shadow .18s; }
body .btn.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #4b1d6b;
    --bs-btn-border-color: #4b1d6b;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #612b82;
    --bs-btn-hover-border-color: #612b82;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #351348;
    --bs-btn-active-border-color: #351348;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #4b1d6b;
    --bs-btn-disabled-border-color: #4b1d6b;
    --bs-btn-focus-shadow-rgb: 75, 29, 107;
    background-image: none;
    box-shadow: 0 3px 9px rgb(75 29 107 / 12%);
}
body .btn.btn-primary:hover:not(:disabled) { transform: none; background-image: none; box-shadow: 0 4px 12px rgb(75 29 107 / 19%); }
body .btn.btn-primary:active { background-image: none; }
body .btn.btn-outline-primary {
    --bs-btn-color: #4b1d6b;
    --bs-btn-border-color: #d4bedf;
    --bs-btn-hover-color: #4b1d6b;
    --bs-btn-hover-bg: #f0e7f6;
    --bs-btn-hover-border-color: #b38acb;
    --bs-btn-active-color: #4b1d6b;
    --bs-btn-active-bg: #e9ddf4;
    --bs-btn-active-border-color: #a678bf;
    --bs-btn-disabled-color: #4b1d6b;
    --bs-btn-disabled-border-color: #d4bedf;
    background-color: transparent;
    box-shadow: none;
}
body :is(.btn-light, .btn-outline-secondary) { --bs-btn-color: #71647d; --bs-btn-border-color: #e5dceb; --bs-btn-hover-color: #4b1d6b; --bs-btn-hover-bg: #f4eef8; --bs-btn-hover-border-color: #cbb4d8; --bs-btn-active-bg: #e9ddf4; background-color: white; box-shadow: none; }
body .btn-sm { min-height: 32px; padding: 6px 11px; font-size: 10px; border-radius: 7px; }
body .btn-lg { min-height: 48px; padding: 12px 21px; font-size: 14px; }
body .btn:active:not(:disabled) { transform: none; }
body .btn.tailor-btn-gold { color: #34200b; border: 1px solid #e1bf54; background: linear-gradient(120deg, #efd487, #d4af37); box-shadow: 0 3px 12px rgb(0 0 0 / 10%); }
body .btn.tailor-btn-gold:hover { background: #f1d887; border-color: #f1d887; color: #34200b; }
body .btn.btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: #9978aa; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #4b1d6b; --bs-btn-hover-border-color: #fff; background-color: transparent; box-shadow: none; }
body .qr-content :is(.form-control, .form-select),
body .qr-auth-card .form-control,
body .qr-register-form-card :is(.form-control, .form-select) { min-height: 43px; padding-block: 10px; border: 1px solid #e1d7e8; border-radius: 9px; background-color: #fdfcfe; color: var(--tailor-ink); font-family: inherit; font-size: 13px; box-shadow: none; }
body .qr-content :is(.form-control, .form-select):focus,
body .qr-auth-card .form-control:focus,
body .qr-register-form-card :is(.form-control, .form-select):focus { border-color: #a478bd; background-color: white; box-shadow: 0 0 0 3px rgb(130 77 164 / 12%); }
body :is(.form-control, .form-select)::placeholder { color: #a49aab; }
body .qr-content :is(label, .form-label), body .qr-auth-card label, body .qr-register-form-card label { display: block; margin-bottom: 7px; color: #685674; font-size: 12px; font-weight: 650; }
body .qr-content :is(.form-control-sm, .form-select-sm) { min-height: 34px; padding-block: 6px; font-size: 12px; }
body .form-check-input:checked, body .qr-content .form-check-input:checked { background-color: var(--tailor-purple); border-color: var(--tailor-purple); }
body .form-check-input:focus { border-color: #ad85c3; box-shadow: 0 0 0 3px rgb(75 29 107 / 12%); }
body .qr-content label.form-check { display: flex; gap: 9px; align-items: center; padding: 0; }
body .qr-content label.form-check .form-check-input { float: none; margin: 0; }
body .qr-content :is(.card, .qr-card, .qr-stat, .qr-sub-card, .qr-users-kpi, .qr-owner-kpi) { min-width: 0; border: 1px solid var(--tailor-border); border-radius: 16px; background: #fff; box-shadow: var(--tailor-shadow); }
body .qr-content :is(h2, h3, h4, h5, h6) { color: var(--tailor-purple-deep); font-weight: 750; letter-spacing: 0; }
body .qr-content .text-muted, body .qr-content .qr-section-title > span { color: var(--tailor-muted) !important; }
body .qr-content .table-responsive { width: 100%; border: 1px solid #eee7f2; border-radius: 10px; }
body .qr-content .table { --bs-table-bg: transparent; --bs-table-striped-bg: #faf7fc; --bs-table-hover-bg: #f8f3fb; margin: 0; color: var(--tailor-ink); font-size: 12px; }
body .qr-content .table thead th { padding: 13px 15px; background: #f8f5fb; border-bottom: 1px solid #eee7f2; color: #82708d; font-size: 10px; font-weight: 700; white-space: nowrap; }
body .qr-content .table td { padding: 16px 15px; border-color: #f1ecf5; background: transparent; font-size: 12px; }
body .qr-content .table tbody tr:hover > td { background: #fcf9fe; }
body .qr-content .table a { color: var(--tailor-purple); font-weight: 700; text-decoration: none; }
.tailor-numeric { direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
body .qr-page-head h1 { color: var(--tailor-purple-deep); font-size: clamp(24px, 2.5vw, 32px); font-weight: 800; }
body .qr-page-head p { color: var(--tailor-muted); }
body :is(.qr-page-eyebrow, .qr-users-eyebrow, .qr-subscription-eyebrow) { color: #946ba9; font-weight: 700; }
body .qr-customer-kpis > div { border-color: var(--tailor-border); background: #fff; box-shadow: var(--tailor-shadow); }
body .qr-customer-kpis strong, body .qr-users-kpi strong { color: var(--tailor-purple); }
body .qr-customer-kpis span { color: var(--tailor-muted); }
body .qr-users-role-badge { color: var(--tailor-purple); border-color: #dbc8e7; background: #f1e8f8; }
body .qr-content .qr-owner-kpi strong { color: var(--tailor-purple); }
body :is(.qr-owner-list-card, .qr-owner-editor, .qr-owner-subscription-settings, .qr-owner-renewals-card, .qr-owner-denied) { border-color: var(--tailor-border); background: #fff; box-shadow: var(--tailor-shadow); }
body .qr-owner-card-head { border-color: var(--tailor-border); background: #fbf8fd; }
body :is(.qr-owner-card-head h5, .qr-account-name strong, .qr-owner-login-policy, .qr-owner-limits h6) { color: var(--tailor-purple); }
body :is(.qr-owner-toggle, .qr-owner-limits) { border-color: var(--tailor-border); background: #f8f2fc; }
body .qr-owner-kpi.success { border-top-color: var(--tailor-gold); }

/* Tailoring pages. */
.tailor-page { max-width: 1480px; min-width: 0; margin-inline: auto; }
.tailor-page h1 { margin: 5px 0 9px; font-size: clamp(25px, 2.6vw, 34px); font-weight: 850; color: var(--tailor-purple-deep); line-height: 1.65; }
.tailor-page h2 { margin: 0; font-size: 16px; font-weight: 800; }
.tailor-page h3 { font-size: 14px; font-weight: 750; }
.tailor-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.tailor-heading p { max-width: 760px; margin: 0; color: var(--tailor-muted); font-size: 13px; line-height: 1.9; }
.tailor-eyebrow { display: flex; align-items: center; gap: 9px; color: #9264a8; font-size: 9px; font-weight: 750; letter-spacing: .18em; }
.tailor-panel { min-width: 0; padding: 24px; border: 1px solid var(--tailor-border); border-radius: 16px; background: white; box-shadow: var(--tailor-shadow); }
.tailor-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 19px; margin-bottom: 20px; border-bottom: 1px solid #f0eaf5; }
.tailor-panel-title p { margin: 6px 0 0; color: var(--tailor-muted); font-size: 10px; line-height: 1.7; }
.tailor-panel-title > .qm-icon { color: #c4a049; }
.tailor-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.tailor-kpis > a, .tailor-kpis > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 23px; border: 1px solid var(--tailor-border); border-radius: 15px; background: #fff; box-shadow: var(--tailor-shadow); color: inherit; text-decoration: none; }
.tailor-kpis > a { transition: border-color .18s, box-shadow .18s; }
.tailor-kpis > a:hover { border-color: #cab0da; box-shadow: 0 6px 24px rgb(75 29 107 / 8%); }
.tailor-kpis > :is(a, div) > span { font-size: 12px; font-weight: 650; color: var(--tailor-muted); }
.tailor-kpis strong { display: block; color: var(--tailor-purple-deep); font-size: clamp(24px, 2.3vw, 33px); font-weight: 850; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tailor-columns { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.tailor-list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 14px; margin-bottom: 8px; border: 1px solid var(--tailor-border); border-radius: 10px; background: #fdfbfe; color: var(--tailor-ink); text-align: start; font-size: 13px; }
.tailor-list-row:hover { border-color: #b18ac7; background: #f4edf9; }
.tailor-list-row small { color: var(--tailor-purple); }
.tailor-subpanel, .tailor-garment { padding: 20px; border: 1px solid var(--tailor-border); border-radius: 12px; background: #faf7fc; }
.tailor-subpanel h3 { margin: 0 0 16px; }
.tailor-garment { margin-bottom: 15px; }
.tailor-grand-total { color: var(--tailor-purple); font-size: 30px; font-weight: 850; direction: ltr; font-variant-numeric: tabular-nums; }
.tailor-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #e0cdec; border-radius: 6px; background: #f4ecf9; color: #673384; font-size: 10px; font-weight: 750; white-space: nowrap; }
.tailor-status::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.tailor-status[data-status="Ready"] { color: #846315; background: #fcf6e5; border-color: #efe0b1; }
.tailor-status[data-status="Delivered"] { color: #31715c; background: #edf7f2; border-color: #d0e8db; }
.tailor-status[data-status="Draft"] { color: #7c7286; background: #f4f1f7; border-color: #e6e0eb; }
.tailor-status[data-status="Cancelled"] { color: #a45064; background: #fcf0f4; border-color: #f0d8e1; }
.tailor-measurement-json { max-width: 260px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; text-align: left; }

/* Dashboard: a calm workspace with details borrowed from the atelier. */
.tailor-welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.tailor-welcome h1 { margin: 0 0 5px; font-size: 23px; line-height: 1.65; }
.tailor-welcome p { margin: 0; color: var(--tailor-muted); font-size: 12px; }
.tailor-date { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: #8c7c96; font-size: 10px; }
.tailor-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, .8fr); align-items: center; gap: 20px; min-height: 290px; padding: 28px 38px; border: 1px solid #683880; border-radius: 20px; background: radial-gradient(ellipse at 15% 80%, rgb(164 107 184 / 26%), transparent 58%), linear-gradient(115deg, #2d133e, #4b1d6b 80%); color: white; overflow: hidden; isolation: isolate; box-shadow: 0 8px 28px rgb(75 29 107 / 10%); }
.tailor-hero::after { content: ""; position: absolute; inset: 10px; z-index: -1; border: 1px dashed rgb(222 191 236 / 15%); border-radius: 13px; pointer-events: none; }
.tailor-hero .tailor-eyebrow { display: inline-flex; color: #ddbf68; font-size: 9px; }
.tailor-audience-badge { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 14px; padding: 4px 10px; border: 1px solid #99733c; border-radius: 99px; background: rgb(212 175 55 / 10%); color: #edce7d; font-size: 10px; font-weight: 750; vertical-align: middle; }
.tailor-hero .tailor-eyebrow > span { width: 25px; height: 1px; background: #ddbf68; }
body .qr-content .tailor-hero h2 { margin: 16px 0 10px; color: white; font-size: clamp(26px, 2.65vw, 40px); font-weight: 800; line-height: 1.7; }
.tailor-hero h2 > span { color: #e7c76f; }
.tailor-hero p { max-width: 490px; margin: 0; color: #dbc9e5; font-size: 12px; line-height: 2; }
.tailor-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.tailor-hero-actions .btn { min-height: 40px; padding: 10px 16px; font-size: 11px; }
.tailor-hero-art { position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.tailor-hero-art img { display: block; width: 100%; max-width: 330px; height: auto; margin: -20px -15px -10px; }
.tailor-art-caption { margin-top: -8px; color: #bfa2ce; font-size: 8px; letter-spacing: .12em; }
.tailor-audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.tailor-audiences > a { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 18px 21px; border: 1px solid #e8d9ba; border-radius: 13px; background: linear-gradient(110deg, #fffdfa, #fff); color: var(--tailor-purple-deep); text-decoration: none; }
.tailor-audiences > a:last-child { border-color: #e6d4ef; background: linear-gradient(110deg, #fcf8ff, #fff); }
.tailor-audiences > a:hover { border-color: #b89650; }
.tailor-audiences > a:last-child:hover { border-color: #b089c8; }
.tailor-audience-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: #fbf4e1; color: #8c6720; }
.tailor-audiences > a:last-child .tailor-audience-icon { color: #7c4897; background: #f3e8fb; }
.tailor-audiences strong { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.tailor-audiences small { display: block; color: #8a7c94; font-size: 10px; line-height: 1.7; }
.tailor-audiences > a > .qm-icon { margin-inline-start: auto; color: #b798c7; }
.tailor-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 22px 0 30px; }
.tailor-shortcuts > a { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 15px 14px; border: 1px solid var(--tailor-border); border-radius: 12px; background: #fff; color: var(--tailor-purple-deep); text-decoration: none; transition: border-color .18s; }
.tailor-shortcuts > a:hover { border-color: #c9acda; background: #fdfaff; }
.tailor-shortcuts > a > span { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border: 1px solid #eee3f5; border-radius: 11px; background: #f6effb; color: #77458e; }
.tailor-shortcuts strong { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 750; }
.tailor-shortcuts small { display: block; font-size: 9px; color: #92849b; }
.tailor-shortcut-arrow { margin-inline-start: auto; color: #c8b5d4; }
.tailor-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.tailor-section-heading h2 { font-size: 18px; }
.tailor-section-heading p { margin: 5px 0 0; color: var(--tailor-muted); font-size: 10px; }
.tailor-dashboard-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 24px; }
.tailor-dashboard-kpis > a { padding: 20px; gap: 4px; }
.tailor-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.tailor-kpi-top > small { color: #988ba1; font-size: 9px; }
.tailor-kpi-icon { display: grid; place-items: center; width: 41px; height: 41px; flex: 0 0 41px; border-radius: 12px; background: #f1e6fa; color: #8243ac; }
.tailor-kpi-icon.tailor-kpi-lilac { color: #8d62a7; background: #f1ecf8; }
.tailor-kpi-icon.tailor-kpi-gold { color: #aa8423; background: #fbf5e4; }
.tailor-kpi-icon.tailor-kpi-rose { color: #ac6c8d; background: #faedf4; }
.tailor-dashboard-kpis strong { font-size: 30px; }
.tailor-dashboard-kpis > a > span { font-size: 11px; color: #8c7e95; }
.tailor-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); align-items: start; gap: 20px; }
.tailor-dashboard-grid .tailor-panel { padding: 22px; }
.tailor-dashboard-grid .tailor-panel-title h2 { font-size: 15px; }
.tailor-text-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--tailor-purple); text-decoration: none; font-size: 10px; font-weight: 700; }
.tailor-order-number { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tailor-summary-row { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid #f1ebf5; color: inherit; text-decoration: none; }
.tailor-summary-row:first-of-type { padding-top: 0; }
.tailor-summary-row:hover strong { color: var(--tailor-purple-hover); }
.tailor-summary-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #eee4f4; border-radius: 10px; background: #faf6fd; color: #9566ad; }
.tailor-summary-row small { display: block; color: var(--tailor-muted); font-size: 10px; }
.tailor-summary-row strong { display: block; margin-top: 5px; color: var(--tailor-purple-deep); font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tailor-summary-row strong small { display: inline; margin-inline-start: 4px; color: #a092a9; font-size: 10px; font-weight: 600; }
.tailor-summary-note { display: flex; align-items: center; gap: 8px; margin-top: 17px; padding: 12px; border: 1px dashed #e6d7b2; border-radius: 9px; background: #fffcf4; color: #927734; font-size: 9px; line-height: 1.9; }
.tailor-page-signature { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 30px 0 5px; color: #bca5c9; }
.tailor-page-signature > span { width: 65px; height: 1px; border-top: 1px dashed #d9c9e3; }
.tailor-page-signature small { color: #ab98b6; font-size: 8px; letter-spacing: .04em; }
.tailor-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 270px; gap: 12px; padding: 30px 18px; text-align: center; }
.tailor-empty > span { display: grid; place-items: center; width: 65px; height: 65px; margin-bottom: 5px; border-radius: 20px; background: #f3eaf9; color: #a07ab5; }
.tailor-empty h3 { margin: 0; font-size: 16px; }
.tailor-empty p { max-width: 360px; margin: 0 0 5px; color: var(--tailor-muted); font-size: 11px; line-height: 1.9; }
.tailor-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 180px; color: var(--tailor-purple); font-size: 13px; }

/* Sign in and account creation use the same atelier and typography. */
body .qr-auth-layout { min-height: 100dvh; background: var(--tailor-paper); }
body .qm-general-page.qr-auth-page { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: none; min-height: 100dvh; margin: 0; }
body .qm-general-page .qr-auth-hero { position: relative; display: flex; align-items: center; min-height: 100dvh; padding: 54px 60px 36px; background: radial-gradient(ellipse at 80% 55%, rgb(141 85 162 / 22%), transparent 60%), linear-gradient(150deg, #4b1d6b, #2e123f); overflow: hidden; }
body .qr-auth-hero::before { content: ""; position: absolute; inset: 20px; border: 1px dashed rgb(218 186 235 / 16%); border-radius: 18px; background: none; pointer-events: none; transform: none; width: auto; height: auto; }
body .qr-auth-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 500px; margin-inline: auto; }
body .qr-auth-hero .qm-brand-sidebar { margin-bottom: 28px; }
body .qr-auth-hero .qm-auth-eyebrow { display: block; margin-top: 10px; color: #d9bc6d; font-size: 10px; line-height: 1.9; letter-spacing: .04em; }
body .qr-auth-hero h1 { max-width: none; margin: 16px 0 13px; color: white; font-size: clamp(30px, 3vw, 44px); font-weight: 800; line-height: 1.65; letter-spacing: 0; }
body .qr-auth-hero h1 > span { color: #e4c36e; }
body .qr-auth-hero p { max-width: 450px; color: #d8c4e4; font-size: 12px; line-height: 2; }
.tailor-auth-art { display: block; width: min(360px, 90%); height: auto; margin: -6px auto -14px; }
body .qr-auth-hero .qm-auth-values { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; margin-top: 12px; padding-top: 22px; border-top: 1px solid rgb(231 206 244 / 16%); }
body .qm-auth-values span { display: flex; align-items: center; gap: 7px; color: #d9c6e5; font-size: 10px; }
body .qm-auth-values .qm-icon { color: #dfc273; }
body .qr-auth-hero .qr-trial-pill { display: inline-block; margin-top: 20px; padding: 7px 12px; border: 1px solid #836544; border-radius: 7px; background: rgb(212 175 55 / 8%); color: #e9d491; font-size: 10px; }
body .qr-auth-panel { display: flex; justify-content: center; align-items: center; min-width: 0; padding: 70px 40px 40px; background: radial-gradient(ellipse at 20% 10%, #eee4f6, transparent 65%), #f8f7fb; }
body .qm-general-page .qr-auth-card { width: min(460px, 100%); padding: 34px; border: 1px solid #eee5f2; border-radius: 20px; background: rgb(255 255 255 / 95%); box-shadow: 0 15px 55px rgb(63 25 83 / 6%); }
body .qr-auth-card > .tailor-brand { margin-bottom: 8px; }
body .qr-auth-heading { margin: 22px 0 25px; }
body .qr-auth-heading h2 { color: var(--tailor-purple-deep); font-size: 27px; font-weight: 800; }
body .qr-auth-heading p { color: var(--tailor-muted); font-size: 12px; line-height: 1.9; }
body .qr-auth-card .form-control-lg { min-height: 48px; font-size: 13px; }
body .qr-auth-card .btn-lg { min-height: 48px; font-size: 13px; }
body .qm-input-with-icon > .qm-icon { color: #ad96ba; }
body .qm-password-toggle { color: #997da9; }
body .qm-password-toggle:hover { background: #f4eafa; color: var(--tailor-purple); }
body .qr-login-account-note { padding: 13px 15px; border: 1px dashed #e5d9ed; border-radius: 10px; background: #faf7fc; color: var(--tailor-muted); }
body .qr-login-account-note strong { color: #786184; font-size: 11px; }
body .qr-login-account-note span { color: #8d7c97; font-size: 10px; line-height: 1.9; }
body .qr-auth-register-link { border-color: var(--tailor-border); color: var(--tailor-muted); }
body .qr-auth-register-link a { color: var(--tailor-purple); font-weight: 750; }
body .qr-auth-offer { border-radius: 9px; background: #fcf7e9; color: #8a732f; }
body .qr-auth-offer strong { color: #806012; }
body .qr-auth-language { position: absolute; z-index: 10; top: 24px; inset-inline-end: 28px; }
body .qr-auth-language .qr-language-switch { border-color: #e5d9ed; background: #f7f1fb; }
body .qr-auth-language .qr-language-switch button { color: #8c739a; }
body .qr-auth-language .qr-language-switch button.active { background: white; color: var(--tailor-purple); }
body .qr-register-page, body .qr-payment-result-page { background: radial-gradient(ellipse at 15% 10%, #ede1f5, transparent 60%), var(--tailor-paper); }
body .qr-register-shell { max-width: 1220px; }
body .qr-register-form-card { border-color: var(--tailor-border); background: #fff; box-shadow: var(--tailor-shadow); }
body .qr-register-section-title { border-color: var(--tailor-border); color: var(--tailor-purple); }
body .qr-register-benefits, body .qr-register-side { border-color: #67387d; background: linear-gradient(145deg, #4b1d6b, #2e123f); color: #fff; }
body .qr-register-disabled { border-color: var(--tailor-border); background: white; color: var(--tailor-purple-deep); }
body .qr-register-plan-card { border-color: #693a7d; background: linear-gradient(150deg, #4b1d6b, #2e123f); color: white; }
body .qr-register-plan-card :is(h3, .qr-subscription-eyebrow) { color: #efd78d; }
body .qr-register-trial-days { border-color: #856440; background: rgb(212 175 55 / 8%); }
body .qr-register-trial-days strong, body .qr-register-price strong { color: #ebcb75; }
body .qr-register-plan-card ul, body .qr-register-plan-card > small { color: #d7c4e1; }
body .qr-register-no-charge { border-color: #e8daed; background: #f8f1fc; color: var(--tailor-purple); }
body .qr-register-plan-features > div > span { color: #e4c36d; }
body .qr-register-plan-features small, body .qr-register-plan-v2 .qr-register-price small { color: #d0b6df; }
body .qr-register-payment-note { border-color: #8a7148; background: rgb(212 175 55 / 7%); }
body .qr-register-payment-note strong { color: #e8c979; }
body .qr-register-payment-note small { color: #d0bbdc; }
body :is(.qr-renew-card, .qr-renew-history, .qr-payment-result-card) { border-color: var(--tailor-border); background: white; box-shadow: var(--tailor-shadow); }
body :is(.qr-trial-banner, .qr-secure-payment-badge, .qr-renew-total) { border-color: #e4d6ed; background: #f4ecf9; color: var(--tailor-purple); }
body .qr-renew-total strong, body .qr-renew-breakdown-subtotal strong { color: var(--tailor-purple); }
body :is(.qr-year-option, .qr-payment-method) { border-color: var(--tailor-border); color: #7c6988; }
body :is(.qr-year-option, .qr-payment-method).active { border-color: #ac82c2; background: #f4eaf9; color: var(--tailor-purple); box-shadow: 0 0 0 2px rgb(75 29 107 / 6%); }
body .qr-payment-method strong { color: var(--tailor-purple-deep); }
body :is(.qr-online-payment-box, .qr-manual-payment-box, .qr-renew-instructions) { border-color: var(--tailor-border); background: #fbf8fd; color: var(--tailor-muted); }
body .qr-payment-result-card h1, body .qr-payment-result-summary strong, body .qr-payment-reference-box strong { color: var(--tailor-purple-deep); }
body .qr-payment-result-card.success .qr-payment-result-icon { background: #f1e8f8; color: var(--tailor-purple); }
body .qr-auth-hero::after { content: none; }

/* Startup and async feedback. */
body .qr-app-loading, body .qr-wasm-loading { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 100dvh; padding: 24px; background: radial-gradient(ellipse at center, #ede1f6, #f8f7fb 70%); color: var(--tailor-purple); }
.tailor-loader-mark { display: block; width: 64px; height: 64px; border-radius: 17px; box-shadow: 0 8px 22px rgb(75 29 107 / 13%); }
body .qr-loading-copy strong { color: var(--tailor-purple-deep); }
body .qr-loading-copy span { color: var(--tailor-muted); }
body .qr-brand-spinner, body .spinner-border { color: var(--tailor-purple); }
body .qr-global-busy-overlay { background: rgb(43 18 60 / 19%); }
body .qr-global-busy-card { border-color: #e3d5ec; background: #fff; box-shadow: 0 15px 50px rgb(54 22 73 / 13%); }
body .qr-global-busy-spinner { border-color: #e9ddf4; border-top-color: var(--tailor-purple); }
body .qr-global-busy-copy strong { color: var(--tailor-purple-deep); }
body .qr-global-busy-copy small { color: var(--tailor-muted); }
body #blazor-error-ui { background: #fff6e0; color: #6e5114; border-top: 1px solid #e5cc8b; }

/* Tablet and phone layouts. */
@media (max-width: 1280px) {
    :root { --qr-sidebar-width: 244px; }
    .qr-shell.tailor-shell .qr-sidebar { padding-inline: 13px; }
    .tailor-brand.qm-brand-sidebar .tailor-brand-mark { width: 54px; height: 51px; flex-basis: 54px; }
    .tailor-brand.qm-brand-sidebar .qm-brand-names strong { font-size: 17px; }
    .qr-shell.tailor-shell .qr-content { padding-inline: 24px; }
    .tailor-hero { padding-inline: 28px; }
    .tailor-shortcuts { gap: 10px; }
    .tailor-shortcuts > a { gap: 9px; padding-inline: 11px; }
    .tailor-shortcuts small, .tailor-shortcut-arrow { display: none; }
    .tailor-kpi-top > small { font-size: 8px; }
    .tailor-dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); }
    body .qm-general-page .qr-auth-hero { padding-inline: 38px; }
}
@media (max-width: 1050px) {
    .tailor-hero { grid-template-columns: minmax(0, 1.3fr) minmax(170px, .75fr); min-height: 280px; padding: 24px; }
    body .qr-content .tailor-hero h2 { font-size: 28px; }
    .tailor-hero p { font-size: 11px; }
    .tailor-art-caption { font-size: 7px; }
    .tailor-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tailor-dashboard-grid, .tailor-columns { grid-template-columns: 1fr; }
    .tailor-dashboard-grid .tailor-shop-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
    .tailor-shop-summary .tailor-panel-title, .tailor-shop-summary .tailor-summary-note { grid-column: 1 / -1; }
    .tailor-summary-row { padding: 0 0 16px; }
    .tailor-summary-row strong { font-size: 18px; }
    .tailor-welcome { align-items: flex-start; }
    .tailor-welcome h1 { font-size: 20px; }
    .tailor-date { padding-top: 7px; font-size: 9px; }
    .qr-shell.tailor-shell .qr-account-caption { display: none; }
    .tailor-hero-actions .btn { padding: 9px 11px; font-size: 10px; }
}
@media (max-width: 760px) {
    .qr-shell.tailor-shell { display: block; }
    .qr-shell.tailor-shell .qr-sidebar { width: min(86vw, 300px) !important; inset: 0 !important; inset-inline-end: auto !important; padding: 28px 18px 18px; transform: translateX(105%); transition: transform .2s; z-index: 1200 !important; border-radius: 0; }
    html[dir="ltr"] .qr-shell.tailor-shell .qr-sidebar { inset-inline-start: 0 !important; inset-inline-end: auto !important; transform: translateX(-105%); }
    .qr-shell.tailor-shell .qr-sidebar:not(.mobile-open) { visibility: hidden; }
    .qr-shell.tailor-shell .qr-sidebar.mobile-open { visibility: visible; transform: translateX(0) !important; }
    .qr-shell.tailor-shell[dir] .qr-main { width: 100%; margin: 0 !important; }
    .qr-shell.tailor-shell .qr-topbar { min-height: 68px; height: auto; padding: 10px 16px !important; gap: 10px; z-index: 100; }
    .qr-shell.tailor-shell .qr-topbar-brand .qm-topbar-eyebrow { display: none !important; }
    .qr-shell.tailor-shell .qr-topbar .qm-topbar-title { font-size: 13px; }
    .qr-shell.tailor-shell .tailor-topbar-heading { flex-direction: column; align-items: flex-start; gap: 3px; }
    .qr-shell.tailor-shell .tailor-topbar-scope { display: inline-flex; padding: 0 6px; gap: 4px; font-size: 8px; }
    .qr-shell.tailor-shell .tailor-topbar-scope > .qm-icon { width: 11px; height: 11px; }
    .qr-shell.tailor-shell .qr-account-session { gap: 8px !important; }
    .qr-shell.tailor-shell .qm-topbar-create { display: none; }
    .qr-shell.tailor-shell .qr-content { padding: 22px 17px 16px; }
    .qr-mobile-menu-btn { display: flex; border-color: #e5d9ed; width: 35px; height: 35px; padding: 8px; }
    .qr-mobile-menu-btn span { background: var(--tailor-purple); }
    .qr-mobile-close-btn { display: grid; width: 30px; height: 30px; border-color: rgb(233 221 244 / 20%); background: rgb(233 221 244 / 10%); color: white; font-size: 22px; }
    .qr-mobile-backdrop { background: rgb(36 13 51 / 48%); }
    .qr-shell.tailor-shell .qr-language-switch button { min-height: 27px; padding: 4px 7px !important; font-size: 9px !important; }
    .tailor-welcome { flex-direction: column; gap: 9px; margin-bottom: 19px; }
    .tailor-welcome h1 { font-size: 21px; }
    .tailor-welcome p { font-size: 11px; }
    .tailor-date { padding: 0; font-size: 9px; }
    .tailor-hero { grid-template-columns: minmax(0, 1.25fr) minmax(150px, .8fr); min-height: 270px; gap: 0; padding: 25px; border-radius: 16px; }
    body .qr-content .tailor-hero h2 { margin-top: 12px; font-size: 27px; }
    .tailor-hero .tailor-eyebrow { font-size: 8px; }
    .tailor-hero p { font-size: 11px; line-height: 1.95; }
    .tailor-hero-actions { gap: 8px; margin-top: 17px; }
    .tailor-hero-art img { max-width: 240px; }
    .tailor-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 25px; }
    .tailor-shortcuts > a { flex-direction: column; justify-content: center; gap: 9px; padding: 13px 5px; text-align: center; border-radius: 10px; }
    .tailor-shortcuts strong { margin: 0; font-size: 10px; }
    .tailor-shortcuts > a > span { width: 33px; height: 33px; flex-basis: 33px; border-radius: 10px; }
    .tailor-audience-badge { margin-inline-start: 8px; gap: 5px; font-size: 9px; padding: 3px 8px; }
    .tailor-audiences { gap: 9px; margin-top: 14px; }
    .tailor-audiences > a { align-items: flex-start; flex-direction: column; gap: 10px; padding: 15px; }
    .tailor-audiences strong { font-size: 12px; }
    .tailor-audiences small { font-size: 9px; }
    .tailor-audiences > a > .qm-icon { display: none; }
    .tailor-audience-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .tailor-shortcuts .qm-icon { width: 20px; height: 20px; }
    .tailor-panel { padding: 19px; }
    .tailor-page h1 { font-size: 26px; }
    .tailor-heading { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 22px; }
    .tailor-heading p { font-size: 12px; }
    .tailor-heading > .btn { align-self: flex-start; }
    .tailor-kpis { gap: 11px; }
    .tailor-dashboard-kpis > a { padding: 16px; }
    .tailor-kpi-top > small { font-size: 8px; }
    .tailor-kpi-top { gap: 5px; }
    .tailor-kpi-icon { width: 35px; height: 35px; flex-basis: 35px; border-radius: 10px; }
    .tailor-dashboard-kpis strong { font-size: 27px; }
    .tailor-dashboard-kpis > a > span { font-size: 10px; }
    .tailor-dashboard-grid { gap: 16px; }
    .tailor-dashboard-grid .tailor-panel { padding: 18px; }
    .tailor-panel-title { gap: 9px; }
    .tailor-panel-title h2 { font-size: 14px; }
    .tailor-dashboard-grid .tailor-shop-summary { grid-template-columns: 1fr; }
    .tailor-shop-summary .tailor-panel-title, .tailor-shop-summary .tailor-summary-note { grid-column: auto; }
    .tailor-summary-row { padding: 14px 0; }
    .tailor-summary-row strong { font-size: 22px; }
    .tailor-page-signature { gap: 9px; margin-top: 24px; }
    .tailor-page-signature > span { width: 32px; }
    .tailor-page-signature small { font-size: 7px; }
    .tailor-page .form-control, .tailor-page .form-select { font-size: 16px; }
    body .qm-general-page.qr-auth-page { grid-template-columns: 1fr; }
    body .qm-general-page .qr-auth-hero { display: block; min-height: auto; padding: 40px 28px 30px; }
    body .qr-auth-hero::before { inset: 12px; border-radius: 13px; }
    body .qr-auth-hero .qm-brand-sidebar { max-width: calc(100% - 80px); margin-bottom: 25px; }
    body .qr-auth-hero h1 { max-width: 440px; margin: 12px 0 8px; font-size: 30px; }
    body .qr-auth-hero p { max-width: 540px; font-size: 11px; }
    .tailor-auth-art { display: none; }
    body .qr-auth-hero .qm-auth-values { gap: 12px; padding-top: 18px; margin-top: 20px; }
    body .qm-auth-values span { font-size: 9px; }
    body .qr-auth-panel { padding: 25px 17px 35px; }
    body .qm-general-page .qr-auth-card { padding: 28px; }
    body .qr-auth-language { top: 28px; inset-inline-end: 23px; }
    body .qr-auth-language .qr-language-switch { border-color: #8b649f; background: #572772; }
    body .qr-auth-language .qr-language-switch button { color: #d5c0e2; }
    body .qr-auth-language .qr-language-switch button.active { background: #e9ddf4; color: var(--tailor-purple); }
    body .qr-auth-card .form-control { font-size: 16px; }
}
@media (max-width: 440px) {
    .qr-topbar .tailor-avatar { display: none; }
    .tailor-hero { grid-template-columns: 1fr; min-height: 0; padding: 27px 22px; }
    .tailor-hero-art { position: absolute; width: 210px; top: 20px; inset-inline-end: -85px; opacity: .12; pointer-events: none; z-index: -1; }
    .tailor-art-caption { display: none; }
    body .qr-content .tailor-hero h2 { font-size: 28px; }
    .tailor-hero p { max-width: 260px; }
    .tailor-hero-actions .btn { font-size: 10px; padding-inline: 11px; }
    .tailor-kpi-top > small { max-width: 65px; line-height: 1.7; text-align: end; }
    .tailor-panel-title p { font-size: 9px; }
    .tailor-brand.qm-brand-full .tailor-brand-mark { width: 63px; height: 58px; flex-basis: 63px; }
    .tailor-brand.qm-brand-full .qm-brand-names strong { font-size: 20px; }
    .tailor-brand.qm-brand-full .qm-brand-names small { font-size: 14px; }
    body .qr-auth-hero .tailor-brand.qm-brand-sidebar { gap: 5px; }
    body .qr-auth-hero .tailor-brand.qm-brand-sidebar .tailor-brand-mark { width: 44px; height: 42px; flex-basis: 44px; }
    body .qr-auth-hero .tailor-brand.qm-brand-sidebar .qm-brand-names strong { font-size: 14px; }
    body .qr-auth-hero .tailor-brand.qm-brand-sidebar .qm-brand-names small { font-size: 10px; }
    body .qr-auth-hero .qm-auth-eyebrow { font-size: 9px; }
    body .qr-auth-hero h1 { font-size: 29px; }
    body .qm-general-page .qr-auth-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
    .qr-shell.tailor-shell .qr-sidebar, .qr-shell.tailor-shell .qr-topbar, .tailor-skip-link, .tailor-page-signature, .tailor-shortcuts { display: none !important; }
    .qr-shell.tailor-shell[dir] .qr-main { width: 100%; margin: 0 !important; }
    .qr-shell.tailor-shell .qr-content { padding: 0; background: #fff; }
    .tailor-panel, .tailor-kpis > * { box-shadow: none; break-inside: avoid; }
}
