* { box-sizing: border-box; }
body { margin: 0; font-family: Lato, Arial, sans-serif; color: #181214; background: #fff7f7; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #111, #ed1c24); }
.login-card { width: min(430px, 100%); background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.login-mark { width: 76px; height: 76px; display: grid; place-items: center; background: #ed1c24; color: #fff; border-radius: 8px; font-size: 28px; font-weight: 900; }
.login-card h1 { margin: 22px 0 8px; }
.login-card p { color: #655b5d; line-height: 1.5; }
.login-card label { display: grid; gap: 7px; margin: 14px 0; font-weight: 800; }
.login-card input { width: 100%; border: 1px solid #eadbdd; border-radius: 8px; padding: 14px; }
.login-card button, .topbar button, .actions a, .admin-form button, .small { border: 0; border-radius: 8px; padding: 13px 16px; background: #ed1c24; color: #fff; font-weight: 900; cursor: pointer; }
.alert { background: #ffe2e5; color: #a40b13; padding: 12px; border-radius: 8px; margin: 14px 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; background: #181214; color: #fff; padding: 20px; overflow: auto; }
.brand { width: 58px; height: 58px; display: grid; place-items: center; background: #ed1c24; border-radius: 8px; font-size: 24px; font-weight: 900; margin-bottom: 24px; }
.role-pill { display: inline-block; margin: -12px 0 18px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 900; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar a { padding: 11px 12px; border-radius: 8px; color: rgba(255,255,255,.86); }
.sidebar a:hover { background: rgba(237,28,36,.18); color: #fff; }
.main { margin-left: 270px; min-height: 100vh; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; background: #fff; border-bottom: 1px solid #f0e2e4; }
.topbar div { display: grid; gap: 4px; }
.topbar span { color: #7a6e70; font-size: 13px; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, minmax(150px, 1fr)); padding: 26px; }
.stats article, .panel { background: #fff; border: 1px solid #efdedf; border-radius: 8px; padding: 22px; }
.stats span { color: #7a6e70; font-weight: 800; }
.stats strong { display: block; margin-top: 10px; font-size: 30px; }
.panel { margin: 0 26px 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 14px; margin: 18px 0; }
.admin-form label { display: grid; gap: 7px; font-weight: 900; color: #241f20; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; border: 1px solid #eadbdd; border-radius: 8px; padding: 13px; background: #fff; }
.admin-form .wide { grid-column: 1 / -1; }
.small { padding: 8px 10px; font-size: 12px; }
.row small { color: #7a6e70; }
.row form { display: grid; gap: 8px; }
.row select { width: 100%; border: 1px solid #eadbdd; border-radius: 8px; padding: 8px; background: #fff; }
.table { border: 1px solid #efdedf; border-radius: 8px; overflow: hidden; }
.row { display: grid; grid-template-columns: 1fr 130px 120px; gap: 12px; padding: 14px 16px; border-top: 1px solid #efdedf; }
.row:first-child { border-top: 0; }
.head { background: #181214; color: #fff; font-weight: 900; }
@media (max-width: 820px) {
    .sidebar { position: static; width: auto; }
    .main { margin-left: 0; }
    .stats { grid-template-columns: 1fr 1fr; padding: 16px; }
    .panel { margin: 0 16px 16px; }
}

/* Vendor partner portal */
.vendor-app { background: #f6f7f9; color: #151515; min-height: 100vh; }
.vendor-sidebar { position: fixed; inset: 0 auto 0 0; width: 292px; background: #0f1115; color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.vendor-mark { width: 56px; height: 56px; display: grid; place-items: center; background: #ed1c24; color: #fff; border-radius: 8px; font-weight: 900; font-size: 22px; letter-spacing: 0; }
.vendor-side-title { display: grid; gap: 6px; }
.vendor-side-title strong { font-size: 18px; line-height: 1.2; }
.vendor-side-title span, .vendor-side-note span { color: rgba(255,255,255,.64); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.vendor-nav { display: grid; gap: 8px; }
.vendor-nav a { padding: 12px 14px; border-radius: 8px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.04); font-weight: 800; }
.vendor-nav a:hover { background: rgba(237,28,36,.18); color: #fff; }
.vendor-nav a.is-active { background: #ed1c24; color: #fff; box-shadow: 0 12px 28px rgba(237,28,36,.25); }
.vendor-side-note { margin-top: auto; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; display: grid; gap: 8px; background: rgba(255,255,255,.05); }
.vendor-side-note strong { font-size: 20px; }
.vendor-main { margin-left: 292px; min-height: 100vh; padding: 24px; }
.vendor-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border: 1px solid #e7e9ee; border-radius: 8px; padding: 20px; margin-bottom: 18px; }
.vendor-topbar h1 { margin: 4px 0; font-size: clamp(24px, 3vw, 36px); }
.vendor-topbar p { margin: 0; color: #6b7280; }
.eyebrow { display: inline-block; color: #ed1c24; font-size: 12px; text-transform: uppercase; font-weight: 900; letter-spacing: 0; }
.ghost-button, .primary-link, .secondary-link, .vendor-form button { border: 0; border-radius: 8px; padding: 12px 16px; font-weight: 900; cursor: pointer; }
.ghost-button { background: #111318; color: #fff; }
.primary-link { display: inline-block; background: #ed1c24; color: #fff; }
.secondary-link { display: inline-block; background: #111318; color: #fff; }
.vendor-alert { border-radius: 8px; padding: 13px 15px; margin: 0 0 14px; font-weight: 800; }
.vendor-alert.success { background: #eaf8ef; color: #176534; border: 1px solid #bfe8cb; }
.vendor-alert.danger { background: #fff0f1; color: #a40b13; border: 1px solid #ffc7cd; }
.vendor-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 18px; margin-bottom: 18px; }
.vendor-hero-copy, .vendor-identity-card, .vendor-panel, .vendor-metrics article { background: #fff; border: 1px solid #e7e9ee; border-radius: 8px; }
.vendor-hero-copy { padding: clamp(22px, 4vw, 38px); }
.vendor-hero-copy h2 { margin: 8px 0 12px; font-size: clamp(28px, 5vw, 54px); line-height: 1.02; max-width: 900px; }
.vendor-hero-copy p { color: #5f6673; line-height: 1.55; max-width: 760px; }
.vendor-actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.vendor-identity-card { padding: 24px; display: grid; align-content: center; gap: 12px; background: #111318; color: #fff; }
.vendor-identity-card span { color: #ffc6ca; font-weight: 900; text-transform: uppercase; font-size: 12px; }
.vendor-identity-card strong { font-size: clamp(32px, 5vw, 52px); }
.vendor-identity-card small { color: rgba(255,255,255,.76); word-break: break-word; }
.vendor-metrics { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.vendor-metrics article { padding: 16px; display: grid; gap: 8px; min-height: 128px; }
.vendor-metrics span { color: #6b7280; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.vendor-metrics strong { font-size: clamp(20px, 2vw, 30px); }
.vendor-metrics small { color: #6b7280; line-height: 1.35; }
.vendor-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.vendor-panel { padding: 20px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-head h2 { margin: 4px 0 0; }
.secure-pill { display: inline-flex; align-items: center; border-radius: 8px; background: #f2f4f7; color: #344054; padding: 7px 10px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.vendor-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vendor-form label { display: grid; gap: 7px; font-weight: 900; }
.vendor-form input, .vendor-form select { width: 100%; border: 1px solid #d9dde5; border-radius: 8px; padding: 13px; background: #fff; }
.vendor-form .wide { grid-column: 1 / -1; }
.vendor-form button { background: #ed1c24; color: #fff; }
.payout-note { margin-top: 14px; padding: 13px; border-radius: 8px; background: #f8fafc; color: #475467; line-height: 1.4; }
.qr-shell { display: grid; grid-template-columns: 142px 1fr; gap: 16px; align-items: center; }
.vendor-qr-image { width: 142px; height: 142px; border-radius: 8px; border: 1px solid #e7e9ee; background: #fff; padding: 8px; object-fit: contain; }
.vendor-identity-card em { display: inline-flex; align-items: center; width: fit-content; margin-top: 10px; padding: 7px 10px; border-radius: 999px; background: rgba(237,28,36,.1); color: #ed1c24; font-style: normal; font-weight: 900; }
.compact-actions { margin-top: 12px; gap: 8px; flex-wrap: wrap; }
.vendor-dashboard-section.is-hidden { display: none !important; }
.vendor-dashboard-section.is-active-section { animation: vendorFade .18s ease-out; }
@keyframes vendorFade { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.qr-fake { width: 142px; aspect-ratio: 1; border-radius: 8px; background: repeating-linear-gradient(45deg, #111318 0 10px, #fff 10px 20px); border: 10px solid #fff; outline: 1px solid #d9dde5; display: grid; place-items: center; }
.qr-fake span { background: #ed1c24; color: #fff; border-radius: 8px; padding: 8px; font-weight: 900; }
.qr-shell p { color: #5f6673; line-height: 1.45; }
.qr-shell code { display: block; background: #111318; color: #fff; border-radius: 8px; padding: 10px; word-break: break-word; }
.channel-list, .mini-list, .security-list, .playbook-grid { display: grid; gap: 10px; margin-top: 16px; }
.channel-list div, .mini-list div, .security-list div, .playbook-grid div { border: 1px solid #e7e9ee; border-radius: 8px; padding: 12px; background: #fbfcfe; }
.channel-list div, .security-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.channel-list span, .mini-list span, .mini-list small, .security-list span { color: #667085; }
.vendor-table { border: 1px solid #e7e9ee; border-radius: 8px; overflow: hidden; }
.vendor-row { display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(160px, .8fr) 130px minmax(170px, .8fr); gap: 12px; padding: 14px 16px; border-top: 1px solid #e7e9ee; align-items: center; }
.vendor-row:first-child { border-top: 0; }
.vendor-row.head { background: #111318; color: #fff; font-weight: 900; }
.vendor-row small { display: block; margin-top: 5px; color: #667085; line-height: 1.35; }
.vendor-row.head small { color: rgba(255,255,255,.72); }
.vendor-row.empty { color: #667085; }
.status-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; margin-right: 8px; background: #98a2b3; }
.status-paid, .status-approved { background: #12b76a; }
.status-pending, .status-requested, .status-queued { background: #f79009; }
.status-failed, .status-rejected, .status-refunded { background: #f04438; }
.playbook-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.playbook-grid div { display: grid; gap: 10px; }
.playbook-grid span { width: 34px; height: 34px; display: grid; place-items: center; background: #111318; color: #fff; border-radius: 8px; font-weight: 900; }
.vendor-login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #0f1115; color: #fff; }
.vendor-login-shell { width: min(1060px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: stretch; }
.vendor-login-story, .vendor-login-card { border-radius: 8px; padding: clamp(24px, 4vw, 42px); }
.vendor-login-story { background: #171a21; border: 1px solid rgba(255,255,255,.12); display: grid; align-content: center; gap: 16px; }
.vendor-login-story h1 { margin: 0; font-size: clamp(32px, 6vw, 64px); line-height: 1; }
.vendor-login-story p { color: rgba(255,255,255,.72); line-height: 1.55; }
.vendor-login-card { background: #fff; color: #171a21; }
.vendor-login-card h2 { margin: 6px 0; font-size: 30px; }
.vendor-login-card p, .login-security-note { color: #667085; line-height: 1.45; }
.vendor-login-card label { display: grid; gap: 8px; margin: 14px 0; font-weight: 900; }
.vendor-login-card input { width: 100%; border: 1px solid #d9dde5; border-radius: 8px; padding: 14px; }
.vendor-login-card button { width: 100%; border: 0; border-radius: 8px; padding: 14px; background: #ed1c24; color: #fff; font-weight: 900; cursor: pointer; }
.login-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.login-proof-grid div { border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 12px; background: rgba(255,255,255,.04); }
.login-proof-grid span { display: block; margin-top: 6px; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.35; }
@media (max-width: 1100px) {
    .vendor-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vendor-hero, .vendor-grid-two, .vendor-login-shell { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .vendor-sidebar { position: static; width: auto; }
    .vendor-main { margin-left: 0; padding: 14px; }
    .vendor-topbar, .panel-head, .channel-list div, .security-list div { align-items: flex-start; flex-direction: column; }
    .vendor-metrics, .playbook-grid, .login-proof-grid { grid-template-columns: 1fr; }
    .vendor-row { grid-template-columns: 1fr; }
    .vendor-form { grid-template-columns: 1fr; }
    .qr-shell { grid-template-columns: 1fr; }
}

/* Professional admin form sections */
.form-section { background: #fff; border: 1px solid #efdedf; border-radius: 8px; padding: 16px; }
.form-section[hidden] { display: none !important; }
.form-section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f0e2e4; }
.form-section-head > span { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #181214; color: #fff; font-weight: 900; flex: 0 0 auto; }
.form-section-head strong { display: block; font-size: 17px; color: #181214; }
.form-section-head small { display: block; margin-top: 4px; color: #7a6e70; line-height: 1.35; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.check-label { align-content: center; grid-template-columns: auto 1fr !important; display: grid !important; gap: 10px !important; border: 1px solid #eadbdd; border-radius: 8px; padding: 13px; background: #fff; }
.check-label input { width: auto !important; }
.vendor-create-form { align-items: start; }
.vendor-create-form > .form-section { box-shadow: 0 12px 30px rgba(24,18,20,.04); }

/* Vendor QR payment scanner */
.scan-payment-panel .panel-head p { margin: 6px 0 0; color: #667085; line-height: 1.45; }
.scanner-card { border: 1px solid #e7e9ee; border-radius: 8px; padding: 14px; background: #fbfcfe; }
.scanner-frame { position: relative; min-height: 300px; border-radius: 8px; overflow: hidden; background: #0f1115; display: grid; place-items: center; }
.scanner-frame video { width: 100%; height: 100%; min-height: 300px; object-fit: cover; background: #0f1115; }
.scanner-reticle { position: absolute; inset: 28px; border: 2px solid rgba(255,255,255,.85); border-radius: 8px; pointer-events: none; box-shadow: 0 0 0 999px rgba(0,0,0,.26); }
.scanner-reticle span { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: #ed1c24; box-shadow: 0 0 14px rgba(237,28,36,.8); }
.scanner-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.scanner-actions button { border: 0; }
#scannerStatus { color: #667085; line-height: 1.45; font-weight: 800; }
.compact-note { margin-top: 10px; }
.vendor-form textarea { width: 100%; border: 1px solid #d9dde5; border-radius: 8px; padding: 13px; background: #fff; font: inherit; }

@media (max-width: 820px) {
    .form-grid { grid-template-columns: 1fr; }
    .scanner-frame, .scanner-frame video { min-height: 240px; }
}

/* T9 professional operations shell refresh */
:root {
    --t9-red: #ed1c24;
    --t9-ink: #111318;
    --t9-paper: #f6f7f9;
    --t9-card: #ffffff;
    --t9-line: #e7e9ee;
    --t9-muted: #667085;
    --t9-soft-red: #fff0f1;
    --t9-shadow: 0 18px 48px rgba(17, 19, 24, .08);
}
body.admin-app, body.vendor-app { background: var(--t9-paper); color: var(--t9-ink); }
.admin-app .sidebar, .vendor-sidebar {
    background: linear-gradient(180deg, #111318 0%, #181214 100%);
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 18px 0 44px rgba(17,19,24,.14);
}
.admin-sidebar-head, .vendor-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-sidebar-head .brand, .vendor-sidebar-head .vendor-mark { margin-bottom: 0; box-shadow: 0 14px 34px rgba(237,28,36,.28); }
.menu-button, .menu-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--t9-line);
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: var(--t9-ink);
    font-weight: 900;
    cursor: pointer;
}
.menu-close { display: none; background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); }
.menu-button { display: none; flex: 0 0 auto; }
.nav-section-label {
    margin: 12px 4px 4px;
    color: rgba(255,255,255,.44);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.admin-nav a, .vendor-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.admin-nav a:hover, .vendor-nav a:hover {
    border-color: rgba(237,28,36,.35);
    transform: translateX(2px);
}
.main, .vendor-main { background: var(--t9-paper); }
.admin-topbar, .vendor-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(17,19,24,.04);
}
.admin-topbar strong, .vendor-topbar h1 { letter-spacing: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-actions form { margin: 0; }
.stats { align-items: stretch; }
.stats article, .stats > div, .panel, .vendor-panel, .vendor-hero-copy, .vendor-identity-card, .vendor-metrics article {
    border-color: var(--t9-line);
    box-shadow: var(--t9-shadow);
}
.stats article, .stats > div {
    background: #fff;
    border: 1px solid var(--t9-line);
    border-radius: 8px;
    padding: 18px;
    min-height: 118px;
    display: grid;
    gap: 8px;
    align-content: start;
}
.stats strong, .stats > div strong { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.05; }
.stats span, .stats > div span { color: var(--t9-muted); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.panel { overflow: hidden; }
.panel > h1, .panel > h2 { margin-top: 0; }
.panel > p { color: var(--t9-muted); line-height: 1.55; max-width: 980px; }
.actions a, .admin-form button, .small, .primary-link, .secondary-link, .ghost-button, .vendor-form button {
    box-shadow: 0 10px 22px rgba(237,28,36,.14);
}
.secondary-link, .ghost-button { box-shadow: 0 10px 22px rgba(17,19,24,.12); }
.admin-form, .vendor-form { align-items: start; }
.admin-form label, .vendor-form label { color: #24272e; }
.admin-form input, .admin-form select, .admin-form textarea, .vendor-form input, .vendor-form select, .vendor-form textarea {
    min-height: 46px;
    border-color: #d9dde5;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .vendor-form input:focus, .vendor-form select:focus, .vendor-form textarea:focus {
    outline: none;
    border-color: var(--t9-red);
    box-shadow: 0 0 0 4px rgba(237,28,36,.10);
}
.table, .vendor-table { background: #fff; border-color: var(--t9-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.row, .vendor-row { background: #fff; }
.row:nth-child(odd):not(.head), .vendor-row:nth-child(odd):not(.head) { background: #fbfcfe; }
.row.head, .vendor-row.head { background: linear-gradient(135deg, #111318, #24272e); }
.row strong, .vendor-row strong { color: var(--t9-ink); }
.row.head strong, .vendor-row.head strong { color: #fff; }
.alert, .vendor-alert { box-shadow: 0 10px 30px rgba(237,28,36,.08); }
.vendor-hero-copy h2 { max-width: 860px; }
.vendor-identity-card {
    background: radial-gradient(circle at top right, rgba(237,28,36,.34), transparent 34%), linear-gradient(135deg, #111318, #262026);
}
.vendor-metrics.compact { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
.mini-list div, .security-list div, .playbook-grid div, .channel-list div, .form-section, .scanner-card {
    box-shadow: 0 10px 26px rgba(17,19,24,.04);
}
.admin-footer, .vendor-footer {
    margin: 0 26px 26px;
    padding: 16px 18px;
    border: 1px solid var(--t9-line);
    border-radius: 8px;
    background: #fff;
    color: var(--t9-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--t9-shadow);
}
.vendor-footer { margin: 6px 0 0; }
.admin-footer strong, .vendor-footer strong { color: var(--t9-ink); }
@media (min-width: 821px) {
    .admin-app .main { padding-bottom: 1px; }
    .admin-app .sidebar, .vendor-sidebar { scrollbar-width: thin; }
}
@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vendor-metrics.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .menu-button, .menu-close { display: inline-grid; }
    .admin-app .sidebar, .vendor-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(86vw, 320px);
        transform: translateX(-105%);
        transition: transform .22s ease;
        z-index: 30;
        overflow: auto;
    }
    body.menu-open .sidebar, body.menu-open .vendor-sidebar { transform: translateX(0); }
    body.menu-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(17,19,24,.48);
        z-index: 20;
    }
    .admin-topbar, .vendor-topbar { border-radius: 0; margin: 0 0 14px; }
    .topbar, .vendor-topbar { align-items: flex-start; flex-direction: row; padding: 14px; }
    .topbar form, .topbar-actions { margin-left: auto; }
    .topbar-actions { align-items: flex-start; flex-direction: column; }
    .main, .vendor-main { margin-left: 0; padding: 0 14px 14px; }
    .stats { grid-template-columns: 1fr; padding: 0; margin: 0 0 14px; }
    .panel, .admin-footer { margin: 0 0 14px; }
    .admin-footer, .vendor-footer { align-items: flex-start; flex-direction: column; }
    .vendor-hero-copy h2 { font-size: 30px; }
    .vendor-metrics.compact { grid-template-columns: 1fr; }
}

.stats { display: grid; }


/* Vendor portal refinements */
.vendor-quick-panel { background: linear-gradient(180deg, #fff, #fffafa); }
.quick-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-action-card { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--t9-line); border-radius: 8px; background: #fff; color: var(--t9-ink); box-shadow: 0 10px 22px rgba(17,19,24,.05); }
.quick-action-card span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: #fff0f1; color: var(--t9-red); font-size: 12px; font-weight: 950; }
.quick-action-card strong { font-size: 15px; }
.quick-action-card:hover { border-color: rgba(237,28,36,.35); transform: translateY(-1px); }
.wallet-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wallet-balance-grid div { border: 1px solid var(--t9-line); border-radius: 8px; padding: 14px; background: #fbfcfe; display: grid; gap: 6px; }
.wallet-balance-grid span, .completion-checks span { color: var(--t9-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.wallet-balance-grid strong { font-size: 22px; color: var(--t9-ink); }
.wallet-balance-grid small { color: var(--t9-muted); line-height: 1.35; }
.completion-bar { height: 12px; border-radius: 999px; background: #edf0f5; overflow: hidden; margin-bottom: 14px; }
.completion-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--t9-red), #19b26b); }
.completion-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.completion-checks span { border: 1px solid var(--t9-line); border-radius: 999px; padding: 8px 10px; background: #fff; }
.completion-checks span.done { color: #176534; border-color: #bfe8cb; background: #eaf8ef; }
@media (max-width: 1100px) { .quick-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .quick-action-grid, .wallet-balance-grid { grid-template-columns: 1fr; } }
.partner-install-bar{position:fixed;left:16px;right:16px;bottom:16px;z-index:50;display:none;align-items:center;gap:12px;justify-content:space-between;background:#141012;color:#fff;border:1px solid rgba(237,28,36,.35);box-shadow:0 18px 45px rgba(20,16,18,.25);border-radius:8px;padding:12px 14px}.partner-install-bar strong{display:block}.partner-install-bar span{display:block;color:#d8ced0;font-size:13px}.partner-install-bar button{border:0;border-radius:8px;background:#ed1c24;color:#fff;font-weight:800;padding:10px 14px}.partner-install-bar.is-visible{display:flex}@media(max-width:640px){.partner-install-bar{left:10px;right:10px;bottom:10px;align-items:flex-start}.partner-install-bar button{white-space:nowrap}}
