:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f5f7fa;color:#1f2937}*{box-sizing:border-box}body{margin:0;min-width:320px}.page{min-height:100vh;display:grid;place-items:center;padding:32px}.panel{width:min(720px,100%);padding:32px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 12px 32px rgb(15 23 42/8%)}.panel h1{margin:0 0 12px;font-size:28px}.panel p{margin:0;color:#64748b}.login-panel{max-width:440px}.eyebrow{color:#2563eb!important;font-size:12px;font-weight:700;letter-spacing:1.2px}.hint,.muted{font-size:14px;line-height:1.6}.hint{margin-top:18px!important;font-size:12px}.form{display:grid;grid-gap:16px;gap:16px;margin-top:24px}.admin-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;grid-gap:12px;gap:12px}.admin-form label{display:grid;grid-gap:6px;gap:6px;color:#334155;font-size:14px;font-weight:600}.compact{padding:6px 10px;font-size:12px}.store-actions{display:grid;grid-gap:5px;gap:5px;white-space:normal}.store-actions label{display:flex;align-items:center;gap:5px;font-size:12px}.form label{display:grid;grid-gap:6px;gap:6px;color:#334155;font-size:14px;font-weight:600}input{width:100%;border:1px solid #cbd5e1;border-radius:6px;padding:10px 12px;font:inherit}button{border:0;border-radius:6px;padding:10px 16px;background:#2563eb;color:#fff;cursor:pointer;font:inherit;font-weight:600}button:disabled{cursor:wait;opacity:.65}.secondary{background:transparent;border:1px solid #cbd5e1;color:#334155}.error{color:#b91c1c!important;font-size:13px}.app-page{min-height:100vh;padding-bottom:48px}.shell{min-height:100vh;display:grid;grid-template-columns:220px minmax(0,1fr);background:#f5f7fa}.sidebar{display:flex;flex-direction:column;padding:24px 14px;background:#0f172a;color:#e2e8f0}.brand{padding:4px 12px 28px}.brand strong{display:block;margin-top:4px;font-size:22px;color:#fff}.sidebar nav{display:grid;grid-gap:4px;gap:4px}.nav-button{width:100%;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:#cbd5e1;text-align:left;font-size:14px;font-weight:500}.nav-button.active,.nav-button:hover{background:#1e293b;color:#fff}.sidebar-footer{display:grid;grid-gap:10px;gap:10px;margin-top:auto;padding:16px 12px 0;border-top:1px solid #334155;font-size:13px}.sidebar-footer .nav-button{padding-left:0}.workspace{min-width:0;padding-bottom:48px}.role-label{padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px}.list-panel{width:min(1120px,calc(100% - 40px));margin:24px auto 0}.list-panel .muted{margin-top:6px}table{width:100%;border-collapse:collapse;font-size:14px}td,th{padding:13px 12px;border-bottom:1px solid #e2e8f0;text-align:left;white-space:nowrap}th{background:#f8fafc;color:#475569;font-size:12px;font-weight:700}td{color:#334155}.permission-strip{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:20px;padding-top:16px;border-top:1px solid #e2e8f0;color:#475569;font-size:13px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px clamp(20px,5vw,72px);background:#fff;border-bottom:1px solid #e5e7eb}.topbar strong{display:block;margin-top:6px;font-size:20px}.user-actions{display:flex;align-items:center;gap:12px;color:#475569;font-size:14px}.notice{padding:12px 16px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:#1e40af;font-size:14px}.content-grid,.notice,.sales-panel,.stats{margin:24px auto 0;width:min(1120px,calc(100% - 40px))}.stats{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:16px;gap:16px}.stats article{padding:20px;background:#fff;border:1px solid #e5e7eb;border-radius:8px}.stats span,.stats strong{display:block}.stats span{color:#64748b;font-size:13px}.stats strong{margin-top:12px;font-size:28px}.content-grid{display:grid;grid-template-columns:1.2fr .8fr;grid-gap:16px;gap:16px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.section-title h2{margin:0;font-size:18px}.section-title span{color:#64748b;font-size:13px}.quota-list,.store-list{display:grid;grid-gap:12px;gap:12px}.quota-list div,.store-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f1f5f9}.quota-list div:last-child,.store-row:last-child{border-bottom:0}.store-row p{margin-top:4px;font-size:12px}.tag{padding:4px 8px;border-radius:999px;background:#dcfce7;color:#166534;font-size:12px}.quota-list span{color:#64748b;font-size:14px}.sales-panel{margin-top:16px}.sales-empty{padding:28px 0;color:#64748b;text-align:center;border-top:1px solid #f1f5f9}@media (max-width:760px){.shell{grid-template-columns:1fr}.sidebar{position:static;padding:14px}.brand{padding-bottom:14px}.sidebar nav{grid-template-columns:repeat(2,1fr)}.sidebar-footer{margin-top:14px}.topbar,.user-actions{align-items:flex-start;flex-direction:column}.content-grid,.stats{grid-template-columns:1fr 1fr}}@media (max-width:900px){.admin-form{grid-template-columns:1fr 1fr}}@media (max-width:520px){.content-grid,.stats{grid-template-columns:1fr}.stats strong{font-size:24px}}.topbar-user{display:flex;align-items:center;gap:12px;color:#475569;font-size:14px}.demo-content{width:min(1200px,calc(100% - 40px));margin:24px auto}.demo-banner{padding:12px 16px;background:#eaf2ff;border:1px solid #bfdbfe;border-radius:8px;color:#1e40af;font-size:14px}.demo-content .notice{width:100%;margin:12px 0}.demo-panel{width:100%;margin-top:16px;box-shadow:none}.demo-panel h2{margin:0 0 6px;font-size:22px}.demo-panel h3{margin:28px 0 12px;font-size:17px}.demo-panel .muted{margin-bottom:22px}.demo-actions,.demo-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}.demo-toolbar input{flex:1 1 210px;max-width:350px}.demo-actions input,.demo-toolbar select{min-width:180px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;font:inherit}.demo-actions input{width:260px}.demo-subline{display:block;margin-top:4px;color:#94a3b8}.demo-badge{display:inline-block;padding:4px 8px;background:#eff6ff;color:#1d4ed8;border-radius:4px;font-size:12px}.demo-empty{padding:40px 12px;color:#64748b;text-align:center}.demo-summary{padding:16px;margin:16px 0;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px}.demo-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));grid-gap:14px;gap:14px;margin:18px 0}.demo-image-card{display:grid;grid-gap:8px;gap:8px;text-align:left;background:#fff;color:#334155;border:1px solid #e2e8f0;padding:12px}.demo-image-card small{color:#64748b}.demo-image-placeholder{display:grid;place-items:center;min-height:140px;background:#eef2f7;color:#64748b;border:1px dashed #cbd5e1;border-radius:6px}.demo-settings{margin:20px 0;border-top:1px solid #e2e8f0}.demo-settings div{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #e2e8f0}.demo-settings span{color:#64748b}.demo-overlay{position:fixed;inset:0;z-index:30;background:rgba(15,23,42,.45)}.demo-drawer{position:absolute;top:0;right:0;width:min(440px,100%);height:100%;overflow:auto;padding:28px;background:#fff;box-shadow:-12px 0 30px rgba(15,23,42,.12)}.demo-close{float:right}.demo-drawer .demo-image-placeholder{margin-top:22px}.demo-panel input[type=checkbox]{width:auto}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}@media (max-width:760px){.demo-content{width:calc(100% - 24px);margin:12px auto}.demo-panel{padding:18px}.topbar-user{flex-wrap:wrap}.sidebar{padding:12px}.brand{padding:2px 4px 8px}.brand strong{font-size:18px}.sidebar nav{display:flex;overflow-x:auto;gap:4px;padding-bottom:4px}.sidebar .nav-button{width:auto;flex:0 0 auto;white-space:nowrap;padding:8px 10px}.sidebar-footer{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 0;margin-top:2px}.topbar{padding:14px}.topbar strong{font-size:18px}.shell{min-width:0}.workspace{width:100%;overflow:hidden}.sidebar-footer .nav-button{width:auto}.demo-actions input,.demo-toolbar input,.demo-toolbar select{max-width:100%;width:100%;flex-basis:100%}.demo-panel{overflow:hidden}.demo-actions button{max-width:100%}}.commerce-page{width:min(1320px,calc(100% - 40px));margin:24px auto}.commerce-note{padding:11px 15px;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;color:#1e40af;font-size:14px}.commerce-panel{width:100%;margin-top:16px;padding:24px;box-shadow:none}.commerce-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.commerce-heading h2{margin:0 0 6px;font-size:24px}.commerce-heading p{margin:0;color:#64748b;font-size:14px}.commerce-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));grid-gap:12px;gap:12px;padding:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.commerce-batch-controls label,.commerce-edit-label,.commerce-filters label{display:grid;grid-gap:6px;gap:6px;color:#475569;font-size:13px;font-weight:600}.commerce-batch-controls input,.commerce-batch-controls select,.commerce-filters input,.commerce-filters select{width:100%;min-width:0;padding:9px 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#1f2937;font:inherit}.commerce-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:16px 0}.commerce-actions span{margin-right:auto;color:#64748b;font-size:14px}.commerce-table{border:1px solid #e2e8f0;border-radius:7px}.commerce-table table{min-width:1050px}.commerce-table td,.commerce-table th{padding:12px 10px;vertical-align:middle}.commerce-table input[type=checkbox]{width:16px;height:16px}.commerce-table small{display:block;margin-top:5px;color:#64748b;font-size:12px}.commerce-product{display:flex;align-items:center;gap:10px}.commerce-thumb{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border:1px dashed #cbd5e1;background:#f1f5f9;color:#64748b;font-size:10px;white-space:normal;text-align:center}.commerce-status{display:inline-block;padding:5px 8px;border-radius:5px;background:#eaf3ff;color:#1d4ed8;font-size:12px;white-space:nowrap}.commerce-status.danger{background:#fef2f2;color:#b91c1c}.commerce-empty{padding:36px 10px;color:#64748b;text-align:center}.commerce-feedback{padding:12px 14px;border-radius:6px;background:#ecfdf5;color:#047857!important;margin:10px 0!important}.commerce-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-top:15px;color:#64748b;font-size:13px}.commerce-tabs{display:flex;gap:6px;margin:16px 0;border-bottom:1px solid #e2e8f0}.commerce-tabs button{border-radius:6px 6px 0 0;background:transparent;color:#475569}.commerce-tabs button.active{background:#eaf3ff;color:#1d4ed8;border-bottom:2px solid #2563eb}.commerce-price-link{padding:0;background:transparent;color:#1d4ed8;font-weight:700}.commerce-analysis,.commerce-batch{margin-top:24px;padding:20px;border:1px solid #bfdbfe;border-radius:8px;background:#f8fbff}.commerce-analysis h3,.commerce-batch h3{margin:0 0 12px;font-size:18px}.commerce-batch-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:14px 0}.commerce-batch-controls input,.commerce-batch-controls select{min-width:180px}.commerce-batch .table-wrap{margin:18px 0}.commerce-analysis-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:12px;gap:12px;margin:18px 0}.commerce-analysis-grid div{padding:18px;border:1px solid #dbeafe;background:#fff;border-radius:7px}.commerce-analysis-grid span,.commerce-analysis-grid strong{display:block}.commerce-analysis-grid span{color:#64748b;font-size:13px}.commerce-analysis-grid strong{margin-top:8px;font-size:21px}.commerce-overlay{position:fixed;inset:0;z-index:40;background:rgba(15,23,42,.45)}.commerce-drawer{position:absolute;top:0;right:0;width:min(480px,100%);height:100%;overflow:auto;padding:28px;background:#fff;box-shadow:-12px 0 30px rgba(15,23,42,.14)}.commerce-close{float:right}.commerce-drawer h2{margin:4px 0 10px}.commerce-drawer h3{margin:28px 0 10px}.commerce-drawer dl{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px;border-top:1px solid #e2e8f0;padding-top:14px}.commerce-drawer dt{color:#64748b}.commerce-drawer dd{margin:0;text-align:right}.commerce-edit-label{margin:24px 0 14px}.commerce-compare{display:grid;grid-gap:10px;gap:10px;padding:16px;margin:14px 0;background:#eff6ff;border-radius:7px}.commerce-compare strong{color:#1d4ed8}@media (max-width:760px){.commerce-page{width:calc(100% - 24px);margin:12px auto}.commerce-panel{padding:16px}.commerce-heading{align-items:flex-start;flex-direction:column}.commerce-filters{grid-template-columns:1fr 1fr}.commerce-analysis-grid{grid-template-columns:1fr}.commerce-actions span{flex-basis:100%}}@media (max-width:480px){.commerce-filters{grid-template-columns:1fr}.commerce-tabs{overflow-x:auto;white-space:nowrap}}.order-shortcuts{display:flex;gap:8px;overflow-x:auto;padding:4px 0 16px}.order-shortcuts button{flex:0 0 auto;background:#f1f5f9;color:#334155;padding:9px 12px;font-size:13px}.order-shortcuts button.active{background:#dbeafe;color:#1d4ed8}.order-shortcuts strong{margin-left:5px;font-weight:700}.order-timeline{margin:12px 0 24px;padding-left:24px;border-left:2px solid #bfdbfe;list-style:none}.order-timeline li{position:relative;display:grid;grid-gap:4px;gap:4px;padding:0 0 20px 12px}.order-timeline li:before{content:"";position:absolute;left:-31px;top:3px;width:11px;height:11px;border-radius:50%;background:#2563eb;border:2px solid #fff}.order-timeline time{color:#64748b;font-size:12px}.workspace{--business-width:min(1600px,calc(100% - 48px))}.workspace .commerce-page,.workspace .demo-content,.workspace .entity-page,.workspace>.content-grid,.workspace>.list-panel,.workspace>.notice,.workspace>.overview-activity,.workspace>.sales-panel,.workspace>.stats{width:var(--business-width)}.workspace .commerce-page,.workspace .content-grid,.workspace .demo-content,.workspace .entity-page,.workspace .list-panel,.workspace .overview-activity,.workspace .sales-panel,.workspace .stats{margin-left:auto;margin-right:auto}.workspace .panel:not(.login-panel){max-width:none}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.overview-activity{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);grid-gap:16px;gap:16px;margin-top:16px}.overview-activity .panel{width:100%;min-width:0}.entity-page{margin-top:24px}.entity-panel{width:100%;margin-top:16px;box-shadow:none}.entity-company{margin-top:14px;border:1px solid #dbe3ed;border-radius:8px;background:#fff}.entity-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:14px 16px;border-bottom:1px solid #e2e8f0;font-size:13px}.entity-id,.entity-row>span{color:#64748b}.entity-row>.entity-expand{flex:1 1 220px;text-align:left;padding:4px 0;background:transparent;color:#172554;font-weight:700}.entity-children{padding:4px 18px 18px 30px}.entity-account{margin-top:10px;border-left:3px solid #bfdbfe;background:#f8fafc}.entity-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 0}.entity-toolbar>:first-child{margin-right:auto}.entity-toolbar select{width:auto;max-width:100%;padding:8px;border:1px solid #cbd5e1;border-radius:6px}.entity-stores{padding:0 16px 14px 24px}.entity-store{background:#fff}.entity-store strong{flex:1 1 160px}.task-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:10px;gap:10px;margin:18px 0}.task-summary div{padding:14px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc}.task-summary span,.task-summary strong{display:block}.task-summary span{color:#64748b;font-size:12px}.task-summary strong{margin-top:5px;font-size:20px}@media (max-width:1100px){.overview-activity{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.workspace{--business-width:calc(100% - 24px)}.entity-panel{padding:16px}.entity-children,.entity-stores{padding-left:10px}}@media (max-width:520px){.stats,.task-summary{grid-template-columns:1fr 1fr}.entity-panel .section-title{flex-wrap:wrap}}.shell{height:100dvh}.shell,.sidebar{min-height:0;overflow:hidden}.sidebar nav,.workspace{min-height:0;overflow-y:auto;overscroll-behavior:contain}.workspace{height:100dvh;overflow-x:hidden}.topbar{position:-webkit-sticky;position:sticky;top:0;z-index:20}.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.commerce-drawer,.demo-drawer{overflow-y:auto;overscroll-behavior:contain}.workspace .collection-page{width:var(--business-width);margin:24px auto}.collection-panel{width:100%;margin:16px 0;box-shadow:none;padding:24px}.collection-batch,.collection-import,.entity-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.collection-import textarea,.entity-import textarea{flex:1 1 420px;width:100%;min-height:90px}.collection-batch select,.collection-drawer select,.collection-import select,.entity-panel select{padding:9px;border:1px solid #cbd5e1;border-radius:6px;background:#fff}.collection-thumb{width:48px;height:48px;object-fit:cover;vertical-align:middle;margin-right:8px}.entity-import{margin-top:24px;padding-top:18px;border-top:1px solid #e2e8f0}.secret-paste{-webkit-text-security:disc}.entity-file{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:6px;font-size:13px;cursor:pointer;background:#fff}.entity-file input{width:180px;padding:0;font-size:12px}.collection-batch{margin-top:18px;padding:14px;background:#eff6ff}.collection-batch-preview{flex:1 1 100%}.collection-drawer{width:min(1180px,100%)}.collection-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:20px;gap:20px}.collection-editor section{min-width:0}.collection-editor label,.commerce-drawer>label{display:grid;grid-gap:6px;gap:6px;margin:10px 0;font-size:13px}.collection-editor textarea,.commerce-drawer textarea{width:100%;min-height:72px;padding:10px;border:1px solid #cbd5e1;border-radius:6px}.collection-images{display:grid;grid-gap:10px;gap:10px;margin-top:10px}.collection-images>div{border:1px solid #e2e8f0;padding:8px}.collection-images>div[draggable]{cursor:-webkit-grab;cursor:grab}.collection-images img{width:100%;max-height:150px;object-fit:contain}.collection-images small{display:block}.collection-images button{margin:4px}.collection-footer{position:-webkit-sticky;position:sticky;bottom:0;padding:12px 0;background:#fff;border-top:1px solid #e2e8f0}@media (max-width:900px){.collection-editor{grid-template-columns:1fr 1fr}}@media (max-width:760px){.shell{display:flex;flex-direction:column}.sidebar{flex:0 0 auto;max-height:150px}.sidebar nav{overflow-x:auto;overflow-y:hidden}.workspace{flex:1 1;height:auto}.workspace .collection-page{margin:12px auto}.collection-editor{grid-template-columns:1fr}}.source-draft{width:100%;padding:14px;margin:8px 0;background:#fff;border:1px solid #dbe4ef;border-radius:8px}.source-draft-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px;margin-top:10px}.commerce-drawer>label,.source-draft-grid label{display:grid;grid-gap:5px;gap:5px;min-width:0}.commerce-drawer>label input,.source-draft-grid input,.source-draft-grid textarea{width:100%;min-width:0}.source-draft-grid textarea{min-height:55px}.source-sync-target{display:block;margin:10px 0}.source-detail-image{max-width:100%;max-height:260px;object-fit:contain}.source-image-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #e2e8f0}.source-image-row img{width:48px;height:48px;object-fit:cover}.source-receive{margin:16px 0;padding:14px;border:1px solid #dbe4ef;border-radius:8px;background:#f8fafc}.source-receive summary{cursor:pointer;font-weight:600}.source-receive textarea{display:block;width:100%;min-height:110px;margin:10px 0;padding:10px;border:1px solid #cbd5e1;border-radius:6px}@media (max-width:900px){.source-draft-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.source-draft-grid{grid-template-columns:1fr}}