:root {
    --q-brand: #5b5bd6;
    --q-brand-dark: #3f3fb8;
    --q-brand-soft: rgba(141, 143, 243, 0.18);
    --q-ink: #111827;
    --q-ink-soft: #334155;
    --q-muted: #64748b;
    --q-line: #e2e8f0;
    --q-bg: #f8fafc;
    --q-surface: #ffffff;
    --q-surface-2: #f1f5f9;
    --q-ok: #0f8a62;
    --q-ok-soft: #e8f7f1;
    --q-warn: #b7791f;
    --q-warn-soft: #fff7e6;
    --q-bad: #b91c1c;
    --q-bad-soft: #fee2e2;
    --q-info: #0f6f9f;
    --q-info-soft: #e6f4fb;
    --q-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    --q-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    color: var(--q-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--q-bg);
    margin: 0;
}

a {
    color: var(--q-brand);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--q-line);
    border-radius: 8px;
    color: var(--q-ink);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 0.4rem;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0 0.9rem;
}

button:hover {
    border-color: #cbd5e1;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

input,
select,
textarea {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--q-ink);
    min-height: 2.55rem;
    outline: 0;
    padding: 0 0.75rem;
    width: 100%;
}

textarea {
    min-height: 8rem;
    padding: 0.75rem;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--q-brand);
    box-shadow: 0 0 0 3px var(--q-brand-soft);
}

h1:focus {
    outline: none;
}

label {
    color: var(--q-ink-soft);
    display: grid;
    font-size: 0.84rem;
    font-weight: 800;
    gap: 0.38rem;
}

.primary-action,
.btn-primary {
    background: var(--q-brand);
    border-color: var(--q-brand);
    color: #ffffff;
}

.primary-action:hover,
.btn-primary:hover {
    background: var(--q-brand-dark);
    border-color: var(--q-brand-dark);
}

.secondary-action {
    background: var(--q-brand-soft);
    border-color: transparent;
    color: var(--q-brand-dark);
}

.danger-action {
    background: var(--q-bad-soft);
    border-color: transparent;
    color: var(--q-bad);
}

.eyebrow,
.label {
    color: var(--q-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.message {
    border-radius: 8px;
    font-weight: 800;
    padding: 0.9rem 1rem;
}

.message.error {
    background: var(--q-bad-soft);
    color: var(--q-bad);
}

.message.success {
    background: var(--q-ok-soft);
    color: var(--q-ok);
}

.message.neutral {
    background: var(--q-info-soft);
    color: var(--q-info);
}

.message.warning {
    background: var(--q-warn-soft);
    color: var(--q-warn);
}

.status-pill,
.status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0.28rem 0.65rem;
}

.status.good,
.status-pill.connected {
    background: var(--q-ok-soft);
    color: var(--q-ok);
}

.status.warn {
    background: var(--q-warn-soft);
    color: var(--q-warn);
}

.status.neutral,
.status-pill.idle {
    background: var(--q-info-soft);
    color: var(--q-info);
}

.empty-state {
    color: var(--q-muted);
    margin: 0;
}

.num {
    font-variant-numeric: tabular-nums;
}

@media (min-width: 901px) {
    .public-mode .sidebar .brand-panel {
        margin: 0 auto;
        max-width: 1180px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .public-mode .sidebar .nav-scrollable {
        padding: 0;
        position: absolute;
        right: calc((100vw - min(1180px, 100vw)) / 2 + 1.5rem);
        top: 1.05rem;
    }

    .public-mode .sidebar .nav-list {
        align-items: center;
        flex-direction: row;
    }

    .public-mode .sidebar .nav-link {
        min-height: 2.4rem;
        padding: 0.4rem 0.75rem;
    }

    .public-mode .sidebar .nav-icon {
        display: none;
    }
}

.bi,
.valid.modified:not([type=checkbox]),
.invalid,
.validation-message,
.blazor-error-boundary {
    all: unset;
}

/* Qublo product console */
@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.q-password-control {
    display: block;
    position: relative;
    width: 100%;
}

.q-password-control > input {
    box-sizing: border-box;
    padding-right: 3.25rem !important;
    width: 100%;
}

.q-password-control > input::-ms-reveal,
.q-password-control > input::-ms-clear {
    display: none;
}

@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-display: swap;
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-display: swap;
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --q-dark-bg: #0f1027;
    --q-dark-side: #0f1027;
    --q-dark-card: #151530;
    --q-dark-card-2: #191b3a;
    --q-dark-raise: #1e2146;
    --q-dark-line: #202143;
    --q-dark-line-2: #1a1b37;
    --q-dark-ink: #e7e8f1;
    --q-dark-muted: #9296b2;
    --q-dark-dim: #62658f;
    --q-dark-faint: #484b70;
    --q-indigo: #5b5bd6;
    --q-indigo-bright: #8d8ff3;
    --q-indigo-soft: rgba(91, 91, 214, 0.16);
    --q-lime: #c6f94b;
    --q-lime-deep: #a8d430;
    --q-lime-soft: rgba(198, 249, 75, 0.14);
    --q-red: #f0556a;
    --q-red-soft: rgba(240, 85, 106, 0.12);
    --q-amber: #f0b429;
    --q-amber-soft: rgba(240, 180, 41, 0.13);
}

:where(.q-app-shell, .q-ebay-required-overlay)[data-theme="light"] {
    --q-dark-bg: #f6f7fb;
    --q-dark-side: #ffffff;
    --q-dark-card: #ffffff;
    --q-dark-card-2: #f1f3f8;
    --q-dark-raise: #e7eaf2;
    --q-dark-line: #d8deea;
    --q-dark-line-2: #e8ebf2;
    --q-dark-ink: #172033;
    --q-dark-muted: #4e5b73;
    --q-dark-dim: #68758c;
    --q-dark-faint: #94a0b4;
    --q-indigo: #5151c9;
    --q-indigo-bright: #4b4bbd;
    --q-indigo-soft: rgba(81, 81, 201, 0.11);
    --q-lime: #167a55;
    --q-lime-deep: #126747;
    --q-lime-soft: rgba(22, 122, 85, 0.11);
    --q-red: #b4233a;
    --q-red-soft: rgba(180, 35, 58, 0.1);
    --q-amber: #946214;
    --q-amber-soft: rgba(148, 98, 20, 0.11);
    color-scheme: light;
}

:where(.q-app-shell, .q-ebay-required-overlay)[data-theme="dark"] {
    color-scheme: dark;
}

.q-app-shell[data-theme="light"] .q-topbar {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 10px rgba(23, 32, 51, 0.04);
}

.q-app-shell[data-theme="light"] .q-side-foot {
    background: linear-gradient(145deg, #f4f2ff, #f8f9fd);
    border-color: rgba(81, 81, 201, 0.18);
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
}

.q-app-shell[data-theme="light"] .q-user-menu,
.q-app-shell[data-theme="light"] .q-account-panel,
.q-app-shell[data-theme="light"] .q-modal {
    box-shadow: 0 20px 55px rgba(23, 32, 51, 0.16);
}

.q-app-shell[data-theme="light"] .q-account-panel {
    background: var(--q-dark-card);
}

.q-app-shell[data-theme="light"] .q-ebay-setup,
.q-app-shell[data-theme="light"] .q-ebay-setup-panel {
    background: var(--q-dark-card);
}

.q-app-shell[data-theme="light"] .q-account-option:hover {
    background: var(--q-dark-card-2);
}

.q-app-shell[data-theme="light"] .q-live-pill,
.q-app-shell[data-theme="light"] .q-filter-button,
.q-app-shell[data-theme="light"] .q-action-icon,
.q-app-shell[data-theme="light"] .q-table th {
    color: var(--q-indigo-bright);
}

.q-app-shell[data-theme="light"] .q-pill-warn,
.q-app-shell[data-theme="light"] .q-banner.warn {
    color: var(--q-amber);
}

.q-app-shell[data-theme="light"] .q-pill-bad,
.q-app-shell[data-theme="light"] .q-banner.error,
.q-app-shell[data-theme="light"] .q-action-icon.danger {
    color: var(--q-red);
}

/* Page-level consoles use a few intentionally dark, scoped colors. These
   overrides keep the saved light theme coherent without coupling the pages
   to the preference service. */
.q-app-shell[data-theme="light"] .dashboard-page {
    color: var(--q-dark-ink) !important;
}

.q-app-shell[data-theme="light"] .dashboard-card:not(.revenue-card),
.q-app-shell[data-theme="light"] .dashboard-loading {
    background: var(--q-dark-card) !important;
    border-color: var(--q-dark-line) !important;
}

.q-app-shell[data-theme="light"] .dashboard-card:not(.revenue-card) h2,
.q-app-shell[data-theme="light"] .dashboard-card:not(.revenue-card) .metric-value,
.q-app-shell[data-theme="light"] .dashboard-card:not(.revenue-card) .gauge-copy strong,
.q-app-shell[data-theme="light"] .dashboard-card:not(.revenue-card) .donut strong,
.q-app-shell[data-theme="light"] .ranking-list li > div > strong,
.q-app-shell[data-theme="light"] .country-row :is(span, strong),
.q-app-shell[data-theme="light"] .dashboard-loading strong {
    color: var(--q-dark-ink) !important;
}

.q-app-shell[data-theme="light"] .dashboard-card:not(.revenue-card) p,
.q-app-shell[data-theme="light"] .trend-row > span:last-child,
.q-app-shell[data-theme="light"] .side-caption,
.q-app-shell[data-theme="light"] .chart-key span,
.q-app-shell[data-theme="light"] .spark-caption,
.q-app-shell[data-theme="light"] .gauge-copy :is(span, small),
.q-app-shell[data-theme="light"] .donut span,
.q-app-shell[data-theme="light"] .legend-list span,
.q-app-shell[data-theme="light"] .calendar-weekdays span,
.q-app-shell[data-theme="light"] .sales-y-axis span,
.q-app-shell[data-theme="light"] .sales-x-axis span,
.q-app-shell[data-theme="light"] .ranking-list li > div > span,
.q-app-shell[data-theme="light"] .dashboard-loading small {
    color: var(--q-dark-muted) !important;
}

.q-app-shell[data-theme="light"] .dashboard-table :is(th, td) {
    border-bottom-color: var(--q-dark-line-2) !important;
    color: var(--q-dark-muted) !important;
}

.q-app-shell[data-theme="light"] .ranking-list li {
    border-bottom-color: var(--q-dark-line-2) !important;
}

.q-app-shell[data-theme="light"] .country-track,
.q-app-shell[data-theme="light"] .calendar-day,
.q-app-shell[data-theme="light"] .sales-actions > span {
    background: var(--q-dark-card-2) !important;
}

.q-app-shell[data-theme="light"] .calendar-day:not(.today),
.q-app-shell[data-theme="light"] .sales-actions > span,
.q-app-shell[data-theme="light"] .privacy-toggle,
.q-app-shell[data-theme="light"] .refresh-button,
.q-app-shell[data-theme="light"] .calendar-actions button {
    border-color: var(--q-dark-line) !important;
    color: var(--q-dark-muted) !important;
}

.q-app-shell[data-theme="light"] .orders-toolbar-button.secondary,
.q-app-shell[data-theme="light"] .orders-product-sync,
.q-app-shell[data-theme="light"] .orders-kv span,
.q-app-shell[data-theme="light"] .orders-cancellation-requests > article,
.q-app-shell[data-theme="light"] .orders-drawer,
.q-app-shell[data-theme="light"] .orders-tracking-form,
.q-app-shell[data-theme="light"] .orders-operation-card,
.q-app-shell[data-theme="light"] .orders-integration-state,
.q-app-shell[data-theme="light"] .orders-file-input,
.q-app-shell[data-theme="light"] .orders-chat-symbol,
.q-app-shell[data-theme="light"] .orders-chat-message,
.q-app-shell[data-theme="light"] .orders-profit-bar,
.q-app-shell[data-theme="light"] .orders-readonly-note,
.q-app-shell[data-theme="light"] .orders-notes-panel textarea {
    background: var(--q-dark-card-2) !important;
    border-color: var(--q-dark-line) !important;
    color: var(--q-dark-ink) !important;
}

.q-app-shell[data-theme="light"] .orders-toolbar-button.secondary:hover:not(:disabled),
.q-app-shell[data-theme="light"] .orders-product-sync:hover:not(:disabled),
.q-app-shell[data-theme="light"] .orders-table tbody tr:hover {
    background: #e7eaf2 !important;
}

.q-app-shell[data-theme="light"] .orders-drawer {
    background: var(--q-dark-card) !important;
    box-shadow: -24px 0 70px rgba(23, 32, 51, 0.18) !important;
}

.q-app-shell[data-theme="light"] :is(
    .orders-drawer-head,
    .orders-drawer-summary,
    .orders-drawer-carrier-state,
    .orders-drawer-tabs,
    .orders-drawer-actions,
    .orders-fee-row) {
    border-color: var(--q-dark-line) !important;
}

.q-app-shell[data-theme="light"] :is(
    .orders-drawer-title-line h2,
    .orders-drawer-title-line a,
    .orders-drawer-metrics strong,
    .orders-drawer-customer strong,
    .orders-drawer-tabs button,
    .orders-timeline-item strong,
    .orders-operation-heading strong,
    .orders-file-input strong,
    .orders-invoice-summary strong,
    .orders-chat-empty strong,
    .orders-fee-row span,
    .orders-fee-row strong,
    .orders-notes-panel strong) {
    color: var(--q-dark-ink) !important;
}

.q-app-shell[data-theme="light"] :is(
    .orders-drawer-head p,
    .orders-drawer-product small,
    .orders-drawer-metrics span,
    .orders-drawer-customer span,
    .orders-drawer-carrier-state,
    .orders-timeline-item small,
    .orders-timeline-item span,
    .orders-operation-heading small,
    .orders-operation-message,
    .orders-invoice-summary small,
    .orders-chat-empty,
    .orders-chat-message small,
    .orders-notes-panel small) {
    color: var(--q-dark-muted) !important;
}

.q-app-shell[data-theme="light"] :is(
    .orders-tracking-form select,
    .orders-tracking-form input,
    .orders-edit-panel input,
    .orders-cancellation-form select,
    .orders-cancellation-form textarea,
    .orders-notes-panel textarea,
    .orders-chat-compose) {
    background: var(--q-dark-card) !important;
    border-color: var(--q-dark-line) !important;
    color: var(--q-dark-ink) !important;
}

.q-app-shell[data-theme="light"] .orders-chat-message p,
.q-app-shell[data-theme="light"] .orders-chat-compose textarea {
    color: var(--q-dark-ink) !important;
}

.q-app-shell[data-theme="light"] .orders-chat-message.seller {
    background: #e9f2ff !important;
    border-color: #bfd8f5 !important;
}

.q-app-shell[data-theme="light"] .orders-chat-compose button {
    background: var(--q-indigo-soft) !important;
    color: var(--q-indigo) !important;
}

.q-app-shell {
    background: var(--q-dark-bg);
    color: var(--q-dark-ink);
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    min-height: 100vh;
}

.q-sidebar {
    background: var(--q-dark-side);
    border-right: 1px solid var(--q-dark-line-2);
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-width: 0;
    position: sticky;
    top: 0;
    z-index: 30;
}

.q-brand {
    min-width: 0;
    padding: 18px 13px 12px;
}

.q-brand-link {
    align-items: center;
    color: var(--q-dark-ink);
    display: inline-flex;
    font-size: 26px;
    font-weight: 900;
    gap: 9px;
    letter-spacing: 0;
    text-decoration: none;
}

.q-logo-cube {
    display: inline-grid;
    filter: drop-shadow(0 6px 14px rgba(91, 91, 214, 0.42));
    height: 38px;
    place-items: center;
    width: 38px;
}

.q-logo-cube svg,
.q-nav-icon svg {
    display: block;
    fill: none;
    height: 100%;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 100%;
}

.q-logo-cube svg {
    fill: initial;
    stroke: none;
}

.q-welcome {
    display: grid;
    gap: 2px;
    margin-top: 10px;
}

.q-welcome span {
    color: var(--q-dark-muted);
    font-size: 13px;
    font-weight: 700;
}

.q-welcome strong {
    color: #bdbefa;
    font-size: 13.5px;
    overflow-wrap: anywhere;
}

.q-nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 14px;
}

.q-nav-list {
    display: grid;
    gap: 4px;
}

.q-nav-link {
    align-items: center;
    border-radius: 10px;
    color: var(--q-dark-muted);
    display: flex;
    font-size: 13.5px;
    font-weight: 800;
    gap: 12px;
    min-height: 44px;
    padding: 10px 13px;
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease;
}

.q-nav-link:hover {
    background: var(--q-dark-card-2);
    color: var(--q-dark-ink);
}

.q-nav-link.active {
    background: var(--q-indigo);
    box-shadow: 0 8px 20px rgba(91, 91, 214, 0.28);
    color: #ffffff;
}

.q-nav-icon {
    flex: none;
    height: 20px;
    opacity: 0.9;
    width: 20px;
}

.q-nav-sep {
    background: var(--q-dark-line-2);
    height: 1px;
    margin: 10px 12px;
}

.q-side-foot {
    background: linear-gradient(145deg, #181a3b, #13142f);
    border: 1px solid rgba(141, 143, 243, 0.18);
    border-radius: 11px;
    box-shadow: 0 16px 32px rgba(3, 8, 35, 0.22);
    display: grid;
    gap: 8px;
    margin: 0 12px 14px;
    padding: 14px;
}

.q-side-foot strong {
    font-size: 13.5px;
}

.q-side-foot span {
    color: var(--q-dark-dim);
    font-size: 12px;
    line-height: 1.4;
}

.q-side-foot button {
    background: linear-gradient(100deg, var(--q-indigo), var(--q-indigo-bright));
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 900;
    min-height: 36px;
}

.q-main {
    min-width: 0;
    overflow-x: hidden;
}

.q-topbar {
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(15, 16, 39, 0.9);
    border-bottom: 1px solid var(--q-dark-line-2);
    display: flex;
    gap: 14px;
    min-height: 74px;
    padding: 15px 14px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.q-top-title {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.q-top-title h1 {
    color: var(--q-dark-ink);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.q-mobile-nav {
    display: none;
}

.q-icon-button {
    background: transparent;
    border: 0;
    color: var(--q-dark-muted);
    min-height: 30px;
    padding: 0;
    width: 30px;
}

.q-icon-button span {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 16px;
}

.q-top-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-left: auto;
    position: relative;
}

.q-live-pill {
    background: var(--q-indigo-soft);
    border: 1px solid rgba(141, 143, 243, 0.24);
    border-radius: 20px;
    color: #bdbefa;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    text-transform: uppercase;
}

.q-user-chip {
    background: transparent;
    border: 0;
    color: var(--q-dark-ink);
    display: flex;
    gap: 9px;
    min-height: 38px;
    padding: 0;
}

.q-user-details {
    display: grid;
    gap: 1px;
    justify-items: start;
    line-height: 1.2;
}

.q-user-chip strong {
    font-size: 13px;
}

.q-user-chip small {
    color: var(--q-dark-dim);
    font-size: 11.5px;
}

.q-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--q-indigo-bright), var(--q-indigo));
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.q-user-chevron {
    color: var(--q-dark-dim);
    font-size: 15px;
    line-height: 1;
    margin-left: 1px;
}

.q-user-menu {
    background: var(--q-dark-card);
    border: 1px solid var(--q-dark-line);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    display: grid;
    min-width: 190px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
}

.q-user-menu button {
    background: transparent;
    border: 0;
    color: var(--q-dark-muted);
    justify-content: flex-start;
    min-height: 36px;
}

.q-user-menu button:hover {
    background: var(--q-dark-card-2);
    color: var(--q-dark-ink);
}

.q-content {
    max-width: 1500px;
    padding: 22px 26px 70px;
    width: 100%;
}

.q-content.q-content-dashboard {
    max-width: none;
    padding: 0 0 18px 14px;
    width: 100%;
}

.q-content.q-content-drafts {
    max-width: none;
    padding: 14px clamp(14px, 1.4vw, 26px) 70px;
}

.q-page,
.q-stack {
    display: grid;
    gap: 16px;
}

.q-grid {
    display: grid;
    gap: 16px;
}

.q-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.q-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.q-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.q-card,
.q-stat-card,
.q-table-wrap {
    background: var(--q-dark-card);
    border: 1px solid var(--q-dark-line);
    border-radius: 16px;
}

.q-card,
.q-stat-card {
    padding: 18px;
}

.q-stat-card.highlight {
    background: linear-gradient(140deg, var(--q-indigo), var(--q-indigo-bright));
    border-color: transparent;
    box-shadow: 0 14px 34px rgba(91, 91, 213, 0.4);
}

.q-card h2,
.q-card h3,
.q-stat-card h3 {
    color: var(--q-dark-ink);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0;
}

.q-sub,
.q-muted,
.q-empty {
    color: var(--q-dark-dim);
}

.q-sub {
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 2px;
}

.q-stat-value {
    color: var(--q-dark-ink);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    margin-top: 16px;
}

.q-trend {
    align-items: center;
    background: var(--q-lime-soft);
    border-radius: 20px;
    color: var(--q-lime);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 5px;
    margin-top: 13px;
    padding: 3px 9px;
}

.q-toolbar {
    align-items: center;
    display: flex;
    gap: 11px;
}

.q-filter-button,
.q-action-icon {
    align-items: center;
    border-radius: 11px;
    display: inline-flex;
    flex: none;
    justify-content: center;
}

.q-filter-button {
    background: var(--q-indigo-soft);
    border: 1px solid rgba(91, 91, 213, 0.25);
    color: #bdbefa;
    min-height: 42px;
    width: 42px;
}

.q-search {
    align-items: center;
    background: var(--q-dark-card);
    border: 1px solid var(--q-dark-line);
    border-radius: 11px;
    color: var(--q-dark-dim);
    display: flex;
    flex: 1;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
}

.q-search input {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--q-dark-ink);
    min-height: 38px;
    padding: 0;
}

.q-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    text-decoration: none;
}

.q-btn-primary {
    background: var(--q-indigo);
    border-color: var(--q-indigo);
    color: #ffffff;
}

.q-btn-primary:hover {
    background: var(--q-brand-dark);
    border-color: var(--q-brand-dark);
}

.q-btn-ghost {
    background: var(--q-dark-card-2);
    border-color: var(--q-dark-line);
    color: var(--q-dark-ink);
}

.q-btn-danger {
    background: #ff171f;
    border-color: #ff171f;
    color: #ffffff;
}

.q-btn-danger:hover {
    background: #e40f17;
    border-color: #e40f17;
}

.q-btn-dark {
    background: var(--q-dark-bg);
    border-color: var(--q-dark-line);
    color: var(--q-dark-muted);
}

.q-table-wrap {
    overflow: hidden;
}

.q-table-scroll {
    overflow-x: auto;
}

.q-table {
    border-collapse: collapse;
    width: 100%;
}

.q-table th {
    color: #bdbefa;
    font-size: 12.5px;
    font-weight: 800;
    padding: 15px 16px;
    text-align: left;
    white-space: nowrap;
}

.q-table td {
    border-top: 1px solid var(--q-dark-line-2);
    font-size: 13.5px;
    padding: 13px 16px;
    vertical-align: middle;
}

.q-table tbody tr:not(.q-banner-row):hover {
    background: var(--q-dark-card-2);
}

.q-table .q-clickable-row {
    cursor: pointer;
    outline: none;
}

.q-table .q-clickable-row.selected,
.q-table .q-clickable-row:focus-visible {
    background: var(--q-indigo-soft);
    box-shadow: inset 3px 0 0 var(--q-indigo-bright);
}

.q-product {
    align-items: center;
    display: flex;
    gap: 13px;
    min-width: 280px;
}

.q-thumb {
    align-items: center;
    background: #eef1f8;
    border-radius: 10px;
    color: #1a2138;
    display: inline-flex;
    flex: none;
    font-size: 20px;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    width: 48px;
}

.q-thumb img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.q-product-title {
    color: var(--q-dark-ink);
    display: block;
    font-weight: 800;
    line-height: 1.3;
    max-width: 420px;
    overflow-wrap: anywhere;
}

.q-cell-kv {
    display: grid;
    gap: 2px;
}

.q-cell-kv span {
    color: var(--q-dark-dim);
    font-size: 11px;
    font-weight: 900;
    margin-right: 4px;
    text-transform: uppercase;
}

.q-selling-capacity {
    display: grid;
    gap: 4px;
    min-width: 130px;
}

.q-selling-capacity > div {
    align-items: baseline;
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.q-selling-capacity span {
    background: var(--q-dark-card-2);
    border-radius: 3px;
    color: var(--q-dark-muted);
    font-size: 9px;
    font-weight: 900;
    min-width: 36px;
    padding: 2px 4px;
    text-align: center;
    text-transform: uppercase;
}

.q-profit {
    color: var(--q-lime);
    font-weight: 900;
}

.q-pill {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 11.5px;
    font-weight: 900;
    gap: 6px;
    padding: 4px 9px;
    white-space: nowrap;
}

.q-pill-ok {
    background: var(--q-lime-soft);
    color: var(--q-lime);
}

.q-pill-warn {
    background: var(--q-amber-soft);
    color: #f5c451;
}

.q-pill-bad {
    background: var(--q-red-soft);
    color: #f47080;
}

.q-pill-muted {
    background: var(--q-dark-card-2);
    color: var(--q-dark-muted);
}

.q-actions {
    display: flex;
    gap: 6px;
}

.q-action-icon {
    background: var(--q-indigo-soft);
    border: 1px solid transparent;
    color: #bdbefa;
    min-height: 30px;
    padding: 0;
    width: 30px;
}

.q-action-icon.danger {
    background: var(--q-red-soft);
    color: #f47080;
}

.q-action-icon.success {
    background: var(--q-lime-soft);
    color: var(--q-lime);
}

.q-banner {
    align-items: flex-start;
    display: flex;
    font-size: 12.5px;
    font-weight: 700;
    gap: 9px;
    line-height: 1.5;
    padding: 9px 16px;
}

.q-banner.warn {
    background: var(--q-amber-soft);
    border-left: 3px solid var(--q-amber);
    color: #f5c451;
}

.q-banner.error {
    background: var(--q-red-soft);
    border-left: 3px solid var(--q-red);
    color: #f47080;
}

.q-table-foot {
    align-items: center;
    border-top: 1px solid var(--q-dark-line-2);
    color: var(--q-dark-dim);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    padding: 15px 16px;
}

.q-table-foot b {
    color: var(--q-dark-muted);
}

.q-editor {
    background: var(--q-dark-card);
    border: 1px solid var(--q-dark-line);
    border-radius: 16px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.q-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.q-form-grid .wide {
    grid-column: 1 / -1;
}

label.q-check {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 42px;
}

label.q-check input[type="checkbox"]:not(.q-check__native) {
    accent-color: var(--q-indigo-bright);
    flex: 0 0 18px;
    height: 18px;
    margin: 0;
    min-height: 0;
    padding: 0;
    width: 18px;
}

.q-editor label,
.q-card label {
    color: var(--q-dark-muted);
}

.q-editor input,
.q-editor select,
.q-editor textarea,
.q-card input,
.q-card select,
.q-card textarea {
    background: var(--q-dark-card-2);
    border-color: var(--q-dark-line);
    color: var(--q-dark-ink);
}

.q-editor textarea {
    min-height: 7rem;
}

.q-segment {
    background: var(--q-dark-bg);
    border: 1px solid var(--q-dark-line);
    border-radius: 10px;
    display: inline-flex;
    gap: 3px;
    padding: 3px;
}

.q-segment button {
    background: transparent;
    border: 0;
    color: var(--q-dark-muted);
    min-height: 32px;
}

.q-segment button.active {
    background: var(--q-indigo);
    color: #ffffff;
}

.q-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.q-tabs button {
    background: var(--q-dark-card);
    border-color: var(--q-dark-line);
    color: var(--q-dark-muted);
}

.q-tabs button.active {
    background: var(--q-indigo);
    border-color: var(--q-indigo);
    color: #ffffff;
}

.q-unavailable {
    background: var(--q-dark-card-2);
    border: 1px dashed var(--q-dark-line);
    border-radius: 12px;
    color: var(--q-dark-dim);
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
}

.q-selling-default-sections {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.q-selling-default-section {
    background: rgba(13, 16, 35, 0.5);
    border: 1px solid var(--q-dark-line);
    border-radius: 14px;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.q-selling-default-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.q-selling-default-head h3 {
    color: var(--q-dark-ink);
    font-size: 17px;
    margin: 2px 0 0;
}

.q-selling-default-head p {
    color: var(--q-dark-muted);
    font-size: 12.5px;
    line-height: 1.5;
    margin: 4px 0 0;
    max-width: 760px;
}

.q-selling-default-section > label,
.q-mode-option {
    display: grid;
    gap: 6px;
}

.q-selling-default-section > label small,
.q-mode-option small {
    color: var(--q-dark-muted);
}

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

.q-mode-option {
    align-items: flex-start;
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 12px;
    cursor: pointer;
    grid-template-columns: auto 1fr;
    padding: 12px;
}

.q-mode-option > span {
    display: grid;
    gap: 3px;
}

.q-mode-option:has(input:checked) {
    background: rgba(141, 143, 243, 0.1);
    border-color: rgba(141, 143, 243, 0.65);
}

.q-ebay-setup-callout {
    align-items: center;
    background: rgba(141, 143, 243, 0.08);
    border: 1px solid rgba(141, 143, 243, 0.28);
    border-radius: 12px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 14px;
    padding: 14px 16px;
}

.q-ebay-setup-callout > div,
.q-ebay-setup-head > div,
.q-ebay-capability-status > div,
.q-ebay-setup-foot > div {
    display: grid;
    gap: 4px;
}

.q-ebay-setup-callout strong,
.q-ebay-setup-head h3,
.q-ebay-capability-status strong,
.q-ebay-setup-foot strong {
    color: var(--q-dark-ink);
}

.q-ebay-setup-callout span,
.q-ebay-setup-head p,
.q-ebay-capability-status span,
.q-ebay-setup-foot span {
    color: var(--q-dark-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.q-ebay-setup {
    background: rgba(13, 16, 35, 0.55);
    border: 1px solid rgba(141, 143, 243, 0.32);
    border-radius: 14px;
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 16px;
}

.q-ebay-setup-modal {
    background: var(--q-dark-card);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
    margin-top: 0;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    max-width: 1040px;
    overflow-y: auto;
    width: min(1040px, 100%);
}

.q-ebay-setup-head,
.q-ebay-capability-status,
.q-ebay-setup-foot {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.q-ebay-setup-head h3 {
    font-size: 18px;
    margin: 0;
}

.q-ebay-setup-head p {
    margin: 0;
    max-width: 760px;
}

.q-ebay-capability-status {
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-left: 3px solid var(--q-amber);
    border-radius: 10px;
    padding: 11px 13px;
}

.q-ebay-capability-status.is-live {
    border-left-color: var(--q-lime);
}

.q-ebay-setup-stack {
    display: grid;
    gap: 10px;
}

.q-ebay-setup-panel {
    background: rgba(18, 22, 53, 0.68);
    border: 1px solid var(--q-dark-line);
    border-radius: 12px;
    min-width: 0;
    overflow: hidden;
}

.q-ebay-setup-panel-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--q-dark-ink);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-width: 0;
    padding: 14px 16px;
    text-align: left;
    transition: background-color 160ms ease;
    width: 100%;
}

.q-ebay-setup-panel-toggle:hover {
    background: rgba(141, 143, 243, 0.06);
}

.q-ebay-setup-panel-toggle:focus-visible {
    box-shadow: inset 0 0 0 2px var(--q-indigo-bright);
    outline: 0;
}

.q-ebay-setup-panel-title {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.q-ebay-setup-panel-title strong {
    font-size: 13.5px;
    line-height: 1.25;
}

.q-ebay-setup-panel-title small {
    color: var(--q-dark-dim);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.q-ebay-setup-chevron {
    color: var(--q-dark-muted);
    font-size: 18px;
    line-height: 1;
    transform: rotate(-90deg);
    transition: transform 160ms ease;
}

.q-ebay-setup-panel-toggle[aria-expanded="true"] .q-ebay-setup-chevron {
    transform: rotate(0deg);
}

.q-ebay-setup-panel-body {
    border-top: 1px solid var(--q-dark-line);
    padding: 16px;
}

.q-ebay-setup-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.q-ebay-setup-fields label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.q-ebay-setup-fields label.q-check {
    align-items: center;
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 10px;
    color: var(--q-dark-muted);
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
}

.q-ebay-setup-fields label.q-check input[type="checkbox"] {
    accent-color: var(--q-indigo-bright);
    flex: 0 0 auto;
    height: 18px;
    margin: 0;
    min-height: 0;
    padding: 0;
    width: 18px;
}

.q-ebay-binary-field {
    display: grid;
    gap: 7px;
}

.q-ebay-binary-field > span {
    color: var(--q-dark-muted);
}

.q-ebay-binary-choice {
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 10px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
}

.q-ebay-binary-choice button {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--q-dark-muted);
    font-size: 12.5px;
    font-weight: 800;
    min-height: 36px;
    padding: 7px 10px;
}

.q-ebay-binary-choice button:hover {
    border-color: rgba(141, 143, 243, 0.35);
    color: var(--q-dark-ink);
}

.q-ebay-binary-choice button.is-selected {
    background: var(--q-indigo);
    border-color: var(--q-indigo-bright);
    color: #ffffff;
}

.q-ebay-setup-fields .wide,
.q-ebay-reuse-note.wide {
    grid-column: 1 / -1;
}

.q-ebay-setup-fields small {
    color: var(--q-dark-dim);
    font-size: 11px;
    line-height: 1.35;
}

.q-ebay-reuse-note {
    background: rgba(116, 212, 128, 0.08);
    border: 1px solid rgba(116, 212, 128, 0.2);
    border-radius: 8px;
    color: var(--q-dark-muted);
    font-size: 12px;
    line-height: 1.45;
    padding: 9px 11px;
}

.q-ebay-setup-foot {
    border-top: 1px solid var(--q-dark-line);
    padding-top: 14px;
}

.q-ebay-setup-warning-list {
    display: grid;
    gap: 5px;
    margin: 8px 0 0;
    padding-left: 18px;
}

.q-chart {
    align-items: end;
    display: flex;
    gap: 10px;
    height: 220px;
    padding-top: 12px;
}

.q-chart-bar {
    background: linear-gradient(180deg, var(--q-indigo-bright), var(--q-indigo));
    border-radius: 7px 7px 4px 4px;
    flex: 1;
    min-height: 4px;
}

.q-chart-x {
    display: flex;
    gap: 10px;
    padding-top: 9px;
}

.q-chart-x span {
    color: var(--q-dark-dim);
    flex: 1;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.q-account-switch {
    display: grid;
    gap: 4px;
    margin-top: 20px;
    max-width: 100%;
    min-width: 0;
}

.q-account-switch > span {
    color: var(--q-dark-ink);
    font-size: 14px;
    font-weight: 900;
}

.q-account-trigger {
    align-items: flex-start;
    background: transparent;
    border: 0;
    box-sizing: border-box;
    color: var(--q-indigo-soft);
    display: grid;
    gap: 7px;
    justify-items: start;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.q-account-trigger strong {
    color: var(--q-indigo-bright);
    display: block;
    font-size: 15px;
    line-height: 1.15;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    width: 100%;
}

.q-account-avatars {
    align-items: center;
    display: inline-flex;
    gap: 0;
}

.q-account-avatars span,
.q-account-avatars small,
.q-account-avatar {
    align-items: center;
    background: rgba(141, 143, 243, 0.9);
    border: 2px solid var(--q-dark-bg);
    border-radius: 999px;
    color: #101329;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    min-width: 26px;
    padding: 0 5px;
}

.q-account-avatars span + span,
.q-account-avatars small {
    margin-left: -7px;
}

.q-account-avatars span:nth-child(2) {
    background: #ffb66e;
}

.q-account-avatars span:nth-child(3) {
    background: #ffd0da;
}

.q-account-panel {
    background: #171532;
    border: 1px solid var(--q-dark-line);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    color: var(--q-dark-ink);
    display: grid;
    gap: 14px;
    left: 18px;
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 24px;
    position: fixed;
    top: 18px;
    width: min(520px, calc(100vw - 36px));
    z-index: 40;
}

.q-account-panel h2 {
    font-size: 26px;
    margin: 0;
}

.q-panel-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--q-dark-dim);
    display: grid;
    font-size: 24px;
    height: 34px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 18px;
    top: 14px;
    width: 34px;
}

.q-account-panel label {
    color: var(--q-dark-muted);
    display: grid;
    font-weight: 900;
    gap: 7px;
}

.q-account-panel select {
    background: var(--q-dark-card-2);
    border-color: var(--q-dark-line);
    color: var(--q-dark-ink);
}

.q-account-panel-list {
    background: var(--q-dark-card);
    border: 1px solid var(--q-dark-line);
    border-radius: 12px;
    display: grid;
    gap: 6px;
    max-height: 285px;
    overflow: auto;
    padding: 10px;
}

.q-account-panel-list > span {
    color: var(--q-dark-muted);
    font-size: 14px;
    font-weight: 900;
    padding: 2px 6px 6px;
}

.q-account-option {
    align-items: center;
    border-radius: 10px;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: 22px 38px 1fr;
    padding: 7px 6px;
}

.q-account-option:hover {
    background: rgba(255, 255, 255, 0.04);
}

.q-account-option input {
    accent-color: var(--q-lime);
    height: 18px;
    width: 18px;
}

.q-account-option strong {
    color: var(--q-dark-ink);
    font-size: 14px;
}

.q-account-option small {
    color: var(--q-dark-dim);
    display: block;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .q-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .q-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .q-app-shell {
        grid-template-columns: 1fr;
    }

    .q-sidebar {
        display: none;
    }

    .q-content,
    .q-topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .q-content.q-content-dashboard {
        padding: 0 16px 18px;
    }

    .q-mobile-nav {
        display: inline-grid;
    }

    .q-user-details,
    .q-user-chevron,
    .q-live-pill {
        display: none;
    }

    .q-grid-2,
    .q-grid-3,
    .q-grid-4,
    .q-form-grid,
    .q-mode-grid {
        grid-template-columns: 1fr;
    }

    .q-selling-default-head,
    .q-ebay-setup-callout,
    .q-ebay-setup-head,
    .q-ebay-capability-status,
    .q-ebay-setup-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .q-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .q-search,
    .q-toolbar .q-btn {
        width: 100%;
    }
}

/* Pricing modal with tabs */
.q-modal-overlay {
    align-items: flex-start;
    background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 48px 16px;
    position: fixed;
    z-index: 60;
}

.q-modal {
    background: var(--q-dark-card);
    border: 1px solid var(--q-dark-line);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    max-width: 920px;
    width: 100%;
}

.q-product-editor {
    max-width: 1120px;
}

.q-modal-overlay.q-modal-overlay-fullscreen {
    align-items: stretch;
    overflow: hidden;
    padding: 0;
}

.q-modal-template-fullscreen {
    border: 0;
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    width: 100vw;
}

.q-modal-template-fullscreen .q-product-editor-panel.active {
    overflow: hidden;
}

.q-modal-template-fullscreen .q-product-editor-panel.active > .q-modal-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: none;
    min-height: 0;
    overflow: hidden;
}

.q-product-editor-panel {
    display: none;
    min-height: 0;
    min-width: 0;
}

.q-product-editor-panel.active {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.q-focus-guard {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.q-modal-other {
    min-height: min(680px, calc(100vh - 64px));
}

.q-modal-other .q-modal-body {
    flex: 1;
    max-height: none;
}

.q-modal-head {
    align-items: flex-start;
    border-bottom: 1px solid var(--q-dark-line-2);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 20px 24px 14px;
}

.q-modal-title {
    color: var(--q-dark-ink);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.q-modal-close {
    background: transparent;
    border: 0;
    color: var(--q-dark-muted);
    flex: none;
    font-size: 22px;
    line-height: 1;
    min-height: 32px;
    padding: 0;
    width: 32px;
}

.q-modal > .q-tabs {
    border-bottom: 1px solid var(--q-dark-line-2);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 24px;
}

.q-tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--q-dark-dim);
    font-size: 14px;
    font-weight: 800;
    min-height: 46px;
    padding: 0 8px;
    white-space: nowrap;
}

.q-modal > .q-tabs .q-tab.active {
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--q-indigo-bright);
    color: var(--q-dark-ink);
}

.q-product-editor-tabs .q-tab {
    align-items: center;
    display: inline-flex;
    flex: 1 1 0;
    justify-content: center;
    min-width: 96px;
}

.q-tab:focus-visible {
    border-bottom-color: var(--q-indigo-bright);
    color: var(--q-dark-ink);
    outline: none;
}

.q-tab:disabled {
    color: var(--q-dark-faint);
    cursor: not-allowed;
    opacity: 0.7;
}

.q-modal-body {
    display: grid;
    gap: 18px;
    max-height: 66vh;
    overflow-y: auto;
    padding: 20px 24px;
}

.price-toggle-row {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.price-toggle-text strong {
    color: var(--q-dark-ink);
    display: block;
    font-size: 15px;
    font-weight: 900;
}

.price-toggle-text small {
    color: var(--q-dark-dim);
    font-size: 12.5px;
}

.q-switch {
    flex: none;
    height: 26px;
    position: relative;
    width: 46px;
}

.q-switch input {
    height: 0;
    opacity: 0;
    position: absolute;
    width: 0;
}

.q-switch-track {
    background: var(--q-dark-line);
    border-radius: 999px;
    cursor: pointer;
    display: block;
    height: 26px;
    transition: background 0.15s ease;
    width: 46px;
}

.q-switch-track::after {
    background: #ffffff;
    border-radius: 50%;
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 0.15s ease;
    width: 20px;
}

.q-switch input:checked + .q-switch-track {
    background: var(--q-indigo-bright);
}

.q-switch input:checked + .q-switch-track::after {
    transform: translateX(20px);
}

.price-grid {
    display: grid;
    gap: 14px;
}

.price-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.q-modal-body label {
    color: var(--q-dark-muted);
}

.q-modal-body input,
.q-modal-body select,
.q-modal-body textarea {
    background: var(--q-dark-card-2);
    border-color: var(--q-dark-line);
    color: var(--q-dark-ink);
}

.q-modal-body input:disabled,
.q-modal-body select:disabled,
.q-modal-body textarea:disabled {
    color: var(--q-dark-muted);
    opacity: 0.85;
}

.q-modal-body textarea::placeholder {
    color: var(--q-dark-dim);
}

.q-modal-body textarea:focus {
    border-color: var(--q-indigo-bright);
    box-shadow: 0 0 0 3px rgba(141, 143, 243, 0.14);
    outline: 0;
}

.commission-block {
    display: grid;
    gap: 10px;
}

.commission-title {
    color: var(--q-dark-ink);
    font-size: 15px;
    font-weight: 900;
}

.commission-bar {
    border-radius: 10px;
    display: flex;
    height: 40px;
    overflow: hidden;
    width: 100%;
}

.commission-seg {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-size: 12.5px;
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    padding: 0 10px;
    white-space: nowrap;
}

.commission-seg span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.commission-seg.cost {
    background: var(--q-dark-raise);
}

.commission-seg.profit {
    background: linear-gradient(100deg, var(--q-indigo), var(--q-indigo-bright));
}

.commission-seg.fee {
    background: repeating-linear-gradient(45deg, var(--q-red), var(--q-red) 7px, #d63d51 7px, #d63d51 14px);
}

.commission-legend {
    color: var(--q-dark-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 12.5px;
    font-weight: 700;
    gap: 18px;
}

.commission-legend .dot {
    border-radius: 3px;
    display: inline-block;
    height: 10px;
    margin-right: 7px;
    width: 10px;
}

.commission-legend .dot.profit {
    background: var(--q-indigo-bright);
}

.commission-legend .dot.fee {
    background: var(--q-red);
}

.price-breakdown {
    display: grid;
    gap: 2px;
}

.price-breakdown > div {
    align-items: center;
    border-bottom: 1px solid var(--q-dark-line-2);
    color: var(--q-dark-muted);
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    padding: 10px 2px;
}

.price-breakdown > div span:last-child {
    color: var(--q-dark-ink);
    font-weight: 800;
}

.price-breakdown > div.net {
    border-bottom: 0;
    color: var(--q-dark-ink);
    font-weight: 900;
}

.price-breakdown > div.net span:last-child {
    color: var(--q-lime);
    font-size: 16px;
}

.q-modal-foot {
    align-items: center;
    border-top: 1px solid var(--q-dark-line-2);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 24px 18px;
}

.q-help-link {
    color: var(--q-indigo-bright);
    font-size: 13px;
    font-weight: 800;
}

.q-modal-inline-status {
    background: rgba(141, 143, 243, 0.08);
    border-bottom: 1px solid var(--q-dark-line-2);
    color: var(--q-dark-muted);
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 24px;
}

.q-modal-inline-status.warning {
    background: rgba(255, 186, 28, 0.08);
    color: var(--q-amber);
}

.q-modal-inline-status.vero {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.q-modal-inline-status.vero strong {
    color: inherit;
}

.q-modal-inline-status.vero.warning {
    background: var(--q-amber-soft);
    border-left: 3px solid var(--q-amber);
    color: #f5c451;
}

.q-modal-inline-status.vero.critical {
    background: var(--q-red-soft);
    border-left: 3px solid var(--q-red);
    color: #f47080;
}

.q-modal-vero-count {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 10px;
    margin-left: auto;
    padding: 3px 7px;
    white-space: nowrap;
}

.q-modal-head-actions {
    align-items: center;
    display: flex;
    flex: none;
    gap: 8px;
}

.q-modal-expand {
    align-items: center;
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 8px;
    color: var(--q-dark-muted);
    display: inline-flex;
    font-size: 12.5px;
    font-weight: 800;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
}

.q-modal-expand:hover,
.q-modal-expand[aria-pressed="true"] {
    border-color: var(--q-indigo-bright);
    color: var(--q-dark-ink);
}

.q-modal-expand svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 15px;
}

.other-tab-body {
    align-content: start;
    gap: 14px;
    min-height: 440px;
    padding-top: 18px;
}

.draft-sales-setup {
    align-items: start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.draft-sales-setup h3 {
    color: var(--q-dark-ink);
    font-size: 17px;
    margin: 3px 0 5px;
}

.draft-sales-setup p {
    color: var(--q-dark-muted);
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0;
    max-width: 680px;
}

.draft-sales-kicker {
    color: var(--q-indigo-bright);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.draft-setup-warnings {
    display: grid;
    gap: 7px;
}

.draft-setup-warnings > div {
    background: rgba(255, 186, 28, 0.07);
    border: 1px solid rgba(255, 186, 28, 0.18);
    border-radius: 9px;
    color: var(--q-dark-muted);
    display: grid;
    font-size: 12px;
    gap: 2px;
    padding: 9px 11px;
}

.draft-setup-warnings strong {
    color: var(--q-amber);
}

.other-schedule-block {
    display: grid;
    gap: 10px;
}

.other-date-field {
    display: grid;
    gap: 6px;
}

.other-date-field > span,
.other-policy-grid label {
    color: var(--q-dark-muted);
    font-size: 13px;
    font-weight: 800;
}

.other-date-field input {
    min-height: 38px;
    width: 100%;
}

.other-warning-option {
    align-items: center;
    color: var(--q-dark-muted);
    cursor: not-allowed;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 9px;
}

.other-warning-option input {
    accent-color: var(--q-indigo-bright);
    flex: none;
    height: 19px;
    margin: 0;
    width: 19px;
}

.other-policy-divider {
    background: var(--q-dark-line-2);
    height: 1px;
    width: 100%;
}

.other-policy-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.other-policy-grid label {
    display: grid;
    gap: 6px;
}

.other-policy-grid input {
    min-height: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

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

.draft-policy-grid small,
.detail-field-hint {
    color: var(--q-dark-dim);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.draft-package-editor {
    background: rgba(82, 91, 255, 0.045);
    border: 1px solid var(--q-dark-line-2);
    border-radius: 12px;
    display: grid;
    gap: 14px;
    padding: 14px;
}

.draft-package-heading,
.draft-package-actions,
.package-measure-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.draft-package-heading,
.draft-package-actions {
    justify-content: space-between;
}

.draft-package-heading h3 {
    color: var(--q-dark-ink);
    font-size: 16px;
    margin: 3px 0 4px;
}

.draft-package-heading p,
.draft-package-actions small {
    color: var(--q-dark-muted);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.package-measure-row input {
    flex: 1 1 auto;
    min-width: 0;
}

.package-measure-row select {
    flex: 0 0 86px;
}

.other-tab-foot .q-btn {
    min-width: 136px;
}

.specifics-tab-body {
    align-content: start;
    gap: 10px;
    min-height: min(440px, 58vh);
    padding-top: 18px;
}

.specifics-note {
    background: rgba(141, 143, 243, 0.08);
    border: 1px solid rgba(141, 143, 243, 0.16);
    border-radius: 9px;
    color: var(--q-dark-muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
    padding: 9px 12px;
}

.specifics-list {
    display: grid;
    gap: 8px;
}

.specific-row {
    align-items: center;
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 9px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
    min-height: 40px;
    overflow: hidden;
}

.specific-name-cell {
    align-items: center;
    display: flex;
    min-width: 0;
    position: relative;
}

.specific-row input.specific-name,
.specific-row input.specific-value,
.specific-row select.specific-value {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 40px;
    min-width: 0;
    padding: 0 10px;
    width: 100%;
}

.specific-row input.specific-name {
    color: var(--q-dark-ink);
    font-weight: 850;
}

.specific-row input.specific-name[readonly] {
    cursor: default;
}

.specific-row input.specific-value,
.specific-row select.specific-value {
    color: var(--q-dark-muted);
    font-weight: 750;
}

.specific-row input:focus,
.specific-row select:focus {
    background: rgba(141, 143, 243, 0.05);
    outline: 1px solid rgba(141, 143, 243, 0.55);
    outline-offset: -1px;
}

.specific-required {
    color: var(--q-red);
    font-size: 14px;
    font-weight: 900;
    padding-right: 2px;
}

.specific-delete {
    align-items: center;
    align-self: stretch;
    background: transparent;
    border: 0;
    color: var(--q-dark-muted);
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
    padding: 0;
    width: 38px;
}

.specific-delete:hover {
    background: var(--q-red-soft);
    color: var(--q-red);
}

.specific-delete svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 17px;
}

.specifics-empty {
    align-items: center;
    border: 1px dashed var(--q-dark-line);
    border-radius: 10px;
    color: var(--q-dark-dim);
    display: grid;
    gap: 5px;
    justify-items: center;
    min-height: 150px;
    padding: 24px;
    text-align: center;
}

.specifics-empty strong {
    color: var(--q-dark-ink);
    font-size: 14px;
}

.specifics-empty span,
.specifics-validation {
    font-size: 12.5px;
    font-weight: 700;
}

.specifics-validation {
    color: #f47080;
}

.specific-add-panel {
    display: grid;
    gap: 10px;
}

.specific-add-placeholder {
    color: var(--q-dark-dim);
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

.specific-add-actions,
.specific-add-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.specific-add-button {
    align-items: center;
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 9px;
    color: var(--q-dark-muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    min-height: 36px;
    padding: 0 13px;
}

.specific-add-button:hover {
    border-color: rgba(141, 143, 243, 0.5);
    color: var(--q-dark-ink);
}

.specific-add-button span {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    font-size: 15px;
    font-weight: 500;
    height: 18px;
    justify-content: center;
    line-height: 1;
    width: 18px;
}

.specifics-tab-foot .q-btn {
    min-width: 136px;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.tab-placeholder {
    align-items: center;
    border: 1px dashed var(--q-dark-line);
    border-radius: 12px;
    color: var(--q-dark-dim);
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 48px 20px;
    text-align: center;
}

.tab-placeholder strong {
    color: var(--q-dark-ink);
    font-size: 16px;
}

.detail-top {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) 240px;
}

.field-label-row {
    align-items: baseline;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.field-counter {
    color: var(--q-dark-dim);
    font-size: 12px;
    font-weight: 700;
}

.field-counter.over {
    color: var(--q-red);
}

.detail-description {
    background: var(--q-dark-card-2);
    color: var(--q-dark-ink);
    min-height: 150px;
    resize: vertical;
}

.detail-category-picker,
.price-stock-panel {
    background: rgba(13, 16, 35, 0.42);
    border: 1px solid var(--q-dark-line);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.detail-category-heading,
.detail-category-followup {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.detail-category-heading strong,
.detail-category-heading small {
    display: block;
}

.detail-category-heading strong {
    color: var(--q-dark-ink);
    font-size: 14px;
}

.detail-category-heading small {
    color: var(--q-dark-dim);
    font-size: 11.5px;
    margin-top: 2px;
}

.detail-category-heading > span {
    background: rgba(141, 143, 243, 0.12);
    border-radius: 999px;
    color: var(--q-indigo-bright);
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 8px;
}

.detail-category-search {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.detail-category-note,
.detail-category-followup {
    background: rgba(141, 143, 243, 0.08);
    border-radius: 8px;
    color: var(--q-dark-muted);
    font-size: 12px;
    line-height: 1.4;
    padding: 9px 11px;
}

.detail-category-followup .q-btn {
    flex: none;
}

.price-stock-panel .price-grid small {
    color: var(--q-dark-dim);
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 720px) {
    .detail-top {
        grid-template-columns: 1fr;
    }

    .detail-category-search {
        grid-template-columns: 1fr;
    }

    .detail-category-followup {
        align-items: stretch;
        flex-direction: column;
    }
}

.image-toolbar {
    align-items: center;
    display: flex;
    gap: 12px;
}

.image-file-input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.image-url-row {
    display: flex;
    gap: 10px;
}

.image-url-row input {
    flex: 1;
}

.image-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.image-tile {
    aspect-ratio: 1 / 1;
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.image-preview-trigger {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    height: 100%;
    padding: 0;
    width: 100%;
}

.image-preview-trigger > img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.image-upload {
    align-items: center;
    background: var(--q-dark-bg);
    border: 1px dashed var(--q-dark-line);
    color: var(--q-dark-dim);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    text-align: center;
}

.image-upload:hover {
    border-color: var(--q-indigo-bright);
    color: var(--q-dark-ink);
}

.image-upload strong {
    color: var(--q-dark-ink);
    font-size: 14px;
}

.image-upload small {
    font-size: 11.5px;
}

.image-upload .upload-icon {
    font-size: 24px;
    line-height: 1;
}

.image-tile-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    position: absolute;
    right: 6px;
    top: 6px;
    transition: opacity 0.12s ease;
}

.image-tile:hover .image-tile-actions {
    opacity: 1;
}

.image-tile-actions button {
    align-items: center;
    background: rgba(5, 8, 15, 0.72);
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-size: 14px;
    height: 26px;
    justify-content: center;
    min-height: 26px;
    padding: 0;
    width: 26px;
}

.image-tile-actions button.danger:hover {
    background: var(--q-red);
}

.image-tile-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.image-primary {
    background: var(--q-indigo);
    border-radius: 6px;
    bottom: 6px;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    left: 6px;
    padding: 3px 7px;
    position: absolute;
}

.image-empty {
    color: var(--q-dark-dim);
    font-size: 13px;
}

.image-preview-backdrop {
    align-items: center;
    background: rgba(5, 8, 15, 0.86);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 32px;
    position: fixed;
    z-index: 3000;
}

.image-preview-dialog {
    align-items: center;
    background: var(--q-dark-card);
    border: 1px solid var(--q-dark-line);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    max-height: calc(100vh - 64px);
    max-width: min(1100px, calc(100vw - 64px));
    min-height: 160px;
    min-width: 160px;
    overflow: hidden;
    padding: 16px;
    position: relative;
}

.image-preview-dialog > img {
    display: block;
    max-height: calc(100vh - 96px);
    max-width: 100%;
    object-fit: contain;
}

.image-preview-close {
    align-items: center;
    background: rgba(5, 8, 15, 0.78);
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    z-index: 1;
}

.template-layout {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
    min-height: 0;
}

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

.template-left {
    align-content: start;
    display: grid;
    gap: 14px;
    min-width: 0;
}

.template-right {
    align-content: start;
    display: grid;
    gap: 10px;
    grid-template-rows: auto minmax(500px, 1fr);
    min-width: 0;
}

.template-selection-summary {
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(141, 143, 243, 0.14), rgba(91, 91, 214, 0.08));
    border: 1px solid rgba(141, 143, 243, 0.45);
    border-radius: 12px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 16px;
}

.template-selection-summary > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.template-eyebrow {
    color: #bdbefa;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.template-selection-summary strong {
    color: var(--q-dark-ink);
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-selection-summary small,
.template-manage-heading small,
.template-preset-card small,
.template-editor-heading small,
.template-preview-head small {
    color: var(--q-dark-dim);
    display: block;
    font-size: 12px;
    line-height: 1.45;
}

.template-selection-status {
    background: rgba(69, 217, 158, 0.12);
    border: 1px solid rgba(69, 217, 158, 0.3);
    border-radius: 999px;
    color: var(--q-lime);
    flex: none;
    font-size: 10.5px;
    font-weight: 900;
    padding: 5px 8px;
    text-transform: uppercase;
}

.template-selection-status.pending {
    background: var(--q-amber-soft);
    border-color: rgba(255, 186, 28, 0.35);
    color: var(--q-amber);
}

.template-manage {
    border: 1px solid var(--q-dark-line);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.template-manage-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.template-manage-heading {
    display: grid;
    gap: 3px;
}

.template-create-button {
    flex: none;
}

.template-preset-card {
    background: rgba(91, 91, 214, 0.08);
    border: 1px solid var(--q-dark-line-2);
    border-radius: 10px;
    display: grid;
    gap: 12px;
    padding: 12px;
}

.template-preset-card > div:first-child {
    align-self: center;
    display: grid;
    gap: 3px;
}

.template-preset-card strong {
    color: var(--q-dark-ink);
    font-size: 13px;
}

.template-preset-actions {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.template-preset-actions label {
    font-size: 11px;
}

.template-preset-actions select {
    min-height: 36px;
    padding-bottom: 7px;
    padding-top: 7px;
}

.template-list {
    display: grid;
    gap: 8px;
}

.template-row {
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 10px;
    display: grid;
    overflow: hidden;
}

.template-row.selected {
    border-color: var(--q-indigo-bright);
    box-shadow: 0 0 0 1px rgba(141, 143, 243, 0.15);
}

.template-choice {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    gap: 11px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 9px 12px;
    text-align: left;
    width: 100%;
}

.template-choice:hover:not(:disabled) {
    background: rgba(141, 143, 243, 0.08);
}

.template-choice:focus-visible {
    outline: 2px solid var(--q-indigo-bright);
    outline-offset: -2px;
}

.template-choice:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.template-choice-indicator {
    border: 2px solid var(--q-dark-dim);
    border-radius: 50%;
    height: 16px;
    position: relative;
    width: 16px;
}

.template-row.selected .template-choice-indicator {
    border-color: var(--q-indigo-bright);
}

.template-row.selected .template-choice-indicator::after {
    background: var(--q-indigo-bright);
    border-radius: 50%;
    content: "";
    inset: 3px;
    position: absolute;
}

.template-choice-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.template-choice-copy small {
    color: var(--q-dark-dim);
    font-size: 11.5px;
}

.template-name {
    align-items: center;
    color: var(--q-dark-ink);
    display: flex;
    flex-wrap: wrap;
    font-size: 13.5px;
    font-weight: 800;
    gap: 8px;
}

.template-choice-state {
    color: var(--q-indigo-bright);
    font-size: 11px;
    font-weight: 900;
}

.template-selected-actions {
    align-items: center;
    border-top: 1px solid var(--q-dark-line-2);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: space-between;
    padding: 9px 12px;
}

.template-selected-actions > span {
    color: var(--q-dark-dim);
    font-size: 10.5px;
    font-weight: 800;
}

.template-selected-actions .q-btn {
    font-size: 11.5px;
    min-height: 32px;
    padding: 6px 9px;
}

.template-empty {
    border: 1px dashed var(--q-dark-line);
    border-radius: 9px;
    padding: 12px;
    text-align: center;
}

.template-editor {
    background: rgba(5, 8, 15, 0.22);
    border: 1px solid var(--q-indigo-bright);
    border-radius: 10px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.template-editor-heading {
    display: grid;
    gap: 3px;
}

.template-editor-heading strong {
    color: var(--q-dark-ink);
    font-size: 14px;
}

.template-editor code {
    background: var(--q-dark-bg);
    border-radius: 4px;
    color: var(--q-lime);
    font-size: 11px;
    padding: 1px 5px;
}

.template-html {
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 12.5px;
    min-height: 180px;
    white-space: pre;
}

.template-preview-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.template-preview-head > div {
    display: grid;
    gap: 3px;
}

.template-live-badge {
    background: rgba(141, 143, 243, 0.12);
    border: 1px solid rgba(141, 143, 243, 0.32);
    border-radius: 999px;
    color: #bdbefa;
    flex: none;
    font-size: 10.5px;
    font-weight: 800;
    padding: 5px 8px;
}

.template-preview {
    background: #ffffff;
    border: 1px solid var(--q-dark-line);
    border-radius: 12px;
    height: 500px;
    min-height: 0;
    width: 100%;
}

.q-modal-template-fullscreen .template-layout {
    flex: 1 1 auto;
    grid-template-columns: minmax(520px, 0.9fr) minmax(0, 1.35fr);
    min-height: 0;
}

.q-modal-template-fullscreen .template-layout.template-layout-editing {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.q-modal-template-fullscreen .template-layout-editing .template-editor {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.q-modal-template-fullscreen .template-layout-editing .listing-html-editor {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    min-height: 0;
}

.q-modal-template-fullscreen .template-layout-editing .listing-html-workspace,
.q-modal-template-fullscreen .template-layout-editing .listing-html-source,
.q-modal-template-fullscreen .template-layout-editing .listing-html-source textarea {
    height: 100%;
    min-height: 0;
}

.q-modal-template-fullscreen .template-left {
    overflow-y: auto;
    padding-right: 4px;
}

.q-modal-template-fullscreen .template-right {
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
}

.q-modal-template-fullscreen .template-preview {
    height: 100%;
}

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

    .template-preset-card,
    .template-preset-actions {
        grid-template-columns: 1fr;
    }

    .q-modal-template-fullscreen .template-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .q-modal-template-fullscreen .template-left {
        overflow-y: visible;
    }

    .q-modal-template-fullscreen .template-preview {
        height: 500px;
    }
}

@media (max-width: 720px) {
    .price-grid-2,
    .price-grid-3,
    .other-policy-grid {
        grid-template-columns: 1fr;
    }

    .specific-row {
        grid-template-columns: minmax(0, 1fr) 38px;
    }

    .specific-name-cell,
    .specific-row .specific-value {
        grid-column: 1;
    }

    .specific-delete,
    .specific-add-placeholder {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .specifics-tab-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .specifics-tab-foot .q-actions,
    .specifics-tab-foot .q-btn {
        width: 100%;
    }
}

/* Draft workspace */
.q-drafts-toolbar {
    align-items: center;
    min-width: 0;
    position: relative;
}

.q-toolbar-icon,
.q-action-icon,
.q-create-draft,
.q-search-clear,
.q-sort-button,
.q-pagination button {
    cursor: pointer;
}

.q-toolbar-icon svg,
.q-drafts-search > svg,
.q-filter-search svg,
.q-action-icon svg,
.q-create-draft svg,
.q-banner svg,
.q-pagination svg,
.q-history-empty svg,
.q-delete-confirm svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.q-toolbar-icon svg {
    height: 19px;
    width: 19px;
}

.q-filter-button.active {
    background: rgba(91, 91, 214, 0.27);
    border-color: rgba(141, 143, 243, 0.62);
    color: #e2e2ff;
}

.q-filter-anchor {
    flex: none;
    position: relative;
}

.q-filter-count {
    align-items: center;
    background: var(--q-indigo);
    border: 2px solid var(--q-dark-bg);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 9px;
    font-weight: 900;
    height: 17px;
    justify-content: center;
    min-width: 17px;
    padding: 0 3px;
    position: absolute;
    right: -5px;
    top: -5px;
}

.q-filter-popover {
    background: var(--q-dark-card);
    border: 1px solid var(--q-dark-line);
    border-radius: 13px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
    left: 0;
    overflow: hidden;
    position: absolute;
    top: calc(100% + 9px);
    width: min(340px, calc(100vw - 32px));
    z-index: 45;
}

.q-filter-popover-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 13px 14px 8px;
}

.q-filter-popover-head strong {
    color: var(--q-dark-ink);
    font-size: 14px;
}

.q-filter-popover-head button {
    background: transparent;
    border: 0;
    color: var(--q-dark-muted);
    font-size: 22px;
    line-height: 1;
    min-height: 28px;
    padding: 0;
    width: 28px;
}

.q-filter-search {
    align-items: center;
    border: 1px solid var(--q-indigo-bright);
    border-radius: 9px;
    display: flex;
    gap: 8px;
    margin: 0 14px 8px;
    padding: 0 10px;
}

.q-filter-search svg {
    color: var(--q-dark-dim);
    flex: none;
    height: 17px;
    width: 17px;
}

.q-filter-search input {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--q-dark-ink);
    min-height: 38px;
    padding: 0;
    width: 100%;
}

.q-filter-groups {
    display: grid;
    gap: 3px;
    max-height: 310px;
    overflow-y: auto;
    padding: 2px 8px 8px;
}

.q-filter-group {
    align-items: center;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: 102px minmax(0, 1fr);
    padding: 7px 6px;
}

.q-filter-group:hover {
    background: var(--q-dark-card-2);
}

.q-filter-group > span {
    color: var(--q-dark-muted);
    font-size: 13px;
    font-weight: 800;
}

.q-filter-group select {
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 8px;
    color: var(--q-dark-ink);
    font-size: 12px;
    min-height: 34px;
    min-width: 0;
    padding: 0 28px 0 9px;
    width: 100%;
}

.q-filter-popover-foot {
    border-top: 1px solid var(--q-dark-line-2);
    padding: 10px 14px 12px;
}

.q-filter-popover-foot .q-btn {
    min-height: 35px;
    width: 100%;
}

.q-drafts-search {
    height: 42px;
    min-width: 220px;
}

.q-drafts-search > svg {
    flex: none;
    height: 19px;
    width: 19px;
}

.q-search-clear {
    background: transparent;
    border: 0;
    color: var(--q-dark-muted);
    flex: none;
    font-size: 19px;
    min-height: 28px;
    padding: 0;
    width: 28px;
}

.q-create-draft {
    align-items: center;
    display: inline-flex;
    flex: none;
    gap: 8px;
    height: 42px;
}

.q-create-draft svg {
    height: 17px;
    width: 17px;
}

.q-drafts-table {
    border-radius: 13px;
}

.q-drafts-table .q-table {
    min-width: 1080px;
}

.q-checkbox-cell {
    padding-left: 12px !important;
    padding-right: 6px !important;
    width: 30px;
}

.q-table-checkbox {
    appearance: none;
    background: transparent;
    border: 1px solid #353965;
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
    flex: 0 0 15px;
    height: 15px;
    margin: 0;
    max-height: 15px;
    max-width: 15px;
    min-height: 15px;
    min-width: 15px;
    padding: 0;
    position: relative;
    vertical-align: middle;
    width: 15px;
}

.q-table-checkbox:checked {
    background: var(--q-indigo);
    border-color: var(--q-indigo-bright);
}

.q-table-checkbox:checked::after {
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    content: "";
    height: 7px;
    left: 4px;
    position: absolute;
    top: 1px;
    transform: rotate(45deg);
    width: 4px;
}

.q-sort-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: inline-flex;
    font: inherit;
    gap: 4px;
    min-height: auto;
    padding: 0;
}

.q-sort-button span {
    color: var(--q-indigo-bright);
    font-size: 14px;
}

.q-marketplace-mark,
.q-ebay-mark {
    font-family: Georgia, serif;
    font-size: 14px;
    margin-right: 2px;
}

.q-marketplace-mark {
    color: #f0f2ff;
}

.q-ebay-mark {
    color: #ffcc36;
}

.q-row-actions {
    flex-wrap: nowrap;
}

.q-action-icon {
    transition: border-color 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.q-action-icon:hover:not(:disabled) {
    border-color: currentColor;
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.q-action-icon:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.q-action-icon.edit {
    background: var(--q-amber-soft);
    color: var(--q-amber);
}

.q-action-icon svg {
    height: 16px;
    width: 16px;
}

.q-drafts-table .q-banner svg {
    flex: none;
    height: 17px;
    margin-top: 1px;
    width: 17px;
}

.q-drafts-table .q-table-foot {
    justify-content: space-between;
}

.q-table-summary {
    align-items: center;
    display: flex;
    gap: 10px;
}

.q-table-summary select {
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 7px;
    color: var(--q-dark-muted);
    min-height: 30px;
    padding: 0 25px 0 8px;
}

.q-pagination {
    align-items: center;
    display: flex;
    gap: 8px;
}

.q-pagination button {
    align-items: center;
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line);
    border-radius: 7px;
    color: var(--q-dark-muted);
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.q-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.q-pagination svg {
    height: 16px;
    width: 16px;
}

.q-history-modal {
    min-height: min(650px, calc(100vh - 64px));
    max-width: 680px;
}

.q-history-modal .q-modal-head,
.q-delete-modal .q-modal-head {
    border-bottom: 0;
}

.q-history-tabs {
    justify-content: stretch;
}

.q-history-tabs .q-tab {
    flex: 1;
}

.q-history-body {
    flex: 1;
    min-height: 0;
    padding: 0 24px;
}

.q-history-list {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding: 4px 4px 12px 0;
}

.q-history-row {
    align-items: flex-start;
    border-bottom: 1px solid var(--q-dark-line-2);
    display: grid;
    gap: 11px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    padding: 10px 2px;
}

.q-history-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 23px;
    justify-content: center;
    width: 23px;
}

.q-history-status.ok {
    background: var(--q-lime-soft);
    color: var(--q-lime);
}

.q-history-status.error {
    background: var(--q-red-soft);
    color: var(--q-red);
}

.q-history-status.pending {
    background: rgba(148, 163, 184, 0.13);
    color: #a8b0c2;
}

.q-history-status svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2.3;
    width: 15px;
}

.q-history-copy {
    min-width: 0;
}

.q-history-copy strong {
    color: var(--q-dark-ink);
    display: block;
    font-size: 13.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.q-history-copy small {
    color: var(--q-dark-muted);
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
}

.q-history-row time {
    color: var(--q-dark-dim);
    font-size: 11.5px;
    padding-top: 2px;
    white-space: nowrap;
}

.q-history-import-row {
    align-items: center;
    grid-template-columns: 24px 28px minmax(0, 1fr) auto auto;
}

.q-history-source {
    align-items: center;
    background: #f3a847;
    border-radius: 7px;
    color: #171717;
    display: inline-flex;
    font: 900 17px/1 Arial, sans-serif;
    height: 25px;
    justify-content: center;
    position: relative;
    width: 25px;
}

.q-history-source::after {
    border-bottom: 2px solid #171717;
    border-radius: 50%;
    bottom: 4px;
    content: "";
    height: 4px;
    position: absolute;
    width: 13px;
}

.q-history-state {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.045em;
    padding: 4px 7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.q-history-state.ok {
    background: var(--q-lime-soft);
    color: var(--q-lime);
}

.q-history-state.error {
    background: var(--q-red-soft);
    color: var(--q-red);
}

.q-history-state.pending {
    background: rgba(148, 163, 184, 0.13);
    color: #a8b0c2;
}

.q-history-report {
    border-bottom: 1px solid var(--q-dark-line-2);
    display: grid;
    gap: 8px;
    padding: 12px 2px;
}

.q-history-report-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.q-history-report-head strong {
    color: var(--q-dark-ink);
    font-size: 13.5px;
}

.q-history-report-head time {
    color: var(--q-dark-dim);
    font-size: 11.5px;
    white-space: nowrap;
}

.q-history-report-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.q-history-report-counts span {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: var(--q-dark-muted);
    font-size: 10.5px;
    padding: 4px 7px;
}

.q-history-report-counts span.ok {
    background: var(--q-lime-soft);
    border-color: rgba(103, 232, 166, 0.18);
    color: var(--q-lime);
}

.q-history-report-counts span.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.18);
    color: #f4b95d;
}

.q-history-report-counts span.error {
    background: var(--q-red-soft);
    border-color: rgba(255, 104, 122, 0.18);
    color: var(--q-red);
}

.q-history-report-counts b {
    color: inherit;
    margin-left: 3px;
}

.q-history-empty {
    align-items: center;
    color: var(--q-dark-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
    text-align: center;
}

.q-history-empty > span {
    align-items: center;
    background: var(--q-indigo-soft);
    border-radius: 999px;
    color: #bdbefa;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    margin-bottom: 12px;
    width: 52px;
}

.q-history-empty svg {
    height: 25px;
    width: 25px;
}

.q-history-empty strong {
    color: var(--q-dark-ink);
    font-size: 15px;
}

.q-history-empty small {
    margin-top: 4px;
}

.q-history-foot .q-btn {
    width: 100%;
}

.q-delete-modal {
    max-width: 440px;
}

.q-delete-body {
    display: grid;
    gap: 10px;
    padding: 0 24px 22px;
}

.q-delete-body p {
    color: var(--q-dark-muted);
    font-size: 13.5px;
    line-height: 1.45;
    margin: 0;
}

.q-delete-body p strong {
    color: var(--q-dark-ink);
    display: inline;
}

.q-delete-body .q-help-link {
    font-size: 12px;
}

.q-delete-body .q-delete-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    padding: 8px 10px;
}

.q-delete-confirm {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    margin-top: 3px;
    width: 100%;
}

.q-delete-confirm svg {
    height: 17px;
    width: 17px;
}

.q-button-spinner {
    animation: q-spin 0.75s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    border-top-color: #ffffff;
    height: 15px;
    width: 15px;
}

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

.q-vero-settings-grid {
    align-items: stretch;
}

.q-vero-card-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.q-vero-card-head > div {
    min-width: 0;
}

.q-vero-account-select {
    display: grid;
    gap: 7px;
    margin-top: 18px;
}

.q-vero-metrics,
.q-vero-audit {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0 0;
}

.q-vero-metrics div,
.q-vero-audit div {
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line-2);
    border-radius: 9px;
    min-width: 0;
    padding: 11px;
}

.q-vero-metrics dt,
.q-vero-audit dt {
    color: var(--q-dark-dim);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.q-vero-metrics dd,
.q-vero-audit dd {
    color: var(--q-dark-ink);
    font-size: 12px;
    font-weight: 800;
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.q-vero-bypass-card {
    border-left: 3px solid var(--q-dark-line);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.q-vero-bypass-card.is-active {
    border-left-color: var(--q-red);
}

.q-vero-bypass-card .q-banner,
.q-vero-bypass-card .q-vero-safe-note {
    border-radius: 9px;
}

.q-vero-bypass-card > .q-btn {
    align-self: flex-start;
}

.q-vero-safe-note,
.q-vero-action-help {
    background: var(--q-dark-card-2);
    border: 1px solid var(--q-dark-line-2);
    color: var(--q-dark-muted);
    font-size: 12.5px;
    line-height: 1.5;
    padding: 11px 13px;
}

.q-vero-role-note {
    color: var(--q-amber);
    font-size: 12px;
    font-weight: 800;
}

.q-vero-safe-note {
    border-left: 3px solid var(--q-lime);
}

.q-vero-blacklist-card {
    margin-top: 18px;
}

.q-vero-blacklist-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, 1.5fr) minmax(160px, 1fr) minmax(180px, 1fr) auto;
    margin-top: 18px;
}

.q-vero-blacklist-form label {
    display: grid;
    gap: 7px;
}

.q-vero-form-actions {
    flex-wrap: wrap;
}

.q-vero-action-help {
    border-left: 3px solid var(--q-indigo-bright);
    border-radius: 9px;
    margin-top: 12px;
}

.q-vero-action-help strong {
    color: var(--q-dark-ink);
}

.q-vero-blacklist-table {
    margin-top: 14px;
}

.q-vero-disclaimer-modal {
    border-top: 3px solid var(--q-red);
    max-width: 640px;
}

.q-vero-danger-eyebrow {
    color: #f47080;
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.q-vero-disclaimer-copy {
    color: var(--q-dark-muted);
    line-height: 1.6;
    margin: 0;
}

.q-vero-acceptance {
    align-items: flex-start;
    background: var(--q-red-soft);
    border: 1px solid rgba(240, 85, 106, 0.25);
    border-radius: 10px;
    color: var(--q-dark-ink);
    display: flex;
    gap: 11px;
    line-height: 1.5;
    padding: 13px;
}

.q-vero-acceptance input {
    accent-color: var(--q-red);
    flex: none;
    height: 18px;
    margin-top: 2px;
    width: 18px;
}

@media (max-width: 1050px) {
    .q-vero-blacklist-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .q-drafts-toolbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .q-drafts-toolbar .q-drafts-search {
        flex-basis: calc(100% - 106px);
        width: auto;
    }

    .q-drafts-toolbar .q-create-draft {
        justify-content: center;
        width: 100%;
    }

    .q-vero-metrics,
    .q-vero-audit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .q-ebay-setup-panel-toggle {
        gap: 9px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 12px;
    }

    .q-ebay-setup-panel-toggle > .q-pill {
        display: none;
    }

    .q-ebay-setup-panel-body {
        padding: 12px;
    }

    .q-ebay-setup-fields {
        grid-template-columns: 1fr;
    }

    .q-ebay-binary-choice {
        grid-template-columns: 1fr;
    }

    .q-ebay-setup-fields .wide,
    .q-ebay-reuse-note.wide {
        grid-column: auto;
    }

    .q-filter-popover {
        left: calc(-42px - 11px);
        width: min(340px, calc(100vw - 20px));
    }

    .q-modal-overlay {
        padding: 18px 10px;
    }

    .q-history-modal {
        min-height: calc(100vh - 36px);
    }

    .q-history-row {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .q-history-row time {
        grid-column: 2;
        padding-top: 0;
    }

    .q-history-import-row {
        grid-template-columns: 24px 28px minmax(0, 1fr);
    }

    .q-history-import-row .q-history-copy,
    .q-history-import-row .q-history-state,
    .q-history-import-row time {
        grid-column: 3;
    }

    .q-history-import-row .q-history-state {
        justify-self: start;
    }

    .q-drafts-table .q-table-foot,
    .q-table-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .q-vero-blacklist-form {
        grid-template-columns: 1fr;
    }

    .q-vero-form-actions,
    .q-vero-form-actions .q-btn {
        width: 100%;
    }
}
