*{box-sizing:border-box}body{margin:0;background:#eef2f6;color:#102033;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif}button,input,select{font:inherit}.layout{display:grid;grid-template-columns:248px 1fr;min-height:100vh}.sidebar{background:#102033;color:#dce8f3;padding:24px 18px;display:flex;flex-direction:column;gap:22px}.brand{font-size:22px;font-weight:800;color:#fff}.brand small{display:block;font-size:12px;font-weight:500;color:#8ea7bd;margin-top:6px}.nav{display:grid;gap:6px}.nav button{height:42px;border:0;border-radius:8px;background:transparent;color:#dce8f3;text-align:left;padding:0 12px;cursor:pointer}.nav button.active,.nav button:hover{background:#1e3a4f;color:#fff}.side-card{margin-top:auto;background:#183349;border:1px solid #2a4a63;border-radius:10px;padding:14px;color:#bcd0df}.main{min-width:0;padding:22px 28px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.title h1{margin:0;font-size:24px}.title p{margin:6px 0 0;color:#64748b}.account{display:flex;align-items:center;gap:10px}.pill{border:1px solid #d7dee9;background:#fff;border-radius:999px;padding:8px 12px;color:#475569}.btn{height:38px;border:0;border-radius:8px;background:#0f766e;color:#fff;padding:0 14px;cursor:pointer;font-weight:700}.btn.secondary{background:#e8f5f2;color:#0f766e}.btn.danger{background:#ef4444}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px;margin-bottom:16px;box-shadow:0 10px 26px rgba(15,23,42,.05)}.kpis{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px}.kpi{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px}.kpi span{color:#64748b;font-size:13px}.kpi b{display:block;margin-top:8px;font-size:28px;color:#0f766e}.grid{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.billing-grid{display:grid;grid-template-columns:1fr;gap:16px}.checkout-panel{display:grid;grid-template-columns:minmax(180px,260px) minmax(260px,1fr) minmax(360px,1.2fr);gap:16px;align-items:start}.checkout-panel h2{margin-top:0}.trust-box{padding:12px;border:1px solid #cfe8d9;border-radius:8px;background:#f0fbf5;color:#315342;line-height:1.8}.pay-actions{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:10px}.qr-config-grid{display:grid;grid-template-columns:repeat(2,minmax(320px,1fr));gap:14px;margin-top:12px}.qr-card{display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;align-items:start;padding:14px;border:1px solid #cfe8d9;border-radius:8px;background:#f0fbf5;color:#315342}.qr-card-title{margin:0 0 8px;font-size:18px;color:#12352b}.qr-preview{display:grid;place-items:center;min-height:260px;background:#fff;border:1px solid #d7dee9;border-radius:8px;padding:10px}.qr-preview img{display:block;max-width:220px;max-height:280px;width:100%;height:auto;border:0;border-radius:6px;background:#fff;object-fit:contain}.qr-meta{display:grid;gap:10px}.qr-status{display:inline-flex;align-items:center;width:max-content;border-radius:999px;background:#dff6ed;color:#0f766e;font-weight:800;padding:4px 10px}.qr-empty{display:grid;place-items:center;min-height:220px;color:#64748b;text-align:center}.qr-actions{display:grid;gap:8px}.qr-actions .btn{width:100%}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.form-grid>.sku-picker{grid-column:span 2}.form-grid>.btn{width:100%;min-width:0}input,select{height:38px;border:1px solid #cfd8e5;border-radius:8px;padding:0 10px;background:#fff;width:100%;min-width:0}label{display:grid;gap:6px;color:#475569;font-size:13px;min-width:0}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.filterbar{display:grid;grid-template-columns:minmax(220px,1fr) 180px 180px auto;gap:10px;align-items:end;margin-bottom:12px}.table-wrap{overflow:auto;border:1px solid #e5eaf2;border-radius:8px;max-height:720px}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:11px 12px;border-bottom:1px solid #edf2f7;text-align:left;white-space:nowrap}th{position:sticky;top:0;z-index:2;background:#f8fafc;color:#475569;font-weight:700}.sortable{cursor:pointer;user-select:none}.sortable:hover{color:#0f766e}tr:last-child td{border-bottom:0}.profit{color:#0f766e;font-weight:800}.loss{color:#dc2626;font-weight:800}.muted{color:#64748b}.msg{position:fixed;right:22px;bottom:22px;background:#102033;color:#fff;border-radius:10px;padding:12px 16px;box-shadow:0 16px 38px rgba(15,23,42,.22);z-index:10}.hide{display:none!important}.auth{max-width:520px;margin:8vh auto}.auth .panel{padding:24px}.auth h1{margin-top:0}.tab{display:none}.tab.active{display:block}.empty{padding:18px;color:#64748b;text-align:center}.status-dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:#d8aa42;margin-right:6px}.sku-picker{position:relative;min-width:0}.sku-choice{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:34px;margin-top:6px;padding:7px 9px;border:1px solid #bde2d8;background:#eefbf7;color:#0f766e;border-radius:8px;font-size:13px}.sku-choice span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sku-choice button{flex:0 0 auto;width:auto;height:24px;border:0;background:#d9f3eb;color:#0f766e;border-radius:6px;padding:0 8px;cursor:pointer}.sku-menu{position:absolute;z-index:30;left:0;right:0;top:66px;max-height:260px;overflow:auto;background:#fff;border:1px solid #cfd8e5;border-radius:10px;box-shadow:0 16px 38px rgba(15,23,42,.18)}.sku-option{padding:10px 12px;border-bottom:1px solid #edf2f7;cursor:pointer}.sku-option:last-child{border-bottom:0}.sku-option:hover{background:#f1f5f9}.sku-option b{display:block}.sku-option span{display:block;color:#64748b;font-size:12px;margin-top:3px}.sku-no-result{padding:12px;color:#64748b;text-align:center}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(380px,.92fr);background:#071426;color:#fff}.auth-visual{position:relative;overflow:hidden;padding:58px 64px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 18% 20%,rgba(216,170,66,.24),transparent 28%),linear-gradient(135deg,#071426 0%,#0c2440 58%,#122c4b 100%)}.auth-visual:before{content:"";position:absolute;inset:0;background:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 900 700\"><path d=\"M70 520 C210 420 260 455 355 355 S540 265 640 180 790 115 840 78\" fill=\"none\" stroke=\"%23d8aa42\" stroke-width=\"3\" opacity=\".42\"/><path d=\"M70 585 C230 530 275 520 375 455 S555 410 680 315 800 255 860 215\" fill=\"none\" stroke=\"%236d8fb7\" stroke-width=\"2\" opacity=\".18\"/><g fill=\"%23d8aa42\" opacity=\".75\"><circle cx=\"355\" cy=\"355\" r=\"7\"/><circle cx=\"640\" cy=\"180\" r=\"7\"/><circle cx=\"840\" cy=\"78\" r=\"7\"/></g></svg>') center/cover no-repeat;pointer-events:none}.auth-visual>*{position:relative;z-index:1}.brand-lockup{display:flex;align-items:center;gap:16px}.profitora-logo{width:78px;height:78px;flex:0 0 auto}.auth-brand-title{font-size:42px;font-weight:900;letter-spacing:0;line-height:1.12}.auth-brand-title span{display:block;font-size:17px;font-weight:700;color:#d8aa42;margin-top:8px}.auth-tagline{max-width:620px;font-size:34px;line-height:1.22;font-weight:800;margin:48px 0 0}.auth-proof{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:42px}.auth-proof div{border:1px solid rgba(216,170,66,.24);background:rgba(255,255,255,.06);border-radius:8px;padding:14px}.auth-proof b{display:block;color:#f3cc75;font-size:24px}.auth-proof span{display:block;color:#b7c6d6;font-size:12px;margin-top:4px}.auth-form-panel{display:flex;align-items:center;justify-content:center;padding:42px;background:#f5f7fb;color:#102033}.auth-card-v2{width:min(440px,100%);background:#fff;border:1px solid #e4e9f2;border-radius:8px;padding:34px;box-shadow:0 24px 70px rgba(7,20,38,.16)}.auth-card-v2 h1{margin:0;font-size:30px;line-height:1.16;color:#071426}.auth-card-v2 p{margin:10px 0 26px;color:#637083}.auth-card-v2 label{font-size:13px;font-weight:700;color:#334155;margin-bottom:14px}.auth-card-v2 input{height:46px;border-radius:7px;border:1px solid #cbd5e1;background:#f8fafc}.auth-card-v2 .btn{height:48px;width:100%;background:linear-gradient(135deg,#d8aa42,#b88624);color:#071426;font-weight:900}.social-proof{margin-top:18px;padding:13px 14px;border-radius:8px;background:#fff8e7;border:1px solid #ead39b;color:#6f541b;font-size:13px;font-weight:700}.sidebar{background:#071426}.brand{display:flex;align-items:center;gap:10px}.brand svg{width:36px;height:36px;flex:0 0 auto}.brand-text{font-size:18px;line-height:1.1}.brand-text small{font-size:11px;color:#d8aa42}.btn{background:#0f766e}.btn.secondary{background:#f3e9cf;color:#7a5a16}@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-visual{padding:34px 24px;min-height:48vh}.auth-form-panel{padding:24px}.auth-tagline{font-size:26px}.auth-proof{grid-template-columns:1fr}.layout{grid-template-columns:1fr}.sidebar{position:static}.main{padding:14px}.kpis,.grid,.form-grid,.checkout-panel{grid-template-columns:1fr}.form-grid>.sku-picker{grid-column:1}.topbar{display:block}.account{margin-top:12px}.nav{grid-template-columns:repeat(4,1fr)}.nav button{text-align:center;padding:0 6px}.sku-menu{top:66px}.filterbar{grid-template-columns:1fr}.pay-actions{grid-template-columns:1fr}}
    .ranking-panel{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:16px}.ranking-box{border:1px solid #e5eaf2;border-radius:8px;background:#fff;padding:14px}.ranking-count{max-width:120px}.ranking-table{min-width:100%}.ranking-table th,.ranking-table td{padding:10px 12px}.ranking-table th:first-child,.ranking-table td:first-child{width:64px;text-align:center}.ranking-table th:last-child,.ranking-table td:last-child{text-align:right}.ranking-rank{width:30px;height:30px;border-radius:999px;background:#f3e9cf;color:#7a5a16;display:inline-grid;place-items:center;font-weight:900}.plan-cards{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:14px}.plan-card{border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:16px;display:grid;gap:12px}.plan-card.featured{border-color:#d8aa42;background:#fffaf0}.plan-card h3{margin:0;font-size:22px}.plan-card p{margin:0;color:#64748b;line-height:1.6}.plan-card ul{margin:0;padding-left:18px;color:#334155;line-height:1.9}.status-pending{color:#b45309;font-weight:800}.status-received{color:#0f766e;font-weight:800}.compact-actions{display:flex;gap:8px;flex-wrap:wrap}.sticky-action-col,.detail-action-col{position:sticky;right:0;z-index:4;background:#fff;box-shadow:-8px 0 14px rgba(15,23,42,.05)}th.sticky-action-col,th.detail-action-col{background:#f8fafc;z-index:5}.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.36);z-index:60;padding:28px;overflow:auto}.modal-panel{max-width:760px;margin:0 auto;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:18px;box-shadow:0 24px 70px rgba(15,23,42,.22)}.kpi.clickable{cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}.kpi.clickable:hover{border-color:#d8aa42;transform:translateY(-1px);box-shadow:0 12px 28px rgba(15,23,42,.08)}.kpi.warning-card{border-color:#fed7aa;background:#fff7ed}.kpi.warning-card span,.kpi.warning-card b{color:#ea580c}.kpi.out-card{border-color:#fecaca;background:#fef2f2}.kpi.out-card span,.kpi.out-card b{color:#dc2626}.dashboard-sku-filter{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.dashboard-sku-filter .sku-menu{top:42px}.log-json{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#64748b}@media(max-width:900px){.ranking-panel,.plan-cards{grid-template-columns:1fr}.modal-backdrop{padding:14px}.dashboard-sku-filter{grid-template-columns:1fr}.dashboard-sku-filter .sku-menu{top:42px}}
    .billing-stats{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px}.billing-stat{border:1px solid #e2e8f0;border-radius:8px;padding:12px;background:#f8fafc}.billing-stat span{display:block;color:#64748b;font-size:12px}.billing-stat b{display:block;margin-top:6px;font-size:22px;color:#0f766e}.checkout-panel{grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);align-items:stretch}.checkout-card{border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:16px;display:grid;gap:12px}.checkout-card .trust-box{margin-top:4px}.payment-preview{border:1px solid #cfe8d9;border-radius:10px;background:#f0fbf5;padding:14px;min-height:320px}.payment-preview img{display:block;width:100%;max-width:360px;max-height:440px;object-fit:contain;margin:10px auto 0;background:#fff;border-radius:8px}.role-badge{display:inline-flex;align-items:center;border-radius:999px;background:#edf6ff;color:#1e3a8a;padding:4px 9px;font-weight:800}.role-badge.admin{background:#fff7ed;color:#c2410c}.role-badge.super{background:#fff8e7;color:#7a5a16}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:14px}.permission-card{display:flex;align-items:flex-start;gap:8px;border:1px solid #e2e8f0;border-radius:8px;padding:10px;background:#fff}.permission-card input{width:auto;margin-top:3px}.permission-card small{display:block;color:#64748b;margin-top:3px}@media(max-width:900px){.billing-stats,.checkout-panel{grid-template-columns:1fr}}
    .topbar{align-items:flex-start}.account{justify-content:flex-end;flex-wrap:wrap;max-width:760px}.account .pill{display:inline-flex;align-items:center;min-height:38px;white-space:nowrap}.tenant-pill{max-width:220px;overflow:hidden;text-overflow:ellipsis}.shop-select{width:260px;max-width:32vw;border-radius:8px}.account .btn{white-space:nowrap;flex:0 0 auto}.member-structure{display:grid;gap:8px;min-width:360px;white-space:normal}.member-role-line{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}.member-role-label{min-width:88px;color:#64748b;font-size:12px;padding-top:4px}.member-chip-wrap{display:flex;gap:6px;flex-wrap:wrap;min-width:0}.member-chip{display:inline-flex;align-items:center;max-width:280px;border-radius:999px;padding:4px 9px;font-weight:800;background:#edf6ff;color:#1e3a8a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-chip.super{background:#fef2f2;color:#b91c1c}.member-chip.admin{background:#fff7ed;color:#c2410c}.member-chip.staff{background:#f1f5f9;color:#475569}.member-warning{display:inline-flex;align-items:center;border-radius:999px;background:#fff1f2;color:#be123c;padding:4px 9px;font-size:12px;font-weight:800}.shop-summary{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:10px;margin:12px 0}.shop-summary div{border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;padding:10px}.shop-summary span{display:block;color:#64748b;font-size:12px}.shop-summary b{display:block;margin-top:4px;font-size:20px;color:#0f766e}.shop-list{display:grid;gap:8px;margin-top:10px}.shop-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border:1px solid #e2e8f0;border-radius:8px;padding:10px;background:#fff}.shop-row strong{display:block}.shop-row small{color:#64748b}.shop-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.shop-wizard{border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;padding:12px;margin-top:12px}.wizard-steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.wizard-steps span{border-radius:999px;background:#e2e8f0;color:#475569;padding:5px 10px;font-weight:800;font-size:12px}.wizard-steps span.active{background:#0f766e;color:#fff}.shop-config-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:10px 0 12px}.shop-config-option{display:flex;align-items:center;gap:8px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:9px;color:#334155;font-weight:700}.shop-config-option input{width:auto;height:auto}.shop-risk{border:2px solid #ef4444;background:#fff1f2;color:#991b1b;border-radius:10px;padding:12px;margin:10px 0;font-weight:800;line-height:1.7}.shop-risk label{display:flex;grid-template-columns:none;align-items:center;gap:8px;color:#991b1b;font-size:14px}.shop-risk input{width:auto;height:auto}.shop-config-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.shop-config-tags span{border-radius:999px;background:#eefbf7;color:#0f766e;padding:3px 8px;font-size:12px;font-weight:800}.shop-config-tags span.off{background:#f1f5f9;color:#64748b}.shop-rule-summary{display:grid;gap:6px;margin-top:8px;color:#475569}.shop-rule-summary b{color:#102033}.limit-note{padding:10px;border-radius:8px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}@media(max-width:900px){.account{justify-content:flex-start;max-width:none}.shop-select{width:100%;max-width:none}.member-structure{min-width:260px}.shop-summary{grid-template-columns:1fr}.shop-create-grid{grid-template-columns:1fr}}
    .auth-mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}.auth-mode-tabs button{border:1px solid #d7dee9;background:#f8fafc;color:#475569;border-radius:8px;height:38px;cursor:pointer;font-weight:800}.auth-mode-tabs button.active{background:#102033;color:#f3cc75;border-color:#102033}.auth-pane{display:none}.auth-pane.active{display:block}.inline-action{display:grid;grid-template-columns:1fr auto;gap:8px}.security-warning{border:1px solid #fecaca;background:#fef2f2;color:#991b1b;border-radius:8px;padding:10px;line-height:1.6;font-weight:700}.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.auth-linkbar{display:flex;justify-content:space-between;gap:10px;margin-top:12px;flex-wrap:wrap}.auth-linkbar button{border:0;background:transparent;color:#0f766e;cursor:pointer;font-weight:800;padding:0}.security-status{display:grid;gap:8px;margin:12px 0}.security-status div{border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;padding:10px}.version-badge{display:inline-flex;width:max-content;margin-top:7px;border:1px solid rgba(216,170,66,.38);border-radius:999px;background:rgba(216,170,66,.12);color:#f3cc75;padding:3px 8px;font-size:11px;font-weight:900;letter-spacing:0}@media(max-width:900px){.recovery-grid{grid-template-columns:1fr}.auth-mode-tabs{grid-template-columns:1fr}}
    :root{--pf-bg:#f4f7fb;--pf-surface:#fff;--pf-surface-soft:#f8fafc;--pf-text:#102033;--pf-muted:#64748b;--pf-subtle:#94a3b8;--pf-border:#e2e8f0;--pf-border-strong:#cbd5e1;--pf-brand:#0f766e;--pf-brand-2:#0d9488;--pf-brand-soft:#e8f5f2;--pf-gold:#d8aa42;--pf-gold-soft:#fbf2dc;--pf-danger:#ef4444;--pf-danger-soft:#fef2f2;--pf-warning:#ea580c;--pf-warning-soft:#fff7ed;--pf-radius:12px;--pf-radius-lg:16px;--pf-shadow:0 10px 28px rgba(15,23,42,.06);--pf-shadow-soft:0 1px 2px rgba(15,23,42,.04)}body{background:var(--pf-bg);color:var(--pf-text);overflow-x:hidden}.layout{grid-template-columns:264px minmax(0,1fr);background:var(--pf-bg)}.sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:linear-gradient(180deg,#071426 0%,#0b1b2f 100%);padding:22px 14px;gap:18px;border-right:1px solid rgba(255,255,255,.06)}.brand{padding:0 8px 10px}.brand svg{width:42px;height:42px}.brand-text{font-size:17px;font-weight:900}.brand-text small{display:block;margin-top:5px;font-size:11px;color:#f3cc75}.nav{gap:14px}.nav-section{display:grid;gap:5px}.nav-section-title{padding:0 10px 2px;color:#7890a8;font-size:12px;font-weight:900;letter-spacing:.08em}.nav button{height:38px;border-radius:10px;color:#c9d7e6;font-weight:750;padding:0 10px}.nav button:hover{background:rgba(255,255,255,.07);color:#fff}.nav button.active{background:#20384f;color:#fff;box-shadow:inset 3px 0 0 var(--pf-gold)}.side-card{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.06);border-radius:14px}.main{padding:24px 30px 34px;max-width:1760px;width:100%;margin:0 auto;min-width:0}.topbar{position:sticky;top:0;z-index:20;align-items:center;margin:-24px -30px 24px;padding:18px 30px;background:rgba(244,247,251,.92);backdrop-filter:blur(14px);border-bottom:1px solid rgba(226,232,240,.78)}.title h1{font-size:28px;letter-spacing:-.03em}.title p{font-size:14px}.account{display:flex;align-items:center;justify-content:flex-end;gap:10px;max-width:none;min-width:0}.top-context{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.top-card{display:flex;align-items:center;gap:9px;min-height:42px;border:1px solid var(--pf-border);background:#fff;border-radius:999px;padding:7px 12px;box-shadow:var(--pf-shadow-soft)}.top-card strong{font-size:13px;color:#1e293b}.top-card span,.top-card small{font-size:12px;color:var(--pf-muted)}.top-card.stack{border-radius:14px;align-items:flex-start}.top-card.stack div{display:grid;gap:2px}.top-icon{width:26px;height:26px;border-radius:999px;display:grid;place-items:center;background:var(--pf-brand-soft);color:var(--pf-brand);font-size:14px}.top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.avatar-menu{min-width:116px;justify-content:center}.pill{border-color:var(--pf-border);background:#fff;color:#334155}.tenant-pill{max-width:260px}.shop-select{width:250px;max-width:30vw}.btn{height:40px;border-radius:10px;background:var(--pf-brand);font-weight:850;box-shadow:0 1px 0 rgba(15,23,42,.06)}.btn:hover{filter:brightness(.98);transform:translateY(-1px)}.btn.secondary{background:var(--pf-gold-soft);color:#7a5a16}.btn.danger{background:var(--pf-danger);color:#fff}.panel,.kpi,.ranking-box,.plan-card,.checkout-card{border-color:var(--pf-border);border-radius:var(--pf-radius-lg);box-shadow:var(--pf-shadow);background:#fff}.panel{padding:18px;margin-bottom:18px}.toolbar h2{margin:0;font-size:20px;letter-spacing:-.02em}.toolbar .muted{font-size:14px;line-height:1.6}input,select{height:42px;border-radius:10px;border-color:var(--pf-border-strong);background:#fff;color:#0f172a}input:focus,select:focus{outline:2px solid rgba(15,118,110,.16);border-color:var(--pf-brand)}label{font-weight:700;color:#475569}.table-wrap{border-color:var(--pf-border);border-radius:12px;background:#fff}th{background:#f8fafc;color:#475569;font-size:13px}td{font-size:14px}tr:hover td{background:#fbfdff}.dashboard-hero{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,1.6fr);justify-content:stretch;align-items:flex-start;gap:18px;padding:20px;border:1px solid var(--pf-border);border-radius:18px;background:linear-gradient(135deg,#ffffff 0%,#f2fbf8 100%);box-shadow:var(--pf-shadow);margin-bottom:16px}.dashboard-hero>div:first-child{min-width:230px}.dashboard-hero h2{margin:0;font-size:24px;letter-spacing:-.03em;white-space:normal}.dashboard-hero p{margin:6px 0 0;color:var(--pf-muted);line-height:1.7}.dashboard-controls{display:grid;grid-template-columns:minmax(260px,1.3fr) 150px 150px 150px;gap:10px;align-items:end;min-width:0}.kpis{grid-template-columns:repeat(5,minmax(160px,1fr));gap:12px}.kpi{position:relative;overflow:hidden;min-height:128px;padding:16px}.kpi span{font-size:13px;font-weight:800;color:var(--pf-muted)}.kpi b{font-size:27px;letter-spacing:-.03em;color:#0f172a}.kpi small{display:block;margin-top:8px;color:var(--pf-subtle);font-size:12px}.kpi.primary{background:linear-gradient(135deg,#0f766e,#0d9488);border-color:transparent;color:#fff}.kpi.primary span,.kpi.primary small,.kpi.primary b{color:#fff}.kpi.accent{background:linear-gradient(135deg,#fff,#fff8e7);border-color:#f1dfb3}.kpi.clickable:hover{border-color:var(--pf-brand);box-shadow:0 14px 34px rgba(15,118,110,.12)}.dashboard-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 10px}.dashboard-section-title h2{margin:0;font-size:20px}.stock-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-top:12px}.metric-card{border:1px solid var(--pf-border);border-radius:14px;background:#fff;padding:14px;box-shadow:var(--pf-shadow-soft)}.metric-card span{display:block;color:var(--pf-muted);font-size:13px;font-weight:800}.metric-card b{display:block;margin-top:6px;font-size:22px;color:#0f172a}.ranking-panel{grid-template-columns:repeat(2,minmax(320px,1fr));gap:16px}.ranking-box{padding:16px}.ranking-rank{background:#eefbf7;color:var(--pf-brand)}.modal-panel{border-radius:18px}.modal-backdrop{background:rgba(15,23,42,.42)}.returns-panel{padding:20px}.returns-header{align-items:flex-start;margin-bottom:14px}.returns-header>div{display:grid;gap:4px}.returns-tip{padding-top:2px;text-align:right}.returns-filterbar{display:grid;grid-template-columns:minmax(320px,1fr) 180px 160px;gap:12px;align-items:center;margin-bottom:14px}.returns-filterbar input,.returns-filterbar select,.returns-filterbar .btn{height:44px}.returns-table-wrap table{min-width:1060px}.return-action-col{width:184px;min-width:184px}.return-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.return-actions .btn{height:34px;min-width:64px;padding:0 12px;border-radius:10px;box-shadow:none}.return-actions .btn.secondary{min-width:96px;background:#f3e9cf;color:#7a5a16}.return-actions .btn.danger{min-width:64px}.return-status{display:inline-flex;align-items:center;justify-content:center;min-width:70px;border-radius:999px;padding:5px 10px;font-size:13px;font-weight:900}.return-status.received{background:#e8f5f2;color:#0f766e}.return-status.pending{background:#fff7ed;color:#b45309}@media(max-width:1400px){.dashboard-hero{grid-template-columns:1fr}.dashboard-controls{grid-template-columns:minmax(220px,1fr) 130px 135px 135px}}@media(max-width:1200px){.layout{grid-template-columns:232px minmax(0,1fr)}.main{padding:20px}.topbar{margin:-20px -20px 20px;padding:16px 20px}.dashboard-controls{grid-template-columns:1fr 1fr}.kpis{grid-template-columns:repeat(2,minmax(160px,1fr))}.stock-mini-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.account{justify-content:flex-start}.shop-select{max-width:none}.returns-header{display:grid}.returns-tip{text-align:left}.returns-filterbar{grid-template-columns:minmax(260px,1fr) 160px 140px}}@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{position:static;height:auto}.nav{display:grid;grid-template-columns:1fr;gap:8px}.nav-section{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.nav-section-title{grid-column:1/-1}.topbar{position:static;display:grid}.top-context,.top-actions{justify-content:flex-start}.dashboard-controls,.kpis,.stock-mini-grid,.ranking-panel,.returns-filterbar{grid-template-columns:1fr}.shop-select{width:100%}.return-action-col{width:172px;min-width:172px}.return-actions{gap:6px}.return-actions .btn{padding:0 10px}}
    .dashboard-controls{grid-template-columns:150px 150px 150px!important;justify-content:end}.kpi.clickable,.metric-card.clickable{cursor:pointer}.kpi.clickable .card-action-badge,.metric-card.clickable .card-action-badge{position:absolute;right:12px;top:12px;font-style:normal;border-radius:999px;background:rgba(15,118,110,.1);color:#0f766e;padding:3px 8px;font-size:12px;font-weight:900}.metric-card{position:relative}.metric-card small{display:block;margin-top:8px;color:#94a3b8;font-size:12px}.metric-card.clickable:hover{border-color:#0f766e;transform:translateY(-1px);box-shadow:0 14px 34px rgba(15,118,110,.12)}.kpi.primary .card-action-badge{background:rgba(255,255,255,.18);color:#fff}@media(max-width:1200px){.dashboard-controls{grid-template-columns:1fr 1fr 1fr!important;justify-content:stretch}}@media(max-width:900px){.dashboard-controls{grid-template-columns:1fr!important}}
      .return-action-col{width:220px;min-width:220px}.return-status-select{width:118px;height:34px;border-radius:10px;font-weight:850;color:#7a5a16;background:#fbf2dc;border-color:#ead39b}.return-status-select:disabled{opacity:.65;cursor:not-allowed}.platform-sku-cell{position:relative;min-width:220px}.platform-sku-cell input{height:36px}.platform-sku-cell .sku-menu{top:40px;left:0;right:0;z-index:45}.platform-batch-list{margin-top:12px;border:1px solid var(--pf-border);border-radius:12px;background:#fbfdff;padding:12px}.platform-batch-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #edf2f7}.platform-batch-row:last-child{border-bottom:0}.platform-batch-row b{display:block;color:#102033}.platform-batch-row small{display:block;color:#64748b;margin-top:3px}.platform-batch-actions{display:flex;gap:8px;align-items:center}.batch-status{display:inline-flex;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:900;background:#e8f5f2;color:#0f766e}.batch-status.rolled_back{background:#f1f5f9;color:#64748b}@media(max-width:900px){.return-action-col{width:204px;min-width:204px}.platform-batch-row{grid-template-columns:1fr}.platform-batch-actions{justify-content:flex-start}}
    .onboarding-card{max-width:960px;margin:36px auto;background:#fff;border-radius:16px;padding:22px;box-shadow:0 18px 46px rgba(15,23,42,.18)}
    .onboarding-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.onboarding-step{border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#f8fafc}.onboarding-step.active{border-color:#2563eb;background:#eff6ff}.onboarding-step.done{border-color:#0f766e;background:#ecfdf5}.onboarding-step b{display:block;margin-bottom:4px}
    .owner-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;margin-top:16px}.owner-structure{display:grid;gap:8px}.owner-line{display:flex;justify-content:space-between;border-bottom:1px solid #e5e7eb;padding:7px 0}.owner-line.net{font-weight:900;color:#0f766e}.admin-console-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.admin-console-box{border:1px solid #e5e7eb;border-radius:12px;padding:14px;background:#fff}.admin-console-box b{font-size:22px;display:block;margin-top:4px}.onboarding-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
    @media(max-width:900px){.onboarding-steps,.owner-grid,.admin-console-grid{grid-template-columns:1fr}.onboarding-card{margin:18px 10px}}

:root{
      --pf-navy-950:#071426;
      --pf-navy-900:#0b1b2f;
      --pf-navy-800:#102944;
      --pf-bg:#f5f7fb;
      --pf-surface:#ffffff;
      --pf-surface-soft:#f8fafc;
      --pf-line:#e6ebf2;
      --pf-line-strong:#cfd8e5;
      --pf-text:#101828;
      --pf-muted:#667085;
      --pf-faint:#98a2b3;
      --pf-brand:#0f766e;
      --pf-brand-2:#059669;
      --pf-brand-soft:#e8f7f3;
      --pf-gold:#b88216;
      --pf-gold-soft:#fbf1d9;
      --pf-danger:#e54842;
      --pf-danger-soft:#fff1f0;
      --pf-warning:#b45309;
      --pf-radius-sm:10px;
      --pf-radius:14px;
      --pf-radius-lg:18px;
      --pf-shadow-xs:0 1px 2px rgba(16,24,40,.05);
      --pf-shadow:0 10px 28px rgba(16,24,40,.07);
      --pf-shadow-lg:0 18px 50px rgba(16,24,40,.10);
    }
    html{background:var(--pf-bg)}
    body{background:var(--pf-bg);color:var(--pf-text);font-size:14px;letter-spacing:-.01em}
    button,input,select{font-family:inherit}
    .layout{grid-template-columns:252px minmax(0,1fr);background:var(--pf-bg)}
    .sidebar{
      position:sticky;top:0;height:100vh;padding:22px 14px 18px;
      background:linear-gradient(180deg,var(--pf-navy-950) 0%,var(--pf-navy-900) 100%);
      border-right:1px solid rgba(255,255,255,.08);box-shadow:6px 0 28px rgba(7,20,38,.12)
    }
    .brand{gap:12px;padding:0 8px 12px;color:#fff}
    .brand svg{width:40px;height:40px}
    .brand-text{font-size:18px;font-weight:900;line-height:1.12}
    .brand-text small{font-size:11px;color:#f3cc75;margin-top:6px}
    .version-badge{border-color:rgba(243,204,117,.38);background:rgba(243,204,117,.13);color:#f3cc75}.db-saved-time{display:block;margin-top:7px;color:#9fb3c8;font-size:11px;line-height:1.35;font-weight:700}.db-saved-time b{display:block;color:#f3cc75;font-size:12px;font-weight:900}
    .nav{gap:14px}
    .nav-section{display:grid;gap:4px}
    .nav-section-title{padding:0 10px 4px;color:#7f95ad;font-size:12px;font-weight:900;letter-spacing:.08em}
    .nav button{
      height:40px;border-radius:11px;padding:0 11px;color:#cbd7e6;font-weight:800;
      transition:background .16s,color .16s,transform .16s,box-shadow .16s
    }
    .nav button:hover{background:rgba(255,255,255,.07);color:#fff;transform:translateX(1px)}
    .nav button.active{
      background:linear-gradient(90deg,#1f3a56,#243f5a);color:#fff;
      box-shadow:inset 3px 0 0 #f3cc75,0 8px 22px rgba(0,0,0,.16)
    }
    .side-card{border-color:rgba(255,255,255,.10);background:rgba(255,255,255,.065);border-radius:16px;color:#bbcada}
    .main{max-width:1760px;width:100%;margin:0 auto;padding:24px 30px 38px;min-width:0}
    .topbar{
      position:sticky;top:0;z-index:30;margin:-24px -30px 26px;padding:16px 30px 18px;
      align-items:flex-start;background:rgba(245,247,251,.93);backdrop-filter:blur(16px);
      border-bottom:1px solid rgba(230,235,242,.88)
    }
    .title h1{font-size:30px;line-height:1.12;letter-spacing:-.045em;font-weight:950;color:#0f172a}
    .title p{font-size:14px;line-height:1.6;color:var(--pf-muted);max-width:620px}
    .account{display:grid;justify-items:end;gap:12px;max-width:none}
    .top-context,.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
    .top-card,.pill{
      border:1px solid var(--pf-line);background:rgba(255,255,255,.92);border-radius:999px;
      box-shadow:var(--pf-shadow-xs);color:#344054
    }
    .top-card.stack{border-radius:16px;min-height:58px;padding:8px 12px}
    .top-icon{background:var(--pf-brand-soft);color:var(--pf-brand)}
    .top-card span,.top-card small{color:var(--pf-muted)}
    .top-card strong{font-weight:900;color:#1d2939}
    .shop-select{width:240px;max-width:28vw;border-radius:11px;height:40px}
    .inventory-mode-card{min-width:168px;cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}
    .inventory-mode-card:hover,.inventory-mode-card:focus{border-color:var(--pf-brand);transform:translateY(-1px);box-shadow:0 12px 24px rgba(15,118,110,.12);outline:none}
    .tenant-pill{min-height:42px;max-width:240px;font-weight:850}
    .avatar-menu{min-width:108px;justify-content:center}
    .btn{
      height:42px;border-radius:11px;background:linear-gradient(180deg,var(--pf-brand-2),var(--pf-brand));
      color:#fff;padding:0 16px;font-weight:900;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,var(--pf-shadow-xs);
      transition:filter .15s,transform .15s,box-shadow .15s
    }
    .btn:hover{filter:brightness(.99);transform:translateY(-1px);box-shadow:0 10px 22px rgba(15,118,110,.16)}
    .btn.secondary{background:var(--pf-gold-soft);color:#7a520d;box-shadow:var(--pf-shadow-xs)}
    .btn.secondary:hover{box-shadow:0 10px 22px rgba(184,130,22,.12)}
    .btn.danger{background:linear-gradient(180deg,#ef5a54,var(--pf-danger));color:#fff}
    input,select{
      height:42px;border:1px solid var(--pf-line-strong);border-radius:11px;background:#fff;color:#111827;
      box-shadow:0 1px 0 rgba(16,24,40,.02);font-weight:650
    }
    input::placeholder{color:#98a2b3;font-weight:600}
    input:focus,select:focus{outline:3px solid rgba(15,118,110,.13);border-color:var(--pf-brand)}
    label{gap:7px;color:#475467;font-size:13px;font-weight:850}
    .panel,.kpi,.ranking-box,.plan-card,.checkout-card{
      background:var(--pf-surface);border:1px solid var(--pf-line);border-radius:var(--pf-radius-lg);box-shadow:var(--pf-shadow)
    }
    .panel{padding:20px;margin-bottom:18px}
    .toolbar{margin-bottom:14px;align-items:flex-start}
    .toolbar h2{margin:0;font-size:21px;line-height:1.2;font-weight:950;letter-spacing:-.035em;color:#111827}
    .toolbar .muted{font-size:14px;line-height:1.65;color:var(--pf-muted)}
    .form-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;align-items:end}
    .form-grid label{grid-column:span 2}
    .form-grid>.sku-picker{grid-column:span 3}
    .form-grid>.btn{grid-column:span 2;width:100%}
    #orders .panel:first-child .form-grid label:nth-of-type(2),
    #orders .panel:first-child .form-grid label:nth-of-type(3),
    #orders .panel:first-child .form-grid label:nth-of-type(4),
    #orders .panel:first-child .form-grid label:nth-of-type(5){grid-column:span 1}
    #orders .panel:nth-child(2) .form-grid label{grid-column:span 2}
    #orders .panel:nth-child(2) .form-grid .btn{grid-column:span 1}
    #orders .panel:nth-child(2) #platformImportResult{grid-column:1/-1;line-height:1.55;padding:4px 2px}
    .filterbar,.returns-filterbar{
      display:grid;gap:12px;align-items:center;margin-bottom:14px;
      padding:12px;background:var(--pf-surface-soft);border:1px solid var(--pf-line);border-radius:14px
    }
    .filterbar{grid-template-columns:minmax(280px,1fr) 170px 170px auto}
    .returns-filterbar{grid-template-columns:minmax(320px,1fr) 180px 160px}
    .table-wrap{border:1px solid var(--pf-line);border-radius:15px;background:#fff;box-shadow:var(--pf-shadow-xs)}
    table{min-width:900px}
    th,td{padding:13px 14px;border-bottom:1px solid #eef2f6;vertical-align:middle}
    th{background:#f8fafc;color:#475467;font-size:12px;font-weight:950;letter-spacing:.01em}
    td{font-size:14px;color:#1f2937}
    tbody tr{transition:background .12s}
    tr:hover td{background:#fbfdff}
    .sortable:hover{color:var(--pf-brand)}
    .sticky-action-col,.detail-action-col{
      background:linear-gradient(90deg,rgba(255,255,255,.94),#fff 18%);box-shadow:-12px 0 18px rgba(16,24,40,.06)
    }
    th.sticky-action-col,th.detail-action-col{background:#f8fafc}
    .compact-actions{gap:8px;align-items:center}
    .compact-actions .btn{height:34px;border-radius:10px;padding:0 12px;box-shadow:none}
    .detail-action-col{width:318px;min-width:318px}
    .detail-actions-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap}
    .detail-actions-row .btn{height:34px;min-width:62px;padding:0 12px;border-radius:10px;box-shadow:none}
    .platform-tool-panel{background:linear-gradient(180deg,#fff 0%,#fbfffd 100%)}
    .platform-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(320px,1fr));gap:16px;align-items:start}
    .platform-tool-card{border:1px solid var(--pf-line);border-radius:16px;background:#fff;padding:16px;box-shadow:var(--pf-shadow-xs);display:grid;gap:12px}
    .platform-tool-wide{grid-column:1/-1}
    .platform-tool-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
    .platform-tool-form label,.platform-tool-form .wide{grid-column:span 2}
    .platform-tool-form .btn{width:100%}
    .platform-tool-form .ops-mode-note,.platform-tool-form .ops-result{grid-column:1/-1}
    .inventory-adjust-form{grid-template-columns:repeat(2,minmax(0,1fr))}
    .inventory-adjust-form .wide{grid-column:1/-1}
    .inventory-adjust-form .btn{grid-column:1/-1}
    .data-tool-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px;margin-top:14px}
    .data-tool-entry{border:1px solid var(--pf-line);border-radius:14px;background:#fff;padding:16px;text-align:left;display:grid;gap:10px;min-height:150px;cursor:pointer;box-shadow:var(--pf-shadow-xs);font:inherit;color:inherit}
    .data-tool-entry:hover,.data-tool-entry.active{border-color:var(--pf-primary);box-shadow:0 12px 28px rgba(15,118,110,.12)}
    .data-tool-entry b{font-size:18px;color:var(--pf-text)}
    .data-tool-entry span{color:var(--pf-muted);line-height:1.55}
    .data-tool-entry small{color:var(--pf-primary);font-weight:900}
    .data-tool-workspace{margin-top:16px;border:1px solid var(--pf-line);border-radius:14px;background:#fff;padding:16px}
    .data-tool-pane{display:grid;gap:12px}
    .import-guide{border:1px solid #cfe0f1;background:#f6faff;border-radius:12px;padding:13px 16px;color:#334155;line-height:1.65}
    .import-guide b{display:block;color:#1f4f78;margin-bottom:4px}
    .import-guide ol{margin:0;padding-left:22px}
    .import-step-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
    .import-step-strip span{border:1px solid #dbe5f0;background:#f8fafc;border-radius:10px;padding:10px 8px;text-align:center;color:#64748b;font-weight:800;font-size:13px}
    .platform-preview-table{margin-top:4px;max-height:560px;max-width:100%;overflow:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable;position:relative}
    .platform-preview-table:after{content:"横向滚动可查看全部字段";position:sticky;left:12px;bottom:8px;display:inline-block;margin:8px 0 8px 12px;padding:4px 8px;border-radius:999px;background:rgba(15,23,42,.78);color:#fff;font-size:11px;pointer-events:none}
    .platform-preview-grid{width:max-content;min-width:1260px;table-layout:fixed}
    .platform-preview-grid th,.platform-preview-grid td{padding:8px 10px;vertical-align:top;white-space:normal;line-height:1.4}
    .platform-preview-grid th:nth-child(1),.platform-preview-grid td:nth-child(1){width:58px;min-width:58px}
    .platform-preview-grid th:nth-child(2),.platform-preview-grid td:nth-child(2){width:180px;min-width:180px}
    .platform-preview-grid th:nth-child(3),.platform-preview-grid td:nth-child(3){width:150px;min-width:150px}
    .platform-preview-grid th:nth-child(4),.platform-preview-grid td:nth-child(4){width:230px;min-width:230px}
    .platform-preview-grid th:nth-child(5),.platform-preview-grid td:nth-child(5){width:135px;min-width:135px}
    .platform-preview-grid th:nth-child(6),.platform-preview-grid td:nth-child(6){width:300px;min-width:300px}
    .platform-preview-grid th:nth-child(7),.platform-preview-grid td:nth-child(7){width:210px;min-width:210px}
    .platform-preview-grid th:nth-child(8),.platform-preview-grid td:nth-child(8){width:170px;min-width:170px}
    .platform-preview-grid th:last-child,.platform-preview-grid td:last-child{width:230px;min-width:230px}
    .platform-title-cell{white-space:normal;overflow-wrap:anywhere}
    .preview-mode-badge{display:inline-flex;border-radius:999px;padding:3px 8px;background:#e8f5f2;color:#0f766e;font-size:11px;font-weight:900}
    .preview-mode-badge.limited{background:#fff7ed;color:#c2410c}
    .preview-identity{display:grid;gap:4px}
    .preview-identity code{font-size:11px;color:#64748b;overflow-wrap:anywhere}
    .preview-quantity{display:grid;grid-template-columns:1fr auto;gap:5px 7px;align-items:center}
    .preview-quantity input{width:70px;height:34px}
    .preview-quantity strong{color:#0f766e}
    .preview-quantity small{grid-column:1/-1;line-height:1.35}
    .preview-money{display:grid;gap:3px;font-size:12px}
    .preview-money b{font-size:14px;color:#102033}
    .preview-exception-details{margin-top:6px}
    .preview-exception-details summary{cursor:pointer;color:#b45309;font-weight:800;font-size:12px}
    .preview-exception-details div{margin-top:5px;padding:7px 8px;border-radius:8px;background:#fff7ed;color:#9a3412;line-height:1.55}
    .import-mode-notice{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border:1px solid #cfe0f1;background:#f6faff;border-radius:12px;padding:12px 14px}
    .import-mode-notice>div{display:grid;gap:4px}.import-mode-notice span{color:#475569;line-height:1.55}
    .import-mode-notice.limited{border-color:#fed7aa;background:#fff7ed}.import-mode-notice.limited b{color:#9a3412}
    .simplified-ack{display:flex;grid-template-columns:none;align-items:flex-start;gap:8px;max-width:520px;color:#9a3412;font-weight:800;line-height:1.5}
    .simplified-ack input{width:auto;height:auto;margin-top:3px;flex:0 0 auto}
    .field-mapping-panel{border:1px solid #dbe5f0;background:#f8fafc;border-radius:14px;padding:14px;margin-top:4px}
    .field-mapping-panel .toolbar{align-items:flex-start}
    .field-mapping-panel h3{margin:0 0 4px}
    .field-mapping-panel select{min-width:220px}
    .field-mapping-panel.collapsed #platformFieldMappingDetails{display:none}
    .preview-filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;padding:10px 12px;border:1px solid #dbe5f0;border-radius:12px;background:#f8fafc}
    .preview-filter-bar button.active{background:#0f766e;color:#fff;border-color:#0f766e}
    .match-candidates{display:grid;gap:4px;margin-top:6px;min-width:300px}
    .match-candidates button{display:flex;flex-direction:column;align-items:flex-start;border:1px solid #dbe5f0;background:#fff;border-radius:8px;padding:6px 8px;text-align:left;cursor:pointer}
    .match-candidates button span{font-size:11px;color:#64748b;white-space:normal}
    .preview-row-actions{display:grid;gap:6px;min-width:210px}
    .preview-row-actions textarea{min-height:48px;resize:vertical}
    .field-semantic-notice{margin:10px 0;padding:10px 12px;border-left:4px solid #f59e0b;background:#fffbeb;color:#92400e;border-radius:8px;line-height:1.55}
    .field-required{color:#b91c1c;font-weight:800}
    .inventory-mode-modal{max-width:920px}
    .inventory-mode-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
    .inventory-mode-choice{border:1px solid var(--pf-line);border-radius:16px;background:#fff;padding:16px;text-align:left;display:grid;gap:10px;cursor:pointer;min-height:210px;transition:border-color .15s,box-shadow .15s,transform .15s}
    .inventory-mode-choice:hover{border-color:var(--pf-brand);box-shadow:0 12px 28px rgba(15,118,110,.10);transform:translateY(-1px)}
    .inventory-mode-choice.active{border-color:var(--pf-brand);background:#f1fbf8;box-shadow:inset 0 0 0 1px rgba(15,118,110,.18)}
    .inventory-mode-choice h3{margin:0;font-size:17px;color:#102033}
    .inventory-mode-choice p{margin:0;color:#667085;line-height:1.65}
    .inventory-mode-choice small{display:block;color:#7a5a16;background:#fbf1d9;border-radius:10px;padding:8px;line-height:1.55;font-weight:800}
    .inventory-mode-check{display:inline-flex;align-items:center;width:max-content;border-radius:999px;background:#e8f7f3;color:#0f766e;padding:4px 9px;font-size:12px;font-weight:900}
    .inventory-mode-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
    .kpis{grid-template-columns:repeat(5,minmax(160px,1fr));gap:14px}
    .kpi{min-height:132px;padding:18px;position:relative;overflow:hidden}
    .kpi span,.metric-card span{font-size:13px;font-weight:900;color:var(--pf-muted)}
    .kpi b{font-size:30px;color:#101828;letter-spacing:-.045em}
    .kpi small,.metric-card small{color:var(--pf-faint);font-weight:650}
    .kpi.primary{background:linear-gradient(135deg,#0f766e,#0ba77c);border-color:transparent}
    .kpi.primary:after{content:"";position:absolute;right:-28px;top:-34px;width:120px;height:120px;border-radius:999px;background:rgba(255,255,255,.12)}
    .kpi.accent{background:linear-gradient(135deg,#fff,#fff8e8);border-color:#f1ddb0}
    .card-action-badge{font-style:normal}
    .kpi.clickable,.metric-card.clickable{transition:border-color .15s,transform .15s,box-shadow .15s}
    .kpi.clickable:hover,.metric-card.clickable:hover{border-color:var(--pf-brand);transform:translateY(-2px);box-shadow:var(--pf-shadow-lg)}
    .dashboard-hero{
      padding:22px;border-radius:22px;border-color:var(--pf-line);
      background:linear-gradient(135deg,#fff 0%,#f1fbf8 100%);box-shadow:var(--pf-shadow)
    }
    .dashboard-hero h2{font-size:25px;font-weight:950;color:#111827}
    .dashboard-controls{grid-template-columns:150px 150px 150px!important;justify-content:end}
    .stock-mini-grid{gap:14px}
    .metric-card{border:1px solid var(--pf-line);border-radius:16px;background:#fff;padding:16px;box-shadow:var(--pf-shadow)}
    .metric-card b{font-size:24px;letter-spacing:-.035em}
    .ranking-panel{gap:18px}
    .ranking-box{padding:18px}
    .ranking-rank{background:#eaf7f3;color:var(--pf-brand)}
    .sku-picker{position:relative}
    .sku-choice{border-color:#bfe6dc;background:#effaf6;color:var(--pf-brand);border-radius:12px}
    .sku-menu{
      border-color:var(--pf-line-strong);border-radius:14px;box-shadow:var(--pf-shadow-lg);max-height:280px;
      z-index:80
    }
    .sku-option{padding:11px 13px}
    .sku-option:hover{background:#f3faf8}
    .platform-sku-cell input{height:38px}
    .platform-batch-list{border-color:var(--pf-line);border-radius:16px;background:#fbfdff;box-shadow:var(--pf-shadow-xs)}
    .platform-batch-detail{margin-top:14px;padding:14px;border:1px solid var(--pf-line);border-radius:16px;background:var(--pf-surface,#fff);box-shadow:var(--pf-shadow-xs)}
    .platform-batch-detail .preview-filter-bar{margin:10px 0}
    .platform-batch-row{padding:12px 0}
    .batch-status{background:#eaf7f3;color:var(--pf-brand)}
    .batch-status.rolled_back{background:#f2f4f7;color:#667085}
    .status-pending,.status-received{font-weight:950}
    .return-status{font-weight:950}
    .return-status.pending{background:#fff7ed;color:#b45309}
    .return-status.received{background:#eaf7f3;color:var(--pf-brand)}
    .return-status-select{border-radius:10px}
    .modal-backdrop{background:rgba(15,23,42,.46);backdrop-filter:blur(4px)}
    .modal-panel{border-radius:20px;border-color:var(--pf-line);box-shadow:0 28px 80px rgba(16,24,40,.22)}
    .msg{border-radius:14px;background:#0f172a;box-shadow:0 18px 44px rgba(16,24,40,.24);font-weight:800}
    .empty{color:var(--pf-muted);font-weight:650}
    .profit{color:var(--pf-brand);font-weight:950}
    .loss{color:var(--pf-danger);font-weight:950}
    #orders .panel:nth-child(2){
      border-color:#d9eee8;background:linear-gradient(180deg,#ffffff 0%,#fbfffd 100%)
    }
    #orders .panel:nth-child(2) .toolbar h2:before{
      content:"";display:inline-block;width:8px;height:22px;margin-right:10px;border-radius:999px;background:var(--pf-brand);vertical-align:-4px
    }
    @media(max-width:1400px){
      .account{justify-items:start}.topbar{display:grid;gap:14px}
      .top-context,.top-actions{justify-content:flex-start}
      .shop-select{max-width:none}
    }
    @media(max-width:1200px){
      .layout{grid-template-columns:232px minmax(0,1fr)}
      .main{padding:20px}
      .topbar{margin:-20px -20px 22px;padding:16px 20px}
      .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .form-grid label,.form-grid>.sku-picker,.form-grid>.btn,#orders .panel:nth-child(2) .form-grid label,#orders .panel:nth-child(2) .form-grid .btn{grid-column:span 1}
      .kpis{grid-template-columns:repeat(2,minmax(160px,1fr))}
      .filterbar{grid-template-columns:1fr 1fr}
      .returns-filterbar{grid-template-columns:1fr 160px 140px}
    }
    @media(max-width:900px){
      .layout{grid-template-columns:1fr}
      .sidebar{position:static;height:auto}
      .nav-section{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
      .nav-section-title{grid-column:1/-1}
      .main{padding:14px}
      .topbar{position:static;margin:-14px -14px 18px;padding:14px}
      .top-context,.top-actions,.account{display:grid;width:100%;justify-items:stretch}
      .top-card,.pill,.btn{width:100%}
      .shop-select{width:100%;max-width:none}
      .form-grid,.filterbar,.returns-filterbar,.dashboard-controls,.kpis,.stock-mini-grid,.ranking-panel{grid-template-columns:1fr!important}
      .nav{gap:10px}
    }
    .quickstart-card{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr) auto;gap:16px;align-items:center;margin-bottom:16px;border:1px solid #d8eadf;background:#f7fffb;border-radius:18px;padding:18px;box-shadow:var(--pf-shadow)}
    .quickstart-card h2{margin:0;font-size:22px;color:#111827}.quickstart-card p{margin:6px 0 0;color:#64748b;line-height:1.6}.quickstart-steps{display:grid;grid-template-columns:repeat(5,minmax(86px,1fr));gap:8px}.quickstart-step{border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:10px;min-height:70px}.quickstart-step b{display:block;font-size:13px;color:#102033}.quickstart-step span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#f1f5f9;color:#64748b;margin-bottom:6px;font-weight:900}.quickstart-step.done{border-color:#bfe6d8;background:#effbf6}.quickstart-step.done span{background:#0f766e;color:#fff}.quickstart-progress{height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden;margin-top:10px}.quickstart-progress i{display:block;height:100%;background:#0f766e}.quickstart-actions{display:grid;gap:8px}.onboarding-intro{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.onboarding-intro div{border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;padding:14px}.onboarding-intro b{display:block;font-size:16px;color:#102033;margin-bottom:6px}.onboarding-help{display:inline-flex;margin-top:10px;color:#0f766e;font-weight:900;text-decoration:none;cursor:pointer}
    .floating-feedback{position:fixed;right:22px;bottom:22px;z-index:45;display:grid;grid-template-columns:auto auto;gap:8px;align-items:center;border:1px solid rgba(15,118,110,.28);border-radius:999px;background:#0f766e;color:#fff;padding:12px 16px;box-shadow:0 18px 42px rgba(15,118,110,.28);font-weight:950;cursor:grab;touch-action:none;user-select:none}.floating-feedback:active{cursor:grabbing}.floating-feedback span:first-child{font-size:18px;line-height:1}.floating-feedback:hover{filter:brightness(.98);transform:translateY(-1px)}.feedback-float-settings{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.feedback-float-settings label{display:flex;grid-template-columns:none;align-items:center;gap:8px;margin:0}.feedback-float-settings input{width:auto;height:auto}.feedback-dialog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.feedback-dialog-grid label.full{grid-column:1/-1}.feedback-dialog-grid textarea{min-height:126px;border:1px solid var(--pf-line-strong,#cbd5e1);border-radius:11px;padding:10px;resize:vertical;font:inherit}.feedback-reply{margin-top:6px;border-left:3px solid #0f766e;background:#effaf6;border-radius:8px;padding:8px 10px;white-space:normal}.feedback-admin-actions{display:grid;grid-template-columns:140px minmax(220px,1fr) auto;gap:8px;align-items:center}
    @media(max-width:900px){.quickstart-card{grid-template-columns:1fr}.quickstart-steps,.onboarding-intro{grid-template-columns:1fr}.quickstart-actions{grid-template-columns:1fr}}
    @media(max-width:900px){.floating-feedback{right:14px;bottom:14px;padding:11px 14px}.feedback-dialog-grid,.feedback-admin-actions{grid-template-columns:1fr}.feedback-dialog-grid label.full{grid-column:auto}}

.tab.ops-page{display:none}
    .tab.ops-page.active{display:grid;gap:18px}
    .ops-workbench{display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(340px,.92fr);gap:16px;align-items:stretch;min-width:0;max-width:100%}
    .ops-workbench,.ops-surface,.ops-table-panel,.ops-form,.ops-head,.ops-table-head{min-width:0}
    .ops-surface{background:#fff;border:1px solid var(--pf-line);border-radius:18px;box-shadow:var(--pf-shadow);padding:18px}
    .ops-surface.primary{border-top:4px solid var(--pf-brand)}
    .ops-surface.secondary{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
    .ops-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:16px}
    .ops-head h2{margin:0;font-size:20px;letter-spacing:-.02em;color:#101828}
    .ops-head p{margin:5px 0 0;color:var(--pf-muted);line-height:1.55}
    .ops-tag{display:inline-flex;align-items:center;height:28px;border-radius:999px;background:var(--pf-brand-soft);color:var(--pf-brand);padding:0 10px;font-size:12px;font-weight:900;white-space:nowrap}
    .ops-tag.neutral{background:#f1f5f9;color:#475569}
    .ops-form{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;align-items:end}
    .ops-form .wide{grid-column:span 12}
    .ops-form .half{grid-column:span 6}
    .ops-form .third{grid-column:span 4}
    .ops-form .quarter{grid-column:span 3}
    .ops-form .action{grid-column:span 12}
    .ops-form>button{grid-column:span 6;min-width:0;white-space:nowrap}
    .ops-form .btn{width:100%;height:44px}
    .ops-form label{font-size:12px;font-weight:850;color:#536173}
    .ops-form input,.ops-form select{height:44px;background:#fff}
    .ops-entry-panel{padding:16px}
    .ops-entry-form{grid-template-columns:150px minmax(260px,1.45fr) 130px 150px 160px 160px minmax(180px,.9fr) 128px;gap:10px}
    .ops-entry-form .date,.ops-entry-form .sku,.ops-entry-form .qty,.ops-entry-form .money,.ops-entry-form .text,.ops-entry-form .shop,.ops-entry-form .note,.ops-entry-form .action{grid-column:auto}
    .ops-entry-form .action .btn{height:44px}
    .ops-entry-form .shop input{background:#f8fafc;color:#64748b}
    .ops-section-gap{margin-top:18px}
    .ops-help{border-left:3px solid #dbe7f2;padding:8px 0 8px 12px;color:var(--pf-muted);line-height:1.6;font-size:13px}
    .ops-stack{display:grid;gap:14px}
    .ops-block{padding-top:14px;border-top:1px solid var(--pf-line)}
    .ops-block:first-child{padding-top:0;border-top:0}
    .ops-block-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
    .ops-block-title h3{margin:0;font-size:15px;color:#1f2937}
    .ops-block-title span{color:var(--pf-muted);font-size:12px}
    .ops-inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
    .ops-result{min-height:20px;margin-top:10px;color:var(--pf-muted);line-height:1.5}
.platform-preview-progress{position:relative;z-index:2;display:grid;gap:9px;margin-top:12px;padding:12px 14px;border:1px solid #b9d8ee;border-radius:12px;background:#f2f9ff;color:#174a73;box-shadow:0 6px 18px rgba(23,74,115,.08)}
.empty-product-guide{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:10px;padding:14px 16px;border:1px solid #f2c66d;border-radius:12px;background:#fff8e8;color:#7a4b00}.empty-product-guide.hide{display:none}.empty-product-guide div{display:grid;gap:3px}.empty-product-guide span{font-size:12px;line-height:1.5}.empty-product-guide .btn{flex:0 0 auto}
.platform-preview-progress.hide{display:none}.platform-preview-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:12px}.platform-preview-progress-copy b{font-size:13px}.platform-preview-progress-copy span{font-size:12px;line-height:1.45;text-align:right}
.platform-preview-progress-track{height:7px;overflow:hidden;border-radius:999px;background:#d9eaf6}.platform-preview-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:#1677b8;transition:width .18s ease}
.platform-preview-progress.processing .platform-preview-progress-track i{width:38%;animation:platform-preview-processing 1.25s ease-in-out infinite}.platform-preview-progress.error{border-color:#f3b8b8;background:#fff3f3;color:#a32222}.platform-preview-progress.error .platform-preview-progress-track{display:none}
@keyframes platform-preview-processing{0%{transform:translateX(-120%)}50%{transform:translateX(110%)}100%{transform:translateX(300%)}}
.platform-commit-status{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:start;margin-top:12px;padding:12px 14px;border:1px solid #cfd8e5;border-radius:12px;background:#f8fafc;color:#344054}.platform-commit-status b{font-size:13px}.platform-commit-status span{font-size:12px;line-height:1.55}.platform-commit-status.working{padding-left:42px;border-color:#b9d8ee;background:#f2f9ff;color:#174a73}.platform-commit-status.working:before{content:"";position:absolute;left:15px;top:14px;width:14px;height:14px;border:3px solid #b9d8ee;border-top-color:#1677b8;border-radius:50%;animation:platform-commit-spin .8s linear infinite}.platform-commit-status.blocked{border-color:#ead39b;background:#fff8e8;color:#7a5a16}.platform-commit-status.error{border-color:#f3b8b8;background:#fff3f3;color:#a32222}.platform-commit-status.success{border-color:#b7dfd4;background:#edf9f5;color:#08745f}.platform-commit-status.info{border-color:#cfd8e5;background:#f8fafc;color:#475569}.btn:disabled{cursor:not-allowed;opacity:.62}@keyframes platform-commit-spin{to{transform:rotate(360deg)}}
    .ops-table-panel{background:#fff;border:1px solid var(--pf-line);border-radius:18px;box-shadow:var(--pf-shadow);padding:18px}
    .ops-table-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}
    .ops-table-head h2{margin:0;font-size:20px;letter-spacing:-.02em}
    .ops-table-head p{margin:5px 0 0;color:var(--pf-muted);line-height:1.55}
    .ops-filterbar{display:grid;grid-template-columns:minmax(280px,1fr) 160px 160px auto;gap:10px;align-items:center;margin-bottom:14px;padding:12px;border:1px solid var(--pf-line);border-radius:14px;background:#f8fafc}
    .ops-filterbar input,.ops-filterbar .btn{height:42px}
    .ops-table{max-height:680px;border-radius:14px}
    .ops-pager{margin-top:12px;padding-top:12px;border-top:1px solid var(--pf-line)}
    .ops-mode-note{grid-column:span 12;padding:10px 12px;border-radius:12px;background:#f8fafc;color:var(--pf-muted);line-height:1.55}
    @media(max-width:1500px){.ops-entry-form{grid-template-columns:repeat(4,minmax(0,1fr))}.ops-entry-form .sku{grid-column:span 2}.ops-entry-form .note{grid-column:span 2}}
    @media(max-width:1200px){.ops-workbench{grid-template-columns:minmax(0,1fr)}.ops-form .half,.ops-form .third,.ops-form .quarter{grid-column:span 6}.ops-filterbar{grid-template-columns:1fr 1fr 1fr auto}}
    @media(max-width:760px){.ops-workbench,.ops-surface,.ops-table-panel{width:100%;max-width:100%}.ops-surface,.ops-table-panel{padding:14px;border-radius:14px}.ops-head,.ops-table-head{display:grid}.ops-form .half,.ops-form .third,.ops-form .quarter,.ops-form .action,.ops-form .wide,.ops-form>button{grid-column:span 12}.ops-inline-actions,.ops-filterbar{grid-template-columns:1fr}.ops-filterbar{padding:10px}.ops-entry-form{grid-template-columns:1fr}.ops-entry-form .date,.ops-entry-form .sku,.ops-entry-form .qty,.ops-entry-form .money,.ops-entry-form .text,.ops-entry-form .shop,.ops-entry-form .note,.ops-entry-form .action{grid-column:1}}

@media(max-width:900px){
      html,body{width:100%;overflow-x:hidden}
      .auth-shell{min-height:100svh;display:grid;grid-template-columns:1fr;background:#f5f7fb}
      .auth-visual{min-height:auto;padding:22px 18px 18px}
      .auth-visual .brand-lockup{gap:10px}
      .auth-visual .profitora-logo{width:48px;height:48px}
      .auth-brand-title{font-size:24px}
      .auth-brand-title span{font-size:12px}
      .auth-tagline{display:none}
      .auth-proof{display:none}
      .auth-form-panel{align-items:flex-start;padding:18px 14px 28px}
      .auth-card-v2{width:100%;padding:22px 18px;border-radius:12px;box-shadow:0 12px 34px rgba(7,20,38,.12)}
      .auth-card-v2 h1{font-size:26px}
      .auth-mode-tabs{grid-template-columns:1fr;gap:7px}
      .inline-action{grid-template-columns:1fr}
      .layout{display:block;min-height:100vh}
      .sidebar{position:sticky;top:0;z-index:40;height:auto;max-height:46vh;overflow:auto;padding:12px;background:#071426}
      .sidebar .brand{padding:0 4px 8px}
      .brand svg{width:34px;height:34px}
      .brand-text{font-size:16px}
      .version-badge{font-size:10px}
      .nav{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px;scroll-snap-type:x proximity}
      .nav-section{display:flex;gap:8px;flex:0 0 auto}
      .nav-section-title{display:none}
      .nav button{flex:0 0 auto;min-width:92px;height:36px;text-align:center;padding:0 10px;scroll-snap-align:start}
      .side-card{display:none}
      .main{padding:14px 12px 24px}
      .topbar{position:static;display:grid;gap:12px;margin:-14px -12px 14px;padding:14px 12px}
      .title h1{font-size:24px;line-height:1.25}
      .top-context,.top-actions,.account{justify-content:flex-start;width:100%}
      .top-card,.avatar-menu,.account .btn{width:100%;border-radius:12px}
      .shop-select{width:100%;max-width:none}
      .kpis,.grid,.form-grid,.checkout-panel,.billing-stats,.plan-cards,.ranking-panel,.owner-grid,.admin-console-grid,.qr-config-grid{grid-template-columns:1fr!important}
      .panel{padding:14px;border-radius:12px}
      .toolbar{display:grid;gap:10px;align-items:start}
      .toolbar .btn{width:100%}
      .filterbar{grid-template-columns:1fr!important}
      .table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
      .platform-preview-table{width:100%;max-width:calc(100vw - 28px);box-shadow:inset -12px 0 12px -14px rgba(15,23,42,.65)}
      .platform-preview-grid{min-width:1260px}
      .preview-filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px}
      .preview-filter-bar .btn{width:auto;min-width:0;padding:0 8px}
      table{min-width:760px}
      th,td{padding:9px 10px}
      .compact-actions{display:flex;flex-wrap:nowrap;gap:6px}
      .compact-actions .btn{height:34px;padding:0 10px;white-space:nowrap}
      .detail-action-col{width:300px;min-width:300px}
      .detail-actions-row{gap:6px}
      .detail-actions-row .btn{min-width:58px;padding:0 10px}
      .platform-tool-grid,.platform-tool-form,.inventory-adjust-form,.inventory-mode-choices,.data-tool-entry-grid,.import-step-strip{grid-template-columns:1fr}
      .platform-tool-form label,.platform-tool-form .wide,.inventory-adjust-form label,.inventory-adjust-form .wide{grid-column:auto}
      .inventory-adjust-form .btn{grid-column:auto}
      .modal-backdrop{padding:10px}
      .modal-panel{width:min(100%,calc(100vw - 20px));max-height:calc(100svh - 20px);overflow:auto;border-radius:14px;padding:14px}
      .payment-preview{min-height:auto}
      .payment-preview img,.qr-preview img{max-width:100%;max-height:70vh}
      .qr-card{grid-template-columns:1fr}
      .qr-preview{min-height:180px}
      .msg{left:12px;right:12px;bottom:12px;text-align:center}
    }
    @media(min-width:901px) and (max-width:1180px){
      .layout{grid-template-columns:220px minmax(0,1fr)}
      .sidebar{padding:18px 12px}
      .main{padding:18px}
      .topbar{display:grid;gap:14px;margin:-18px -18px 18px;padding:16px 18px}
      .account,.top-context,.top-actions{justify-content:flex-start}
      .shop-select{max-width:none}
      .kpis{grid-template-columns:repeat(2,minmax(180px,1fr))}
      .checkout-panel,.qr-config-grid{grid-template-columns:1fr!important}
      .billing-stats{grid-template-columns:repeat(2,minmax(160px,1fr))}
      .modal-panel{max-width:min(920px,calc(100vw - 36px))}
    }

.nav-alert-dot{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;margin-left:8px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:900;vertical-align:middle}
    .pay-modal-backdrop{position:fixed;inset:0;z-index:90;background:rgba(15,23,42,.42);display:flex;align-items:center;justify-content:center;padding:22px}
    .pay-modal{width:min(520px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;box-shadow:0 28px 80px rgba(15,23,42,.28)}
    .pay-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
    .pay-modal-head h2{margin:0;font-size:22px}.pay-modal-head button{border:0;background:#f1f5f9;color:#334155;border-radius:8px;width:34px;height:34px;cursor:pointer;font-weight:900}
    .pay-modal-body img{display:block;width:100%;max-width:360px;max-height:440px;object-fit:contain;margin:12px auto;background:#fff;border-radius:8px;border:1px solid #e2e8f0}
    .pay-modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:14px}
    .billing-flow{display:grid;gap:18px;min-width:0}.billing-flow>*{min-width:0}.billing-current{display:grid;grid-template-columns:minmax(260px,1fr) repeat(3,minmax(150px,220px));gap:12px;align-items:stretch}.billing-current-main{border:1px solid var(--pf-border);border-radius:16px;background:#fff;padding:18px;box-shadow:var(--pf-shadow)}.billing-current-main h2{margin:0 0 8px;font-size:22px}.billing-status-line{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.billing-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;background:#e8f5f2;color:#0f766e;font-size:12px;font-weight:900}.billing-badge.warn{background:#fff7ed;color:#b45309}.billing-badge.neutral{background:#f1f5f9;color:#475569}.billing-metric{border:1px solid var(--pf-border);border-radius:14px;background:#fff;padding:14px;box-shadow:var(--pf-shadow-soft)}.billing-metric span{display:block;color:#64748b;font-size:12px;font-weight:850}.billing-metric b{display:block;margin-top:7px;font-size:22px;color:#0f172a}.billing-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:2px 0 -4px}.billing-section-title h2{margin:0;font-size:21px}.billing-section-title p{margin:4px 0 0;color:#64748b}.billing-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px}.billing-plan-card{position:relative;border:1px solid var(--pf-border);border-radius:16px;background:#fff;padding:18px;box-shadow:var(--pf-shadow);display:grid;gap:12px;min-height:280px}.billing-plan-card.recommended{border-color:#d8aa42;background:linear-gradient(180deg,#fffaf0 0%,#fff 56%)}.billing-plan-card.selected{outline:3px solid rgba(15,118,110,.18);border-color:#0f766e}.billing-plan-tag{position:absolute;right:14px;top:14px;border-radius:999px;background:#fbf2dc;color:#7a5a16;padding:4px 9px;font-size:12px;font-weight:900}.billing-plan-card h3{margin:0;font-size:24px}.billing-price{font-size:24px;font-weight:950;color:#0f172a}.billing-price small{display:block;margin-top:4px;color:#64748b;font-size:12px;font-weight:800}.billing-plan-card ul{margin:0;padding-left:18px;color:#334155;line-height:1.8}.billing-plan-card .btn{align-self:end;width:100%}.billing-checkout{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(340px,1fr);gap:14px;align-items:stretch}.billing-checkout .checkout-card h2{margin:0}.billing-checkout-placeholder{border:1px dashed #cbd5e1;border-radius:16px;background:#fff;padding:18px;color:#64748b;text-align:center}.billing-pay-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.billing-pay-buttons .btn{width:100%;min-width:0}.billing-compare details,.billing-admin-tools details{border:1px solid var(--pf-border);border-radius:14px;background:#fff;box-shadow:var(--pf-shadow-soft);overflow:hidden}.billing-compare summary,.billing-admin-tools summary{cursor:pointer;padding:14px 16px;font-weight:900;color:#102033;list-style:none}.billing-compare summary::-webkit-details-marker,.billing-admin-tools summary::-webkit-details-marker{display:none}.billing-compare summary:after,.billing-admin-tools summary:after{content:"展开";float:right;color:#0f766e;font-size:13px}.billing-compare details[open] summary:after,.billing-admin-tools details[open] summary:after{content:"收起"}.billing-compare-body,.billing-admin-body{padding:0 16px 16px}.billing-admin-tools{display:grid;gap:14px;min-width:0}.billing-admin-tools>*,.billing-admin-body,.billing-admin-body>*{min-width:0}.billing-admin-tools .table-wrap{width:100%;max-width:100%;overflow:auto}.payment-preview.is-empty{display:grid;place-items:center;min-height:120px;background:#fff;border-style:dashed;color:#64748b}
    @media(max-width:1200px){.billing-current{grid-template-columns:1fr 1fr}.billing-plan-grid{grid-template-columns:1fr 1fr}.billing-checkout{grid-template-columns:1fr}}
    @media(max-width:900px){.billing-current,.billing-plan-grid,.billing-pay-buttons{grid-template-columns:1fr}}

:root{
      --ui2-bg:#f6f8fb;
      --ui2-surface:#ffffff;
      --ui2-surface-soft:#f8fafc;
      --ui2-line:#e6ebf2;
      --ui2-line-strong:#cbd5e1;
      --ui2-text:#111827;
      --ui2-muted:#667085;
      --ui2-faint:#98a2b3;
      --ui2-navy:#071526;
      --ui2-navy-2:#0d2238;
      --ui2-navy-3:#17314d;
      --ui2-brand:#0f766e;
      --ui2-brand-hover:#0d9488;
      --ui2-brand-soft:#e7f6f2;
      --ui2-info:#2563eb;
      --ui2-warning:#b45309;
      --ui2-warning-soft:#fff7ed;
      --ui2-danger:#dc2626;
      --ui2-danger-soft:#fff1f0;
      --ui2-gold:#b88216;
      --ui2-gold-soft:#fbf1d9;
      --ui2-radius:8px;
      --ui2-radius-lg:10px;
      --ui2-shadow:0 8px 24px rgba(16,24,40,.06);
      --ui2-shadow-pop:0 20px 54px rgba(16,24,40,.16);
    }
    html,body{background:var(--ui2-bg);color:var(--ui2-text);font-size:14px;letter-spacing:0;overflow-x:hidden}
    *{letter-spacing:0!important}
    button,input,select,textarea{font:inherit}
    .layout{grid-template-columns:256px minmax(0,1fr);width:100%;min-width:0;min-height:100vh;background:linear-gradient(90deg,var(--ui2-navy) 0 256px,var(--ui2-bg) 256px)}
    .sidebar{
      position:sticky;top:0;height:100vh;overflow:auto;padding:20px 14px 16px;
      background:linear-gradient(180deg,var(--ui2-navy) 0%,var(--ui2-navy-2) 100%);
      border-right:1px solid rgba(255,255,255,.08);box-shadow:8px 0 26px rgba(7,21,38,.10)
    }
    .brand{display:flex;align-items:center;gap:12px;padding:0 8px 16px;color:#fff}
    .brand svg{width:38px;height:38px}
    .brand-text{font-size:18px;font-weight:900;line-height:1.18}
    .brand-text small{display:block;margin-top:6px;color:#d6b25c;font-size:11px;font-weight:800}
    .version-badge{border:1px solid rgba(214,178,92,.36);background:rgba(214,178,92,.12);color:#f5d77e;border-radius:999px}
    .db-saved-time{color:#9eb3c7;line-height:1.5}.db-saved-time b{color:#f5d77e}
    .nav{display:grid;gap:14px}
    .nav-section{display:grid;gap:5px}
    .nav-section-title{padding:0 10px 4px;color:#7890a8;font-size:12px;font-weight:900}
    .nav button{
      height:40px;border:0;border-radius:var(--ui2-radius);background:transparent;color:#c8d6e5;
      text-align:left;padding:0 12px;font-weight:850;cursor:pointer;transition:background .15s,color .15s,transform .15s
    }
    .nav button:hover{background:rgba(255,255,255,.08);color:#fff;transform:translateX(1px)}
    .nav button.active{background:linear-gradient(90deg,#123b55,#1c4d65);color:#fff;box-shadow:inset 3px 0 0 #d6b25c}
    .side-card{margin-top:auto;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.06);border-radius:var(--ui2-radius-lg);color:#bfd0df;line-height:1.6}
    .main{width:100%;max-width:100%;margin:0;padding:24px 28px 38px;min-width:0}
    .topbar{
      position:sticky;top:0;z-index:35;margin:-24px -28px 24px;padding:16px 28px;
      background:rgba(246,248,251,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(230,235,242,.92);
      display:flex;align-items:flex-start;justify-content:space-between;gap:18px;max-width:calc(100% + 56px);overflow:clip
    }
    .topbar>*{min-width:0}
    .title h1{margin:0;color:#0f172a;font-size:28px;line-height:1.18;font-weight:950}
    .title p{margin:7px 0 0;color:var(--ui2-muted);line-height:1.6;max-width:680px}
    .account{display:grid;justify-items:end;gap:10px;max-width:100%;min-width:0}
    .top-context,.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;max-width:100%;min-width:0}
    .pill,.top-card{
      min-height:40px;border:1px solid var(--ui2-line);background:rgba(255,255,255,.94);color:#344054;
      border-radius:999px;box-shadow:0 1px 2px rgba(16,24,40,.04)
    }
    .top-card.stack{border-radius:var(--ui2-radius-lg);padding:8px 12px;min-height:56px}
    .top-icon{background:var(--ui2-brand-soft);color:var(--ui2-brand)}
    .tenant-pill{max-width:240px;overflow:hidden;text-overflow:ellipsis}
    .shop-select{height:40px;width:240px;max-width:30vw;border-radius:var(--ui2-radius)}
    .btn{
      height:40px;border:0;border-radius:var(--ui2-radius);background:var(--ui2-brand);color:#fff;
      padding:0 15px;font-weight:900;cursor:pointer;box-shadow:0 1px 0 rgba(255,255,255,.2) inset;
      transition:background .15s,transform .15s,box-shadow .15s,filter .15s
    }
    .btn:hover{background:var(--ui2-brand-hover);transform:translateY(-1px);box-shadow:0 10px 20px rgba(15,118,110,.14)}
    .btn.secondary{background:var(--ui2-gold-soft);color:#80520f}
    .btn.secondary:hover{background:#f6e7c2;box-shadow:0 10px 20px rgba(184,130,22,.12)}
    .btn.danger{background:var(--ui2-danger);color:#fff}
    .btn.danger:hover{background:#b91c1c;box-shadow:0 10px 20px rgba(220,38,38,.14)}
    input,select,textarea{
      height:40px;border:1px solid var(--ui2-line-strong);border-radius:var(--ui2-radius);
      background:#fff;color:#111827;padding:0 11px;font-weight:650;min-width:0;width:100%
    }
    textarea{height:auto;padding:10px 11px;line-height:1.55}
    input::placeholder,textarea::placeholder{color:#98a2b3;font-weight:600}
    input:focus,select:focus,textarea:focus{outline:3px solid rgba(15,118,110,.14);border-color:var(--ui2-brand)}
    label{gap:7px;color:#475467;font-size:13px;font-weight:850}
    .panel,.kpi,.ranking-box,.plan-card,.checkout-card,.metric-card,.platform-tool-card,.ops-surface,.ops-table-panel{
      background:var(--ui2-surface);border:1px solid var(--ui2-line);border-radius:var(--ui2-radius-lg);box-shadow:var(--ui2-shadow)
    }
    .panel{padding:20px;margin-bottom:18px}
    .toolbar{align-items:flex-start;gap:14px;margin-bottom:14px}
    .toolbar h2,.ops-head h2,.ops-table-head h2{margin:0;color:#111827;font-size:20px;line-height:1.25;font-weight:950}
    .toolbar .muted,.ops-head p,.ops-table-head p{color:var(--ui2-muted);line-height:1.6}
    .form-grid{gap:14px}
    .filterbar,.returns-filterbar,.ops-filterbar{
      padding:12px;border:1px solid var(--ui2-line);border-radius:var(--ui2-radius-lg);background:var(--ui2-surface-soft);gap:12px
    }
    .table-wrap{border:1px solid var(--ui2-line);border-radius:var(--ui2-radius-lg);background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.04)}
    table{border-collapse:separate;border-spacing:0;min-width:900px}
    th,td{padding:12px 14px;border-bottom:1px solid #edf1f6;text-align:left;vertical-align:middle;white-space:nowrap}
    th{background:#f8fafc;color:#475467;font-size:12px;font-weight:950}
    td{color:#1f2937;font-size:14px}
    tbody tr:hover td{background:#fbfdff}
    .sortable:hover{color:var(--ui2-brand)}
    .sticky-action-col,.detail-action-col{background:linear-gradient(90deg,rgba(255,255,255,.94),#fff 18%);box-shadow:-10px 0 18px rgba(16,24,40,.06)}
    th.sticky-action-col,th.detail-action-col{background:#f8fafc}
    .compact-actions{gap:8px;align-items:center}
    .compact-actions .btn,.detail-actions-row .btn{height:34px;border-radius:var(--ui2-radius);padding:0 11px;box-shadow:none}
    .detail-action-col{width:318px;min-width:318px}
    .detail-actions-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap}
    .kpis{grid-template-columns:repeat(5,minmax(160px,1fr));gap:14px}
    .kpi{min-height:122px;padding:17px;overflow:hidden}
    .kpi span,.metric-card span{color:var(--ui2-muted);font-size:13px;font-weight:900}
    .kpi b,.metric-card b{color:#111827;font-weight:950}
    .kpi b{font-size:29px;line-height:1.2}
    .kpi small,.metric-card small{color:var(--ui2-faint);font-weight:700}
    .kpi.primary{background:linear-gradient(135deg,#0f766e,#0b9b83);border-color:transparent;color:#fff}
    .kpi.primary span,.kpi.primary b,.kpi.primary small{color:#fff}
    .kpi.accent{background:linear-gradient(135deg,#fff,#fff8e7);border-color:#f0ddb0}
    .kpi.warning-card{border-color:#fed7aa;background:var(--ui2-warning-soft)}
    .kpi.out-card{border-color:#fecaca;background:#fff5f5}
    .kpi.clickable:hover,.metric-card.clickable:hover{border-color:var(--ui2-brand);transform:translateY(-2px);box-shadow:0 14px 34px rgba(15,118,110,.12)}
    .dashboard-hero{border-radius:12px;background:linear-gradient(135deg,#fff 0%,#f2fbf8 100%);border-color:var(--ui2-line);box-shadow:var(--ui2-shadow)}
    .dashboard-hero h2{font-size:24px;line-height:1.25;color:#111827}
    .dashboard-controls{gap:10px}
    .ranking-box{padding:18px}
    .ranking-rank{background:var(--ui2-brand-soft);color:var(--ui2-brand)}
    .role-badge,.member-chip,.return-status,.batch-status,.qr-status,.inventory-mode-check,.ops-tag{
      border-radius:999px;font-weight:900
    }
    .role-badge.admin,.member-chip.admin{background:var(--ui2-warning-soft);color:var(--ui2-warning)}
    .role-badge.super,.member-chip.super{background:var(--ui2-danger-soft);color:#b91c1c}
    .profit{color:var(--ui2-brand);font-weight:950}
    .loss{color:var(--ui2-danger);font-weight:950}
    .muted{color:var(--ui2-muted)}
    .modal-backdrop{background:rgba(15,23,42,.46);backdrop-filter:blur(4px)}
    .modal-panel,.pay-modal{border:1px solid var(--ui2-line);border-radius:12px;box-shadow:var(--ui2-shadow-pop)}
    .pay-modal-head button{border-radius:var(--ui2-radius)}
    .msg{z-index:140;border-radius:var(--ui2-radius-lg);background:#101828;box-shadow:0 18px 44px rgba(16,24,40,.24);font-weight:850}
    .sku-choice{border-color:#bfe6dc;background:#f0fbf8;color:var(--ui2-brand);border-radius:var(--ui2-radius)}
    .sku-menu{border-color:var(--ui2-line-strong);border-radius:var(--ui2-radius-lg);box-shadow:var(--ui2-shadow-pop);z-index:80}
    .sku-option:hover{background:#f3faf8}
    .auth-shell{background:#f5f7fb}
    .auth-visual{background:linear-gradient(135deg,#071526 0%,#0d2238 58%,#17314d 100%)}
    .auth-visual:before{opacity:.45}
    .auth-card-v2{border-radius:12px;border-color:var(--ui2-line);box-shadow:0 20px 54px rgba(16,24,40,.14)}
    .auth-card-v2 h1{color:#111827}
    .auth-card-v2 input{height:44px;border-radius:var(--ui2-radius)}
    .auth-card-v2 .btn{height:46px;background:var(--ui2-brand);color:#fff}
    .floating-feedback{
      right:22px;border:1px solid rgba(15,118,110,.25);border-radius:999px;background:var(--ui2-brand);
      box-shadow:0 16px 36px rgba(15,118,110,.24);padding:11px 15px;font-weight:950
    }
    .floating-feedback:hover{background:var(--ui2-brand-hover);filter:none}
    .feedback-float-settings{padding:12px;border:1px solid var(--ui2-line);border-radius:var(--ui2-radius-lg);background:var(--ui2-surface-soft)}
    .quickstart-card,.shop-wizard,.platform-batch-list,.payment-preview,.qr-card,.permission-card,.shop-row{
      border-radius:var(--ui2-radius-lg);border-color:var(--ui2-line);box-shadow:0 1px 2px rgba(16,24,40,.04)
    }
    .ops-surface.primary{border-top:3px solid var(--ui2-brand)}
    .ops-tag{background:var(--ui2-brand-soft);color:var(--ui2-brand)}
    .ops-tag.neutral{background:#f2f4f7;color:#475467}
    .empty{
      display:grid;place-items:center;min-height:76px;border-radius:var(--ui2-radius);
      color:var(--ui2-muted);font-weight:750;background:linear-gradient(180deg,#fff,#fafcff)
    }
    @media(max-width:1680px){
      .topbar{display:grid;gap:14px}
      .account{justify-items:start}.top-context,.top-actions{justify-content:flex-start}
      .shop-select{max-width:none}
    }
    @media(max-width:1200px){
      .layout{grid-template-columns:228px minmax(0,1fr)}
      .main{padding:20px}
      .topbar{margin:-20px -20px 22px;padding:16px 20px}
      .kpis{grid-template-columns:repeat(2,minmax(170px,1fr))}
      .filterbar,.returns-filterbar,.ops-filterbar{grid-template-columns:1fr 1fr}
    }
    @media(max-width:900px){
      .layout{display:block;background:var(--ui2-bg)}
      .sidebar{position:sticky;top:0;z-index:45;height:auto;max-height:46vh;padding:12px}
      .brand{padding:0 4px 9px}
      .brand svg{width:34px;height:34px}.brand-text{font-size:16px}
      .nav{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px;scroll-snap-type:x proximity}
      .nav-section{display:flex;gap:8px;flex:0 0 auto}
      .nav-section-title{display:none}
      .nav button{flex:0 0 auto;min-width:92px;height:36px;text-align:center;padding:0 10px;scroll-snap-align:start}
      .side-card{display:none}
      .main{padding:14px 12px 26px}
      .topbar{position:static;display:grid;margin:-14px -12px 16px;padding:14px 12px}
      .account,.top-context,.top-actions{display:grid;width:100%;max-width:none;justify-items:stretch;grid-template-columns:1fr}
      .account>*,
      .top-context>*,
      .top-actions>*,
      .top-card,.pill,.btn,.shop-select{width:100%;max-width:none;border-radius:var(--ui2-radius)}
      .top-card{display:flex}
      .top-card.stack{align-items:center}
      .tenant-pill{max-width:none}
      .kpis,.grid,.form-grid,.checkout-panel,.billing-stats,.plan-cards,.ranking-panel,.owner-grid,.admin-console-grid,.qr-config-grid,.dashboard-controls,.stock-mini-grid,.platform-tool-grid,.platform-tool-form,.inventory-adjust-form,.inventory-mode-choices{grid-template-columns:1fr!important}
      .panel{padding:14px}
      .toolbar{display:grid}
      .filterbar,.returns-filterbar,.ops-filterbar{grid-template-columns:1fr!important}
      .table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
      table{min-width:760px}
      th,td{padding:9px 10px}
      .detail-action-col{width:300px;min-width:300px}
      .modal-backdrop{padding:10px}
      .modal-panel,.pay-modal{width:min(100%,calc(100vw - 20px));max-height:calc(100svh - 20px);overflow:auto;border-radius:10px;padding:14px}
      .floating-feedback{right:14px;bottom:14px;padding:10px 13px}
    }
    .sidebar{display:flex;flex-direction:column;overflow:hidden}
    .sidebar .brand{flex:0 0 auto}
    .sidebar .nav{flex:1 1 auto;min-height:0;overflow-y:auto;padding-right:3px}
    .sidebar .nav::-webkit-scrollbar{width:6px}
    .sidebar .nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:999px}
    .side-card{flex:0 0 auto;margin-top:8px;padding:13px 12px}
    .side-card .side-footer-title{display:block;color:#f8fafc;font-weight:900}
    .side-card .side-footer-meta{display:block;margin-top:8px;color:#8fa4ba;font-size:12px;font-weight:750}
    .side-card .release-updated{color:#7890a8;font-weight:650}
    .layout{grid-template-columns:236px minmax(0,1fr)}
    .top-actions .btn.secondary,.top-actions .avatar-menu{background:#fff;color:#475467;border:1px solid var(--ui2-line);box-shadow:0 1px 2px rgba(16,24,40,.04)}
    .top-actions .btn.secondary:hover{background:#f8fafc;color:#111827}
    .ops-entry-panel{padding-bottom:16px}
    .billing-history-head{align-items:center;justify-content:space-between}
    .billing-history-head>div:first-child{display:grid;gap:5px;min-width:0}
    .billing-history-table{min-width:820px}
    .billing-order-no{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;white-space:normal;overflow-wrap:anywhere;min-width:220px}
    .billing-payment-status{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:0 10px;border:1px solid var(--ui2-line);border-radius:999px;background:#f8fafc;color:#475467;font-size:12px;font-weight:900;white-space:nowrap}
    .billing-payment-status.status-paid{border-color:#a7f3d0;background:#ecfdf5;color:#047857}
    .billing-payment-status.status-waiting_confirm{border-color:#fde68a;background:#fffbeb;color:#92400e}
    .billing-payment-status.status-failed,.billing-payment-status.status-expired,.billing-payment-status.status-cancelled,.billing-payment-status.status-canceled{border-color:#fecaca;background:#fef2f2;color:#b42318}
    .billing-history-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:var(--ui2-muted)}
    .billing-history-pager>div{display:flex;gap:8px}
    .billing-history-pager .btn{height:34px;box-shadow:none}
    .billing-history-pager .btn:disabled{opacity:.48;cursor:not-allowed;transform:none;box-shadow:none}
    .ops-entry-form{grid-template-columns:142px minmax(260px,1.35fr) 118px 134px 150px 150px minmax(170px,.9fr) 128px}
    .order-entry-form{grid-template-columns:142px minmax(250px,1.35fr) 108px 118px 104px 104px 132px 138px minmax(170px,.9fr) 126px}
    .ops-fee-row{margin-top:12px;display:grid;grid-template-columns:132px 132px minmax(0,1fr);gap:12px;align-items:end;padding:12px;border:1px solid var(--ui2-line);border-radius:14px;background:#fbfdff}
    @media(max-width:900px){
      .side-card{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;margin-top:4px;padding:9px 11px}
      .side-card .side-footer-title,.side-card .side-footer-meta{display:block;margin-top:0}
      .side-card .release-updated{flex-basis:100%}
    }
    .ops-fee-row:before{content:"费用";align-self:center;color:#667085;font-weight:950;font-size:13px}
    .ops-fee-row .half{grid-column:auto}
    .ops-fee-row input{height:40px}
    .ops-table-panel{padding-bottom:88px}
    .ops-filterbar{grid-template-columns:minmax(260px,420px) 156px 156px 92px minmax(260px,1fr)}
    .ops-filterbar .btn.secondary{background:#fff;color:#475467;border:1px solid var(--ui2-line)}
    .ops-issue-actions{display:flex;align-items:center;gap:8px;min-width:0;justify-content:flex-start;flex-wrap:wrap}
    .ops-issue-chip{height:36px;padding:0 12px;border:1px solid #d6e7f1;border-radius:999px;background:#fff;color:#344054;font-weight:800;cursor:pointer;white-space:nowrap;box-shadow:0 1px 2px rgba(16,24,40,.04)}
    .ops-issue-chip b{font-variant-numeric:tabular-nums}
    .ops-issue-chip.warn{border-color:#fedf89;background:#fffbeb;color:#92400e}
    .ops-issue-chip.loss{border-color:#fecaca;background:#fff5f5;color:#b42318}
    .ops-issue-chip.active{box-shadow:0 0 0 3px rgba(20,184,166,.14);border-color:#0f766e;background:#ecfdf5;color:#047857}
    .ops-table{max-height:calc(100vh - 390px);min-height:260px}
    .ops-table table{min-width:1120px}
    .ops-table th,.ops-table td{padding:9px 12px;font-size:13px}
    .ops-table th{height:38px}
    .ops-table th.cell-number,.ops-table th.cell-money{text-align:right}
    .ops-table th.cell-text{text-align:left}
    .ops-table th:first-child,.ops-table td:first-child{width:64px}
    .ops-table th:nth-child(2),.ops-table td:nth-child(2){width:112px}
    .cell-number,.cell-money{text-align:right;font-variant-numeric:tabular-nums}
    .cell-stock b{font-weight:850;color:#334155}
    .cell-text{max-width:210px;overflow:hidden;text-overflow:ellipsis}
    .cell-note{max-width:220px;overflow:hidden;text-overflow:ellipsis;color:#475467}
    .row-action-btn{height:30px!important;padding:0 10px!important;border:1px solid transparent!important;background:transparent!important;color:var(--ui2-brand)!important;box-shadow:none!important}
    .row-action-btn:hover,.row-action-btn:focus{background:var(--ui2-brand-soft)!important;color:#0b5f58!important;outline:none}
    .status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;border-radius:999px;padding:0 9px;font-size:12px;font-weight:900;white-space:nowrap}
    .status-badge.warning{background:#fff7ed;color:#b45309;border:1px solid #fed7aa}
    .ops-pager{min-height:46px;align-items:center;margin-bottom:10px}
    .ops-pager>div{display:flex;gap:8px;align-items:center}
    .ops-pager .btn{height:34px;background:#fff;color:#475467;border:1px solid var(--ui2-line);box-shadow:none}
    .floating-feedback{left:auto;right:28px;top:auto;bottom:28px;z-index:32;width:44px;height:44px;grid-template-columns:1fr;place-items:center;padding:0;overflow:hidden;transition:width .18s ease,padding .18s ease,box-shadow .18s ease,background .18s ease}
    .floating-feedback span:first-child{font-size:18px}
    .floating-feedback span:last-child{display:none;white-space:nowrap}
    .floating-feedback:hover,.floating-feedback:focus-visible{width:112px;grid-template-columns:auto auto;gap:8px;padding:0 14px;outline:none}
    .floating-feedback:hover span:last-child,.floating-feedback:focus-visible span:last-child{display:inline}
    .detail-actions-row{justify-content:flex-start}
    @media(max-width:1200px){
      .layout{grid-template-columns:224px minmax(0,1fr)}
      .ops-entry-form,.order-entry-form{grid-template-columns:repeat(4,minmax(0,1fr))}
      .ops-fee-row{grid-template-columns:120px 120px 1fr}
      .ops-filterbar{grid-template-columns:1fr 150px 150px 90px}
      .ops-issue-actions{grid-column:1/-1}
      .floating-feedback{right:22px;bottom:28px}
    }
    @media(max-width:900px){
      .sidebar{overflow:visible}
      .sidebar .nav{overflow-x:auto;overflow-y:hidden}
      .ops-fee-row{grid-template-columns:1fr}
      .ops-fee-row:before{content:"费用信息"}
      .ops-table-panel{padding-bottom:112px}
      .floating-feedback{left:auto;right:14px;top:auto;bottom:84px}
      .billing-history-head,.billing-history-pager{align-items:stretch;flex-direction:column}
      .billing-history-pager>div{display:grid;grid-template-columns:1fr 1fr}
    }
    .sku-drawer-backdrop{position:fixed;inset:0;z-index:70;background:rgba(15,23,42,.34);display:flex;justify-content:flex-end;padding:0;backdrop-filter:blur(2px)}
    .sku-drawer-panel{width:min(500px,100vw);height:100%;background:#fff;border-left:1px solid var(--ui2-line);box-shadow:-24px 0 60px rgba(15,23,42,.2);display:flex;flex-direction:column}
    .sku-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 26px 18px;border-bottom:1px solid var(--ui2-line);background:#fbfdff}
    .sku-drawer-head h2{margin:0;font-size:21px;line-height:1.25;letter-spacing:0;color:var(--ui2-text)}
    .sku-drawer-head .muted{display:block;margin-top:7px;line-height:1.65;font-size:13px}
    .sku-drawer-close{flex:0 0 auto;width:36px;height:36px;border:1px solid var(--ui2-line);border-radius:10px;background:#fff;color:#475467;cursor:pointer;font-size:22px;line-height:1;box-shadow:0 1px 2px rgba(16,24,40,.04)}
    .sku-drawer-close:hover{background:#f8fafc;color:#111827}
    .sku-drawer-form{display:grid;gap:15px;padding:22px 26px;overflow:auto}
    .sku-drawer-form label{gap:7px;font-weight:850;color:#344054}
    .sku-drawer-form input,.sku-drawer-form select{height:42px;border-radius:10px}
    .sku-drawer-note{padding:12px 13px;border:1px solid var(--ui2-line);border-radius:12px;background:#f8fafc;color:#667085;line-height:1.7;font-size:13px}
    .sku-drawer-actions{margin-top:auto;display:flex;justify-content:flex-end;gap:10px;padding:16px 26px;border-top:1px solid var(--ui2-line);background:#fff}
    #sku .toolbar{align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}
    #sku .toolbar h2{margin:0;line-height:40px}
    .sku-toolbar-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
    .sku-toolbar-actions input,.sku-toolbar-actions select,.sku-toolbar-actions .btn{height:40px;flex:0 1 auto}
.sku-toolbar-actions label{display:flex;align-items:center;gap:6px;white-space:nowrap}.sku-toolbar-actions label input{width:auto;height:auto}
    #skuSearch{width:clamp(240px,28vw,360px)}
    #skuCategoryFilter{width:156px}
    #skuStockFilter{width:136px}
    .sku-sort-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;margin-left:6px;color:#98a2b3;font-size:12px;line-height:1}
    .sku-list-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;color:#667085;font-size:13px;min-height:22px}
    .sku-list-meta span{display:inline-flex;align-items:center;min-height:22px}
    .sku-table{table-layout:fixed;min-width:940px}
    .sku-table th,.sku-table td{vertical-align:middle}
    .sku-table th:nth-child(1),.sku-table td:nth-child(1){width:31%;white-space:normal;line-height:1.45}
    .sku-table th:nth-child(2),.sku-table td:nth-child(2){width:13%}
    .sku-table th:nth-child(3),.sku-table td:nth-child(3){width:12%}
    .sku-table th:nth-child(4),.sku-table td:nth-child(4){width:12%}
    .sku-table th:nth-child(5),.sku-table td:nth-child(5),.sku-table th:nth-child(6),.sku-table td:nth-child(6){width:10%;text-align:right;font-variant-numeric:tabular-nums}
    .sku-table th:nth-child(7),.sku-table td:nth-child(7){width:8%;text-align:center}
    .sku-table th:nth-child(8),.sku-table td:nth-child(8){width:7%;text-align:right}
    .sku-table th.sortable{white-space:nowrap}
    .sku-name-cell{overflow-wrap:anywhere;color:#111827;font-weight:850}
    .sku-code-cell,.sku-category-cell{overflow:hidden;text-overflow:ellipsis}
    .sku-status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;border-radius:999px;padding:0 9px;font-size:12px;font-weight:900;white-space:nowrap;border:1px solid var(--ui2-line);background:#f8fafc;color:#475467}
    .sku-status-badge.ok{background:#ecfdf5;border-color:#bbf7d0;color:#047857}
    .sku-status-badge.low{background:#fff7ed;border-color:#fed7aa;color:#b45309}
    .sku-status-badge.out{background:#fef2f2;border-color:#fecaca;color:#b42318}
    .sku-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;color:#667085;font-size:13px}
    .sku-pager-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:36px}
    .sku-pager-controls select{width:auto;min-width:88px;height:36px;border-radius:10px}
    .sku-pager .btn{height:34px;box-shadow:none;border:1px solid var(--ui2-line);background:#fff;color:#475467}
    .sku-pager .btn:hover:not(:disabled){background:#f8fafc;color:#111827}
    .sku-pager .btn:disabled{opacity:.46;cursor:not-allowed;transform:none;filter:none;background:#f8fafc;color:#98a2b3}
    .sku-empty-state{display:grid;place-items:center;gap:9px;padding:42px 16px;text-align:center;color:#667085}
    .sku-empty-state b{font-size:17px;color:#344054}
    .sku-empty-state p{margin:0;max-width:420px;line-height:1.7}
    .sku-empty-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:6px}
    @media(max-width:1400px){
      .sku-toolbar-actions{justify-content:flex-start;margin-left:0;width:100%}
      #skuSearch{width:min(340px,100%)}
    }
    @media(max-width:1280px){
      .sku-table{min-width:900px}
      .sku-table th,.sku-table td{padding-left:10px;padding-right:10px}
      #sku .toolbar{align-items:flex-start}
    }
    @media(max-width:640px){
      .sku-drawer-panel{width:100vw}
      .sku-drawer-head,.sku-drawer-form,.sku-drawer-actions{padding-left:18px;padding-right:18px}
      .sku-toolbar-actions{justify-content:flex-start}
      #skuSearch,#skuCategoryFilter,#skuStockFilter{width:100%;max-width:none}
      .sku-list-meta,.sku-pager{align-items:flex-start;flex-direction:column}
    }

.internal-acceptance-form>label{grid-column:span 3}
.internal-acceptance-form textarea{width:100%;min-height:88px;border:1px solid var(--pf-border-strong);border-radius:11px;padding:10px;font:inherit;resize:vertical}
@media(max-width:1200px){.internal-acceptance-form>label{grid-column:span 6}}
@media(max-width:760px){.internal-acceptance-form>label{grid-column:span 12}}

/* V7.5.1: desktop shell owns the viewport; navigation and content scroll independently. */
@media(min-width:901px){
  html,body{height:100%;overflow:hidden}
  #appView.layout:not(.hide){height:100dvh;min-height:0;overflow:hidden}
  #appView>.sidebar{position:sticky;top:0;height:100dvh;max-height:100dvh;overflow:hidden}
  #appView>.sidebar .brand,#appView>.sidebar .side-card{flex:0 0 auto}
  #appView>.sidebar .nav{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
  #appView>.main{height:100dvh;max-height:100dvh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
}
@media(max-width:900px){
  html,body{height:auto;overflow-x:hidden;overflow-y:auto}
  #appView.layout:not(.hide){height:auto;min-height:100vh;overflow:visible}
  #appView>.sidebar{height:auto;max-height:46vh;overflow:visible}
  #appView>.sidebar .nav{overflow-x:auto;overflow-y:hidden}
  #appView>.main{height:auto;max-height:none;overflow:visible}
}

.purchase-row-locked{background:#fffbeb}
.purchase-row-locked input:disabled,.purchase-row-locked select:disabled{background:#f8fafc;color:#667085;cursor:not-allowed}
.purchase-lock-note{max-width:320px;margin-top:7px;color:#92400e;font-size:12px;line-height:1.55;white-space:normal}

/* Payment QR V1: system validation followed by super-admin preview confirmation. */
.qr-candidate{display:grid;gap:10px;margin-top:8px;padding:12px;border:1px solid #e5c76f;border-radius:10px;background:#fff9e8}
.qr-candidate .toolbar{margin:0;align-items:center;flex-wrap:wrap}
.qr-candidate-preview{display:grid;place-items:center;min-height:180px;padding:10px;border:1px solid var(--pf-border);border-radius:8px;background:#fff}
.qr-candidate-preview img{display:block;width:100%;max-width:220px;max-height:260px;object-fit:contain}
.qr-candidate-preview .qr-empty{min-height:160px}
.qr-candidate .btn{width:100%}

/* UI 2.1: shared shell and dashboard hierarchy refinement. */
@media(min-width:901px){
  #appView>.main{padding:16px 22px 36px;border-left:8px solid var(--ui2-bg)}
  #appView>.main>.topbar{
    position:relative;top:auto;z-index:auto;display:grid;
    grid-template-columns:minmax(190px,238px) minmax(0,1fr);align-items:center;gap:12px;
    width:100%;max-width:none;margin:0 0 14px;padding:10px 12px;
    overflow:hidden;background:#fff;backdrop-filter:none;
    border:1px solid var(--ui2-line);border-radius:12px;box-shadow:var(--ui2-shadow)
  }
  .topbar .title{min-width:0}
  .topbar .title h1{font-size:23px;line-height:1.25}
  .topbar .title p{margin-top:3px;line-height:1.4;font-size:12px}
  .topbar .account{width:100%;min-width:0;justify-items:stretch;gap:6px}
  .topbar .top-context,.topbar .top-actions{gap:6px;min-width:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  .topbar .top-context::-webkit-scrollbar,.topbar .top-actions::-webkit-scrollbar{display:none}
  .topbar .top-context>* ,.topbar .top-actions>*{flex:0 0 auto}
  .topbar .top-card.stack{min-height:44px;padding:5px 9px}
  .topbar .pill,.topbar .top-card{min-height:32px;padding-top:5px;padding-bottom:5px}
  .topbar .top-icon{width:22px;height:22px;font-size:12px}
  .topbar .top-card span,.topbar .top-card small{font-size:11px}
  .topbar .shop-select{width:176px;height:32px}
  .topbar .btn{height:32px;padding:0 11px;font-size:12px}
  .topbar .avatar-menu{min-width:104px}
}

@media(min-width:901px) and (max-width:1280px){
  #appView>.main{padding:14px 16px 28px}
  #appView>.main>.topbar{grid-template-columns:minmax(170px,210px) minmax(0,1fr);gap:10px;padding:10px}
  .topbar .top-context,.topbar .top-actions{justify-content:flex-start}
}

@media(min-width:901px) and (max-width:1100px){
  #appView>.main>.topbar{grid-template-columns:1fr;gap:7px}
  .topbar .title{display:flex;align-items:baseline;gap:10px}
  .topbar .title p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar .shop-select{width:150px}
  .topbar .inventory-mode-card{max-width:150px}
  .topbar .tenant-pill{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

@media(max-width:900px){
  #appView>.main>.topbar{
    margin:0 0 12px;padding:12px;background:#fff;
    border:1px solid var(--ui2-line);border-radius:12px;box-shadow:var(--ui2-shadow)
  }
  .topbar .title h1{font-size:22px;line-height:1.25}
  .topbar .title p{margin-top:3px;line-height:1.4;font-size:12px}
  .topbar .account{gap:6px}
  .topbar .top-context{display:grid;width:100%;grid-template-columns:1fr 1fr;gap:6px}
  .topbar .top-context>.top-card:first-child,.topbar .top-context>.tenant-pill{grid-column:1/-1}
  .topbar .top-context>.top-card,.topbar .top-context>.pill{width:100%;min-width:0}
  .topbar .top-card.stack{min-height:48px;padding:5px 8px}
  .topbar .top-card span,.topbar .top-card small{font-size:11px}
  .topbar .shop-select{height:34px}
  .topbar .top-actions{display:flex;width:100%;gap:6px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  .topbar .top-actions>.btn,.topbar .top-actions>.top-card{flex:0 0 auto;width:auto;min-width:max-content;height:34px;padding-left:11px;padding-right:11px;font-size:12px}
  .topbar .top-actions>.avatar-menu{max-width:190px;overflow:hidden;text-overflow:ellipsis}
}

.dashboard-metrics-panel{margin-bottom:14px;padding:14px;border:1px solid var(--ui2-line);border-radius:14px;background:#fff;box-shadow:var(--ui2-shadow)}
.dashboard-metrics-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.dashboard-metrics-head h2{margin:0;font-size:18px;line-height:1.3;color:#111827}
.dashboard-metrics-head p{margin:3px 0 0;color:var(--ui2-muted);font-size:12px;line-height:1.5}
.dashboard-metrics-head>span{flex:0 0 auto;padding:5px 9px;border:1px solid var(--ui2-line);border-radius:999px;background:#f8fafc;color:#667085;font-size:11px;font-weight:800}
.dashboard-metrics-panel .kpis{grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:10px}
.dashboard-metrics-panel .kpi{min-height:108px;padding:13px;box-shadow:none}
.dashboard-metrics-panel .kpi b{margin-top:6px;font-size:24px}
.dashboard-metrics-panel .kpi small{margin-top:6px}
.dashboard-metrics-panel .stock-mini-grid{grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--ui2-line)}
.dashboard-metrics-panel .metric-card{min-height:82px;padding:11px 13px;box-shadow:none;background:#f8fafc}
.dashboard-metrics-panel .metric-card b{margin-top:4px;font-size:20px}
.dashboard-metrics-panel .metric-card small{display:block;margin-top:4px;color:#98a2b3;font-size:11px}
.tab{min-width:0}
.tab>.panel,.tab>.ops-surface{max-width:100%}
.panel,.ops-surface{border-radius:14px}

@media(max-width:1200px){
  .dashboard-metrics-panel .kpis,.dashboard-metrics-panel .stock-mini-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important}
}

@media(max-width:640px){
  .dashboard-hero{padding:14px;margin-bottom:12px}
  .dashboard-hero h2{font-size:20px}
  .dashboard-metrics-panel{padding:12px;margin-bottom:12px}
  .dashboard-metrics-head{align-items:flex-start}
  .dashboard-metrics-head>span{display:none}
  .dashboard-metrics-panel .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dashboard-metrics-panel .stock-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dashboard-metrics-panel .kpi{min-height:104px;padding:11px}
  .dashboard-metrics-panel .kpi b{font-size:21px}
  .dashboard-metrics-panel .metric-card{min-height:78px;padding:10px}
  .dashboard-metrics-panel .metric-card b{font-size:18px}
}

/* Shipment import UI 2.0: compact list + on-demand detail drawer. */
.platform-preview-table{margin-top:8px;max-height:620px;overflow-y:auto;overflow-x:hidden;border:1px solid #dbe5f0;border-radius:14px;background:#fff;scrollbar-gutter:stable}
.platform-preview-table:after{display:none}
.platform-preview-grid{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0}
.platform-preview-grid th,.platform-preview-grid td{width:auto!important;min-width:0!important;padding:12px 14px;vertical-align:middle;line-height:1.35}
.platform-preview-grid th:nth-child(1){width:30%}.platform-preview-grid th:nth-child(2){width:24%}.platform-preview-grid th:nth-child(3){width:14%}.platform-preview-grid th:nth-child(4){width:24%}.platform-preview-grid th:nth-child(5){width:8%}
.platform-preview-grid tbody tr{height:82px}
.platform-preview-grid tbody tr:hover td{background:#f8fbfb}
.platform-preview-grid tbody tr.ready td:first-child{box-shadow:inset 3px 0 #0f8a72}
.platform-preview-grid tbody tr.pending td:first-child{box-shadow:inset 3px 0 #d99a25}
.platform-preview-grid tbody tr.exception td:first-child{box-shadow:inset 3px 0 #dc4c4c}
.preview-order-title,.preview-erp-summary,.preview-qty-summary{display:grid;gap:4px;min-width:0}
.preview-order-title b,.preview-erp-summary b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172033;font-size:13px}
.preview-order-title span,.preview-erp-summary span,.preview-qty-summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:12px}
.preview-order-title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#94a3b8;font-size:11px}
.preview-qty-summary b{color:#172033;font-size:15px}
.preview-status{display:inline-flex;align-items:center;width:max-content;border-radius:7px;padding:5px 8px;font-size:12px;font-weight:900}
.preview-status.ready{background:#e6f6f1;color:#08715e}.preview-status.pending,.preview-status.pending_shipment{background:#fff3d8;color:#9a5b00}.preview-status.duplicate{background:#eef2f6;color:#475569}.preview-status.exception{background:#feeaea;color:#b42318}
.preview-status-reason{display:block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:11px}
.btn.compact{height:34px;padding:0 12px;border-radius:9px;box-shadow:none;white-space:nowrap}
.preview-filter-bar{display:flex;gap:7px;align-items:center;overflow-x:auto;flex-wrap:nowrap;margin-top:10px;padding:10px;border:1px solid #dbe5f0;border-radius:12px;background:#f8fafc;scrollbar-width:thin}
.preview-filter{display:flex;align-items:center;gap:7px;flex:0 0 auto;height:36px;padding:0 12px;border:1px solid #dbe5f0;border-radius:9px;background:#fff;color:#475569;font:inherit;font-size:12px;font-weight:850;cursor:pointer}
.preview-filter b{min-width:18px;text-align:center;color:inherit}.preview-filter.active{border-color:#0f766e;background:#0f766e;color:#fff}
.preview-drawer{position:fixed;inset:0;z-index:120}.preview-drawer.hide{display:none}
.preview-drawer-backdrop{position:absolute;inset:0;background:rgba(7,20,38,.34);backdrop-filter:blur(1px)}
.preview-drawer-panel{position:absolute;top:0;right:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(500px,100vw);height:100dvh;background:#fff;box-shadow:-24px 0 60px rgba(15,23,42,.18)}
.preview-drawer-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 16px;border-bottom:1px solid #e5eaf0}
.preview-drawer-panel>header h3{margin:0;color:#132033;font-size:20px}.preview-drawer-panel>header span{display:block;margin-top:4px;color:#64748b;font-size:12px}
.drawer-close{width:34px;height:34px;border:0;border-radius:9px;background:#f4f6f8;color:#475569;font-size:24px;line-height:1;cursor:pointer}
.preview-drawer-scroll{overflow-y:auto;padding:2px 22px 24px}
.preview-drawer-scroll section{padding:18px 0;border-bottom:1px solid #e8edf2}.preview-drawer-scroll section:last-child{border-bottom:0}
.preview-drawer-scroll h4{margin:0 0 12px;color:#172033;font-size:15px}.drawer-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.preview-detail-grid{display:grid;grid-template-columns:86px minmax(0,1fr);gap:8px 12px;margin:0;font-size:13px}.preview-detail-grid dt{color:#64748b}.preview-detail-grid dd{margin:0;color:#172033;overflow-wrap:anywhere}
.drawer-selected-sku{display:grid;gap:4px;padding:12px;border:1px solid #dbe5f0;border-radius:11px;background:#f8fafc}.drawer-selected-sku span{color:#64748b;font-size:11px}.drawer-selected-sku b{color:#172033;font-size:14px}
.drawer-sku-picker{position:relative;margin-top:10px}.drawer-sku-picker .platform-sku-cell{min-width:0}.drawer-sku-picker .match-candidates{min-width:0;max-height:230px;overflow:auto}.candidate-hint{margin-top:7px;color:#9a6700;font-size:11px}
.preview-conversion{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:8px;align-items:end;margin:12px 0 8px}.preview-conversion label{display:grid;gap:5px;color:#64748b;font-size:11px}.preview-conversion input,.preview-conversion strong{display:flex;align-items:center;width:100%;height:40px;padding:0 10px;border:1px solid #dbe5f0;border-radius:9px;background:#fff;color:#172033;font-size:14px}.preview-conversion strong{background:#f8fafc}.preview-conversion>span{padding-bottom:11px;color:#64748b}
.drawer-money-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.drawer-money-grid span{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:9px 10px;border-radius:8px;background:#f8fafc;color:#64748b;font-size:12px}.drawer-money-grid b{color:#172033}.drawer-money-grid small{grid-column:1/-1;color:#7c8797;line-height:1.35}
.drawer-amount-warning{display:grid;gap:4px;margin-top:10px;padding:10px 11px;border:1px solid #f3c6c6;border-radius:9px;background:#fff3f3;color:#9f1d1d}.drawer-amount-warning b{font-size:12px}.drawer-amount-warning span{font-size:12px;line-height:1.5}
.drawer-amount-confirmed{display:grid;gap:4px;margin-top:10px;padding:10px 11px;border:1px solid #a7e3d2;border-radius:9px;background:#effbf7;color:#08745f}.drawer-amount-confirmed b,.drawer-amount-confirmed span{font-size:12px;line-height:1.5}
.amount-confirmation{display:grid;gap:10px;margin-top:10px;padding:12px;border:1px solid #d7dee8;border-radius:10px;background:#fbfcfe}.amount-difference{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.amount-difference b{color:#b42318}.amount-difference span{max-width:68%;color:#475569;font-size:12px;line-height:1.45;text-align:right}.amount-choice-grid{display:grid;gap:7px}.amount-choice-grid label,.amount-evidence-check{display:flex;align-items:center;gap:8px;padding:9px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#334155;font-size:12px}.amount-choice-grid label b{margin-left:auto}.amount-choice-grid input,.amount-evidence-check input{width:auto;height:auto}.amount-note{display:grid;gap:6px;color:#475569;font-size:12px}.amount-note textarea{min-height:64px;resize:vertical}.amount-confirmation>.btn{justify-self:start}.amount-confirmation>small{color:#64748b;line-height:1.45}
.preview-validation{display:grid;gap:5px;margin-top:12px;padding:12px;border-left:4px solid #64748b;border-radius:9px;background:#f8fafc}.preview-validation.ready{border-color:#0f8a72;background:#edf9f5}.preview-validation.pending,.preview-validation.pending_shipment{border-color:#d99a25;background:#fff8e8}.preview-validation.exception{border-color:#dc4c4c;background:#fff0f0}.preview-validation b{font-size:13px}.preview-validation span{color:#344054;font-size:12px;line-height:1.55}.preview-validation small{color:#64748b;font-size:11px;line-height:1.5}
.preview-drawer-panel>footer{display:grid;gap:10px;padding:12px 22px 14px;border-top:1px solid #e5eaf0;background:#fff}.drawer-footer-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.drawer-footer-controls>div{display:flex;gap:8px}.drawer-revalidation-feedback{padding:9px 11px;border-radius:9px;font-size:12px;font-weight:750;line-height:1.45}.drawer-revalidation-feedback.pending{background:#eef6ff;color:#175cd3}.drawer-revalidation-feedback.error{background:#fff0f0;color:#b42318}.mapping-memory{display:flex;align-items:center;gap:7px;color:#475569;font-size:12px}.mapping-memory input{width:auto;height:auto}
.drawer-exclusion{display:grid;gap:8px}.drawer-exclusion textarea{min-height:70px;resize:vertical}.drawer-exclusion small{color:#64748b;font-size:11px;line-height:1.5}
body.drawer-open{overflow:hidden}

@media(max-width:900px){
  .platform-preview-table{max-width:100%;overflow:visible;border:0;background:transparent}
  .platform-preview-grid{display:block;min-width:0!important}.platform-preview-grid thead{display:none}.platform-preview-grid tbody{display:grid;gap:8px}.platform-preview-grid tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;height:auto;padding:12px;border:1px solid #dbe5f0;border-radius:12px;background:#fff}.platform-preview-grid tbody tr td{display:block;padding:0;border:0!important;background:transparent!important;box-shadow:none!important}.platform-preview-grid tbody tr td:nth-child(1),.platform-preview-grid tbody tr td:nth-child(2){grid-column:1/-1}.platform-preview-grid tbody tr td:nth-child(3){grid-column:1}.platform-preview-grid tbody tr td:nth-child(4){grid-column:1}.platform-preview-grid tbody tr td:nth-child(5){grid-column:2;grid-row:3/5;align-self:end}
  .preview-order-title b,.preview-erp-summary b{white-space:normal}.preview-status-reason{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .preview-filter-bar{display:flex;grid-template-columns:none;padding:8px}.preview-filter-bar .preview-filter{width:auto;min-width:max-content}
  .preview-drawer-panel{top:auto;bottom:0;width:100%;height:min(92dvh,820px);border-radius:22px 22px 0 0}.preview-drawer-panel:before{content:"";position:absolute;top:8px;left:50%;width:52px;height:5px;border-radius:999px;background:#c5ccd5;transform:translateX(-50%)}.preview-drawer-panel>header{padding-top:24px}
}

@media(max-width:520px){
  .empty-product-guide{align-items:stretch;flex-direction:column}.empty-product-guide .btn{width:100%}
  .platform-preview-progress-copy{align-items:flex-start;flex-direction:column;gap:4px}.platform-preview-progress-copy span{text-align:left}
  .platform-preview-grid tbody tr{grid-template-columns:minmax(0,1fr) auto;padding:11px}.platform-preview-grid tbody tr td:nth-child(2){grid-column:1/-1}.platform-preview-grid tbody tr td:nth-child(3),.platform-preview-grid tbody tr td:nth-child(4){grid-column:1}.platform-preview-grid tbody tr td:nth-child(5){grid-column:2;grid-row:3/5}
  .preview-drawer-panel>header,.preview-drawer-scroll,.preview-drawer-panel>footer{padding-left:16px;padding-right:16px}.drawer-footer-controls{align-items:stretch;flex-direction:column}.drawer-footer-controls>div{display:grid;grid-template-columns:1fr 2fr}.preview-drawer-panel>footer .btn{width:100%;padding:0 10px}.preview-conversion{gap:5px}.preview-conversion input,.preview-conversion strong{padding:0 7px}.drawer-money-grid{grid-template-columns:1fr}.preview-detail-grid{grid-template-columns:76px minmax(0,1fr)}
}
.ops-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ops-head-actions .btn{min-width:104px;white-space:nowrap}
@media(max-width:760px){
  .ops-head-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .ops-head-actions .btn{min-width:0;min-height:44px;padding:0 8px}
  .ops-entry-form,.order-entry-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
  .ops-entry-form .date,.ops-entry-form .sku,.ops-entry-form .note{grid-column:1/-1}
  .ops-entry-form .qty,.ops-entry-form .money,.ops-entry-form .fee,.ops-entry-form .text,.ops-entry-form .shop{grid-column:span 1}
  .ops-entry-form label{min-width:0;white-space:nowrap}
  .ops-entry-form input,.ops-entry-form select{min-width:0;width:100%}
  .floating-feedback{position:static;inset:auto;margin:12px 14px 18px auto}
}
@media(max-width:340px){
  .ops-entry-form,.order-entry-form{grid-template-columns:minmax(0,1fr)}
  .ops-entry-form .date,.ops-entry-form .sku,.ops-entry-form .qty,.ops-entry-form .money,.ops-entry-form .fee,.ops-entry-form .text,.ops-entry-form .shop,.ops-entry-form .note{grid-column:1}
}
@media(min-width:761px) and (max-width:900px){
  .ops-entry-form,.order-entry-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ops-entry-form .date,.ops-entry-form .qty,.ops-entry-form .money,.ops-entry-form .fee,.ops-entry-form .text,.ops-entry-form .shop{grid-column:span 1}
  .ops-entry-form .sku,.ops-entry-form .note{grid-column:1/-1}
}
@media(min-width:901px) and (max-width:1500px){
  .ops-entry-form,.order-entry-form{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ops-entry-form .date,.ops-entry-form .qty,.ops-entry-form .money,.ops-entry-form .fee,.ops-entry-form .text,.ops-entry-form .shop,.ops-entry-form .note{grid-column:span 1}
  .ops-entry-form .sku{grid-column:span 2}
  .order-entry-form .note{grid-column:span 3}
}
.manual-batch-modal{position:relative;width:min(1500px,96vw);max-height:94vh;margin:auto;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.3);display:flex;flex-direction:column;overflow:hidden}
.manual-batch-head,.manual-batch-toolbar,.manual-batch-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px}
.manual-batch-head{border-bottom:1px solid #e5e7eb}.manual-batch-head h2,.manual-batch-head p{margin:0}.manual-batch-head p{margin-top:4px;color:#64748b}
.manual-batch-shop-badge{margin-left:auto;padding:9px 14px;border:2px solid #0f766e;border-radius:999px;background:#e8f5f2;color:#065f56;font-size:15px;white-space:nowrap}.manual-batch-shop-conflict{padding:11px 20px;background:#fff1f2;border-bottom:1px solid #fecdd3;color:#b91c1c;font-weight:800}.batch-confirm-shop{margin-bottom:14px;padding:12px;border:2px solid #0f766e;border-radius:10px;background:#e8f5f2;color:#065f56}.supplier-picker{position:relative;display:grid;gap:5px}.supplier-manage-link{justify-self:start;border:0;background:transparent;color:#0f766e;font-weight:800;cursor:pointer;padding:0}.supplier-menu{position:absolute;z-index:85;left:0;right:0;top:68px;max-height:260px;overflow:auto;border:1px solid #cbd5e1;border-radius:10px;background:#fff;box-shadow:0 16px 38px rgba(15,23,42,.18)}.supplier-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;border:0;border-bottom:1px solid #edf2f7;background:#fff;padding:10px 12px;text-align:left;cursor:pointer}.supplier-option:hover{background:#f1f5f9}.supplier-option span,.supplier-manager-row small{color:#64748b}.supplier-empty{padding:14px;color:#64748b;text-align:center}.supplier-manager{max-width:680px}.supplier-manager-list{margin-top:12px;max-height:56vh;overflow:auto;border:1px solid #e2e8f0;border-radius:12px}.supplier-manager-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border-bottom:1px solid #edf2f7}.supplier-manager-row:last-child{border-bottom:0}.supplier-manager-row div{display:grid;gap:4px}
.manual-batch-toolbar{justify-content:flex-start;background:#f8fafc}.manual-batch-toolbar label{display:flex;align-items:center;gap:8px}.manual-batch-toolbar input{width:150px}
.manual-batch-scroll{overflow:auto;min-height:300px}.manual-batch-table{min-width:1320px;width:100%;border-collapse:separate;border-spacing:0}.manual-batch-table th{position:sticky;top:0;z-index:2;background:#f1f5f9}.manual-batch-table td,.manual-batch-table th{padding:9px 7px;border-bottom:1px solid #e5e7eb;vertical-align:top}.manual-batch-table input{min-width:90px;width:100%}.manual-batch-table .batch-sku{min-width:220px}.manual-batch-table .batch-supplier{min-width:170px}.manual-batch-table .batch-remark{min-width:180px}.batch-row-number{font-weight:700;color:#64748b;text-align:center}.batch-unit,.batch-unit-price{display:block;padding:10px 4px;white-space:nowrap}.batch-stock{display:block;margin-top:4px}.batch-row-actions{display:flex;gap:6px}.batch-row-error{display:none;color:#b91c1c;margin-top:5px;max-width:190px}.manual-batch-row.has-error{background:#fff1f2}.manual-batch-row.has-error .batch-row-error{display:block}.manual-batch-row.has-error input{border-color:#e11d48;background:#fff}
.manual-batch-footer{border-top:1px solid #e5e7eb;flex-wrap:wrap}.manual-batch-summary{font-size:17px;font-weight:750;color:#0f172a}.manual-batch-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center}
.manual-batch-confirm{position:absolute;inset:0;background:rgba(15,23,42,.5);z-index:10;display:grid;place-items:center;padding:18px}.manual-batch-confirm-card{width:min(560px,94vw);max-height:82vh;overflow:auto;background:#fff;border-radius:16px;padding:22px;box-shadow:0 20px 60px rgba(15,23,42,.32)}.manual-batch-confirm-card h3{margin-top:0}.manual-batch-confirm-card ul{max-height:240px;overflow:auto}.batch-confirm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.batch-confirm-stats b{padding:14px 10px;background:#f1f5f9;border-radius:10px;text-align:center}
@media(max-width:760px){.manual-batch-modal{width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;border-radius:0}.manual-batch-head,.manual-batch-toolbar,.manual-batch-footer{padding:12px}.manual-batch-head{display:grid;grid-template-columns:minmax(0,1fr) 40px;padding-right:16px}.manual-batch-shop-badge{grid-column:1/-1;grid-row:2;margin:0;white-space:normal;text-align:center}.manual-batch-head .sku-drawer-close{grid-column:2;grid-row:1;justify-self:end;position:relative;z-index:2}.manual-batch-toolbar{flex-wrap:wrap}.manual-batch-scroll{padding:10px;min-height:0;flex:1}.manual-batch-table,.manual-batch-table tbody{display:block;min-width:0}.manual-batch-table thead{display:none}.manual-batch-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px;padding:12px;border:1px solid #dbe4ef;border-radius:14px;box-shadow:0 4px 14px rgba(15,23,42,.06)}.manual-batch-table td{display:block;border:0;padding:0}.manual-batch-table td::before{content:attr(data-label);display:block;font-size:12px;color:#64748b;margin-bottom:4px}.manual-batch-table .batch-row-number{grid-column:1/-1;text-align:left}.manual-batch-table .batch-row-number::before{content:'行号';display:inline;margin-right:6px}.manual-batch-table td:nth-child(3),.manual-batch-table .batch-supplier-cell,.manual-batch-table .batch-remark-cell,.manual-batch-table .batch-action-cell{grid-column:1/-1}.manual-batch-table input,.manual-batch-table .batch-sku,.manual-batch-table .batch-supplier,.manual-batch-table .batch-remark{min-width:0}.batch-row-actions{justify-content:flex-end}.manual-batch-footer{align-items:stretch}.manual-batch-footer>div{width:100%}.manual-batch-summary{text-align:center}.manual-batch-actions .btn{flex:1}.batch-confirm-stats{grid-template-columns:1fr}}

/* Single-entry forms use the topbar as their only visible shop selector. */
.ops-entry-form{align-items:end}
.ops-entry-form>label,.ops-entry-form>.sku-picker,.ops-entry-form>.supplier-picker{align-self:end;min-width:0}
.supplier-picker{display:grid;grid-template-rows:auto 44px;gap:7px;position:relative}
.supplier-label{display:block;color:#536173;font-size:12px;font-weight:850}
.supplier-input-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;min-width:0}
.supplier-input-row>input{height:44px;min-width:0}
.supplier-manage-button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--ui2-line-strong);border-radius:var(--ui2-radius);background:#f8fafc;color:var(--ui2-brand);font-size:20px;line-height:1;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}
.supplier-manage-button:hover{border-color:var(--ui2-brand);background:var(--ui2-brand-soft);transform:translateY(-1px)}
.supplier-manage-button:focus-visible{outline:3px solid rgba(15,118,110,.18);outline-offset:2px;border-color:var(--ui2-brand)}
.supplier-menu{top:70px;right:0;max-height:min(260px,42vh);overscroll-behavior:contain}
.order-entry-context{display:none;grid-column:1/-1;min-width:0;flex-wrap:wrap;gap:8px}
.order-entry-context:has(>.sku-choice:not(.hide)){display:flex}
.order-entry-context>.sku-choice{margin:0;max-width:100%;min-width:0;flex-wrap:wrap}

@media(min-width:901px) and (max-width:1500px){
  .ops-head{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .ops-head-actions{flex-wrap:nowrap}
  .ops-entry-form,.order-entry-form{grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}
  #stockIn .ops-entry-form .date{grid-column:span 3}
  #stockIn .ops-entry-form .sku{grid-column:span 6}
  #stockIn .ops-entry-form .qty{grid-column:span 3}
  #stockIn .ops-entry-form .money{grid-column:span 3}
  #stockIn .ops-entry-form .supplier-picker{grid-column:span 4}
  #stockIn .ops-entry-form .note{grid-column:span 5}
  #orders .ops-entry-form .date{grid-column:span 3}
  #orders .ops-entry-form .sku{grid-column:span 6}
  #orders .ops-entry-form .qty{grid-column:span 3}
  #orders .ops-entry-form .money,#orders .ops-entry-form .fee,#orders .ops-entry-form .text{grid-column:span 3}
  #orders .ops-entry-form .note{grid-column:1/-1}
}
@media(min-width:1280px){
  #stockIn .ops-entry-form{grid-template-columns:136px minmax(180px,1.6fr) 88px 110px minmax(190px,1.2fr) minmax(130px,1fr);gap:12px}
  #stockIn .ops-entry-form .date,#stockIn .ops-entry-form .sku,#stockIn .ops-entry-form .qty,#stockIn .ops-entry-form .money,#stockIn .ops-entry-form .supplier-picker,#stockIn .ops-entry-form .note{grid-column:auto}
  #orders .ops-entry-form{grid-template-columns:132px minmax(180px,1.7fr) 72px 96px 80px 80px minmax(105px,.9fr) minmax(120px,1fr);gap:10px}
  #orders .ops-entry-form .date,#orders .ops-entry-form .sku,#orders .ops-entry-form .qty,#orders .ops-entry-form .money,#orders .ops-entry-form .fee,#orders .ops-entry-form .text,#orders .ops-entry-form .note{grid-column:auto}
}
@media(max-width:900px){
  .ops-head{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
  .ops-head-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .ops-head-actions .btn{width:100%;min-width:0;min-height:44px;padding:0 8px}
  .ops-entry-form,.order-entry-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
  .ops-entry-form .date,.ops-entry-form .sku,.ops-entry-form .supplier-picker,.ops-entry-form .text,.ops-entry-form .note{grid-column:1/-1}
  .ops-entry-form .qty,.ops-entry-form .money,.ops-entry-form .fee{grid-column:span 1}
  .floating-feedback{position:static;inset:auto;margin:12px 14px 18px auto}
}
@media(max-width:760px){
  .supplier-input-row{grid-template-columns:minmax(0,1fr) 44px}
  .supplier-menu{max-height:min(240px,38vh)}
}
@media(max-width:340px){
  .ops-entry-form,.order-entry-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ops-entry-form .date,.ops-entry-form .sku,.ops-entry-form .supplier-picker,.ops-entry-form .text,.ops-entry-form .note{grid-column:1/-1}
  .ops-entry-form .qty,.ops-entry-form .money,.ops-entry-form .fee{grid-column:span 1}
}
/* Profitora Auth UI 3.0 */
.auth-shell{grid-template-columns:minmax(0,3fr) minmax(480px,2fr);min-height:100svh}
.auth-visual{padding:clamp(38px,4.2vw,72px) clamp(42px,5vw,92px);justify-content:space-between}
.auth-brand-story{width:min(720px,100%);margin-bottom:clamp(24px,8vh,88px)}
.auth-tagline{max-width:720px;font-size:clamp(32px,2.4vw,42px);letter-spacing:-.02em}
.auth-proof{max-width:720px;gap:12px;margin-top:32px}.auth-proof div{padding:13px 15px}.auth-proof b{font-size:22px}
.auth-form-panel{padding:28px clamp(24px,3vw,52px);align-items:center;justify-content:center}
.auth-card-v2{width:min(432px,100%);height:auto;padding:28px 30px;border-radius:16px;box-shadow:0 18px 52px rgba(7,20,38,.13)}
.auth-card-head{margin-bottom:18px}.auth-eyebrow{display:block;margin-bottom:7px;color:#0f766e;font-size:10px;font-weight:950;letter-spacing:.14em}.auth-card-v2 h1{font-size:28px}.auth-card-v2 p{margin:6px 0 0;line-height:1.5}
.auth-mode-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;border-radius:11px;background:#f1f5f9;margin-bottom:16px}.auth-mode-tabs button{height:38px;border:0;background:transparent;font-size:13px}.auth-mode-tabs button.active{background:#fff;color:#0f766e;border-color:transparent;box-shadow:0 2px 8px rgba(15,23,42,.09)}.auth-register-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.auth-card-v2 label{margin-bottom:12px}.auth-card-v2 input{height:44px;background:#fff}.auth-card-v2 .auth-primary{margin-top:2px;height:46px;background:#0f766e;color:#fff}.auth-card-v2 .auth-primary:hover{background:#0c665f}
.inline-action{grid-template-columns:minmax(0,1fr) 124px;align-items:end}.inline-action>label{margin-bottom:0}.auth-send-button{height:44px!important;width:124px!important;margin-bottom:12px;background:#e8f5f2!important;color:#0f766e!important;box-shadow:none!important}.auth-send-button:disabled{cursor:not-allowed;opacity:.68;transform:none}
.password-field{position:relative;display:block}.password-field input{padding-right:48px}.password-toggle{position:absolute;right:5px;top:5px;width:38px;height:38px;border:0;border-radius:9px;background:transparent;cursor:pointer}.password-toggle:before{content:"";position:absolute;left:10px;top:11px;width:16px;height:12px;border:2px solid #64748b;border-radius:80% 15%;transform:rotate(45deg)}.password-toggle:after{content:"";position:absolute;left:17px;top:16px;width:4px;height:4px;border-radius:50%;background:#64748b}.password-toggle span{font-size:0}.password-toggle:hover,.password-toggle:focus-visible{background:#eefbf7;outline:2px solid rgba(15,118,110,.18)}.password-toggle.revealed:before{border-color:#0f766e}.password-toggle.revealed:after{background:#0f766e}
.auth-linkbar{justify-content:flex-end;margin-top:10px}.auth-linkbar button{color:#526174}.auth-help{margin:-1px 0 12px;padding:9px 11px;border-radius:9px;background:#f8fafc;color:#64748b;font-size:12px;line-height:1.5}.auth-notice{min-height:20px;margin-top:10px;border-radius:9px;font-size:13px;line-height:1.5}.auth-notice.info,.auth-notice.success,.auth-notice.error{padding:9px 11px}.auth-notice.info{background:#eff6ff;color:#1d4ed8}.auth-notice.success{background:#ecfdf5;color:#047857}.auth-notice.error{background:#fef2f2;color:#b42318}.auth-switch{display:flex;justify-content:center;gap:7px;margin-top:14px;padding-top:14px;border-top:1px solid #e8edf3;color:#64748b}.auth-switch button{border:0;background:transparent;color:#0f766e;font-weight:900;cursor:pointer}.social-proof{display:none}
@media(min-width:901px) and (max-width:1180px){.auth-shell{grid-template-columns:minmax(0,1fr) 480px}.auth-visual{padding:38px 42px}.auth-brand-title{font-size:34px}.auth-brand-title span{font-size:15px}.auth-brand-story{margin-bottom:24px}.auth-tagline{font-size:30px}.auth-proof{grid-template-columns:1fr;gap:8px;margin-top:24px}.auth-proof div{display:flex;align-items:baseline;gap:10px}.auth-proof b{font-size:19px}.auth-proof span{margin-top:0}.auth-form-panel{padding:24px}.auth-card-v2{width:432px}}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-visual{min-height:auto;padding:18px 16px}.auth-visual .brand-lockup{gap:10px}.auth-visual .profitora-logo{width:46px;height:46px}.auth-brand-story{display:none}.auth-form-panel{padding:16px 12px 24px;align-items:flex-start;justify-content:center}.auth-card-v2{width:min(432px,100%);padding:22px 20px}.auth-card-head{margin-bottom:16px}.auth-mode-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.auth-register-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-mode-tabs button{font-size:12px}.inline-action{grid-template-columns:minmax(0,1fr) 112px}.auth-send-button{width:112px!important}.auth-brand-title{font-size:23px}.auth-brand-title span{font-size:11px}.auth-switch{margin-top:12px;padding-top:12px}#recoveryModal .compact-actions{width:100%;flex-wrap:wrap}#recoveryModal .compact-actions .btn{flex:1 1 150px;min-width:0;height:auto;min-height:40px;white-space:normal}}
@media(max-width:420px){.auth-form-panel{padding-inline:12px}.auth-card-v2{padding:20px 18px}.auth-card-v2 h1{font-size:26px}.auth-mode-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.auth-register-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-mode-tabs button{padding:0 3px;font-size:11px}.inline-action{grid-template-columns:minmax(0,1fr) 108px;gap:7px}.auth-send-button{width:108px!important}}
