/* Account palette: PDF attached to Qublo #323. Define colors only here;
   components inherit them from html, including dialogs outside the app shell. */
:root {
    color-scheme: dark;
    --q-bg: #0f1026;
    --q-surface: #16173a;
    --q-surface-2: #1b1d42;
    --q-surface-raised: #23264a;
    --q-ink: #ececf8;
    --q-muted: #9094bc;
    --q-line: #2a2c5a;
    --q-brand: #5151c9;
    --q-brand-dark: #4141aa;
    --q-brand-text: #b8b8ff;
    --q-ok: #c6f94b;
    --q-bad: #ff8294;
    --q-warn: #f7c35c;
    --q-info: #8fcfff;
    --q-on-brand: #ffffff;
    --q-on-success: #0f1026;
    --q-on-warning: #0f1026;
    --q-on-danger: #0f1026;
    --q-danger-fill: #b4233a;
    --q-danger-hover: #961d30;
    --q-overlay: rgba(5, 8, 20, 0.72);
    --q-shadow-color: rgba(0, 0, 0, 0.28);

    /* Legacy names remain aliases, never independent palettes. */
    --q-ink-soft: var(--q-muted);
    --q-dark-bg: var(--q-bg);
    --q-dark-side: var(--q-surface);
    --q-dark-card: var(--q-surface);
    --q-dark-card-2: var(--q-surface-2);
    --q-dark-raise: var(--q-surface-raised);
    --q-dark-line: var(--q-line);
    --q-dark-line-2: var(--q-line);
    --q-dark-ink: var(--q-ink);
    --q-dark-muted: var(--q-muted);
    --q-dark-dim: var(--q-muted);
    --q-dark-faint: var(--q-muted);
    --q-indigo: var(--q-brand);
    --q-indigo-bright: var(--q-brand-text);
    --q-indigo-soft: color-mix(in srgb, var(--q-brand) 12%, var(--q-surface));
    --q-brand-soft: var(--q-indigo-soft);
    --q-brand-line: color-mix(in srgb, var(--q-brand-text) 50%, var(--q-line));
    --q-lime: var(--q-ok);
    --q-lime-deep: var(--q-ok);
    --q-lime-soft: color-mix(in srgb, var(--q-ok) 8%, var(--q-surface));
    --q-lime-line: color-mix(in srgb, var(--q-ok) 35%, var(--q-line));
    --q-red: var(--q-bad);
    --q-red-soft: color-mix(in srgb, var(--q-bad) 8%, var(--q-surface));
    --q-red-line: color-mix(in srgb, var(--q-bad) 35%, var(--q-line));
    --q-amber: var(--q-warn);
    --q-amber-soft: color-mix(in srgb, var(--q-warn) 8%, var(--q-surface));
    --q-amber-line: color-mix(in srgb, var(--q-warn) 35%, var(--q-line));
    --q-ok-soft: var(--q-lime-soft);
    --q-bad-soft: var(--q-red-soft);
    --q-warn-soft: var(--q-amber-soft);
    --q-info-soft: color-mix(in srgb, var(--q-info) 8%, var(--q-surface));
    --q-shadow: 0 14px 38px var(--q-shadow-color);
    --q-shadow-sm: 0 1px 2px var(--q-shadow-color);
    /* Bulk action bars keep the same dark palette in both page themes. */
    --qbar-bg: #0B0C1E;
    --qbar-border: #33356A;
    --qbar-text: #FFFFFF;
    --qbar-muted: #C9CBE6;
    --qbar-hover: #1B1C45;
    --qbar-sep: #33356A;
    --qbar-badge: #5151C9;
}

html[data-theme="light"] {
    --q-dashboard-tooltip-bg: var(--q-surface-2);
    color-scheme: light;
    --q-bg: #f5f6fa;
    --q-surface: #ffffff;
    --q-surface-2: #f0f1f7;
    --q-surface-raised: #e8eaf3;
    --q-ink: #161a33;
    --q-muted: #5b6080;
    --q-line: #e1e3ee;
    --q-brand-text: #5151c9;
    --q-ok: #176b3c;
    --q-bad: #b4233a;
    --q-warn: #805000;
    --q-info: #116b96;
    --q-on-success: #ffffff;
    --q-on-warning: #ffffff;
    --q-on-danger: #ffffff;
    --q-overlay: rgba(91, 96, 128, 0.28);
    --q-shadow-color: rgba(22, 26, 51, 0.14);
}

* {
    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-indigo-bright);
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Native popups and browser-provided controls inherit the document theme too. */
select option,
select optgroup {
    background: var(--q-surface);
    color: var(--q-ink);
}

input::placeholder,
textarea::placeholder {
    color: var(--q-muted);
    opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--q-brand);
}

button {
    align-items: center;
    background: var(--q-surface);
    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: var(--q-line);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Native selection controls keep their own sizing; :where preserves field specificity. */
input:not(:where([type="checkbox"], [type="radio"])),
select,
textarea {
    background: var(--q-surface);
    border: 1px solid var(--q-line);
    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: var(--q-on-brand);
}

.primary-action:hover,
.btn-primary:hover {
    background: var(--q-brand-dark);
    border-color: var(--q-indigo-bright);
}

.secondary-action {
    background: var(--q-brand-soft);
    border-color: transparent;
    color: var(--q-indigo-bright);
}

.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;
}

.q-app-shell:has(.dashboard-page) .q-global-import:not(.docked) {
    right: 24px;
    bottom: 24px;
    z-index: 60;
    max-width: calc(100vw - 48px);
}

/* The customer's Home reference keeps navigation in a wrapping top row.
   Scope it to Home; operational pages and support-session navigation retain
   their existing disclosure and identity-banner behavior. */
@media (width < 900px) {
    .q-app-shell:not(.q-support-active):has(.dashboard-page) > .q-sidebar {
        display: flex;
        position: static;
        height: auto;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--q-dark-line-2);
    }
    .q-app-shell:not(.q-support-active):has(.dashboard-page) .q-brand {
        align-items: center;
        display: flex;
        gap: 12px;
        justify-content: space-between;
    }
    .q-app-shell:not(.q-support-active):has(.dashboard-page) .q-brand-link {
        flex: none;
    }
    .q-app-shell:not(.q-support-active):has(.dashboard-page) .q-account-switch {
        margin-top: 0;
    }
    .q-app-shell:not(.q-support-active):has(.dashboard-page) .q-nav-scroll {
        flex: none;
        overflow: visible;
    }
    .q-app-shell:not(.q-support-active):has(.dashboard-page) .q-nav-list {
        display: flex;
        flex-wrap: wrap;
    }
    .q-app-shell:not(.q-support-active):has(.dashboard-page) .q-side-foot {
        grid-template-columns: minmax(0, 1fr) auto;
        margin-top: 0;
    }
    .q-app-shell:not(.q-support-active):has(.dashboard-page) .q-side-foot > :not(button) {
        grid-column: 1;
    }
    .q-app-shell:not(.q-support-active):has(.dashboard-page) .q-side-foot .q-side-plan-progress {
        grid-column: 1 / -1;
    }
    .q-app-shell:not(.q-support-active):has(.dashboard-page) .q-side-foot button {
        align-self: start;
        grid-column: 2;
        grid-row: 1 / span 2;
        padding-inline: 10px;
    }
    .q-app-shell:not(.q-support-active):has(.dashboard-page) :is(.q-mobile-nav, .q-mobile-navigation-close, .q-nav-sep) {
        display: none;
    }
}

.q-app-shell {
    --q-topbar-height: 62px;
    --q-workspace-gutter: clamp(12px, 1vw, 18px);
    background: var(--q-dark-bg);
    color: var(--q-dark-ink);
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    min-height: 100vh;
}

.q-btn.q-mobile-navigation-close {
    display: none;
}

.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: 12px 12px 8px;
}

.q-brand-link {
    align-items: center;
    color: var(--q-dark-ink);
    display: inline-flex;
    font-size: 26px;
    font-weight: 900;
    gap: 8px;
    letter-spacing: 0;
    text-decoration: none;
}

.q-logo-cube {
    display: inline-grid;
    filter: drop-shadow(0 6px 14px var(--q-brand-line));
    height: 34px;
    place-items: center;
    width: 34px;
}

.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: var(--q-indigo-bright);
    font-size: 13.5px;
    overflow-wrap: anywhere;
}

.q-nav-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 10px 10px;
}

.q-nav-list {
    display: grid;
    gap: 2px;
}

.q-nav-link {
    align-items: center;
    border-radius: 8px;
    color: var(--q-dark-muted);
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    min-height: 40px;
    padding: 4px 10px;
    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: none;
    color: var(--q-on-brand);
    font-weight: 700;
}

.q-nav-icon {
    flex: none;
    height: 18px;
    opacity: 0.9;
    width: 18px;
}

.q-nav-sep {
    background: var(--q-dark-line-2);
    height: 1px;
    margin: 6px 10px;
}

.q-nav-order-submenu {
    display: grid;
    gap: 4px;
    margin: -2px 0 4px 36px;
}

.q-nav-sub-link {
    align-items: center;
    border-radius: 8px;
    color: var(--q-muted);
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    padding: 7px 9px;
    text-decoration: none;
}

.q-nav-sub-link > span:first-child {
    min-width: 0;
}

.q-nav-count {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    margin-left: auto;
    min-width: 20px;
    padding: 2px 6px;
    text-align: center;
}

.q-nav-count.problem {
    background: var(--q-red-soft);
    color: var(--q-red);
}

.q-nav-count.messages {
    background: var(--q-lime);
    color: var(--q-on-success);
}

.q-nav-sub-link:hover,
.q-nav-sub-link.active {
    background: var(--q-indigo-soft);
    color: var(--q-ink);
}

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

.q-nav-status-badge.problem {
    background: var(--q-red-soft);
    color: var(--q-red);
    font-size: 10px;
}

.q-nav-status-badge.messages {
    background: var(--q-lime);
    box-shadow: 0 0 0 3px var(--q-lime-soft);
    height: 8px;
    width: 8px;
}

.q-side-foot {
    background: linear-gradient(145deg, var(--q-surface-2), var(--q-surface));
    border: 1px solid var(--q-indigo-soft);
    border-radius: 11px;
    box-shadow: 0 16px 32px var(--q-shadow-color);
    display: grid;
    gap: 5px;
    margin: 0 10px 12px;
    padding: 10px;
}

.q-side-foot strong {
    font-size: 15px;
}

.q-side-foot span {
    color: var(--q-dark-dim);
    font-size: 13px;
    line-height: 1.4;
}

.q-side-foot button {
    background: var(--q-indigo);
    border: 0;
    border-radius: 9px;
    color: var(--q-on-brand);
    font-size: 14px;
    font-weight: 900;
    min-height: 36px;
}

.q-main {
    min-width: 0;
    overflow-x: hidden;
}

.q-topbar {
    align-items: center;
    backdrop-filter: blur(12px);
    background: var(--q-surface);
    border-bottom: 1px solid var(--q-dark-line-2);
    display: flex;
    gap: 12px;
    min-height: var(--q-topbar-height);
    padding: 8px var(--q-workspace-gutter);
    position: sticky;
    top: 0;
    z-index: 20;
}

.q-top-title {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

/* The catalog title can include a count badge and a subtitle. */
.q-main:has(> .q-topbar-catalog) {
    --q-topbar-height: 74px;
}

.q-topbar.q-topbar-catalog {
    padding-block: 6px;
}

.q-top-title h1 {
    color: var(--q-dark-ink);
    font-size: clamp(22px, 2vw, 28px);
    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: 8px;
    margin-left: auto;
    position: relative;
}

.q-live-pill {
    background: var(--q-indigo-soft);
    border: 1px solid var(--q-brand-line);
    border-radius: 20px;
    color: var(--q-indigo-bright);
    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: var(--q-indigo);
    border: 2px solid var(--q-line);
    border-radius: 999px;
    color: var(--q-on-brand);
    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 var(--q-shadow-color);
    display: grid;
    max-height: calc(var(--q-support-viewport-height, 100dvh) - 92px);
    min-width: 190px;
    overflow-y: auto;
    overscroll-behavior: contain;
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .q-app-shell :is(.q-nav-link, .q-account-trigger, .q-side-foot button,
        .q-mobile-nav, .q-mobile-navigation-close, .q-user-chip, .q-user-menu button,
        .q-support-nav a) {
        transition: transform 150ms ease-out, background-color 140ms ease, color 140ms ease;
    }

    .q-app-shell :is(.q-nav-link, .q-account-trigger, .q-side-foot button,
        .q-mobile-nav, .q-mobile-navigation-close, .q-user-chip, .q-user-menu button,
        .q-support-nav a):not(:disabled):active {
        transform: scale(.97);
        transition-duration: 65ms;
    }
}

.q-content {
    max-width: none;
    min-width: 0;
    padding: 14px var(--q-workspace-gutter) 70px;
    width: 100%;
}

.q-content.q-content-dashboard {
    padding-block: 12px;
}

/* Only the Settings eBay tab fills the shell; long tables retain page scrolling. */
.q-main:has(> .q-content > .q-settings-ebay-page) {
    display: flex;
    flex-direction: column;
}

.q-main:has(> .q-content > .q-settings-ebay-page) > .q-topbar,
.q-main:has(> .q-content > .q-settings-ebay-page) > .q-shell-notices {
    flex: none;
}

.q-content:has(> .q-settings-ebay-page) {
    display: flex;
    flex: 1 0 auto;
}

.q-page,
.q-stack {
    display: grid;
    gap: 16px;
    min-width: 0;
    width: 100%;
}

.q-grid {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.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: var(--q-indigo-soft);
    border-color: transparent;
    box-shadow: 0 14px 34px var(--q-brand-line);
}

.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 var(--q-brand-line);
    color: var(--q-indigo-bright);
    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: var(--q-on-brand);
}

.q-btn-primary:hover {
    background: var(--q-brand-dark);
    border-color: var(--q-indigo-bright);
}

.q-btn-ghost {
    background: var(--q-dark-card-2);
    border-color: var(--q-dark-line);
    color: var(--q-dark-ink);
}

.q-btn-danger {
    background: var(--q-danger-fill);
    border-color: var(--q-danger-fill);
    color: var(--q-on-brand);
}

.q-btn-danger:hover {
    background: var(--q-danger-hover);
    border-color: var(--q-danger-hover);
}

.q-btn-dark {
    background: var(--q-dark-bg);
    border-color: var(--q-dark-line);
    color: var(--q-dark-muted);
}

.q-table-wrap {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.q-table-scroll {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    width: 100%;
}

.q-table {
    border-collapse: collapse;
    width: 100%;
}

.q-table th {
    color: var(--q-indigo-bright);
    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-product {
    align-items: center;
    display: flex;
    gap: 13px;
    min-width: 280px;
}

.q-thumb {
    align-items: center;
    background: var(--q-surface-2);
    border-radius: 10px;
    color: var(--q-ink);
    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: var(--q-amber);
}

.q-pill-bad {
    background: var(--q-red-soft);
    color: var(--q-red);
}

.q-pill-muted {
    background: var(--q-dark-card-2);
    color: var(--q-dark-muted);
}

.q-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.q-action-icon {
    background: var(--q-indigo-soft);
    border: 1px solid transparent;
    color: var(--q-indigo-bright);
    min-height: 30px;
    padding: 0;
    width: 30px;
}

.q-action-icon.danger {
    background: var(--q-red-soft);
    color: var(--q-red);
}

.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: var(--q-amber);
}

.q-banner.error {
    background: var(--q-red-soft);
    border-left: 3px solid var(--q-red);
    color: var(--q-red);
}

.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));
    min-width: 0;
}

/* Intrinsic widths of long account IDs, translated labels and form controls
   must not force their parent grids beyond the available zoomed workspace. */
.q-content > *,
.q-grid > *,
.q-form-grid > *,
.q-cell-kv > * { min-width: 0; }
.q-card, .q-stat-card { min-width: 0; overflow-wrap: anywhere; }
.q-form-grid :is(input, select, textarea) { min-width: 0; max-width: 100%; }

.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: var(--q-on-brand);
}

.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: var(--q-on-brand);
}

.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: var(--q-surface);
    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: var(--q-indigo-soft);
    border-color: var(--q-brand-line);
}

.q-mode-selected-label {
    color: var(--q-indigo-bright);
    font-size: 12px;
    font-weight: 800;
}

.q-selling-default-section .q-mode-option strong {
    color: var(--q-dark-ink);
}

.q-selling-default-section .q-mode-option:has(input:focus-visible) {
    outline: 2px solid var(--q-indigo-bright);
    outline-offset: 2px;
}

.q-selling-default-section .q-mode-option:has(input:checked) {
    background: var(--q-indigo-soft);
    border-color: var(--q-indigo);
    box-shadow: inset 0 0 0 1px var(--q-indigo);
}

.q-selling-default-section .q-mode-option:has(input:checked) strong {
    color: var(--q-indigo-bright);
}

.q-ebay-setup-callout {
    align-items: center;
    background: var(--q-indigo-soft);
    border: 1px solid var(--q-brand-line);
    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: var(--q-surface);
    border: 1px solid var(--q-brand-line);
    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 var(--q-shadow-color);
    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: var(--q-surface);
    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: var(--q-indigo-soft);
}

.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: var(--q-brand-line);
    color: var(--q-dark-ink);
}

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

.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: var(--q-lime-soft);
    border: 1px solid var(--q-lime-line);
    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: 3px;
    margin-top: 10px;
    max-width: 100%;
    min-width: 0;
}

.q-account-switch > span {
    color: var(--q-dark-ink);
    font-size: 13px;
    font-weight: 900;
}

.q-account-trigger {
    align-items: flex-start;
    background: transparent;
    border: 0;
    box-sizing: border-box;
    color: var(--q-dark-muted);
    display: grid;
    gap: 4px;
    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: 14px;
    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 {
    align-items: center;
    background: var(--q-brand);
    border: 2px solid var(--q-dark-bg);
    border-radius: 999px;
    color: var(--q-on-brand);
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 5px;
}

.q-account-avatars span + span,
.q-account-avatars small {
    margin-left: -7px;
}

.q-account-avatars span:nth-child(2) {
    background: var(--q-brand);
}

.q-account-avatars span:nth-child(3) {
    background: var(--q-brand);
}

@media (max-height: 760px) {
    .q-nav-link { min-height: 36px; }
    .q-account-switch > span { display: none; }
    .q-side-foot > span:not(.q-side-plan-eyebrow) { display: none; }
}

@media (max-height: 620px) {
    /* Keep plan actions reachable on low windows and at high browser zoom. */
    .q-sidebar { overflow-y: auto; }
    .q-nav-scroll { flex: 0 0 auto; overflow: visible; }
    .q-side-foot { flex-shrink: 0; }
}

@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 (width < 900px) {
    .q-app-shell {
        grid-template-columns: 1fr;
    }

    .q-sidebar {
        display: none;
    }

    /* In-flow disclosure: no overlay hiding content, no duplicate NavMenu. */
    .q-navigation-open > .q-sidebar {
        display: flex;
        position: relative;
        height: auto;
        max-height: 65vh;
        max-height: 65dvh;
        overflow-y: auto;
        border-bottom: 1px solid var(--q-dark-line-2);
    }

    .q-btn.q-mobile-navigation-close {
        display: inline-flex;
        align-self: flex-end;
        flex-shrink: 0;
        margin: 8px;
    }

    .q-mobile-nav {
        display: inline-grid;
        min-height: 40px;
        width: 40px;
    }

    .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%;
    }
}

@media (pointer: coarse) {
    .q-nav-link,
    .q-account-trigger,
    .q-side-foot button,
    .q-mobile-nav {
        min-height: 44px;
    }

    .q-mobile-nav {
        width: 44px;
    }
}

/* Pricing modal with tabs */
.q-modal-overlay {
    align-items: flex-start;
    background: var(--q-overlay);
    backdrop-filter: blur(4px);
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 48px 16px;
    position: fixed;
    z-index: 2000;
}

.q-modal {
    background: var(--q-dark-card);
    border: 1px solid var(--q-dark-line);
    border-radius: 18px;
    box-shadow: 0 30px 80px var(--q-shadow-color);
    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 80px;
}

.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: var(--q-surface);
    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);
}

.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 var(--q-indigo-soft);
    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: var(--q-on-brand);
    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);
    color: var(--q-ink);
}

.commission-seg.profit {
    background: var(--q-indigo);
}

.commission-seg.fee {
    background: var(--q-red-soft);
    color: var(--q-red);
}

.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: var(--q-indigo-soft);
    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: var(--q-amber-soft);
    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: var(--q-amber);
}

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

.q-modal-vero-count {
    background: var(--q-surface-2);
    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: var(--q-amber-soft);
    border: 1px solid var(--q-amber-line);
    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-publication-schedule,
.draft-account-rules {
    display: grid;
    gap: 12px;
    border-bottom: 1px solid var(--q-dark-line);
    padding-bottom: 16px;
}
.draft-publication-schedule > label:not(.q-checkbox-row) {
    display: grid;
    gap: 6px;
}
.draft-publication-schedule .q-checkbox-row {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: 8px;
    line-height: 1.4;
}
.draft-publication-schedule .q-checkbox-row input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 0;
    padding: 0;
    margin-top: 2px;
}
.draft-publication-schedule .q-checkbox-row span {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.draft-publication-schedule > .q-btn,
.draft-account-rules > .q-btn {
    justify-self: start;
}
.draft-publication-schedule p,
.draft-account-rules p { margin: 0; }

.draft-package-editor {
    background: var(--q-indigo-soft);
    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: var(--q-indigo-soft);
    border: 1px solid var(--q-indigo-soft);
    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: var(--q-indigo-soft);
    outline: 1px solid var(--q-brand-line);
    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: var(--q-red);
}

.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: var(--q-brand-line);
    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: var(--q-surface-2);
    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: var(--q-indigo-soft);
    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: var(--q-indigo-soft);
    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: var(--q-surface);
    border: 0;
    border-radius: 50%;
    color: var(--q-ink);
    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);
    color: var(--q-on-danger);
}

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

.image-primary {
    background: var(--q-indigo);
    border-radius: 6px;
    bottom: 6px;
    color: var(--q-on-brand);
    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: var(--q-overlay);
    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: var(--q-surface);
    border: 0;
    border-radius: 50%;
    color: var(--q-ink);
    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, var(--q-indigo-soft), var(--q-indigo-soft));
    border: 1px solid var(--q-brand-line);
    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: var(--q-indigo-bright);
    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: var(--q-lime-soft);
    border: 1px solid var(--q-lime-line);
    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: var(--q-amber-line);
    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: var(--q-indigo-soft);
    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 var(--q-indigo-soft);
}

.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: var(--q-indigo-soft);
}

.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: var(--q-surface-2);
    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: var(--q-indigo-soft);
    border: 1px solid var(--q-brand-line);
    border-radius: 999px;
    color: var(--q-indigo-bright);
    flex: none;
    font-size: 10.5px;
    font-weight: 800;
    padding: 5px 8px;
}

.template-preview {
    background: var(--q-surface);
    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: var(--q-indigo-soft);
    border-color: var(--q-brand-line);
    color: var(--q-ink);
}

.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: var(--q-on-brand);
    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 var(--q-shadow-color);
    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 var(--q-line);
    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 var(--q-on-brand);
    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: var(--q-ink);
}

.q-ebay-mark {
    color: var(--q-amber);
}

.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,
.q-history-status.cancelled {
    background: var(--q-surface-2);
    color: var(--q-muted);
}

.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: var(--q-amber);
    border-radius: 7px;
    color: var(--q-on-warning);
    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 var(--q-on-warning);
    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,
.q-history-state.cancelled {
    background: var(--q-surface-2);
    color: var(--q-muted);
}

.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: var(--q-surface-2);
    border: 1px solid var(--q-line);
    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: var(--q-lime-soft);
    color: var(--q-lime);
}

.q-history-report-counts span.warning {
    background: var(--q-amber-soft);
    border-color: var(--q-amber-line);
    color: var(--q-amber);
}

.q-history-report-counts span.error {
    background: var(--q-red-soft);
    border-color: var(--q-red-soft);
    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: var(--q-indigo-bright);
    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: var(--q-red-soft);
    border: 1px solid var(--q-red-line);
    border-radius: 8px;
    color: var(--q-red);
    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 var(--q-line);
    border-radius: 999px;
    border-top-color: var(--q-on-brand);
    height: 15px;
    width: 15px;
}

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

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

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

@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%;
    }
}

@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;
    }
}

.image-tile-copy { border-style:dashed; }
.image-copy { position:absolute; left:8px; bottom:8px; border-radius:6px; padding:3px 7px; background:var(--q-dark-card); color:var(--q-dark-muted); font-size:11px; }
