/* One shared palette for the cabinet and the import service. Light is the first-visit default. */
:root {
    color-scheme:light;
    --bg:#f1f4f8;
    --surface:#ffffff;
    --border:#ccd5df;
    --text:#172b40;
    --muted:#506479;
    --accent:#ae4b00;
    --action:#ff7a00;
    --action-hover:#ff941f;
    --on-action:#101b2b;
    --hover:#e8eef5;
    --selected:#dce7f3;
    --subtle:#f6f8fb;
    --raised:#e8eef5;
    --input-border:#8b9daf;
    --accent-bg:#fff0e1;
    --accent-hover:#ffe4c7;
    --accent-text:#914000;
    --accent-border:#dda16b;
    --success-bg:#e6f4eb;
    --success-text:#22613b;
    --success-border:#82b798;
    --danger-bg:#fbe9e9;
    --danger-text:#9d3037;
    --danger-border:#cf9297;
    --warning-bg:#fff2db;
    --warning-text:#805000;
    --warning-border:#c5a168;
    --radius:16px;
    font-family:Arial,Helvetica,sans-serif;
    font-size:16px;
}
:root[data-site-theme=dark] {
    color-scheme:dark;
    --bg:#0c1a2b;
    --surface:#12253b;
    --border:#2a3d52;
    --text:#f5f8fc;
    --muted:#aab6c8;
    --accent:#ff7a00;
    --action:#ff7a00;
    --action-hover:#ff941f;
    --on-action:#101b2b;
    --hover:#1b334b;
    --selected:#182e44;
    --subtle:#102237;
    --raised:#20384f;
    --input-border:#64809c;
    --accent-bg:#302b27;
    --accent-hover:#383027;
    --accent-text:#ffb158;
    --accent-border:#845026;
    --success-bg:#193c36;
    --success-text:#9be6bd;
    --success-border:#398263;
    --danger-bg:#442a30;
    --danger-text:#ffc0c0;
    --danger-border:#a1535e;
    --warning-bg:#3a3024;
    --warning-text:#ffcd8b;
    --warning-border:#6b5030;
}
* {
    box-sizing:border-box;
}
body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    line-height:1.5;
}
a {
    color:inherit;
    text-decoration:none;
}
a:focus-visible {
    outline:3px solid var(--accent);
    outline-offset:5px;
}
h1,h2,h3,p {
    margin:0;
}
h1 {
    font-size:40px;
    line-height:1.2;
    letter-spacing:-.7px;
    font-weight:700;
}
h2 {
    font-size:27px;
    line-height:1.3;
    letter-spacing:-.3px;
}
h3 {
    font-size:21px;
    line-height:1.35;
}
p {
    color:var(--muted);
}
.icon {
    height:27px;
    width:27px;
    flex-shrink:0;
}
.accent {
    color:var(--accent);
}
.topbar {
    height:76px;
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 32px 0 44px;
}
.brand {
    display:flex;
    gap:18px;
    align-items:center;
    font-size:25px;
    font-weight:700;
    letter-spacing:-.5px;
}
.brand-mark {
    width:40px;
    height:40px;
    border:3px solid var(--accent);
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.brand-mark:after {
    content:"";
    display:block;
    width:25px;
    height:25px;
    border:3px solid var(--accent);
    border-radius:50%;
}
.header-actions {
    display:flex;
    align-items:center;
    gap:30px;
    color:var(--muted);
}
.site-link,.account-link {
    display:flex;
    align-items:center;
    gap:11px;
}
.account-link {
    border-left:1px solid var(--border);
    padding-left:30px;
}
.app-frame {
    display:grid;
    grid-template-columns:264px minmax(0,1fr);
    min-height:calc(100vh - 150px);
}
.sidebar {
    border-right:1px solid var(--border);
    padding:28px 12px 24px 8px;
}
.nav-item {
    position:relative;
    display:flex;
    align-items:center;
    gap:18px;
    padding:16px 20px;
    border-radius:0 12px 12px 0;
    color:var(--muted);
    font-weight:600;
    min-height:58px;
    margin-bottom:10px;
}
.nav-item:hover:not(.active) {
    color:var(--text);
    background:var(--subtle);
}
.nav-item.active {
    color:var(--text);
    background:var(--selected);
}
.nav-item.active:before {
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:4px;
    border-radius:4px;
    content:"";
    background:var(--accent);
}
.nav-item.active .icon {
    color:var(--accent);
}
.preview-note {
    font-size:12px;
    padding:28px 24px;
    line-height:1.8;
}
.preview-note span {
    color:var(--muted);
}
main {
    padding:32px;
    min-width:0;
    max-width:1550px;
    width:100%;
    margin:0 auto;
    outline:none;
}
.page-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:24px;
}
.page-heading p {
    font-size:18px;
    margin-top:6px;
}
.page-heading>.status {
    margin-top:7px;
}
.status {
    display:inline-flex;
    align-items:center;
    gap:10px;
    border:1px solid var(--accent-border);
    background:var(--accent-bg);
    color:var(--accent-text);
    font-size:14px;
    padding:10px 16px;
    border-radius:24px;
    white-space:nowrap;
    line-height:1.5;
}
.status:before {
    content:"";
    width:10px;
    height:10px;
    background:var(--action);
    border-radius:50%;
    flex-shrink:0;
}
.status.muted {
    color:var(--muted);
    background:var(--raised);
    border-color:transparent;
}
.status.muted:before {
    background:var(--muted);
}
.status.compact {
    font-size:12px;
    padding:8px 11px;
    border:0;
    gap:7px;
}
.panel {
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:26px;
}
.panel>p {
    margin-top:7px;
}
.overview-grid {
    display:grid;
    grid-template-columns:minmax(0,1.6fr) minmax(340px,1fr);
    gap:18px;
}
.sales-panel {
    min-height:394px;
}
.empty-state {
    text-align:center;
    display:flex;
    align-items:center;
    flex-direction:column;
    padding:54px 0 6px;
}
.empty-state>.icon {
    width:57px;
    height:57px;
    color:var(--muted);
    margin-bottom:25px;
}
.empty-state p {
    margin-top:10px;
    max-width:640px;
}
.empty-state .button {
    margin-top:25px;
}
.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    border:1px solid transparent;
    border-radius:9px;
    padding:11px 24px;
    font-size:16px;
    line-height:1.5;
    font-weight:600;
    transition:background .15s,border-color .15s;
    text-align:center;
}
.primary {
    background:var(--action);
    color:var(--on-action);
}
.primary:hover {
    background:var(--action-hover);
}
.outlined {
    color:var(--accent);
    border:2px solid var(--accent);
    background:transparent;
}
.outlined:hover {
    background:var(--accent-bg);
}
.secondary {
    border:1px solid var(--input-border);
    color:var(--text);
    background:transparent;
    min-width:170px;
}
.secondary:hover {
    background:var(--hover);
    border-color:var(--muted);
}
.access-panel {
    display:flex;
    flex-direction:column;
}
.access-list {
    background:var(--subtle);
    border:1px solid var(--border);
    border-radius:12px;
    margin-top:26px;
    padding:0 16px;
}
.access-row {
    display:flex;
    align-items:center;
    gap:13px;
    padding:22px 0;
    font-size:14px;
}
.access-row+.access-row {
    border-top:1px solid var(--border);
}
.access-row>.icon {
    color:var(--muted);
}
.access-row>.status {
    margin-left:auto;
}
.access-panel>.button {
    margin-top:auto;
    margin-bottom:16px;
}
.secondary-grid {
    display:grid;
    grid-template-columns:1fr 1.05fr;
    gap:18px;
    margin-top:18px;
}
.secondary-grid .panel {
    min-height:320px;
}
.market-placeholder {
    display:flex;
    align-items:center;
    gap:25px;
    margin:34px 0 36px;
    max-width:440px;
}
.placeholder-icon {
    background:var(--raised);
    border-radius:16px;
    width:91px;
    height:91px;
    display:grid;
    place-items:center;
    flex-shrink:0;
}
.placeholder-icon .icon {
    width:49px;
    height:49px;
    color:var(--muted);
}
.placeholder-lines {
    display:flex;
    flex-direction:column;
    gap:13px;
    width:100%;
}
.placeholder-lines i {
    height:12px;
    display:block;
    background:var(--raised);
    border-radius:9px;
}
.placeholder-lines i:nth-child(1) {
    width:88%;
}
.placeholder-lines i:nth-child(3) {
    width:68%;
}
.placeholder-lines i:nth-child(4) {
    width:45%;
}
.small.empty-state {
    padding:34px 0 5px;
}
.small.empty-state>.icon {
    width:46px;
    height:46px;
    margin-bottom:18px;
}
.small.empty-state h3 {
    font-size:18px;
}
.small.empty-state .button {
    margin-top:30px;
}
.footer {
    min-height:74px;
    border-top:1px solid var(--border);
    display:flex;
    align-items:center;
    gap:30px;
    padding:18px 44px;
    color:var(--muted);
    font-size:14px;
}
.footer-brand {
    font-weight:700;
    font-size:18px;
    color:var(--text);
    padding-right:30px;
    border-right:1px solid var(--border);
}
.footer a:hover,.text-link:hover {
    color:var(--accent);
}
.preview-footer {
    display:none;
}
.detail-panel {
    min-height:430px;
}
.detail-panel .empty-state {
    padding:40px 10px 30px;
}
.section-note {
    font-size:14px;
    margin-top:24px;
    max-width:750px;
}
.readable {
    max-width:740px;
    line-height:1.8;
    margin-bottom:26px;
}
.action-row {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:26px;
}
.access-list.full {
    max-width:710px;
}
.text-link {
    margin-top:18px;
    text-decoration:underline;
    text-underline-offset:4px;
}
.public-frame {
    display:block;
}
.public-frame main {
    display:grid;
    place-items:center;
    min-height:calc(100vh - 150px);
    padding:32px;
}
.login-panel {
    width:min(100%,580px);
    text-align:center;
    padding:45px 35px;
}
.login-panel>.brand-mark {
    margin-bottom:26px;
}
.login-panel>p {
    margin-top:20px;
}
.login-panel>.button {
    margin-top:28px;
}
.skip-link {
    position:fixed;
    left:20px;
    top:-100px;
    background:var(--text);
    color:var(--bg);
    padding:12px;
    z-index:10;
}
.skip-link:focus {
    top:12px;
}
@media(min-width:1700px) {
    main {
        padding:40px;
    }
    .overview-grid {
        grid-template-columns:minmax(0,1.6fr) minmax(390px,1fr);
    }
    .sales-panel {
        min-height:420px;
    }
    .secondary-grid .panel {
        min-height:340px;
    }
}
@media(max-width:1250px) {
    .app-frame {
        grid-template-columns:220px minmax(0,1fr);
    }
    .sidebar {
        padding-left:6px;
        padding-right:8px;
    }
    .nav-item {
        gap:15px;
        padding:16px;
    }
    .brand {
        font-size:23px;
    }
    .topbar {
        padding-left:26px;
    }
    main {
        padding:28px 24px;
    }
    .overview-grid {
        grid-template-columns:minmax(0,1fr);
    }
    .access-panel {
        gap:20px;
    }
    .access-panel .access-list {
        margin-top:0;
    }
    .access-panel>.button {
        margin-bottom:0;
        align-self:flex-start;
    }
    .sales-panel {
        min-height:380px;
    }
    .secondary-grid {
        grid-template-columns:1fr 1fr;
    }
    .market-placeholder {
        gap:18px;
    }
    .page-heading {
        flex-wrap:wrap;
    }
    h1 {
        font-size:34px;
    }
    h2 {
        font-size:24px;
    }
}
@media(max-width:760px) {
    /* Keep the preview disclosure visible when the compact navigation hides its sidebar note. */
    .preview-footer {
        display:block;
        width:100%;
        font-size:12px;
    }
    .topbar {
        height:68px;
        padding:0 18px;
    }
    .brand {
        font-size:20px;
        gap:10px;
    }
    .brand-mark {
        width:32px;
        height:32px;
        border-width:2px;
    }
    .brand-mark:after {
        width:20px;
        height:20px;
        border-width:2px;
    }
    .header-actions {
        gap:16px;
    }
    .site-link {
        display:none;
    }
    .account-link {
        border:0;
        padding:8px;
    }
    .account-link span {
        display:none;
    }
    .app-frame {
        display:block;
    }
    .sidebar {
        border-right:0;
        border-bottom:1px solid var(--border);
        padding:10px 10px 0;
        display:flex;
        overflow:auto;
        gap:6px;
        align-items:flex-start;
    }
    .nav-item {
        border-radius:8px;
        min-height:64px;
        margin:0;
        padding:8px 12px;
        gap:5px;
        flex:0 0 auto;
        flex-direction:column;
        font-size:12px;
    }
    .nav-item .icon {
        height:21px;
        width:21px;
    }
    .nav-item.active:before {
        top:auto;
        bottom:0;
        left:12px;
        right:12px;
        width:auto;
        height:3px;
    }
    .preview-note {
        display:none;
    }
    main {
        padding:24px 16px;
    }
    .page-heading {
        gap:12px;
        margin-bottom:20px;
    }
    .page-heading p {
        font-size:16px;
    }
    .page-heading>.status {
        margin:0;
    }
    h1 {
        font-size:30px;
    }
    h2 {
        font-size:23px;
    }
    .panel {
        padding:22px 18px;
    }
    .secondary-grid {
        grid-template-columns:1fr;
    }
    .sales-panel {
        min-height:400px;
    }
    .empty-state {
        padding-top:42px;
    }
    .empty-state h3 {
        font-size:20px;
    }
    .empty-state p br {
        display:none;
    }
    .access-row {
        flex-wrap:wrap;
        gap:10px;
    }
    .access-row>.status {
        font-size:11px;
    }
    .access-row>.icon {
        width:23px;
        height:23px;
    }
    .access-list {
        padding:0 12px;
    }
    .secondary-grid .panel {
        min-height:300px;
    }
    .footer {
        padding:20px 18px;
        gap:20px;
        flex-wrap:wrap;
    }
    .footer-brand {
        font-size:16px;
        padding-right:20px;
    }
    .public-frame main {
        padding:24px 16px;
    }
    .login-panel {
        padding:36px 22px;
    }
    .action-row .button {
        width:100%;
    }
    .detail-panel {
        min-height:400px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .button {
        transition:none;
    }
}
/* Review authentication is deliberately separate from a customer profile or paid subscription. */
.login-form { display:flex; flex-direction:column; gap:10px; text-align:left; margin-top:28px; }
.login-form label { font-weight:600; margin-top:8px; }
.login-form input { width:100%; background:var(--bg); color:var(--text); border:1px solid var(--input-border); border-radius:8px; padding:13px 14px; font:inherit; }
.login-form input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.login-form .button { margin-top:14px; cursor:pointer; font-family:inherit; }
.validation { color:var(--danger-text); font-size:15px; }
.validation:empty,.validation-summary-valid { display:none; }
.validation ul { padding-left:20px; margin:0; }
.logout-button { color:var(--muted); background:transparent; border:1px solid var(--border); border-radius:8px; padding:10px 14px; font:inherit; cursor:pointer; }
button:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.review-banner { display:flex; gap:14px; align-items:center; flex-wrap:wrap; padding:14px 18px; border:1px solid var(--accent-border); border-radius:10px; color:var(--accent-text); background:var(--accent-bg); margin-bottom:24px; font-size:14px; }
.review-banner strong { color:var(--accent-text); }
@media(max-width:760px) { .header-actions { gap:8px; } .logout-button { font-size:13px; padding:8px; } .review-banner { gap:6px; } }
/* Confine wide report tables to their own scroll area so mobile navigation remains usable. */
.sales-filters { display:flex; flex-wrap:wrap; gap:16px; align-items:end; margin-bottom:12px; }
.sales-filters label { display:block; font-size:14px; margin-bottom:8px; }
.sales-filters select { background:var(--bg); color:var(--text); border:1px solid var(--input-border); border-radius:8px; padding:12px; min-width:150px; font:inherit; }
.sales-filters select:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.sales-filters .button { font:inherit; cursor:pointer; }
.sales-filters .text-link { padding:12px 0; }
.sales-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:24px 0; }
.sales-kpis .panel { padding:22px; }
.sales-kpis span,.sales-kpis small { display:block; color:var(--muted); font-size:14px; }
.sales-kpis strong { display:block; font-size:clamp(24px,2.3vw,36px); margin:14px 0; font-variant-numeric:tabular-nums; }
.sales-kpis strong span { display:inline; font:inherit; color:inherit; }
.sales-kpis small span { display:inline; }
.sales-breakdowns { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
.sales-breakdowns h3 { margin-top:28px; }
.sales-table-panel,.sales-notes { margin-top:24px; }
.table-scroll { max-width:100%; overflow-x:auto; }
.sales-table { border-collapse:collapse; width:100%; font-size:14px; }
.sales-table th,.sales-table td { padding:13px 12px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.sales-table thead th { color:var(--muted); font-weight:500; }
.sales-table .numeric { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.sales-table tbody tr:hover { background:var(--hover); }
.sales-table small { display:block; color:var(--muted); margin-top:7px; }
.product-table td:first-child { min-width:230px; max-width:350px; }
.sales-notes p { max-width:950px; line-height:1.6; }
.sales-table-panel summary { cursor:pointer; font-size:22px; font-weight:600; }
@media(min-width:1600px) { .sales-breakdowns { grid-template-columns:1fr 1fr; align-items:start; } }
@media(max-width:1100px) { .sales-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .sales-kpis { grid-template-columns:1fr; } .sales-filters>div,.sales-filters select { width:100%; } }

/* Administrative navigation follows the server role check. */
.nav-section-label { padding:22px 20px 10px; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }

.assistant-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:20px; }
.assistant-form { display:grid; gap:12px; margin-top:20px; }
.assistant-form label { font-size:14px; color:var(--muted); }
.assistant-form select,.assistant-form textarea { width:100%; border:1px solid var(--input-border); border-radius:8px; padding:12px; background:var(--bg); color:var(--text); font:inherit; }
.assistant-form textarea { resize:vertical; }
.assistant-form select:focus,.assistant-form textarea:focus { outline:2px solid var(--accent); }
.assistant-form button { cursor:pointer; }
.assistant-form button:disabled { opacity:.5; cursor:wait; }
.assistant-examples { display:flex; gap:7px; flex-wrap:wrap; }
.assistant-examples button { border:1px solid var(--border); border-radius:16px; padding:7px 10px; color:var(--muted); background:transparent; }
.assistant-examples button:hover { color:var(--accent); border-color:var(--accent); }
.assistant-answer { white-space:pre-wrap; line-height:1.75; margin-top:24px; }
#assistant-status { font-size:13px; }
#assistant-facts { border-top:1px solid var(--border); padding-top:20px; margin-top:24px; }
#assistant-facts summary { color:var(--accent); cursor:pointer; }
#assistant-facts p { margin-top:12px; }
#assistant-facts dl { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,2fr); gap:12px; font-size:13px; }
#assistant-facts dt { color:var(--muted); }
#assistant-facts dd { margin:0; }
@media(max-width:1050px) { .assistant-grid { grid-template-columns:1fr; } }

/* Comparison cards use the existing orange accent and retain readable source evidence. */
.assistant-card { padding: 18px 0; border-top: 1px solid var(--border, #3b342e); }
.assistant-card:first-child { border-top: 0; padding-top: 0; }
.assistant-card h3 { margin: 0 0 8px; }
.assistant-question { font-weight: 600; }
.assistant-warning { border-left: 3px solid var(--action); padding-left: 12px; }
.assistant-card details { margin-top: 14px; }
.assistant-card summary { cursor: pointer; }
.assistant-card dl { display: grid; grid-template-columns: minmax(120px, 1fr) 1.5fr; gap: 8px 14px; }
.assistant-card dd { margin: 0; }
.assistant-card .assistant-answer { overflow-wrap: anywhere; }

/* Color always accompanies a textual score; zero/tied/small samples remain neutral. */
.model-score { display:inline-block; border:1px solid var(--border); border-radius:8px; padding:8px 10px; font-size:13px; line-height:1.5; }
.model-score.good { background:var(--success-bg); color:var(--success-text); border-color:var(--success-border); }
.model-score.bad { background:var(--danger-bg); color:var(--danger-text); border-color:var(--danger-border); }
.model-score.neutral { color:var(--muted); }
.journal-section { margin-top:22px; }
.journal-entry { border-top:1px solid var(--border); padding:18px 0; overflow-wrap:anywhere; }
.journal-entry summary { cursor:pointer; line-height:1.6; color:var(--text); }
.journal-filters { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0; align-items:end; }
.journal-filters label { display:grid; gap:8px; flex:1 1 160px; color:var(--muted); font-size:14px; }
.journal-filters input,.journal-filters select { background:var(--bg); color:var(--text); border:1px solid var(--input-border); border-radius:8px; padding:10px; width:100%; font:inherit; }
.assistant-check { display:flex; align-items:center; gap:10px; }
.assistant-check input { width:18px; height:18px; accent-color:var(--accent); }
.assistant-answer,.assistant-question,.assistant-examples button { overflow-wrap:anywhere; }
.assistant-form[hidden] { display:none; }

/* Theme controls stay available on login, demo and narrow screens. */
.site-theme-switch { display:flex; flex-shrink:0; gap:2px; padding:3px; border:1px solid var(--border); border-radius:9px; background:var(--surface); }
.site-theme-switch button { display:inline-flex; align-items:center; gap:5px; min-height:34px; padding:6px 9px; border:0; border-radius:6px; font:600 13px/1.4 Arial,Helvetica,sans-serif; color:var(--muted); background:transparent; cursor:pointer; }
.site-theme-switch button:hover { background:var(--hover); color:var(--text); }
.site-theme-switch button[aria-pressed=true] { background:var(--selected); color:var(--text); box-shadow:inset 0 -2px var(--accent); }
.site-theme-switch button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.topbar { color:var(--text); background:var(--bg); }
@media(max-width:1050px) { .header-actions { gap:12px; } .account-link { padding-left:12px; } }
@media(max-width:760px) {
    .topbar { height:auto; min-height:76px; flex-wrap:wrap; gap:12px; padding:14px 18px; }
    .header-actions { flex-wrap:wrap; gap:8px; margin-left:auto; }
    .account-link { padding:8px; }
}

/* Public demo uses the same section switch across sales, finance, category list and hoodie dashboard. */
.demo-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:24px}
.demo-heading h1{margin:0}.demo-heading p{color:var(--muted);margin:8px 0 0}
.demo-section-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--border);border-radius:10px;background:var(--raised);flex-wrap:wrap}
.demo-section-tabs a{padding:8px 18px;border-radius:7px;font-size:14px;white-space:nowrap}
.demo-section-tabs a[aria-current=page]{background:var(--surface);color:var(--accent);font-weight:700;box-shadow:0 1px 5px #0001}
.demo-section-tabs a:hover{background:var(--hover)}
.demo-navigation{display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:100%}
.demo-navigation .demo-navigation-hint{margin:0;color:var(--accent);font-size:13px;font-weight:600}
@media(max-width:650px){.demo-section-tabs{max-width:100%}.demo-section-tabs a{padding:8px 12px}.market-heading-actions:has(.demo-section-tabs){flex-wrap:wrap}}

.seller-warnings.demo-data-notice{margin:0;list-style:none;padding:12px 18px}

/* Optional demo invitation uses native dialog focus/escape handling and the shared palette. */
.demo-exit{width:min(740px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:28px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 20px 80px #0005}
.demo-exit::backdrop{background:#07142499}.demo-exit [hidden]{display:none!important}
.demo-exit-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.demo-exit h2{font-size:25px;line-height:1.25}.demo-exit>p{color:var(--muted);line-height:1.6;margin:12px 0 22px}
.demo-exit-close{background:none;border:0;color:var(--muted);font-size:28px;line-height:1;cursor:pointer;padding:2px 5px}.demo-exit-close:hover{color:var(--text)}
.demo-exit-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.demo-exit-card{display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--subtle)}.demo-exit-card:hover{border-color:var(--accent);background:var(--hover)}.demo-exit-card h3{font-size:19px}.demo-exit-card p{font-size:14px;line-height:1.6;color:var(--muted)}.demo-exit-card span{color:var(--accent);font-size:14px;font-weight:700;margin-top:auto;padding-top:8px}.demo-exit-footer{display:flex;justify-content:flex-end;margin-top:22px}
.demo-settings-form{display:flex;flex-direction:column;align-items:flex-start;gap:20px;margin-top:20px}.demo-settings-form label{display:flex;align-items:center;gap:10px}.demo-settings-form input[type=checkbox]{accent-color:var(--action);width:18px;height:18px}
@media(max-width:600px){.demo-exit{padding:20px}.demo-exit-cards{grid-template-columns:1fr}.demo-exit h2{font-size:22px}}
