*{box-sizing:border-box}
:root{font-family:Arial,"Microsoft YaHei",sans-serif;color:#1d2939;background:#f5f7fb}
html,body{width:100%;height:100%;margin:0}
body{background:#f5f7fb;color:#1d2939;font:14px/1.5 Arial,"Microsoft YaHei",sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#102a56,#285faf)}
.loginbox{width:min(400px,calc(100% - 32px));padding:34px;background:#fff;border-radius:14px;box-shadow:0 20px 55px #0004}
.login h1{margin:0 0 18px;color:#143c7d}
.field{display:grid;gap:6px;margin:15px 0}
.field input,.field select,.field textarea{width:100%;padding:10px;border:1px solid #d7e0ee;border-radius:7px;background:#fff;color:#1d2939}
.primary,.ghost,.danger{min-height:38px;padding:8px 14px;border:0;border-radius:7px}
.primary{background:#215db5;color:#fff}.ghost{background:#edf3fc;color:#174b98}.danger{background:#fff0ef;color:#b42318}.full{width:100%}
.app{min-height:100vh;display:grid;grid-template-columns:225px minmax(0,1fr)}
.side{background:#102a56;padding:20px 14px;color:#cdd9ed}
.brand{padding:0 11px 22px;color:#fff;font-size:21px;font-weight:800}
.usercard{margin-bottom:16px;padding:10px 11px;border-radius:8px;background:#183b70;font-size:13px}
.nav button{display:block;width:100%;margin:3px 0;padding:10px 11px;border:0;border-radius:7px;background:transparent;color:#cdd9ed;text-align:left}
.nav button.active,.nav button:hover{background:#2861b6;color:#fff}
.app>main{min-width:0;background:#f5f7fb}
.top{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid #e6ebf3;background:#fff}
.top-page-title{color:#123d79;font-size:22px}
.page{width:100%;padding:20px 24px}
.page h1{color:#143b79;font-size:23px}
.panel,.card{border:1px solid #e1e7ef;border-radius:10px;background:#fff;box-shadow:0 2px 8px #173b7008}
.panel{padding:18px}.card{padding:18px}
.metrics{display:grid;gap:16px;margin-bottom:20px}
.card strong{display:block;margin:6px 0;color:#174b98;font-size:30px}
.muted{color:#667085}.up{color:#16815a}.orange{color:#be6205}
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.toolbar input,.toolbar select{min-height:40px;padding:8px 10px;border:1px solid #d7e0ee;border-radius:7px;background:#fff}.push{margin-left:auto}
.tablewrap{max-width:100%;overflow:auto}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{padding:11px 9px;border-bottom:1px solid #e4eaf2;text-align:left;vertical-align:middle}
th{background:#f5f8fd;color:#153e79;font-size:15px;font-weight:700;white-space:nowrap}
.num{text-align:right;font-family:Consolas,monospace}.name{color:#174b98;font-weight:700}
.tag{display:inline-flex;padding:3px 9px;border-radius:99px;font-size:12px;white-space:nowrap}.pending{background:#fff1df;color:#a85500}.shipped{background:#e7f1ff;color:#1958aa}.done{background:#e6f6ec;color:#19734d}
.modal{display:none;position:fixed;z-index:100;inset:0;align-items:center;justify-content:center;padding:18px;background:#102a5666}.modal.show{display:flex}
.dialog{position:relative;width:min(780px,100%);max-height:92vh;overflow:auto;padding:24px;border-radius:12px;background:#fff}
.close{position:absolute;right:15px;top:10px;border:0;background:transparent;font-size:23px}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.formgrid .field{margin:0}.wide{grid-column:1/-1}
.toast{display:none;position:fixed;z-index:200;right:20px;top:20px;padding:12px 16px;border-radius:8px;background:#147a55;color:#fff;box-shadow:0 4px 14px #0003}.toast.show{display:block}
@media(max-width:800px){.app{grid-template-columns:1fr}.side{display:flex;align-items:center;gap:9px;padding:11px;overflow:auto}.brand{padding:0;white-space:nowrap}.usercard{display:none}.nav{display:flex}.nav button{white-space:nowrap}.top{padding:0 15px}.page{padding:15px}.formgrid{grid-template-columns:1fr}.wide{grid-column:auto}}

.metrics{grid-template-columns:repeat(4,1fr)}
.dashboard-split{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(520px,1.2fr);gap:18px}
.dashboard-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.dashboard-title h3{margin:0}
.dashboard-view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;padding:12px 16px;border:1px solid #cddbeb;border-radius:10px;background:#fff}.dashboard-view-toolbar label{display:flex;align-items:center;gap:12px;color:#173b70;font-size:16px;font-weight:800}.dashboard-view-toolbar select{height:42px;min-width:150px;padding:0 38px 0 14px;border:1px solid #8fb0dd;border-radius:8px;background:#f8fbff;color:#173b70;font-size:15px;font-weight:700}.dashboard-view-toolbar>span{color:#667085;font-size:13px}.dashboard-widget-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;gap:16px;align-items:start}.dashboard-dynamic-widgets{display:contents}.dashboard-widget{position:relative;min-width:0;min-height:150px;overflow:auto;box-sizing:border-box}.dashboard-widget.card{display:flex;flex-direction:column;gap:10px}.dashboard-widget-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.dashboard-widget-head h3{margin:0;color:#173b70;font-size:17px}.dashboard-drag-handle{width:38px;height:32px;border:1px solid #cad7e7;border-radius:7px;background:#f4f7fb;color:#55708f;font-size:20px;line-height:1;cursor:grab}.dashboard-drag-handle:active{cursor:grabbing}.dashboard-widget.dragging{opacity:.5;outline:2px dashed #2b67bd}.dashboard-resize-handle{position:absolute;right:4px;bottom:4px;width:28px;height:28px;border:0;background:linear-gradient(135deg,transparent 45%,#5f7da4 46%,#5f7da4 52%,transparent 53%,transparent 64%,#5f7da4 65%,#5f7da4 71%,transparent 72%);color:transparent;cursor:nwse-resize}.dashboard-metric-value{display:block;color:#174b98;font-size:31px;line-height:1.15;overflow-wrap:anywhere}.dashboard-widget .tablewrap{max-width:100%;overflow:auto}.dashboard-widget table{min-width:540px}.dashboard-widget.card .dashboard-widget-head{margin-bottom:2px}.dashboard-widget.card .dashboard-widget-head h3{color:#667085;font-size:15px;font-weight:500}
.sales-bar{height:7px;background:#e9eff7;border-radius:10px;overflow:hidden;min-width:100px}
.sales-bar i{display:block;height:100%;background:#2b67bd;border-radius:10px}
.scope-path{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:-8px 0 18px;color:#526172;font-size:12px}
.scope-path span{background:#eaf2ff;color:#174b98;padding:5px 9px;border-radius:20px}
.scope-path b{color:#98a2b3}
.nav-parent{display:flex;justify-content:space-between;align-items:center;margin-top:6px;padding:11px;color:#fff;font-weight:600}
.nav .nav-sub{padding-left:27px;font-size:13px}
.event-quick-nav{margin:2px 10px 8px;padding:8px 0 10px;border-bottom:1px solid rgba(255,255,255,.13)}
.event-quick-nav small{display:block;padding:0 9px 6px;color:#aebfd6;font-size:11px}
.nav-event-node{margin-bottom:3px}.nav-event-row{display:block;border-radius:6px}.nav-event-row:has(.nav-event-main.active){background:rgba(255,255,255,.12)}
.nav .nav-event-main{display:flex;align-items:center;gap:6px;width:100%;min-width:0;padding:8px 3px 8px 7px;border-radius:6px;color:#cbd7e7;font-size:12px;text-align:left}.nav .nav-event-main .nav-event-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.nav .nav-event-main i{width:6px;height:6px;border-radius:50%;background:#7f91aa;flex:0 0 auto}.nav .nav-event-main i.live{background:#50d39a;box-shadow:0 0 0 3px rgba(80,211,154,.13)}
.nav .nav-event-main:hover,.nav .nav-event-main.active{color:#fff}.nav .nav-event-toggle{display:grid;place-items:center;width:24px;height:24px;margin-left:auto;padding:0;color:#b9c8db;font-size:17px;transition:transform .18s;pointer-events:none;flex:0 0 24px}.nav .nav-event-toggle.expanded{transform:rotate(90deg);color:#fff}
.nav-event-children{display:none;padding:3px 0 5px 20px}.nav-event-children.expanded{display:grid}.nav .nav-event-children button{position:relative;padding:6px 8px 6px 17px;color:#aebfd6;font-size:12px;text-align:left}.nav .nav-event-children button:before{content:'';position:absolute;left:5px;top:0;bottom:0;border-left:1px solid rgba(255,255,255,.18)}.nav .nav-event-children button:hover,.nav .nav-event-children button.active{color:#fff}.nav .nav-event-children button.active{background:rgba(255,255,255,.08)}
.product-thumb{width:64px;height:64px;border-radius:7px;object-fit:cover;background:#edf2f8}
.thumb-cell{width:72px}.thumb-cell.thumb-empty:before{content:'暂无图片';display:grid;place-items:center;width:64px;height:64px;border-radius:7px;background:#edf2f8;color:#8a96a8;font-size:11px}
.item-no{display:inline-block;padding:3px 7px;border:1px solid #d8e1ee;border-radius:5px;color:#344054;font-family:Consolas,monospace;white-space:nowrap}
.product-actions{display:flex;gap:4px;flex-wrap:wrap;min-width:145px}
.product-actions button{padding:5px 7px}
.sale-state{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#16815a}
.sale-state.off{color:#667085}
.sale-dot{width:7px;height:7px;border-radius:50%;background:currentColor}
.product-table{min-width:1050px}
.product-table th,.product-table td{vertical-align:middle}
.product-table th{white-space:nowrap}
.column-filter{position:relative;display:inline-flex;align-items:center;gap:5px;min-width:48px;padding:4px 6px;margin:-4px -6px;border-radius:5px;cursor:pointer}.column-filter:hover{background:#e7eef8}.column-filter.filtered{background:#dceaff;color:#174b98}.column-filter i{font-size:11px;font-style:normal;color:#667085}.column-filter.filtered i{color:#174b98}.column-filter select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.product-table td:nth-child(2){min-width:130px}
.product-table .money-cell{font-family:Consolas,monospace;text-align:right;white-space:nowrap}
.form-section{grid-column:1/-1;border-top:1px solid #edf0f5;padding-top:12px;margin-top:4px;font-weight:600;color:#173b70}
.event-table{min-width:980px}.event-table td{vertical-align:middle}.event-tag{display:inline-block;padding:4px 10px;border-radius:20px;font-size:12px;white-space:nowrap}.event-live{background:#e5f7ed;color:#14764e}.event-live:before{content:'●';font-size:8px;margin-right:5px}.event-upcoming{background:#e8f1ff;color:#205aa5}.event-ended{background:#f0f2f5;color:#667085}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:210px;overflow:auto;padding:2px}.choice-card{display:flex;gap:9px;align-items:flex-start;border:1px solid #dfe6ef;border-radius:8px;padding:10px;cursor:pointer}.choice-card:has(input:checked){border-color:#2b67bd;background:#f0f6ff}.choice-card input{margin-top:3px}.choice-card span{display:grid}.choice-card small{color:#667085;margin-top:2px}.form-actions{text-align:right}.empty-row{text-align:center;padding:30px;color:#667085}.event-mini{display:inline-block;background:#edf3fc;color:#174b98;border-radius:5px;padding:2px 6px;font-size:11px;margin-bottom:5px}.empty-portal{grid-column:1/-1;text-align:center;padding:45px}
.page-title,.event-detail-head,.event-heading,.publish-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.page-title{margin-bottom:18px}.page-title h1,.page-title p,.event-heading h1{margin:0}.page-title p{margin-top:6px}.event-detail-head{align-items:flex-end;margin-bottom:18px}.back-link,.event-link{border:0;background:none;color:#2465b3;padding:0;cursor:pointer;font:inherit}.back-link{margin-bottom:9px}.event-link{font-weight:700;text-align:left}.event-link:hover{text-decoration:underline}.event-heading{justify-content:flex-start}.event-detail-head p{margin:7px 0 0}.event-sections{display:grid;gap:12px}.event-section{background:#fff;border:1px solid #e1e7ef;border-radius:10px;overflow:hidden}.event-section summary{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 20px;cursor:pointer;list-style:none;outline:none}.event-section summary:focus-visible{box-shadow:inset 0 0 0 2px #2b67bd}.event-section summary::-webkit-details-marker{display:none}.event-section summary span{display:grid;gap:4px}.event-section summary b{color:#173b70}.event-section summary small{color:#667085;font-size:12px;font-weight:400}.event-section summary em{color:#667085;font-size:12px;font-style:normal}.event-section[open] summary{border-bottom:1px solid #edf0f5}.event-section[open] summary em{color:#2465b3}.event-section-body{padding:18px 20px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.detail-grid>div{display:grid;gap:6px;padding:13px;background:#f7f9fc;border-radius:8px}.detail-grid small{color:#667085}.publish-row p{margin:5px 0 0}
.datetime-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.datetime-row input{min-width:0}.datetime-done{border:0;border-radius:7px;padding:0 13px;background:#e8f1ff;color:#174b98;font:inherit;font-weight:600;cursor:pointer}.datetime-done:hover{background:#d8e8ff}
.event-section:focus{outline:none}
.event-name-only{margin-bottom:18px}.event-name-only h1{margin:0;color:#173b70}.event-workspace{min-height:calc(100vh - 155px);box-sizing:border-box}.workspace-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #edf0f5}.workspace-head h2,.workspace-head p{margin:0}.workspace-head p{margin-top:6px}.event-order-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.event-order-metrics>div,.publish-card>div{display:grid;gap:7px;padding:16px;background:#f7f9fc;border-radius:9px}.event-order-metrics small,.publish-card small{color:#667085}.event-order-metrics b{font-size:20px;color:#173b70}.publish-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.publish-action{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding:18px;border:1px solid #f4c8c8;background:#fff8f8;border-radius:9px}.publish-action p{margin:5px 0 0}
.event-order-workspace{padding:0;overflow:hidden}.event-order-tabs{display:flex;align-items:center;border-bottom:1px solid #dfe6f1;padding:0 18px}.event-order-tabs button{height:58px;padding:0 24px;border:0;border-bottom:3px solid transparent;background:transparent;color:#42526b;font-size:16px;font-weight:700;cursor:pointer;outline:none}.event-order-tabs button:focus-visible{box-shadow:inset 0 0 0 2px #9abbe8}.event-order-tabs button:hover{color:#1757a6;background:#f8faff}.event-order-tabs button.active{color:#174f9d;border-bottom-color:#2768c5}.event-order-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) repeat(3,minmax(140px,180px)) auto;gap:10px;align-items:center;padding:16px 18px;border-bottom:1px solid #e7ecf3}.event-order-toolbar select{height:42px;border:1px solid #cfdbea;border-radius:8px;background:#fff;padding:0 34px 0 12px;color:#243b5a;font:inherit}.event-order-toolbar .primary{height:42px;min-width:82px;font-weight:700}.event-order-workspace .event-order-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;border-bottom:1px solid #e2e8f0}.event-order-workspace .event-order-metrics>div{border-radius:0;background:#fff;padding:14px 22px;border-right:1px solid #e7ecf3}.event-order-workspace .event-order-metrics>div:last-child{border-right:0}.event-order-workspace .event-order-metrics b{font-size:24px}.event-order-report{padding:0 18px 18px}.event-order-report-table{table-layout:fixed}.event-order-report-table th{height:52px;background:#f5f8fd;color:#153e79;font-size:15px;font-weight:700;text-align:center;border:1px solid #dce4ef}.event-order-report-table td{height:58px;text-align:center;border:1px solid #e1e7ef;padding:9px 10px}.event-order-report-table .name{text-align:left}.event-order-report-table .num{text-align:center}.order-rank{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eef3f9;color:#52657e}.order-rank.top{background:#e5efff;color:#165ab0}.order-share,.order-progress{display:flex;align-items:center;gap:10px;min-width:130px}.order-share>span,.order-progress>span{height:9px;flex:1;overflow:hidden;border-radius:10px;background:#e9eef5}.order-share i,.order-progress i{display:block;height:100%;border-radius:inherit;background:#2a69c4}.order-share b,.order-progress b{min-width:48px;text-align:right;font-size:13px;color:#42526b}.order-progress i{background:#2d8d65}.order-progress .done-text{color:#16815a}
.event-product-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:16px}.event-product-toolbar input{min-width:260px}.event-product-toolbar select{min-width:150px}.event-product-table .check-col{width:55px;text-align:center}.event-product-check{width:17px;height:17px;accent-color:#2b67bd}.event-included{display:inline-block;padding:4px 9px;border-radius:14px;background:#e5f7ed;color:#14764e;font-size:12px}
.event-product-toolbar .event-search-box{flex:1;max-width:420px}.event-product-head-actions{margin-left:auto;flex-wrap:nowrap;white-space:nowrap}
@media(max-width:900px){.event-product-toolbar .event-search-box{max-width:none}.event-product-head-actions{width:100%;justify-content:flex-end}}
.tablewrap{overflow:auto;max-width:100%}
.event-product-table{min-width:1580px;border-collapse:separate;border-spacing:0}.event-product-table th,.event-product-table td{vertical-align:middle;text-align:center;padding:14px 18px;border-right:1px solid #e2e8f0}.event-product-table th:last-child,.event-product-table td:last-child{border-right:0}.event-product-table .name,.event-product-table .money-cell{text-align:center}.event-product-table .money-cell{white-space:nowrap;font-family:Consolas,monospace}.event-product-table th:nth-child(2),.event-product-table td:nth-child(2){min-width:86px}.event-product-table th:nth-child(3),.event-product-table td:nth-child(3){min-width:150px}.event-product-table th:nth-child(4),.event-product-table td:nth-child(4){min-width:105px}.event-product-table th:nth-child(n+5):nth-child(-n+7),.event-product-table td:nth-child(n+5):nth-child(-n+7){min-width:110px}.event-product-table th:nth-child(n+8):nth-child(-n+10),.event-product-table td:nth-child(n+8):nth-child(-n+10){min-width:92px}.event-product-table th:nth-child(11),.event-product-table td:nth-child(11){min-width:105px}.event-product-table th:nth-child(12),.event-product-table td:nth-child(12){min-width:115px}
.page.event-products-page{max-width:none;padding-left:20px;padding-right:20px}.event-products-page .event-product-workspace{padding:15px}.event-product-table{width:100%;min-width:1120px;table-layout:fixed}.event-product-table th,.event-product-table td{padding:12px 6px}.event-product-table th:nth-child(1),.event-product-table td:nth-child(1){width:44px}.event-product-table th:nth-child(2),.event-product-table td:nth-child(2){width:70px;min-width:0}.event-product-table th:nth-child(3),.event-product-table td:nth-child(3){width:130px;min-width:0}.event-product-table th:nth-child(4),.event-product-table td:nth-child(4){width:88px;min-width:0}.event-product-table th:nth-child(n+5):nth-child(-n+7),.event-product-table td:nth-child(n+5):nth-child(-n+7){width:88px;min-width:0}.event-product-table th:nth-child(8),.event-product-table td:nth-child(8){width:65px;min-width:0}.event-product-table th:nth-child(9),.event-product-table td:nth-child(9){width:68px;min-width:0}.event-product-table th:nth-child(10),.event-product-table td:nth-child(10){width:72px;min-width:0}.event-product-table th:nth-child(11),.event-product-table td:nth-child(11){width:92px;min-width:0}.event-product-table th:nth-child(12),.event-product-table td:nth-child(12){width:132px;min-width:0}.event-product-table .product-thumb,.event-product-table .thumb-cell.thumb-empty:before{width:52px;height:52px}.event-product-table .sale-state{display:inline-flex;justify-content:center;padding:5px 8px;border-radius:16px;background:#e8f7ef;color:#138a5b;font-weight:600}.event-product-table .sale-state.off{background:#fff0ef;color:#d92d20}.event-row-actions{display:flex;align-items:center;justify-content:center;white-space:nowrap}.event-row-actions button{border:0;background:none;padding:2px 7px;color:#205fac;cursor:pointer;font:inherit}.event-row-actions button.delete{color:#d92d20}.event-row-actions i{height:14px;border-left:1px solid #cfd8e6}
.app>main,.panel{min-width:0}
.page.event-orders-page{max-width:none;padding-left:20px;padding-right:20px}
@media(max-width:1100px){.event-order-toolbar{grid-template-columns:minmax(240px,1fr) repeat(2,minmax(130px,170px))}.event-order-toolbar select:nth-of-type(3){grid-column:2}.event-order-toolbar .primary{grid-column:3}.event-order-tabs{overflow-x:auto}.event-order-tabs button{white-space:nowrap;padding:0 18px}.event-order-report-table{min-width:900px}}
@media(max-width:760px){.event-order-toolbar{display:flex;flex-wrap:wrap}.event-order-toolbar .event-search-box{width:100%}.event-order-toolbar select{flex:1}.event-order-workspace .event-order-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Event product workspace: larger, clearer controls for daily back-office use. */
.add-product-button{min-height:42px;padding:10px 18px;font-size:15px;font-weight:700}
.event-search-box{display:flex;align-items:center;gap:9px;width:min(420px,100%);box-sizing:border-box;padding:0 13px;border:1px solid #c9d5e5;border-radius:9px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.04);transition:border-color .16s,box-shadow .16s}
.event-search-box:hover{border-color:#9db4d2}.event-search-box:focus-within{border-color:#2b67bd;box-shadow:0 0 0 3px rgba(43,103,189,.13)}
.event-search-box span{color:#5d6b7e;font-size:23px;line-height:1;transform:rotate(-18deg)}
.event-search-box input{flex:1;min-width:0!important;padding:11px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0;font-size:15px}
.event-batch-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-height:0;margin:0;padding:0 12px;overflow:hidden;visibility:hidden;opacity:0;border:0 solid #c9dcf6;border-radius:9px;background:#f2f7ff;transform:translateY(-5px);pointer-events:none;transition:max-height .2s ease,margin .2s ease,padding .2s ease,opacity .15s ease,transform .2s ease,border-width .2s ease,visibility 0s linear .2s}
.event-batch-toolbar.show{max-height:58px;margin:-3px 0 14px;padding:10px 12px;visibility:visible;opacity:1;border-width:1px;transform:translateY(0);pointer-events:auto;transition:max-height .2s ease,margin .2s ease,padding .2s ease,opacity .15s ease,transform .2s ease,border-width .2s ease,visibility 0s}.event-batch-toolbar b{display:inline-flex;align-items:center;min-height:32px;margin-right:auto;padding:0 11px;border-radius:18px;background:#e1edff;color:#174b98;font-size:14px}.event-batch-toolbar button{min-height:34px;padding:6px 13px;font-weight:700}.event-batch-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.event-batch-actions button{border:1px solid transparent;border-radius:18px;font:inherit;cursor:pointer}.event-batch-actions .batch-cancel{background:#e8f1ff;color:#205fac;border-color:#cfe0f7}.event-batch-actions .batch-delete{background:#fff0ef;color:#d92d20;border-color:#f6c6c2}.event-batch-actions .batch-on{background:#e8f7ef;color:#138a5b;border-color:#bce6d2}.event-batch-actions .batch-off{background:#fff6e8;color:#a45b07;border-color:#f0d29f}.event-batch-actions button:hover{filter:brightness(.97);box-shadow:0 1px 3px rgba(23,59,112,.12)}
.danger-soft{border-color:#f3b8b4!important;background:#fff2f1!important;color:#c9271b!important}.success-soft{border-color:#a9dec8!important;background:#eaf8f1!important;color:#117451!important}.warning-soft{border-color:#f2cf9b!important;background:#fff7e8!important;color:#a45b07!important}
.select-all-link,button[onclick="selectAllVisibleMaterials()"]{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;border:1px solid #cfe0f7;border-radius:18px;background:#e8f1ff;color:#205fac;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer}.select-all-link:hover,button[onclick="selectAllVisibleMaterials()"]:hover{background:#dceaff;box-shadow:0 1px 3px rgba(23,59,112,.12)}.select-all-link:focus-visible,button[onclick="selectAllVisibleMaterials()"]:focus-visible{outline:2px solid #2b67bd;outline-offset:2px}
.custom-column-filter{position:relative;display:inline-block}.custom-filter-trigger{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:58px;padding:6px 7px;border:0;border-radius:6px;background:transparent;color:#344054;font:inherit;font-weight:700;cursor:pointer}.custom-filter-trigger:hover{background:#e7eef8}.custom-column-filter.filtered .custom-filter-trigger{background:#dceaff;color:#174b98;box-shadow:inset 0 0 0 1px #b7cff0}
.custom-filter-menu{display:none;position:fixed;z-index:80;min-width:112px;max-width:calc(100vw - 16px);max-height:min(360px,calc(100vh - 16px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid #d7e0ec;border-radius:9px;background:#fff;box-shadow:0 10px 26px rgba(23,59,112,.18);scrollbar-width:thin}.custom-column-filter.open .custom-filter-menu{display:grid}.custom-filter-menu button{border:0;border-radius:6px;background:transparent;padding:8px 10px;color:#344054;font:inherit;font-weight:600;text-align:left;white-space:nowrap;cursor:pointer}.custom-filter-menu button:hover{background:#edf4ff;color:#174b98}
.event-thumb-button{display:grid;place-items:center;width:52px;height:52px;margin:auto;padding:0;overflow:hidden;border:1px solid #dce4ef;border-radius:8px;background:#fff;cursor:zoom-in}.event-thumb-button:hover{border-color:#2b67bd;box-shadow:0 0 0 3px rgba(43,103,189,.1)}.event-thumb-button.empty{background:#edf2f8;color:#7b8798;font-size:11px}.event-thumb-button img{width:100%;height:100%;border-radius:0;object-fit:cover}
.image-preview-box{text-align:center}.image-preview-box>img{display:block;max-width:100%;max-height:62vh;margin:0 auto 12px;border-radius:10px;object-fit:contain;background:#f4f6f9}.image-preview-empty{display:grid;place-items:center;height:320px;margin-bottom:12px;border-radius:10px;background:#edf2f8;color:#7b8798;font-size:16px}.image-preview-actions{display:flex;justify-content:center;gap:10px;margin-top:18px}.image-preview-actions button{min-width:110px;min-height:40px;font-weight:700}
.image-preview-actions .primary{order:1}.image-preview-actions .ghost{order:2}
/* Navigation remains comfortable to read for the target 40–50 age group. */
.nav>button,.nav-parent{font-size:16px;font-weight:700;line-height:1.45}.nav .nav-sub{font-size:15px;font-weight:700;padding-top:10px;padding-bottom:10px}.nav .nav-event-main{font-size:14px;font-weight:700;padding-top:10px;padding-bottom:10px}.nav .nav-event-children button{font-size:14px;font-weight:650;line-height:1.45;padding-top:8px;padding-bottom:8px}.event-quick-nav small{font-size:13px;font-weight:700}.event-product-table th{font-size:13px;font-weight:700;color:#344054}
.event-batch-actions{order:1}.event-batch-toolbar b{order:2;margin-right:0;margin-left:auto}
.data-scope-badge{display:inline-flex;align-items:center;padding:7px 12px;border-radius:18px;background:#e8f1ff;color:#174b98;font-weight:700}.mobile-entry-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;padding:18px;border:1px solid #cfe0f7;border-radius:10px;background:#f5f9ff}.mobile-entry-card>div{display:flex;align-items:center;gap:14px}.mobile-entry-card p{margin:4px 0 8px}.mobile-entry-card code{display:inline-block;padding:5px 8px;border-radius:5px;background:#fff;color:#174b98}.mobile-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#215db5;color:#fff;font-size:25px}.mobile-preview{display:grid;grid-template-columns:180px 1fr;gap:24px;align-items:center}.mobile-qr{display:grid;place-items:center;width:180px;height:180px;border:12px solid #173b70;background:repeating-linear-gradient(45deg,#173b70 0 8px,#fff 8px 16px);color:#fff;font-size:24px;font-weight:700;text-align:center;text-shadow:0 1px 3px #000}.mobile-preview input{width:100%;padding:11px;border:1px solid #cfd8e6;border-radius:7px;font:inherit}.mobile-entry-actions{display:flex;gap:9px;margin-top:16px}
.mobile-publish-workspace{padding:0;overflow:hidden}.mobile-publish-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border-bottom:1px solid #dce5f1;background:#f8fbff}.mobile-publish-toolbar>div{display:flex;align-items:center;gap:12px}.mobile-publish-toolbar b{color:#123f7a;font-size:19px}.mobile-publish-toolbar span{color:#667085}.mobile-publish-layout{display:grid;grid-template-columns:minmax(260px,320px) minmax(390px,1fr) minmax(230px,280px);gap:18px;padding:18px;background:#f5f7fb}.mobile-config-panel,.mobile-release-panel{align-self:start;padding:16px;border:1px solid #dbe4ef;border-radius:10px;background:#fff}.mobile-config-panel h3,.mobile-release-panel h3{margin:0 0 13px;color:#173b70;font-size:17px}.mobile-config-panel h3:not(:first-child){margin-top:18px;padding-top:15px;border-top:1px solid #e7edf5}.mobile-config-panel>label:not(.mobile-setting-check),.mobile-config-two label{display:grid;gap:6px;margin-bottom:12px;color:#344054;font-weight:700}.mobile-config-panel input[type=text],.mobile-config-panel input:not([type]),.mobile-config-panel select{width:100%;height:40px;padding:0 10px;border:1px solid #c7d5e7;border-radius:8px;background:#fff;font:inherit}.mobile-config-panel input[type=color]{width:100%;height:40px;padding:4px;border:1px solid #c7d5e7;border-radius:8px;background:#fff}.mobile-config-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-setting-check{display:flex;align-items:center;gap:10px;min-height:39px;padding:7px 10px;margin:6px 0;border:1px solid #dbe4ef;border-radius:8px;background:#fafcff;cursor:pointer;font-weight:700}.mobile-setting-check input{width:19px;height:19px;accent-color:#2465c2}.mobile-phone-stage{display:grid;place-items:center;align-content:start;gap:9px}.mobile-phone-stage>span{color:#667085;font-weight:700}.mobile-phone-frame{width:390px;max-width:100%;padding:14px 10px 12px;border:5px solid #1c2635;border-radius:34px;background:#1c2635;box-shadow:0 15px 30px #102a5625}.mobile-phone-speaker{width:72px;height:5px;margin:0 auto 10px;border-radius:5px;background:#657080}.mobile-phone-screen{position:relative;height:650px;overflow-y:auto;padding-bottom:54px;border-radius:22px;background:#f4f6f9}.mobile-demo-head{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 15px;color:#fff}.mobile-demo-head b{font-size:18px}.mobile-demo-head span{font-size:13px}.mobile-demo-search{margin:12px;padding:10px 12px;border-radius:20px;background:#fff;color:#8a96a8;font-size:13px}.mobile-demo-categories{display:flex;gap:16px;overflow:hidden;padding:0 13px 10px;white-space:nowrap;font-size:13px}.mobile-demo-grid{display:grid;gap:10px;padding:0 10px 12px}.mobile-demo-grid.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-demo-grid.columns-1{grid-template-columns:1fr}.mobile-demo-product{display:flex;min-width:0;flex-direction:column;padding:8px;border:1px solid #e3e9f1;border-radius:10px;background:#fff}.mobile-demo-photo{display:grid;place-items:center;width:100%;aspect-ratio:1/1;margin-bottom:7px;overflow:hidden;border-radius:8px;background:#e8eef6;color:#8492a6}.mobile-demo-photo img{width:100%;height:100%;object-fit:cover}.mobile-demo-product>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#173b70;font-size:13px}.mobile-demo-product small{color:#7a8798;font-size:11px}.mobile-demo-product p{height:30px;margin:4px 0;overflow:hidden;color:#667085;font-size:11px;line-height:1.35}.mobile-demo-product del{color:#98a2b3;font-size:10px}.mobile-demo-product strong{margin:3px 0;color:#d34d2c;font-size:15px}.mobile-demo-product button{height:30px;border:0;border-radius:7px;color:#fff;font-size:12px;font-weight:700}.mobile-demo-nav{position:absolute;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(4,1fr);padding:10px 5px;background:#fff;box-shadow:0 -2px 8px #0001;text-align:center;font-size:12px}.mobile-release-status{display:grid;gap:6px;padding:12px 0;border-bottom:1px solid #e7edf5}.mobile-release-status small{color:#667085}.mobile-release-status b{color:#173b70;line-height:1.55}.mobile-release-status code{overflow-wrap:anywhere;padding:7px;border-radius:6px;background:#f3f6fa;color:#174b98;font-size:12px}.mobile-release-status button{margin-top:5px}.mobile-publish-workspace>.publish-action{margin:0;border-width:1px 0 0;border-radius:0}@media(max-width:1150px){.mobile-publish-layout{grid-template-columns:280px 1fr}.mobile-release-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.mobile-release-panel h3{grid-column:1/-1}.mobile-release-status{border:1px solid #e1e8f1;border-radius:8px;padding:10px}}@media(max-width:850px){.mobile-publish-layout{grid-template-columns:1fr}.mobile-phone-frame{width:375px}.mobile-release-panel{display:block}.mobile-publish-toolbar{align-items:flex-start;flex-direction:column}.mobile-publish-toolbar>div:last-child{width:100%;justify-content:flex-end}}
@media(max-width:1050px){.metrics{grid-template-columns:repeat(2,1fr)}.dashboard-split{grid-template-columns:1fr}}
@media(max-width:800px){.metrics{grid-template-columns:1fr}.nav-parent{display:none}.choice-grid{grid-template-columns:1fr}.detail-grid,.event-order-metrics,.publish-card{grid-template-columns:1fr}.workspace-head,.publish-action,.mobile-entry-card{align-items:flex-start;flex-direction:column}.mobile-preview{grid-template-columns:1fr}.mobile-qr{width:150px;height:150px}}
.scope-selector-panel{position:relative;z-index:3;background:#fff;border:1px solid #dce5f0;border-radius:12px;margin-bottom:18px;box-shadow:0 2px 8px rgba(23,59,112,.05)}
.scope-selector-row{display:grid;grid-template-columns:88px 1fr;align-items:center;min-height:62px;padding:10px 16px;border-bottom:1px solid #edf1f6}.scope-selector-row:last-child{border-bottom:0}.scope-selector-row>b{font-size:15px;color:#173b70}.scope-chip-list{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.scope-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 9px 7px 13px;background:#e8f1ff;border:1px solid #bed3f3;border-radius:8px;color:#174b98;font-size:14px;font-weight:700}.scope-chip button{width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:#667085;font-size:19px;line-height:18px;cursor:pointer}.scope-chip button:hover{background:#fff;color:#b42318}.scope-add-wrap{position:relative}.scope-add{display:grid;place-items:center;width:36px;height:36px;border:1px dashed #7da4dc;border-radius:8px;background:#f5f9ff;color:#174b98;font-size:22px;cursor:pointer}.scope-add:hover{background:#e8f1ff}.scope-empty{color:#98a2b3;font-size:13px}.scope-choice-pop{display:none;position:fixed;z-index:80;width:320px;max-width:calc(100vw - 16px);max-height:min(390px,calc(100vh - 16px));overflow:hidden;padding:10px;background:#fff;border:1px solid #cdd9e8;border-radius:10px;box-shadow:0 12px 30px rgba(16,42,86,.18);grid-template-rows:auto minmax(0,1fr) auto}.scope-choice-pop.open{display:grid}.scope-choice-pop strong{padding:5px 8px 9px;color:#173b70}.scope-choice-list{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.scope-choice-pop label{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:7px;cursor:pointer;font-size:14px}.scope-choice-pop label:hover{background:#f0f6ff}.scope-choice-pop input{width:18px;height:18px;accent-color:#2b67bd}.scope-choice-actions{display:flex;align-items:center;gap:8px;margin-top:8px;padding:10px 4px 2px;border-top:1px solid #e4eaf2}.scope-choice-actions span{margin-left:auto;color:#667085;font-size:13px}.scope-choice-actions button{height:36px;padding:0 14px;border:0;border-radius:7px;font:inherit;font-weight:700;cursor:pointer}.scope-choice-actions .scope-select-all{background:#edf3fc;color:#174b98}.scope-choice-actions .primary{background:#215db5;color:#fff}.center-metrics{grid-template-columns:repeat(3,1fr)}.unified-order-table tbody tr{cursor:pointer}.unified-order-table tbody tr:hover{background:#f7faff}
.page-title-actions{display:flex;gap:10px}.material-event-selector{display:flex;align-items:center;gap:28px;margin-bottom:16px;padding:18px 20px;border:1px solid #b9d0ef;border-radius:12px;background:#fff}.material-event-selector label{display:flex;align-items:center;gap:12px;color:#173b70}.material-event-selector select{min-width:320px;height:44px;padding:0 40px 0 14px;border:1px solid #9fbce2;border-radius:9px;background:#f8fbff;color:#173b70;font-size:15px;font-weight:700}.material-event-selector>div{display:grid;gap:3px;padding-left:26px;border-left:1px solid #dce5f0}.material-event-selector strong{color:#173b70;font-size:17px}.material-event-selector span{color:#667085}.material-guide{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:16px;padding:14px 18px;border:1px solid #bcd3f2;border-radius:10px;background:#edf5ff;color:#344054}.material-guide b{color:#174b98;font-size:15px}.material-guide code{padding:3px 7px;border-radius:5px;background:#fff;border:1px solid #d4dfef;color:#173b70}.material-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:18px}.material-toolbar .muted{margin-left:auto}.material-selection-actions{display:flex;gap:8px}.material-selection-actions button{min-height:40px;white-space:nowrap}.material-selection-actions button:disabled{opacity:.45;cursor:not-allowed}.material-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.material-empty{grid-column:1/-1;padding:70px 20px;text-align:center;color:#667085;border:1px dashed #c7d5e7;border-radius:10px;background:#f8fafc}.material-card{position:relative;display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px;border:1px solid #dce5f0;border-radius:11px;background:#fff}.material-check{position:absolute;z-index:2;top:18px;left:18px;display:flex;align-items:center;gap:5px;padding:4px 7px;border-radius:6px;background:rgba(255,255,255,.92);font-size:12px;cursor:pointer}.material-check input{width:17px;height:17px}.material-image{grid-column:1/-1;display:grid;place-items:center;width:100%;aspect-ratio:var(--product-thumb-ratio,1 / 1);max-height:230px;overflow:hidden;border:0;border-radius:9px;background:#edf2f8;color:#8a96a8;cursor:pointer}.material-image img{width:100%;height:100%;object-fit:cover}.material-image:hover{box-shadow:0 0 0 2px #2b67bd}.material-card-info{display:grid;min-width:0}.material-card-info b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#173b70;font-size:15px}.material-card-info code{margin-top:4px;color:#475467}.material-card-info .matched{color:#16815a}.material-card-info .unmatched{color:#b54708}.material-replace{align-self:end}.product-thumb{width:var(--product-thumb-width,64px);height:auto;aspect-ratio:var(--product-thumb-ratio,1 / 1)}.thumb-cell{width:calc(var(--product-thumb-width,64px) + 8px)}
.event-materials-page{padding-left:20px;padding-right:20px}.material-workspace{padding:15px}.material-workspace .material-toolbar{margin-bottom:14px}.material-workspace .event-search-box{flex:1;max-width:420px}.material-head-actions{margin-left:0;flex-wrap:nowrap;white-space:nowrap}.material-match-count{white-space:nowrap}.material-guide.compact{gap:12px;margin-bottom:14px;padding:9px 12px}.material-batch-toolbar{margin-top:0}
.permission-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.permission-metrics>div{display:grid;gap:7px;padding:18px 20px;border:1px solid #dce5f0;border-radius:11px;background:#fff}.permission-metrics span{color:#667085}.permission-metrics b{color:#123c79;font-size:28px}.permission-toolbar{display:flex;gap:12px;margin-bottom:18px}.permission-toolbar .event-search-box{flex:1;max-width:440px}.permission-toolbar select{min-width:150px;height:42px;padding:0 38px 0 13px;border:1px solid #b9cce5;border-radius:9px;background:#fff;color:#253b5b;font-size:14px}.permission-table th,.permission-table td{vertical-align:middle}.permission-table td.name small{display:block;margin-top:4px;color:#667085;font-family:Consolas,monospace;font-weight:400}.permission-role{display:inline-flex;padding:6px 10px;border-radius:999px;font-weight:700}.permission-role.super{background:#e7efff;color:#174b98}.permission-role.admin{background:#e8f7f0;color:#087a55}.permission-role.agent{background:#fff4df;color:#a75a00}.permission-scope{max-width:330px;color:#475467;line-height:1.55}.permission-actions{display:flex;align-items:center;white-space:nowrap}.permission-actions button{padding:4px 7px;border:0;background:transparent;color:#1458a6;cursor:pointer}.permission-actions i{width:1px;height:15px;background:#d3dce9}.permission-actions .delete,.warning-text{color:#d92d20!important}.permission-actions .success-text{color:#078256}.permission-restart{padding:40px}.permission-restart h2{color:#123c79}.permission-form{margin-bottom:16px}.permission-province{display:none}.permission-province.show{display:grid}.permission-warning{display:flex;gap:14px;margin:12px 0;padding:13px 16px;border-radius:9px;background:#edf5ff;color:#344054}.permission-warning b{color:#174b98}.permission-scope-editor{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px;padding-top:16px;border-top:1px solid #e2e8f0}.permission-scope-editor>div{padding:14px;border:1px solid #dce5f0;border-radius:10px}.permission-scope-editor b{display:block;margin-bottom:10px;color:#173b70}.permission-scope-editor b small{display:block;margin-top:4px;color:#667085;font-weight:400}.permission-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:180px;overflow:auto}.permission-choice-grid label{display:flex;align-items:center;gap:8px;padding:9px;border-radius:7px;background:#f6f8fb;cursor:pointer}.permission-choice-grid label.disabled,.permission-scope-editor.disabled{opacity:.45}.permission-choice-grid input{width:17px;height:17px}.permission-scope-editor.disabled{pointer-events:none}
.settings-table th,.settings-table td{font-size:14px;padding:15px}.thumbnail-settings h2{margin-top:4px;color:#173b70}.ratio-options{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;margin:15px 0 28px}.ratio-card{display:grid;justify-items:center;gap:9px;padding:14px;border:2px solid #e1e7ef;border-radius:10px;cursor:pointer}.ratio-card.selected{border-color:#2b67bd;background:#f0f6ff}.ratio-card input{position:absolute;opacity:0}.ratio-card i{display:block;width:72px;max-height:92px;border-radius:6px;background:#cfe0f5;box-shadow:inset 0 0 0 1px #9bb8de}.thumb-size-setting{display:flex;align-items:center;gap:16px;padding:16px;background:#f7f9fc;border-radius:9px}.thumb-size-setting input{width:320px}.thumb-setting-preview{display:flex;align-items:center;gap:20px;margin:20px 0;padding:18px;border:1px dashed #b9c8dc;border-radius:9px}.thumb-setting-preview div{display:grid;place-items:center;background:#dce8f7;color:#174b98;border-radius:7px;font-size:12px}
@media(max-width:900px){.scope-selector-row{grid-template-columns:1fr}.scope-selector-row>b{margin-bottom:8px}.material-event-selector{align-items:stretch;flex-direction:column;gap:14px}.material-event-selector select{min-width:0;width:100%}.material-event-selector>div{padding:14px 0 0;border-left:0;border-top:1px solid #dce5f0}.material-toolbar{align-items:stretch;flex-direction:column}.material-toolbar .muted{margin-left:0}.material-selection-actions{flex-wrap:wrap}.material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.permission-metrics{grid-template-columns:repeat(2,1fr)}.permission-toolbar{flex-wrap:wrap}.permission-toolbar .event-search-box{flex-basis:100%;max-width:none}.permission-scope-editor{grid-template-columns:1fr}.ratio-options{grid-template-columns:repeat(2,1fr)}}
.ratio-options{grid-template-columns:repeat(5,minmax(135px,1fr))}.custom-ratio-fields{display:none;align-items:end;gap:12px;margin:-12px 0 28px;padding:15px 18px;border:1px solid #c9dcf6;border-radius:9px;background:#f5f9ff}.custom-ratio-fields.show{display:flex}.custom-ratio-fields label{display:grid;gap:6px;color:#344054;font-weight:700}.custom-ratio-fields input{width:120px;padding:9px 11px;border:1px solid #c9d5e5;border-radius:7px;font:inherit}.custom-ratio-fields>b{padding-bottom:9px;font-size:22px;color:#667085}.thumb-pixel-input{display:flex;align-items:center;overflow:hidden;border:1px solid #b8c6d8;border-radius:7px;background:#fff}.thumb-pixel-input input{width:82px;padding:8px;border:0;text-align:right;font:inherit;font-weight:700;outline:0}.thumb-pixel-input span{padding:0 9px;color:#667085}.thumb-setting-preview{overflow:auto}.thumb-setting-preview #thumbPreview{max-width:500px;flex:0 0 auto}
/* The saved thumbnail variables must win over the old fixed 52px event-table rules. */
.event-product-table{min-width:max(1120px,calc(var(--product-thumb-width,64px) + 1068px));table-layout:auto}.event-product-table th:nth-child(2),.event-product-table td:nth-child(2){width:calc(var(--product-thumb-width,64px) + 18px)!important;min-width:calc(var(--product-thumb-width,64px) + 18px)!important}.event-product-table .event-thumb-button{width:var(--product-thumb-width,64px);height:auto;aspect-ratio:var(--product-thumb-ratio,1 / 1)}.event-product-table .event-thumb-button .product-thumb{width:100%;height:100%;aspect-ratio:auto}.product-table .thumb-cell{width:calc(var(--product-thumb-width,64px) + 18px);min-width:calc(var(--product-thumb-width,64px) + 18px)}.product-table .product-thumb{width:var(--product-thumb-width,64px);height:auto;aspect-ratio:var(--product-thumb-ratio,1 / 1);object-fit:cover}
@media(max-width:1100px){.ratio-options{grid-template-columns:repeat(3,1fr)}}
.brand-settings-table th,.brand-settings-table td{font-size:15px}.brand-settings-table th:nth-child(1){width:25%}.brand-settings-table th:nth-child(2){width:55%}.brand-settings-table th:nth-child(3){width:20%}.brand-scope-link{max-width:100%;overflow:hidden;border:0;border-radius:7px;background:#edf4ff;padding:8px 12px;color:#174b98;font:inherit;font-weight:700;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.brand-scope-link:hover{background:#dceaff}.brand-row-actions{display:flex;align-items:center}.brand-row-actions button{border:0;background:none;padding:5px 10px;color:#205fac;font:inherit;font-weight:700;cursor:pointer}.brand-row-actions button.delete{color:#d92d20}.brand-row-actions i{height:15px;border-left:1px solid #cfd8e6}
.brand-tag-input{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:52px;margin:14px 0 20px;padding:7px 10px;border:1px solid #c9d5e5;border-radius:9px;background:#fff;cursor:text}.brand-tag-input:focus-within{border-color:#2b67bd;box-shadow:0 0 0 3px rgba(43,103,189,.12)}.brand-tag-input>div{display:contents}.brand-tag-input span{display:inline-flex;align-items:center;gap:5px;padding:6px 7px 6px 11px;border-radius:7px;background:#e8f1ff;color:#174b98;font-weight:700}.brand-tag-input span button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:4px;background:transparent;color:#667085;font-size:18px;cursor:pointer}.brand-tag-input span button:hover{background:#fff;color:#d92d20}.brand-tag-input>input{flex:1;min-width:190px;padding:7px;border:0;outline:0;font:inherit;font-size:15px}
.brand-scope-editor{margin:18px 0;padding:16px;border:1px solid #dce5f0;border-radius:10px;background:#f8faff}.brand-scope-editor>b{font-size:16px;color:#173b70}.brand-scope-editor>p{margin:3px 0 12px}.brand-scope-modes{display:flex;gap:10px;margin-bottom:12px}.brand-scope-modes label{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #cbd7e7;border-radius:8px;background:#fff;cursor:pointer;font-weight:700}.brand-scope-modes label:has(input:checked){border-color:#2b67bd;background:#eaf2ff;color:#174b98}.brand-scope-modes input{width:17px;height:17px}.brand-event-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:220px;overflow:auto}.brand-event-choices label{display:grid;grid-template-columns:22px 1fr;align-items:center;padding:10px;border:1px solid #dce5f0;border-radius:8px;background:#fff;cursor:pointer}.brand-event-choices label:has(input:checked){border-color:#2b67bd;background:#f0f6ff}.brand-event-choices input{grid-row:1/3;width:17px;height:17px}.brand-event-choices span{font-weight:700}.brand-event-choices small{color:#667085}.brand-event-choices.disabled{opacity:.45;pointer-events:none}
.event-basic-form{margin-top:14px}.event-form-tip{padding:11px 13px;border-radius:8px;background:#edf5ff;color:#174b98}.event-list-actions{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;white-space:nowrap}.event-list-actions button{padding:7px 10px;border:0;border-radius:7px;font:inherit;cursor:pointer}.customer-manage-toolbar{display:flex;align-items:center;gap:15px;margin-bottom:16px}.customer-manage-toolbar>b{margin-left:auto;padding:7px 12px;border-radius:18px;background:#e8f1ff;color:#174b98}.event-customer-table th,.event-customer-table td{vertical-align:middle}.event-customer-table .check-col{width:58px;text-align:center}.event-customer-check{width:18px;height:18px}

/* Compact back-office layout: hide legacy explanatory copy but preserve
   labels, statuses, empty states, confirmations, validation and errors. */
.page-title>div>p.muted,
.workspace-head>div>p.muted,
.event-form-tip,
.material-guide,
.permission-warning,
.brand-scope-editor>p.muted,
.custom-ratio-fields>span.muted,
.thumb-size-setting>span.muted,
.toolbar>span.muted,
.dashboard-title>span.muted,
.publish-action p.muted,
.mobile-entry-card p,
.loginbox>p.muted,
.dialog>p.muted{display:none!important}
.page-title{margin-bottom:14px}
.workspace-head{padding-bottom:14px;margin-bottom:14px}
.event-basic-form{margin-top:8px}
.material-event-selector{margin-bottom:14px}
.customer-manage-toolbar select{min-width:160px;height:43px;padding:0 38px 0 13px;border:1px solid #c9d5e5;border-radius:9px;background:#fff;color:#344054;font:inherit}
.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px}.form-actions button{margin:0!important}.customer-head-actions{margin-left:auto;flex-wrap:nowrap;white-space:nowrap}.customer-manage-toolbar .event-search-box{flex:1;max-width:420px;min-width:240px}
@media(max-width:1100px){.customer-manage-toolbar{flex-wrap:wrap}.customer-manage-toolbar .customer-head-actions{width:100%;justify-content:flex-end}}
.event-customer-table{min-width:1320px}.event-customer-table th,.event-customer-table td{text-align:center;padding:13px 10px}.event-customer-table td.name{text-align:left;white-space:nowrap}.customer-tree-toggle{width:25px;height:25px;margin-right:6px;border:0;border-radius:5px;background:#e8f1ff;color:#174b98;font-size:18px;cursor:pointer}.customer-tree-indent{display:inline-block;width:32px;color:#98a2b3}.terminal-row{background:#fbfcfe}.customer-type{display:inline-flex;padding:5px 10px;border-radius:16px;font-weight:700}.customer-type.agent{background:#fff3df;color:#a65a00}.customer-type.terminal{background:#e8f1ff;color:#174b98}.customer-editable{display:flex;align-items:center;justify-content:center;gap:5px;min-width:108px}.customer-editable>button{border:0;background:transparent;color:#2465b3;cursor:pointer;font-size:16px}.customer-editable.editing{min-width:150px}.customer-editable.editing input{width:78px;padding:7px;border:1px solid #9fb8d8;border-radius:6px;font:inherit}.customer-editable .customer-confirm{padding:7px 9px;border-radius:6px;background:#2465b3;color:#fff;font-size:13px;font-weight:700}.customer-actions{min-width:170px}.customer-form{margin-top:14px}
.event-customer-table .check-col{width:58px;min-width:58px}.event-customer-check{width:18px;height:18px;accent-color:#2b67bd}.customer-batch-toolbar{margin-top:-2px}.customer-batch-toolbar .event-batch-actions{order:1}.customer-batch-toolbar>b{order:2;margin-left:auto}
.customer-workspace{padding-bottom:60px}.customer-pagination{position:fixed;z-index:4;left:225px;right:0;bottom:0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:5px 16px;border-top:1px solid #cfd9e7;background:#fff;box-shadow:0 -3px 10px rgba(16,42,86,.08);font-size:14px;font-weight:700;color:#344054}.customer-pagination button,.customer-pagination select{height:34px;padding:0 11px;border:1px solid #b9cbe2;border-radius:7px;background:#fff;color:#174b98;font:inherit;font-weight:700}.customer-pagination button{cursor:pointer}.customer-pagination button:disabled{opacity:.4;cursor:not-allowed}.customer-pagination label{display:flex;align-items:center;gap:5px}.customer-pagination select{min-width:66px}
.customer-editable.editing{min-width:190px}.customer-editable.editing input{width:112px!important;text-align:center;appearance:textfield;-moz-appearance:textfield}.customer-editable.editing input::-webkit-inner-spin-button,.customer-editable.editing input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.customer-editable:not(.editing){cursor:text}.customer-editable:not(.editing):hover span{color:#174b98}
table{border-collapse:separate!important;border-spacing:0!important}table th,table td{text-align:center!important;border-right:1px solid #dfe6ef!important}table th:last-child,table td:last-child{border-right:0!important}table td.name{text-align:center!important}.num{text-align:center!important}
@media(max-width:800px){.customer-pagination{left:0;overflow-x:auto;justify-content:flex-start;white-space:nowrap;padding-left:14px;padding-right:14px}}
.app{height:100vh;overflow:hidden}.side{height:100vh;overflow-y:auto;overscroll-behavior:contain}.app>main{height:100vh;min-width:0;overflow-y:auto;overscroll-behavior:contain}.top{position:sticky;z-index:40;top:0}.page{width:100%;max-width:none!important;margin:0!important;padding-top:12px!important;padding-bottom:14px!important}.page.event-customers-page{padding-left:20px;padding-right:20px}.event-customers-page .customer-workspace{width:100%;padding-left:16px;padding-right:16px}.event-customer-table{width:100%;min-width:1260px}.event-customer-table th:last-child,.event-customer-table td:last-child{width:190px;min-width:190px}.customer-actions{width:100%;min-width:180px}.customer-actions button{padding-left:8px;padding-right:8px}
.top-page-title{color:#143b79;font-size:21px;font-weight:800;line-height:1;white-space:nowrap}.page-title>div:first-child{display:none}.page-title{justify-content:flex-end}.page-title:has(>div:only-child){display:none}.event-workspace .workspace-head h2,.event-workspace .workspace-head p.muted{display:none}.event-workspace .workspace-head{justify-content:flex-end}.event-workspace .workspace-head:has(>div:only-child){display:none}.page>h1,.event-name-only{display:none}.start-event-name{margin-bottom:18px;padding:13px 15px;border-radius:8px;background:#f4f7fb;color:#173b70;font-size:17px;font-weight:800}
.product-image-field{display:grid;gap:8px}.product-image-picker{display:flex;align-items:center;gap:16px;padding:12px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc}.product-thumb-preview{display:grid;place-items:center;width:88px;height:88px;overflow:hidden;border:1px solid #cbd8ea;border-radius:9px;background:#fff;color:#77869a;flex:0 0 auto}.product-thumb-preview img{width:100%;height:100%;object-fit:cover}.product-thumb-preview.empty{background:#eef3f8}.product-image-picker>div:last-child{display:grid;gap:12px}.product-image-actions{display:flex;gap:10px}.sku-section-title{display:flex;align-items:center;justify-content:space-between}.product-sku-rows{grid-column:1/-1;display:grid;gap:10px;min-width:0}.product-sku-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:end;gap:10px;min-width:0;padding:12px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc}.product-sku-row .field{min-width:0}.product-sku-row input{width:100%;min-width:0;box-sizing:border-box}.sku-remove{height:42px;padding:0 14px;border:1px solid #f0b8b8;border-radius:8px;background:#fff1f1;color:#c52b24;cursor:pointer}.sku-remove:hover{background:#ffe4e4}
@media(max-width:800px){.product-sku-row{grid-template-columns:1fr 1fr}.product-sku-row .sku-remove{grid-column:1/-1}.product-image-picker{align-items:flex-start;flex-direction:column}}
@media(max-width:800px){.app{height:auto;overflow:visible}.side{height:auto;overflow-x:auto;overflow-y:hidden}.app>main{height:auto;overflow:visible}.top{position:relative}.page.event-customers-page{padding-left:15px;padding-right:15px}}
@media(max-width:900px){.dashboard-widget-grid{grid-template-columns:1fr}.dashboard-widget{grid-column:1/-1!important}.dashboard-view-toolbar{align-items:flex-start;flex-direction:column}.dashboard-resize-handle,.dashboard-drag-handle{display:none}}
.dashboard-summary-wrap{overflow-x:hidden!important}.dashboard-widget .dashboard-summary-table{width:100%;min-width:0!important;table-layout:fixed}.dashboard-summary-table th,.dashboard-summary-table td{padding-left:9px!important;padding-right:9px!important;white-space:nowrap}.dashboard-summary-table th:nth-child(1),.dashboard-summary-table td:nth-child(1){width:52%;text-align:left}.dashboard-summary-table th:nth-child(2),.dashboard-summary-table td:nth-child(2){width:17%;text-align:center}.dashboard-summary-table th:nth-child(3),.dashboard-summary-table td:nth-child(3){width:31%;text-align:right}.dashboard-summary-key{display:grid;gap:8px;min-width:0}.dashboard-summary-key b{display:block;overflow:hidden;text-overflow:ellipsis;color:#174b98;font-size:14px;line-height:1.25}.dashboard-summary-table .sales-bar{width:100%;min-width:0}.dashboard-summary-table td:last-child{font-size:13px;font-variant-numeric:tabular-nums}
.dashboard-detail-wrap{overflow-x:hidden!important}.dashboard-detail-table{width:100%;min-width:0!important;table-layout:fixed}.dashboard-detail-table th,.dashboard-detail-table td{padding-left:7px!important;padding-right:7px!important;white-space:normal;word-break:break-word}.dashboard-detail-table td.name{color:#174b98;font-weight:700}.dashboard-detail-table td.name small{display:block;margin-top:2px;color:#667085;font-size:12px;font-weight:400}.dashboard-detail-table .num{white-space:nowrap;font-variant-numeric:tabular-nums}.dashboard-detail-table.dimension-province th:nth-child(1){width:16%}.dashboard-detail-table.dimension-province th:nth-child(2){width:20%}.dashboard-detail-table.dimension-province th:nth-child(3){width:28%}.dashboard-detail-table.dimension-province th:nth-child(4){width:14%}.dashboard-detail-table.dimension-province th:nth-child(5){width:22%}.dashboard-detail-table.dimension-terminal th:nth-child(1){width:22%}.dashboard-detail-table.dimension-terminal th:nth-child(2){width:12%}.dashboard-detail-table.dimension-terminal th:nth-child(3){width:16%}.dashboard-detail-table.dimension-terminal th:nth-child(4){width:22%}.dashboard-detail-table.dimension-terminal th:nth-child(5){width:11%}.dashboard-detail-table.dimension-terminal th:nth-child(6){width:17%}.dashboard-detail-table.dimension-brand th:nth-child(1){width:28%}.dashboard-detail-table.dimension-brand th:nth-child(2){width:36%}.dashboard-detail-table.dimension-brand th:nth-child(3){width:14%}.dashboard-detail-table.dimension-brand th:nth-child(4){width:22%}
.dashboard-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-selector .scope-selector-row{grid-template-columns:88px minmax(0,1fr);min-width:0;border-bottom:0}
.dashboard-selector .scope-selector-row:first-child{border-right:1px solid #edf1f6}
.dashboard-selector .scope-chip-list{min-width:0}
.dashboard-metric-grid{margin-bottom:16px}
.dashboard-metric-grid .dashboard-widget{min-height:150px}
.dashboard-metric-grid .dashboard-drag-handle,.dashboard-metric-grid .dashboard-resize-handle{display:none}
@media(max-width:800px){.dashboard-selector{grid-template-columns:1fr}.dashboard-selector .scope-selector-row:first-child{border-right:0;border-bottom:1px solid #edf1f6}}
table th{font-size:16px!important;font-weight:800!important;color:#173b70!important;line-height:1.4}
.event-customer-table td{font-size:15px;line-height:1.45}
.delete-password-confirm{max-width:520px;margin:auto}.delete-password-confirm h2{margin:0 0 8px;color:#173b70;font-size:24px}.delete-password-confirm>p{margin:0 0 16px;color:#475467;font-size:15px;line-height:1.7}.delete-password-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:14px;border-radius:50%;background:#fff0ef;color:#d92d20;font-size:26px;font-weight:900}.delete-password-warning{margin-bottom:16px;padding:11px 13px;border:1px solid #f2c5c0;border-radius:8px;background:#fff7f6;color:#9f2d24;font-weight:700}.delete-password-confirm .field{margin:0 0 20px;font-size:16px;font-weight:700}.delete-password-confirm .field input{height:46px;font-size:17px}.delete-confirm-button{min-width:126px;background:#d92d20!important;color:#fff!important;font-weight:800}.delete-confirm-button:disabled{opacity:.65;cursor:wait}
.security-settings{padding:0;overflow:hidden}.security-master-row{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid #dce5f1;background:#f8fbff}.security-master-row>div{display:flex;align-items:center;gap:14px}.security-master-row b{color:#123f7a;font-size:21px}.security-master-row span{padding:5px 12px;border-radius:18px;background:#e7f7ee;color:#128557;font-weight:800}.security-master-row span.off{background:#f1f3f6;color:#667085}.switch-control{position:relative;width:58px;height:32px;cursor:pointer}.switch-control input{position:absolute;opacity:0}.switch-control i{position:absolute;inset:0;border-radius:18px;background:#aab6c7;transition:.18s}.switch-control i:after{content:"";position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0003;transition:.18s}.switch-control input:checked+i{background:#2465c2}.switch-control input:checked+i:after{transform:translateX(26px)}.security-section-head{display:flex;align-items:center;justify-content:space-between;padding:18px 24px 10px;color:#173b70;font-size:18px}.security-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 24px 20px}.security-action-card{display:flex;align-items:center;gap:13px;min-height:76px;padding:12px 16px;border:1px solid #cad7e8;border-radius:10px;background:#fff;cursor:pointer}.security-action-card:hover,.security-action-card.selected{border-color:#4d86d5;background:#f1f6ff}.security-action-card.disabled{opacity:.55;cursor:not-allowed}.security-action-card input{width:21px;height:21px;accent-color:#2465c2}.security-action-card span{display:flex;flex-direction:column;gap:4px}.security-action-card b{color:#173b70;font-size:17px}.security-action-card small{color:#667085;font-size:14px}.security-save-row{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-top:1px solid #dce5f1;background:#f8fafc;color:#667085}.security-save-row .primary{min-width:120px}@media(max-width:800px){.security-action-grid{grid-template-columns:1fr}.security-save-row{align-items:stretch;flex-direction:column;gap:12px}}
.brand-settings-table{width:100%;table-layout:fixed}.brand-settings-table th:nth-child(1){width:18%}.brand-settings-table th:nth-child(2){width:40%}.brand-settings-table th:nth-child(3){width:25%}.brand-settings-table th:nth-child(4){width:17%}.brand-series-cell{padding:8px 12px!important}.brand-series-list{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;min-height:34px}.brand-series-tag{display:inline-flex;align-items:center;gap:5px;max-width:190px;padding:5px 7px 5px 11px;border:1px solid #bdd1ed;border-radius:17px;background:#edf4ff;color:#164f9e;font-size:14px;font-weight:700}.brand-series-tag button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:transparent;color:#667b98;font-size:18px;line-height:1;cursor:pointer}.brand-series-tag button:hover{background:#d8e7fb;color:#d92d20}.brand-series-empty{color:#98a2b3}.brand-series-add{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px dashed #6d9cda;border-radius:8px;background:#f7faff;color:#1459ad;font-size:22px;line-height:1;cursor:pointer}.brand-series-add:hover{border-style:solid;background:#e9f2ff}.brand-series-input{display:flex;align-items:center;gap:6px}.brand-series-input input{width:160px;height:36px;padding:0 10px;border:1px solid #75a3df;border-radius:8px;font-size:15px;outline:0}.brand-series-input button{height:34px;padding:0 10px;border:1px solid #c7d5e7;border-radius:7px;background:#fff;color:#174b98;font-weight:700;cursor:pointer}.brand-series-input button[type=submit]{border-color:#2465c2;background:#2465c2;color:#fff}@media(max-width:900px){.brand-settings-table{min-width:980px}}
.audit-log-panel{padding:16px}.audit-log-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:14px}.audit-log-toolbar .event-search-box{flex:1;max-width:520px}.audit-log-toolbar select{height:43px;min-width:230px;padding:0 38px 0 13px;border:1px solid #c9d5e5;border-radius:9px;background:#fff;color:#344054;font:inherit}.audit-log-count{margin-left:auto;padding:7px 12px;border-radius:18px;background:#e8f1ff;color:#174b98;font-weight:800;white-space:nowrap}.audit-log-table{min-width:980px}.audit-log-table th,.audit-log-table td{padding:13px 12px!important}.audit-log-table th:nth-child(1){width:170px}.audit-log-table th:nth-child(2){width:240px}.audit-log-table th:nth-child(3){width:150px}.audit-log-table th:nth-child(5){width:165px}.audit-log-table td:first-child b,.audit-log-table td:first-child small{display:block}.audit-log-table td:first-child small{margin-top:3px;color:#667085}.audit-time{font-family:Consolas,monospace;white-space:nowrap}.audit-action{display:inline-flex;align-items:center;justify-content:center;min-width:84px;padding:5px 10px;border-radius:16px;background:#e8f1ff;color:#174b98;font-weight:800;white-space:nowrap}.audit-action.success{background:#e8f7ef;color:#138a5b}.audit-action.danger{background:#fff0ef;color:#d92d20}@media(max-width:800px){.audit-log-toolbar{align-items:stretch;flex-direction:column}.audit-log-toolbar .event-search-box,.audit-log-toolbar select{width:100%;max-width:none}.audit-log-count{align-self:flex-start;margin-left:0}}

/* Unified compact table system. */
table thead th{height:46px!important;padding:8px 9px!important;background:#f4f7fc!important;color:#123c79!important;font-size:16px!important;font-weight:800!important;line-height:1.25!important;vertical-align:middle!important;white-space:nowrap}
table tbody td{height:46px;padding:7px 9px!important;font-size:14px;line-height:1.35;vertical-align:middle!important}
.tablewrap{scrollbar-gutter:stable;overscroll-behavior:contain}
.panel>.tablewrap,.event-workspace>.tablewrap,#list.tablewrap,.audit-log-panel>.tablewrap,.event-order-report>.tablewrap{max-height:calc(100vh - 245px);overflow:auto}
.tablewrap>table>thead>tr>th{position:sticky;z-index:8;top:0;box-shadow:0 1px 0 #d6e0ed}
.event-order-report-table th,.event-order-report-table td{height:46px!important;padding:7px 8px!important}
.auto-page-hidden{display:none!important}
.unified-pagination{position:sticky;z-index:12;bottom:0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:5px 16px;border-top:1px solid #cfd9e7;background:#fff;box-shadow:0 -3px 10px rgba(16,42,86,.08);color:#344054;font-size:14px;font-weight:700}
.unified-pagination button,.unified-pagination select{height:34px;padding:0 11px;border:1px solid #b9cbe2;border-radius:7px;background:#fff;color:#174b98;font:inherit;font-weight:700}
.unified-pagination button{cursor:pointer}.unified-pagination button:disabled{opacity:.4;cursor:not-allowed}.unified-pagination label{display:flex;align-items:center;gap:5px;white-space:nowrap}.pagination-summary{min-width:66px;color:#526172;text-align:center}
.page.event-products-page{padding-top:5px!important;padding-bottom:8px!important}.event-products-page .event-product-workspace{padding:10px}.event-products-page .event-product-toolbar{margin-bottom:8px}.event-products-page .unified-pagination{min-height:42px;padding-top:3px;padding-bottom:3px}.event-products-page .unified-pagination button,.event-products-page .unified-pagination select{height:32px}
.dashboard-view-toolbar{padding:8px 12px;margin-bottom:12px}.dashboard-view-toolbar label{font-size:15px}.dashboard-view-toolbar select{height:38px}
@media(max-width:900px){.unified-pagination{justify-content:flex-start;overflow-x:auto;white-space:nowrap}}

/* 手机订货端：发布设置、实时预览与代理商实际页面 */
.mobile-publish-workspace{padding:0;overflow:hidden}.mobile-publish-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #dce5f1;background:#fff}.mobile-publish-toolbar>div:first-child{display:flex;align-items:baseline;gap:14px}.mobile-publish-toolbar b{color:#123c79;font-size:21px}.mobile-publish-toolbar span{color:#667085}.mobile-publish-toolbar>div:last-child{display:flex;gap:10px}.mobile-publish-layout{display:grid;grid-template-columns:minmax(250px,1fr) minmax(330px,1.25fr) minmax(240px,.9fr);gap:18px;padding:18px;background:#f3f6fb}.mobile-config-panel,.mobile-release-panel{padding:17px;border:1px solid #d8e2ef;border-radius:12px;background:#fff}.mobile-config-panel h3,.mobile-release-panel h3{margin:0 0 14px;color:#173b70;font-size:18px}.mobile-config-panel label{display:grid;gap:6px;margin-bottom:13px;color:#344054;font-weight:700}.mobile-config-panel input:not([type=checkbox]),.mobile-config-panel select{box-sizing:border-box;width:100%;height:42px;padding:0 11px;border:1px solid #c7d5e7;border-radius:8px;background:#fff;font:inherit}.mobile-config-panel input[type=color]{padding:5px}.mobile-config-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-setting-check{display:flex!important;align-items:center;gap:10px;margin-bottom:7px!important;padding:9px 11px;border-radius:8px;background:#f5f8fc;cursor:pointer}.mobile-setting-check input{width:19px;height:19px;accent-color:#2465c2}.mobile-phone-stage{display:flex;align-items:center;flex-direction:column;gap:9px}.mobile-phone-frame{width:320px;max-width:100%;padding:11px;border:5px solid #26364d;border-radius:32px;background:#26364d;box-shadow:0 15px 28px rgba(26,48,80,.18)}.mobile-phone-speaker{width:72px;height:5px;margin:0 auto 9px;border-radius:5px;background:#728096}.mobile-phone-screen{height:560px;overflow-y:auto;border-radius:19px;background:#f3f6fb}.mobile-phone-stage>span{color:#667085;font-weight:700}.mobile-demo-head{padding:17px 14px 13px;background:var(--preview-theme);color:#fff}.mobile-demo-head small{opacity:.8}.mobile-demo-head b{display:block;margin-top:3px;font-size:19px}.mobile-demo-search{margin:11px;padding:9px 11px;border-radius:9px;background:#fff;color:#8490a3}.mobile-demo-categories{display:flex;gap:6px;overflow:hidden;padding:0 11px 10px;white-space:nowrap}.mobile-demo-categories span{padding:5px 9px;border-radius:14px;background:#fff;color:#53627a;font-size:12px}.mobile-demo-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 10px 12px}.mobile-demo-products.columns-1{grid-template-columns:1fr}.mobile-demo-card{min-width:0;padding:8px;border-radius:10px;background:#fff}.mobile-demo-card img,.mobile-demo-placeholder{display:grid;place-items:center;width:100%;aspect-ratio:1/1;border-radius:7px;object-fit:cover;background:#e7edf5;color:#98a3b4}.mobile-demo-card b{display:block;margin:7px 0 3px;color:#173b70;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-demo-card small,.mobile-demo-card p,.mobile-demo-card del{display:block;margin:2px 0;color:#77869a;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-demo-card strong{display:block;margin:5px 0;color:#e4572e}.mobile-demo-card button{width:100%;padding:7px;border:0;border-radius:7px;background:var(--preview-theme);color:#fff;font-weight:700}.mobile-release-panel{align-self:start}.mobile-release-status{display:grid;gap:5px;padding:12px 0;border-bottom:1px solid #e4eaf2}.mobile-release-status:last-child{border-bottom:0}.mobile-release-status small{color:#667085}.mobile-release-status b{color:#173b70;line-height:1.55}.mobile-release-status code{overflow:hidden;padding:8px;border-radius:6px;background:#f1f5fa;color:#475467;text-overflow:ellipsis}.mobile-release-status button{margin-top:5px}.publish-action{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-top:1px solid #dce5f1;background:#fff}.publish-action b{color:#173b70;font-size:17px}
.agent-mobile-portal{--mobile-theme:#215db5;max-width:980px;margin:0 auto;padding:18px 20px 36px;background:#f3f6fb;min-height:100%;color:#162238}.agent-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-18px -20px 16px;padding:20px;background:var(--mobile-theme);color:#fff}.agent-mobile-head small{display:block;margin-bottom:4px;opacity:.82;font-size:14px}.agent-mobile-head h1{margin:0;color:#fff;font-size:25px}.agent-mobile-head button{border:0;border-radius:10px;padding:10px 15px;background:#fff;color:var(--mobile-theme);font-weight:700;font-size:15px}.agent-mobile-search{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding:0 14px;height:46px;border:1px solid #ccd8ea;border-radius:12px;background:#fff;color:#61718b}.agent-mobile-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:16px}.agent-mobile-categories{display:flex;gap:8px;overflow-x:auto;margin-bottom:14px;padding-bottom:3px;white-space:nowrap}.agent-mobile-categories span,.agent-mobile-categories b{padding:7px 13px;border-radius:18px;background:#fff;border:1px solid #d8e0ed;font-size:14px}.agent-mobile-categories b{background:var(--mobile-theme);border-color:var(--mobile-theme);color:#fff}.agent-mobile-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.agent-mobile-products.columns-1{grid-template-columns:1fr}.agent-mobile-products article{min-width:0;padding:12px;border:1px solid #dfe6f0;border-radius:14px;background:#fff;box-shadow:0 2px 8px rgba(24,48,84,.05);cursor:pointer}.agent-mobile-products article h3{margin:9px 0 3px;font-size:17px;color:#123b78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-mobile-products article small{color:#65758e}.agent-mobile-products article p{height:38px;margin:6px 0;color:#65758e;overflow:hidden;line-height:19px}.agent-mobile-products article del{display:block;color:#98a3b4;font-size:13px}.agent-mobile-products article strong{display:block;margin:7px 0;color:#e4572e;font-size:17px}.agent-mobile-products article button{width:100%;border:0;border-radius:9px;padding:9px;background:var(--mobile-theme);color:#fff;font-size:15px;font-weight:700}.agent-mobile-photo{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:#eef2f7;color:#98a3b4}.agent-mobile-photo img{width:100%;height:100%;object-fit:cover}.empty-portal{grid-column:1/-1;text-align:center;padding:45px 20px}
@media(max-width:1150px){.mobile-publish-layout{grid-template-columns:minmax(250px,.8fr) minmax(330px,1.2fr)}.mobile-release-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.mobile-release-panel h3{grid-column:1/-1}.mobile-release-status{border:0;padding:0}}
@media(max-width:850px){.mobile-publish-layout{grid-template-columns:1fr}.mobile-phone-stage{order:-1}.mobile-release-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.publish-action{align-items:stretch;flex-direction:column;gap:12px}}
@media(max-width:600px){.agent-mobile-portal{max-width:none;padding:14px 12px 28px}.agent-mobile-head{margin:-14px -12px 14px;padding:17px 14px}.agent-mobile-head h1{font-size:22px}.agent-mobile-products{gap:10px}.agent-mobile-products article{padding:9px}.agent-mobile-products article h3{font-size:16px}}

/* 数据概览分组与任务达成率 */
.dashboard-summary-table th,.dashboard-summary-table td{padding-left:7px!important;padding-right:7px!important}.dashboard-summary-table th:nth-child(1),.dashboard-summary-table td:nth-child(1){width:40%!important}.dashboard-summary-table th:nth-child(2),.dashboard-summary-table td:nth-child(2){width:13%!important}.dashboard-summary-table th:nth-child(3),.dashboard-summary-table td:nth-child(3){width:27%!important}.dashboard-summary-table th:nth-child(4),.dashboard-summary-table td:nth-child(4){width:20%!important;text-align:center!important}.dashboard-summary-table td:nth-child(3){font-size:13px;font-variant-numeric:tabular-nums}.dashboard-achievement{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:5px 7px;border-radius:15px;background:#eef2f7;color:#526172;font-weight:800;font-variant-numeric:tabular-nums}.dashboard-achievement.near{background:#fff3df;color:#a45b07}.dashboard-achievement.done{background:#e7f7ee;color:#118259}
.dashboard-detail-table tbody tr.dashboard-group-start:not(:first-child)>td{border-top:8px solid #eef3f9!important}.dashboard-detail-group{padding:14px 10px!important;background:#edf4ff!important;color:#123f7a!important;vertical-align:middle!important}.dashboard-detail-group strong{display:block;font-size:17px;line-height:1.45}.dashboard-detail-group small{display:block;margin-top:5px;color:#607798;font-size:12px;font-weight:500}.dashboard-detail-table tbody tr:hover td:not(.dashboard-detail-group){background:#f8fbff}

/* 客户任务完成情况与测试登录密码 */
.event-customer-table{min-width:1160px!important}.event-customer-table th,.event-customer-table td{padding-left:6px!important;padding-right:6px!important;font-size:14px}.event-customer-table th:last-child,.event-customer-table td:last-child{width:170px!important;min-width:170px!important}.customer-password{display:inline-block;padding:5px 7px;border-radius:6px;background:#f1f5fa;color:#173b70;font-family:Consolas,monospace;font-weight:700;white-space:nowrap}.customer-achieved{color:#174b98;font-family:Consolas,monospace;font-weight:800;white-space:nowrap}.customer-completion{display:inline-flex;align-items:center;justify-content:center;min-width:54px;padding:5px 6px;border-radius:15px;background:#eef2f7;color:#526172;font-weight:800;font-variant-numeric:tabular-nums}.customer-completion.near{background:#fff3df;color:#a45b07}.customer-completion.done{background:#e7f7ee;color:#118259}
.customer-editable-text>span{color:#174b98;white-space:nowrap}.customer-editable-text>span:only-child:empty,.customer-editable-text>span{cursor:text}.customer-editable-text.editing{min-width:185px}.customer-editable-text.editing input{width:112px}

/* 四个数据模块统一多选：当前页三态全选、两项后批量工具栏、无展开闪动 */
.select-all-control{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;color:#0d4b9b;font-size:14px;font-weight:800;white-space:nowrap;cursor:pointer;user-select:none}.select-all-control input{width:18px;height:18px;margin:0;accent-color:#2465c2;cursor:pointer}.event-batch-toolbar{display:none!important;max-height:none!important;min-height:48px!important;margin:10px 0!important;padding:7px 12px!important;opacity:1!important;transform:none!important;transition:none!important}.event-batch-toolbar.show{display:flex!important}.event-batch-toolbar .event-batch-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;order:1}.event-batch-toolbar>b{order:2;margin-left:auto!important;white-space:nowrap}.batch-all-results{display:none!important;border:1px dashed #4d82c8!important;background:#fff!important;color:#174f9e!important}.batch-all-results.show{display:inline-flex!important;align-items:center}.selection-selected>td{background:#eef5ff!important}.material-card.selection-selected{border-color:#4b82cf!important;box-shadow:0 0 0 2px rgba(44,105,193,.14)}.material-toolbar>.select-all-control{align-self:stretch;min-width:72px;padding:0 10px;border:1px solid #c8d7ea;border-radius:9px;background:#f5f8fc}.material-check span{font-weight:700}.check-col{min-width:68px!important;width:68px!important}

/* 所有弹窗必须完整覆盖固定表头、固定分页栏、筛选菜单和移动端悬浮按钮。 */
#modal.modal{z-index:1000!important}
#toast.toast{z-index:1100!important}

/* 手机订货端：参考暖棕品牌商城样式 */
.mobile-phone-screen{position:relative;padding-bottom:0!important;background:linear-gradient(155deg,#fffaf0 0%,#f4e7d8 48%,#fff9ef 100%)!important;color:#604735}.mobile-demo-brand{position:sticky;z-index:5;top:0;display:grid;grid-template-columns:38px 1fr 38px;align-items:center;min-height:68px;padding:0 14px;background:var(--preview-theme,#b9825b);color:#fff;text-align:center}.mobile-demo-brand button{border:0;background:transparent;color:#fff;font-size:24px}.mobile-demo-brand b{display:block;font-family:Georgia,serif;font-size:24px;letter-spacing:1px}.mobile-demo-brand small{display:block;margin-top:1px;color:#fff9;font-size:10px}.mobile-demo-hero{display:grid;gap:3px;padding:19px 18px 24px;background:linear-gradient(180deg,rgba(185,130,91,.18),transparent);text-align:center}.mobile-demo-hero small{color:#9d7457}.mobile-demo-hero strong{color:#805b42;font-family:Georgia,"Microsoft YaHei",serif;font-size:20px}.mobile-demo-series{padding:0 12px}.mobile-demo-series-group{margin:0 0 15px}.mobile-demo-series-group header{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 14px;border:1px solid #eadbc8;border-radius:9px;background:rgba(255,252,244,.88);color:#a36f4c}.mobile-demo-series-group header b{font-size:15px}.mobile-demo-series-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px 8px 0}.mobile-demo-series-group button{min-height:39px;border:1px solid #efe2d2;border-radius:8px;background:rgba(255,253,247,.9);color:#9b704f;font-size:13px}.mobile-demo-search{margin:10px 13px!important;border:1px solid #e7d7c4!important;border-radius:9px!important;background:rgba(255,253,248,.94)!important;color:#a18672!important}.mobile-demo-product-title{margin:16px 13px 9px;color:#815b42;font-size:15px}.mobile-demo-grid{padding:0 11px 14px!important}.mobile-demo-product{border-color:#eadfce!important;background:rgba(255,253,248,.94)!important}.mobile-demo-product>b{color:#73503b!important}.mobile-demo-product strong{color:#b16f46!important}.mobile-demo-cart{position:sticky;z-index:4;bottom:65px;display:grid;place-items:center;width:46px;height:46px;margin:0 12px 12px auto;border:0;border-radius:50%;background:var(--preview-theme,#b9825b);color:#fff;font-size:20px;box-shadow:0 5px 14px #76533d38}.mobile-demo-nav{position:sticky!important;z-index:5;bottom:0;display:grid!important;grid-template-columns:repeat(4,1fr)!important;min-height:58px;padding:7px 4px 5px!important;border-top:1px solid #e8dac9;background:rgba(255,252,245,.97)!important;color:#755e4f}.mobile-demo-nav b,.mobile-demo-nav span{display:grid;place-items:center;gap:1px;font-size:18px}.mobile-demo-nav small{display:block;font-size:10px;font-weight:600}.mobile-demo-nav b{color:var(--preview-theme,#b9825b)!important}
.agent-mobile-portal{--mobile-theme:#b9825b;position:relative;box-sizing:border-box;max-width:480px!important;min-height:100vh!important;margin:0 auto!important;padding:0 14px 102px!important;overflow:hidden;background:linear-gradient(150deg,#fffaf0 0%,#f2e3d2 52%,#fff9ef 100%)!important;color:#594332!important}.agent-mobile-brand{position:sticky;z-index:20;top:0;display:grid;grid-template-columns:50px 1fr 50px;align-items:center;margin:0 -14px;min-height:78px;padding:0 8px;background:var(--mobile-theme);color:#fff;text-align:center}.agent-mobile-brand button{display:grid;place-items:center;width:46px;height:46px;border:0;background:transparent;color:#fff;font-size:29px}.agent-mobile-brand b{display:block;font-family:Georgia,serif;font-size:31px;font-weight:500;letter-spacing:1px}.agent-mobile-brand small{display:block;margin-top:1px;color:#fff9;font-size:12px}.agent-mobile-hero{margin:0 -14px 18px;padding:26px 20px 32px;background:linear-gradient(180deg,rgba(185,130,91,.22),rgba(255,250,240,.15));text-align:center}.agent-mobile-hero small{color:#987258;font-size:14px}.agent-mobile-hero h1{margin:5px 0 0;color:#825d44;font-family:Georgia,"Microsoft YaHei",serif;font-size:25px}.agent-mobile-series{margin-bottom:18px}.agent-series-group{margin:0 0 20px}.agent-series-group header{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:0 18px;border:1px solid #ead9c4;border-radius:11px;background:rgba(255,252,244,.9);color:#a16f4d}.agent-series-group header b{font-size:20px}.agent-series-group header b:before{content:"";display:inline-block;width:3px;height:24px;margin-right:10px;background:#b9825b;vertical-align:-5px}.agent-series-group header span{font-size:21px}.agent-series-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:12px 10px 0}.agent-series-group button{min-height:54px;padding:8px;border:1px solid #eddfce;border-radius:10px;background:rgba(255,253,247,.92);color:#9c704f;font-size:17px}.agent-series-group button.active{border-color:var(--mobile-theme);background:#f1dfcf;color:#7c5136;font-weight:800}.agent-mobile-search{height:50px!important;margin:4px 0 16px!important;border:1px solid #e2cfb8!important;border-radius:11px!important;background:rgba(255,253,248,.96)!important;color:#9a7d67!important}.agent-mobile-search input{font-size:16px!important}.agent-mobile-list-head{display:flex;align-items:center;justify-content:space-between;margin:12px 2px;color:#76543e}.agent-mobile-list-head b{font-size:20px}.agent-mobile-list-head span{color:#9b806d;font-size:14px}.agent-mobile-products{gap:12px!important}.agent-mobile-products article{padding:10px!important;border-color:#e8dac8!important;border-radius:12px!important;background:rgba(255,253,248,.96)!important;box-shadow:0 3px 12px rgba(112,76,49,.08)!important}.agent-mobile-products article h3{color:#704d38!important}.agent-mobile-products article strong{color:#b46e42!important}.agent-mobile-products article button{background:var(--mobile-theme)!important}.agent-mobile-cart{position:fixed;z-index:30;right:max(calc((100vw - 480px)/2 + 18px),18px);bottom:88px;display:grid;place-items:center;width:62px;height:62px;border:0;border-radius:50%;background:var(--mobile-theme);color:#fff;box-shadow:0 7px 18px rgba(109,73,47,.28)}.agent-mobile-cart span{font-size:25px}.agent-mobile-cart i{position:absolute;top:-2px;right:-1px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 3px;border:2px solid #fff;border-radius:12px;background:#d9534f;color:#fff;font-style:normal;font-size:11px}.agent-mobile-bottom{position:fixed;z-index:25;right:0;bottom:0;left:50%;display:grid;grid-template-columns:repeat(4,1fr);width:min(480px,100vw);min-height:76px;transform:translateX(-50%);border-top:1px solid #e5d5c1;background:rgba(255,252,245,.98);box-shadow:0 -3px 15px rgba(104,72,48,.08)}.agent-mobile-bottom button{display:grid;place-items:center;align-content:center;gap:3px;border:0;background:transparent;color:#6f625a}.agent-mobile-bottom b{font-size:25px;font-weight:500}.agent-mobile-bottom span{font-size:13px;font-weight:700}.agent-mobile-bottom button.active{color:var(--mobile-theme)}
@media(max-width:600px){.agent-mobile-portal{max-width:none!important;padding-right:12px!important;padding-left:12px!important}.agent-mobile-brand{margin-right:-12px;margin-left:-12px}.agent-mobile-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.agent-mobile-cart{right:18px}}

/* Fixed-ratio white thumbnail cells; source images remain complete and centered. */
.product-thumb,.event-thumb-button img,.material-image img,.product-thumb-preview img,.mobile-demo-photo img,.mobile-demo-card img,.agent-mobile-photo img{object-fit:contain!important;object-position:center center!important;background:#fff!important}
.product-thumb{display:block;margin-inline:auto}
.event-thumb-button,.material-image,.product-thumb-preview,.mobile-demo-photo,.mobile-demo-card img,.agent-mobile-photo{background:#fff!important}

/* 发布设置组件编辑器与实际手机端共用样式 */
.mobile-image-setting{display:grid;gap:6px;margin-bottom:12px;padding:10px;border:1px solid #dbe4ef;border-radius:9px;background:#f8fbff}.mobile-image-setting>span{color:#344054;font-weight:700}.mobile-image-setting>div{display:flex;gap:7px}.mobile-image-setting button{padding:7px 10px}.mobile-image-setting small,.mobile-editor-tip{color:#667085;line-height:1.45}.mobile-block-actions{display:flex;gap:8px;margin-bottom:10px}.mobile-block-row{display:grid;gap:8px;margin-bottom:9px;padding:10px;border:1px solid #dbe4ef;border-radius:9px;background:#f8fbff}.mobile-block-row>b{color:#173b70}.mobile-block-row textarea,.mobile-block-row select{box-sizing:border-box;width:100%;padding:8px;border:1px solid #c7d5e7;border-radius:7px;background:#fff;font:inherit}.mobile-block-row img{width:100%;max-height:90px;object-fit:contain;background:#fff}.mobile-block-row>div{display:flex;gap:6px}.mobile-block-row button{min-width:34px;padding:5px 8px;border:1px solid #ccd8e8;border-radius:6px;background:#fff;color:#174b98}.mobile-block-row .danger-link{margin-left:auto;color:#d92d20}.mobile-editor-empty{padding:13px;border:1px dashed #ccd8e8;border-radius:9px;color:#667085;text-align:center}.mobile-custom-text{box-sizing:border-box;margin:10px 13px;padding:13px 15px;border-radius:10px;background:rgba(255,253,248,.9);color:#77543d;font-size:16px;line-height:1.65}.mobile-custom-image{margin:10px 13px;text-align:center}.mobile-custom-image img{display:block;max-width:100%;max-height:260px;margin:auto;object-fit:contain}.mobile-demo-brand{background:var(--preview-header,var(--preview-theme))!important;color:var(--preview-header-text,#fff)!important}.mobile-demo-brand>img,.agent-mobile-brand>img{display:block;width:100%;height:100%;max-height:88px;grid-column:1/-1;object-fit:contain}.mobile-phone-screen{background-color:var(--preview-bg,#f8f3ec)!important;background-position:center top!important;background-repeat:repeat!important;background-size:cover!important}.mobile-demo-nav.three,.agent-mobile-bottom.three{grid-template-columns:repeat(3,1fr)!important}.agent-mobile-portal{background-color:var(--mobile-bg,#f8f3ec)!important;background-position:center top!important;background-repeat:repeat!important;background-size:cover!important}.agent-mobile-brand{background:var(--header-color,var(--mobile-theme))!important;color:var(--header-text,#fff)!important}.agent-mobile-list-head button{padding:7px 11px;border:1px solid #dfcbb5;border-radius:16px;background:#fffaf2;color:var(--mobile-theme);font-weight:700}.agent-mobile-profile{padding:20px 0}.agent-profile-card{display:flex;align-items:center;gap:15px;padding:19px;border:1px solid #ead9c4;border-radius:14px;background:rgba(255,253,248,.96)}.agent-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--mobile-theme);color:#fff;font-size:25px;font-weight:800}.agent-profile-card h1{margin:0 0 5px;color:#704d38;font-size:22px}.agent-profile-card p{margin:0;color:#8b735f}.agent-order-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.agent-order-summary>div{display:grid;gap:4px;padding:16px;border:1px solid #ead9c4;border-radius:12px;background:rgba(255,253,248,.96);text-align:center}.agent-order-summary b{color:#79513a;font-size:20px}.agent-order-summary span{color:#8b735f}.agent-mobile-profile h2{margin:20px 2px 10px;color:#704d38}.agent-order-list{display:grid;gap:9px}.agent-order-list>button{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;border:1px solid #ead9c4;border-radius:11px;background:rgba(255,253,248,.96);text-align:left}.agent-order-list span{display:grid;gap:5px}.agent-order-list small{color:#8b735f}.agent-order-list strong{color:#b46e42;text-align:right}.agent-order-list .tag{justify-self:end}.agent-empty-orders{padding:28px;border-radius:11px;background:#fffaf4;color:#8b735f;text-align:center}.agent-logout{width:100%;margin-top:22px;padding:12px;border:1px solid #d8c5af;border-radius:10px;background:#fffaf3;color:#76543e;font-size:16px;font-weight:700}

/* Product master fields and expanded SKU editor. */
.product-sku-detail-row{grid-template-columns:repeat(5,minmax(120px,1fr)) auto!important}
.product-master-table,.event-product-master-table{width:100%;min-width:1320px}
.product-master-table th,.product-master-table td,.event-product-master-table th,.event-product-master-table td{padding-right:8px!important;padding-left:8px!important;text-align:center;vertical-align:middle}
.product-master-table th:nth-child(6),.product-master-table td:nth-child(6),.event-product-master-table th:nth-child(7),.event-product-master-table td:nth-child(7){min-width:190px}
.product-master-table th:last-child,.product-master-table td:last-child,.event-product-master-table th:last-child,.event-product-master-table td:last-child{min-width:155px}
.event-product-master-table{table-layout:auto!important}
.event-product-master-table th,.event-product-master-table td{width:auto!important;min-width:82px!important}
.event-product-master-table th:nth-child(2),.event-product-master-table td:nth-child(2){min-width:calc(var(--product-thumb-width,64px) + 18px)!important}
.event-product-master-table th:nth-child(7),.event-product-master-table td:nth-child(7){min-width:190px!important}
@media(max-width:1100px){.product-sku-detail-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}.product-sku-detail-row .sku-remove{grid-column:1/-1}}

/* Unified dense desktop workspace: every back-office tab uses one spacing system. */
.page,.page.event-products-page,.page.event-customers-page,.page.event-materials-page,.page.event-orders-page{padding:6px 10px 8px!important}
.page>.panel,.page>.event-workspace{margin:0!important}
.event-workspace{min-height:calc(100vh - 80px)}
.event-products-page .event-product-workspace,.event-customers-page .customer-workspace,.event-materials-page .material-workspace{padding:10px!important}
.event-product-toolbar,.customer-manage-toolbar,.material-toolbar{margin-bottom:8px!important}
.material-grid{gap:10px}
.unified-pagination,.event-products-page .unified-pagination,.customer-pagination{min-height:42px!important;padding:3px 12px!important;gap:7px!important;font-size:14px}
.unified-pagination button,.unified-pagination select,.event-products-page .unified-pagination button,.event-products-page .unified-pagination select,.customer-pagination button,.customer-pagination select{height:32px!important;padding-left:10px!important;padding-right:10px!important}
.customer-workspace{padding-bottom:52px!important}
@media(max-width:800px){.page,.page.event-products-page,.page.event-customers-page,.page.event-materials-page,.page.event-orders-page{padding:6px!important}}

/* Product and customer lists share exactly the same bottom pager. */
.event-products-page .event-product-workspace,.event-customers-page .customer-workspace{padding-bottom:52px!important}
.event-products-page .unified-pagination,.event-customers-page .customer-pagination{position:fixed!important;z-index:45;right:0!important;bottom:0!important;left:225px!important;width:auto!important;margin:0!important;border-radius:0!important;box-shadow:0 -3px 10px rgba(16,42,86,.08)!important}
.event-products-page .unified-pagination .pagination-summary,.event-customers-page .customer-pagination .pagination-summary{min-width:66px!important}
@media(max-width:800px){.event-products-page .unified-pagination,.event-customers-page .customer-pagination{left:0!important}}

/* Remove dead vertical space: workspace fills the viewport and its content area owns scrolling. */
.event-products-page .event-product-workspace,.event-customers-page .customer-workspace{height:calc(100vh - 72px)!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.event-products-page .event-product-workspace>.tablewrap,.event-customers-page .customer-workspace>.tablewrap{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important}
.event-products-page .event-product-toolbar,.event-customers-page .customer-manage-toolbar,.event-products-page .event-batch-toolbar,.event-customers-page .customer-batch-toolbar{flex:0 0 auto}
.event-order-workspace{min-height:0!important;height:auto!important}
.event-order-report>.tablewrap{max-height:calc(100vh - 310px)!important}
.event-materials-page .material-workspace{min-height:0!important;height:auto!important;padding-bottom:52px!important}
.material-card[hidden]{display:none!important}
.event-materials-page .material-pagination{position:fixed!important;z-index:45;right:0!important;bottom:0!important;left:225px!important;width:auto!important;margin:0!important;border-radius:0!important;box-shadow:0 -3px 10px rgba(16,42,86,.08)!important}
@media(max-width:800px){.event-materials-page .material-pagination{left:0!important}}

/* Compact text-only select-all control across every selectable workspace. */
.select-all-control{display:inline-flex!important;align-items:center;justify-content:center;min-width:0!important;width:auto!important;min-height:28px!important;padding:3px 4px!important;border:0!important;border-radius:4px!important;background:transparent!important;color:#0d4b9b!important;font:inherit!important;font-weight:800!important;white-space:nowrap!important;cursor:pointer!important}
.select-all-control:hover,.select-all-control.part-selected{background:#e8f1ff!important}.select-all-control.all-selected{background:#dceaff!important;color:#073f87!important}
.check-col{width:48px!important;min-width:48px!important;max-width:48px!important;padding-left:4px!important;padding-right:4px!important;white-space:nowrap!important}
.event-product-table .check-col,.event-customer-table .check-col{width:48px!important;min-width:48px!important;max-width:48px!important}
.material-toolbar>.select-all-control{align-self:center!important;min-width:48px!important;padding:6px 8px!important;border:1px solid #c8d7ea!important;background:#f5f8fc!important}

/* Brand hierarchy: one sub-brand per row, with only its own series beside it. */
.brand-settings-table th:nth-child(1){width:16%!important}.brand-settings-table th:nth-child(2){width:20%!important}.brand-settings-table th:nth-child(3){width:34%!important}.brand-settings-table th:nth-child(4){width:17%!important}.brand-settings-table th:nth-child(5){width:13%!important}
.brand-child-row td{border-bottom:1px solid #d8e1ee}.brand-name-cell{vertical-align:middle!important}.brand-name-cell>div{display:flex;align-items:center;justify-content:center;gap:10px}.brand-child-row .brand-series-cell{padding:9px 12px!important}

/* Brand and sub-brand permissions for company administrators. */
.permission-scope-editor{grid-template-columns:1fr!important}.permission-brand-scope{padding:13px 15px;border:1px solid #dce5f0;border-radius:10px}.permission-brand-scope>label{display:flex;align-items:center;gap:8px}.permission-sub-scope{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0 25px}.permission-sub-scope label{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:7px;background:#f3f7fc}.permission-sub-scope.disabled{opacity:.42;pointer-events:none}
.custom-filter-menu,.scope-choice-pop{box-sizing:border-box}

/* Brand card usability refinement. */
/* Brand management cards: make hierarchy and add actions explicit. */
.brand-management-workspace{display:grid;gap:12px}.brand-card-toolbar{overflow:hidden;border:1px solid #d5e0ed;border-radius:10px}.brand-card-list{display:grid;gap:12px}.brand-management-card{overflow:hidden;border:1px solid #cfdbea;border-radius:11px;background:#fff;box-shadow:0 2px 8px rgba(16,42,86,.05)}.brand-management-card[hidden]{display:none}.brand-management-card>header{display:flex;align-items:center;gap:12px;min-height:58px;padding:9px 13px;border-bottom:1px solid #dce5f0;background:#f8fbff}.brand-card-title{display:flex;align-items:center;gap:10px;min-width:280px}.brand-card-title>span{padding:5px 8px;border-radius:6px;background:#e7f0fd;color:#52677f;font-size:13px;font-weight:700}.brand-card-title>b{color:#123f7a;font-size:20px}.brand-card-title>small{color:#667085;white-space:nowrap}.brand-management-card .brand-scope-link{margin-left:auto;white-space:nowrap}.brand-card-actions{display:flex;align-items:center;gap:7px}.brand-card-actions button{height:36px;padding:0 12px;white-space:nowrap}.brand-card-table{width:100%;table-layout:fixed;border-collapse:collapse}.brand-card-table th,.brand-card-table td{padding:10px 13px;border-right:1px solid #dce5f0;border-bottom:1px solid #dce5f0;text-align:center;vertical-align:middle}.brand-card-table th:last-child,.brand-card-table td:last-child{border-right:0}.brand-card-table tr:last-child td{border-bottom:0}.brand-card-table th{height:42px;background:#f4f7fb;color:#173b70;font-size:16px;font-weight:800}.brand-card-table th:first-child{width:20%}.brand-card-table th:last-child{width:14%}.brand-card-series-list{justify-content:flex-start}.brand-card-add-series{height:31px;padding:0 10px;border:1px dashed #78a2dc;border-radius:7px;background:#f5f9ff;color:#174b98;font-weight:700;white-space:nowrap}.brand-sub-name{display:inline-flex;align-items:center;min-height:31px;color:#123f7a;font-size:16px;font-weight:800}.brand-sub-delete{border:0;background:transparent;color:#d92d20;font-weight:700;white-space:nowrap}.brand-card-empty{padding:22px!important;color:#667085}.brand-card-empty>span{margin-right:12px}.brand-series-empty{color:#98a2b3}.brand-management-card .tablewrap{overflow:visible}.brand-management-card .brand-series-editor{justify-content:flex-start}.brand-management-card .brand-series-editor input{min-width:220px}.brand-management-card .brand-series-editor button{white-space:nowrap}
.brand-builder-sub-field,.brand-builder-series{display:grid;grid-template-rows:20px 40px auto;align-content:start;gap:6px}.brand-builder-sub-field input,.brand-builder-series-input{height:40px!important}.brand-builder-series-input input,.brand-builder-series-input button{height:40px!important}.brand-builder-tags{grid-row:3}.brand-builder-number,.brand-builder-remove{margin-top:26px}.brand-builder-row{align-items:start}
@media(max-width:1050px){.brand-management-card>header{align-items:flex-start;flex-wrap:wrap}.brand-card-title{min-width:0}.brand-management-card .brand-scope-link{margin-left:auto}.brand-card-actions{width:100%;justify-content:flex-end}.brand-card-table th:first-child{width:24%}.brand-card-table th:last-child{width:18%}}
.brand-management-card .brand-series-input{display:flex;justify-content:flex-start;gap:7px}.brand-management-card .brand-series-input input{min-width:220px;height:34px;padding:0 9px;border:1px solid #b9cbe2;border-radius:7px;font:inherit}.brand-management-card .brand-series-input button{height:34px;white-space:nowrap}

+
/* Independent sub-brand scopes for ordering events. */
.sub-scope-table th:first-child{width:16%}.sub-scope-table th:nth-child(2){width:39%}.sub-scope-table th:nth-child(3){width:29%}.sub-scope-table th:last-child{width:16%}.sub-scope-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;width:100%;padding:4px 7px;border:1px solid #c7d8ee;border-radius:7px;background:#f5f9ff;color:#174b98;flex-wrap:wrap}.sub-scope-event{display:inline-flex;align-items:center;padding:4px 7px;border-radius:13px;background:#e7effa;color:#174b98;font-size:13px;font-weight:700}.sub-scope-event.live:before{content:"";width:6px;height:6px;margin-right:5px;border-radius:50%;background:#20b97b}.scope-none{color:#7a8798;font-weight:600}.sub-scope-summary{display:flex;align-items:center;gap:9px;margin:12px 0;padding:12px;border:1px solid #d9e4f1;border-radius:9px;background:#f7faff}.sub-scope-summary span{color:#667085}.sub-scope-summary b{color:#173b70;font-size:17px}.sub-scope-summary i{color:#86a0c0;font-style:normal}.sub-brand-event-choices{display:grid;gap:8px;max-height:360px;margin-top:12px;overflow:auto}.sub-brand-event-choices>label{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #d7e1ed;border-radius:9px;background:#fff;cursor:pointer}.sub-brand-event-choices>label:hover{background:#f4f8fe}.sub-brand-event-choices input{width:19px;height:19px;accent-color:#2465c2}.sub-brand-event-choices span{display:grid;gap:3px}.sub-brand-event-choices span b{color:#173b70}.sub-brand-event-choices span small{color:#667085}.sub-brand-event-choices em{padding:4px 8px;border-radius:13px;background:#eef1f5;color:#667085;font-style:normal;font-size:12px}.sub-brand-event-choices em.live{background:#e5f7ef;color:#087a53}.event-sub-brand-field{display:grid;gap:7px}.event-sub-brand-field>span{color:#344054;font-weight:700}.event-sub-brand-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.event-sub-brand-choices label{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:8px;min-height:48px;padding:8px 10px;border:1px solid #cfdbea;border-radius:8px;background:#f9fbfe;cursor:pointer}.event-sub-brand-choices label:has(input:checked){border-color:#4c85d1;background:#edf5ff}.event-sub-brand-choices input{width:19px;height:19px;accent-color:#2465c2}.event-sub-brand-choices label span{color:#173b70;font-size:16px;font-weight:800}.event-sub-brand-choices label small{color:#667085}.event-scope-tip{color:#667085}.brand-scope-notice{margin:12px 0;padding:10px 13px;border-radius:8px;background:#eef5ff;color:#174b98}
@media(max-width:900px){.event-sub-brand-choices{grid-template-columns:1fr}.sub-scope-table th:first-child{width:22%}.sub-scope-table th:nth-child(2){width:33%}.sub-scope-table th:nth-child(3){width:27%}.sub-scope-table th:last-child{width:18%}}
.event-sub-brand-tags{display:flex;flex-wrap:wrap;gap:5px;min-width:116px}.event-sub-brand-tags span{display:inline-flex;align-items:center;min-height:28px;padding:3px 9px;border-radius:8px;background:#eef5ff;color:#1554a3;font-weight:700;white-space:nowrap}.event-sub-brand-tags span.muted{background:#f1f3f6;color:#68758a;font-weight:600}

/* Clear brand hierarchy management and guided brand creation. */
.brand-page-title{margin-bottom:8px}.brand-management-panel{padding:0;overflow:hidden}.brand-manage-toolbar{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #dce5f0;background:#fff}.brand-manage-toolbar .event-search-box{width:min(420px,38vw);margin:0}.brand-manage-summary{display:flex;align-items:center;gap:8px;margin-left:auto}.brand-manage-summary span{padding:7px 10px;border-radius:8px;background:#f2f6fc;color:#52677f;font-size:14px;white-space:nowrap}.brand-manage-summary b{color:#174b98;font-size:17px}.brand-settings-wrap{overflow:auto}.brand-settings-table{margin:0}.brand-settings-table thead th{position:sticky;z-index:2;top:0;background:#f4f7fb}.brand-child-row[hidden]{display:none}.brand-create-head{display:flex;align-items:baseline;gap:12px;margin-bottom:12px}.brand-create-head h2{margin:0}.brand-create-head span{color:#667085}.brand-create-section{margin:12px 0;padding:14px;border:1px solid #dce5f0;border-radius:10px;background:#fafcff}.brand-create-section>h3,.brand-create-section-head h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:#173b70;font-size:17px}.brand-create-section h3 i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#2465c2;color:#fff;font-style:normal;font-size:14px}.brand-create-section .brand-scope-editor{margin:0;padding:0;border:0;background:transparent}.brand-create-section .brand-scope-editor>b{display:none}.brand-create-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand-builder-list{display:grid;gap:10px}.brand-builder-row{position:relative;display:grid;grid-template-columns:36px minmax(180px,.7fr) minmax(280px,1.3fr) 34px;align-items:start;gap:12px;padding:12px;border:1px solid #cfdbea;border-radius:9px;background:#fff}.brand-builder-number{display:grid;place-items:center;width:30px;height:30px;margin-top:23px;border-radius:7px;background:#e9f2ff;color:#174b98;font-weight:800}.brand-builder-row .field{margin:0}.brand-builder-series{display:grid;gap:7px}.brand-builder-series>b{color:#344054;font-size:14px}.brand-builder-tags{display:flex;align-items:center;gap:6px;min-height:31px;flex-wrap:wrap}.brand-builder-tags small{color:#98a2b3}.brand-builder-tags span{display:inline-flex;align-items:center;gap:5px;padding:5px 7px 5px 10px;border:1px solid #bdd1ed;border-radius:16px;background:#edf4ff;color:#174b98;font-weight:700}.brand-builder-tags span button{width:20px;height:20px;padding:0;border:0;border-radius:50%;background:transparent;color:#667b98;font-size:17px;line-height:1}.brand-builder-series-input{display:flex;gap:7px}.brand-builder-series-input input{min-width:0;flex:1;height:38px;padding:0 10px;border:1px solid #c9d5e5;border-radius:8px;font:inherit}.brand-builder-series-input button{height:38px;padding:0 13px;border:1px solid #b9cce5;border-radius:8px;background:#edf4ff;color:#174b98;font-weight:700}.brand-builder-remove{width:32px;height:32px;margin-top:23px;border:0;border-radius:7px;background:#fff0ee;color:#d92d20;font-size:20px}.brand-create-actions{position:sticky;bottom:-18px;margin:16px -18px -18px;padding:12px 18px;border-top:1px solid #dce5f0;background:#fff}.brand-create-actions button{min-width:120px}@media(max-width:980px){.brand-manage-toolbar{align-items:stretch;flex-wrap:wrap}.brand-manage-toolbar .event-search-box{width:100%}.brand-manage-summary{margin-left:0}.brand-builder-row{grid-template-columns:34px 1fr 34px}.brand-builder-series{grid-column:2/3}.brand-builder-remove{grid-column:3;grid-row:1}.brand-manage-toolbar>.primary{margin-left:auto}}
.mobile-order-detail>img{display:block;width:min(100%,420px);max-height:340px;object-fit:contain;margin:0 auto 16px;background:#fff;border-radius:12px}
.mobile-cart-lines{display:grid;gap:10px;margin:14px 0}
.mobile-cart-lines>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:12px;border:1px solid #dbe5f2;border-radius:10px}
.mobile-cart-lines small{display:block;margin-top:4px;color:#667085}
.mobile-cart-lines button{width:34px;height:34px;border:1px solid #bfd0e5;background:#f5f8fc;border-radius:8px;font-size:20px}
.mobile-cart-lines span:nth-child(2){display:flex;align-items:center;gap:10px}
.mobile-checkout{display:grid;gap:10px;border-top:1px solid #dbe5f2;padding-top:14px}
.mobile-checkout>b{font-size:20px;color:#0b438d;text-align:right}
.tag.producing{background:#efe9ff;color:#6941c6}
.sku-order-matrix{display:grid;gap:12px;max-height:55vh;margin:14px 0;overflow:auto}.sku-order-matrix section{overflow:hidden;border:1px solid #d8e3f0;border-radius:10px}.sku-order-matrix h3{margin:0;padding:10px 12px;background:#f3f7fc;color:#173b70}.sku-order-matrix section>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#e1e8f1}.sku-order-matrix label{display:grid;grid-template-columns:minmax(0,1fr) auto 70px;align-items:center;gap:7px;padding:9px;background:#fff}.sku-order-matrix label span{font-weight:800}.sku-order-matrix label small{color:#667085}.sku-order-matrix input{width:70px;height:38px;padding:0 7px;border:1px solid #bfd0e5;border-radius:7px;text-align:center;font-size:16px}.sku-order-footer{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0 0;background:#fff}.sku-order-footer b{font-size:18px;color:#174b98}
.order-detail-modal{display:grid;gap:14px}.order-detail-title{display:flex;align-items:center;justify-content:space-between}.order-detail-title h2{margin:0 0 5px}.order-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.order-info-grid>div{display:grid;gap:4px;padding:10px 12px;border-radius:8px;background:#f4f7fb}.order-info-grid small{color:#667085}.order-item-list{display:grid;border:1px solid #dbe4ef;border-radius:9px;overflow:hidden}.order-item-list>div{display:grid;grid-template-columns:minmax(0,1fr) 70px 110px;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #e1e8f0}.order-item-list>div:last-child{border-bottom:0}.order-item-list small{display:block;margin-top:3px;color:#667085}.order-item-list strong,.order-total{text-align:right}.order-total{font-size:18px}.order-total strong{margin-left:15px;color:#174b98;font-size:22px}.order-admin-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:13px;border-radius:10px;background:#f3f7fc}.order-admin-form label{display:grid;gap:5px;font-weight:700}.order-admin-form input,.order-admin-form select{height:40px;padding:0 10px;border:1px solid #c4d3e6;border-radius:7px;background:#fff;font:inherit}.order-admin-form .wide{grid-column:1/-1}.order-admin-form button{grid-column:1/-1;justify-self:end}
@media(max-width:700px){.sku-order-matrix section>div,.order-info-grid{grid-template-columns:1fr}.order-admin-form{grid-template-columns:1fr}.order-item-list>div{grid-template-columns:minmax(0,1fr) auto}.order-item-list>div strong{grid-column:1/-1}.sku-order-matrix label{grid-template-columns:minmax(0,1fr) 70px}.sku-order-matrix label small{display:none}}

/* 手机商品详情：沿用旧版订货表头，数据来自当前商品 SKU。 */
.sku-detail-page{display:grid;gap:0}
.sku-detail-image{display:grid;place-items:center;min-height:260px;max-height:48vh;overflow:hidden;background:#fff}
.sku-detail-image img{display:block;width:100%;height:100%;max-height:48vh;object-fit:contain}
.sku-detail-image span{color:#98a2b3}
.sku-detail-info{padding:18px 20px;border-top:1px solid #e4e7ec;border-bottom:1px solid #e4e7ec;background:#fff}
.sku-detail-info h2{margin:0 0 7px;color:#292929;font-size:24px}.sku-detail-info p{margin:0;color:#101828;font-size:19px}
.sku-detail-table-wrap{max-height:48vh;overflow:auto;border-bottom:1px solid #d9dee6}
.sku-detail-table{width:100%;min-width:650px;border-collapse:separate;border-spacing:0;table-layout:fixed;background:#fff}
.sku-detail-table th,.sku-detail-table td{padding:12px 10px;border-right:1px solid #d9dee6;border-bottom:1px solid #d9dee6;text-align:center;font-size:16px}
.sku-detail-table th{position:sticky;z-index:2;top:0;background:#f4f4f4;color:#151515;font-size:17px;font-weight:800}
.sku-detail-table th:nth-child(1){width:27%}.sku-detail-table th:nth-child(2){width:12%}.sku-detail-table th:nth-child(3){width:12%}.sku-detail-table th:nth-child(4){width:17%}.sku-detail-table th:nth-child(5){width:32%}
.sku-detail-table th:last-child,.sku-detail-table td:last-child{border-right:0}.sku-price-cell{white-space:nowrap}.sku-price-cell strong{display:block;color:#2b2b2b}.sku-price-cell .sku-sale-price{color:#d94b20}.sku-price-cell del{display:block;margin-top:3px;color:#98a2b3;font-size:13px}
.sku-qty-control{display:flex;align-items:center;justify-content:center;gap:8px;min-height:38px}.sku-qty-control>button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:var(--mobile-theme,#b9825b);color:#fff;font-size:21px;font-weight:800;line-height:1}.sku-qty-value{display:grid;place-items:center;min-width:34px;min-height:34px;padding:0 5px;border-radius:6px;cursor:text;user-select:none}.sku-qty-value:hover{background:#fff4e9;outline:1px dashed var(--mobile-theme,#b9825b)}.sku-inline-qty-editor{display:flex;align-items:center;gap:6px;padding:5px;border:1px solid #d8b18e;border-radius:8px;background:#fff;box-shadow:0 5px 16px #5b3f2630}.sku-inline-qty-editor>input{box-sizing:border-box;width:64px;height:34px;padding:0 5px;border:1px solid #c9a27f;border-radius:6px;text-align:center;font-size:17px}.sku-inline-qty-editor>span{display:flex;gap:4px}.sku-inline-qty-editor>span button{width:auto;height:32px;padding:0 8px;border:0;border-radius:6px;background:var(--mobile-theme,#b9825b);color:#fff;font-size:13px;font-weight:700}.sku-inline-qty-editor>span button:last-child{background:#eef2f7;color:#40516a}
.sku-detail-empty{padding:30px!important;color:#98a2b3}.sku-detail-page .sku-order-footer{z-index:4;padding:12px 14px;background:#fff}.sku-detail-page .sku-order-footer button{min-height:42px}
.agent-product-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin:5px 0}.agent-product-price strong{color:#2b2b2b}.agent-product-price strong.discounted{color:#d94b20}.agent-product-price del{color:#98a2b3;font-size:13px}
@media(max-width:700px){#dialog:has(.sku-detail-page){width:100vw;max-width:none;height:100vh;max-height:100vh;padding:0;border-radius:0;overflow:auto}#dialog:has(.sku-detail-page)>.close{position:fixed;z-index:20;top:12px;right:12px;width:38px;height:38px;border-radius:50%;background:#fff;color:#333;box-shadow:0 2px 8px #0002}.sku-detail-image{min-height:220px}.sku-detail-table-wrap{max-height:none}.sku-detail-table{min-width:620px}}
.agent-task-card{display:grid;gap:9px;margin:14px 0;padding:14px;border:1px solid #e2cfba;border-radius:12px;background:#fffaf3}.agent-task-card>div:first-child,.agent-task-card p{display:flex;align-items:center;justify-content:space-between;margin:0}.agent-task-card b{color:#9b6038;font-size:18px}.agent-task-progress{height:10px;overflow:hidden;border-radius:10px;background:#eadfd3}.agent-task-progress i{display:block;height:100%;border-radius:10px;background:#b9825b}.agent-task-card small{color:#9b6038;text-align:right}.agent-profile-card>div>small{display:block;margin-top:5px;color:#667085}

/* 手机端“我的”：个人身份、任务、订单状态和订货购物车均接真实数据。 */
.agent-mobile-profile{padding-top:0!important}.agent-profile-hero{display:grid;justify-items:center;gap:6px;margin:0 -14px;padding:30px 18px 26px;background:linear-gradient(145deg,var(--mobile-theme),#d8aa87);background-position:center;background-size:cover;color:#fff;text-align:center}.agent-profile-hero .agent-avatar{width:78px;height:78px;border:3px solid #ffffffb8;background:#fff3;color:#fff;font-size:31px;box-shadow:0 5px 18px #3c241b33}.agent-profile-hero h1{margin:4px 0 0;color:#fff;font-size:25px}.agent-profile-hero p,.agent-profile-hero small{margin:0;color:#fff}.agent-profile-hero small{opacity:.86}
.agent-profile-task{display:grid;grid-template-columns:repeat(3,1fr);margin:0 -14px;border-bottom:1px solid #eadfce;background:#fffaf3}.agent-profile-task span{display:grid;gap:5px;padding:14px 6px;border-right:1px solid #eadfce;color:#9a745a;text-align:center;font-size:13px}.agent-profile-task span:last-child{border-right:0}.agent-profile-task b{color:#8b5d3f;font-size:16px;white-space:nowrap}
.agent-profile-status{display:grid;grid-template-columns:repeat(3,1fr);margin:0 -14px 14px;background:#fff}.agent-profile-status button{display:grid;justify-items:center;gap:6px;min-height:88px;border:0;border-right:1px solid #eee5db;background:#fff;color:#80664f}.agent-profile-status button:last-child{border-right:0}.agent-profile-status button.active{background:#fff8ee;color:var(--mobile-theme);box-shadow:inset 0 -3px 0 var(--mobile-theme)}.agent-profile-status b{font-size:23px}.agent-profile-status span{font-size:14px;font-weight:700}
.agent-profile-menu{display:grid;margin:0 -14px 16px;border-top:1px solid #eee7df;border-bottom:1px solid #eee7df;background:#fff}.agent-profile-menu button{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;min-height:62px;padding:0 18px;border:0;border-bottom:1px solid #eee7df;background:#fff;color:#3e3e3e;text-align:left}.agent-profile-menu button:last-child{border-bottom:0}.agent-profile-menu span{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:700}.agent-profile-menu i{display:grid;place-items:center;width:28px;color:var(--mobile-theme);font-style:normal;font-size:20px}.agent-profile-menu em{color:#98775f;font-style:normal;font-size:13px}.agent-profile-menu button>b{color:#c49a78;font-size:28px;font-weight:400}.agent-profile-orders{scroll-margin-top:82px}.agent-profile-orders h2{margin-top:12px!important}.agent-order-list>button[hidden],.agent-empty-orders[hidden]{display:none!important}
.erp-sync-state{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:5px 9px;border-radius:14px;font-weight:700;white-space:nowrap;background:#eef3f9;color:#607086}
.erp-sync-state.synced{background:#e5f7ef;color:#07885b}.erp-sync-state.failed{background:#fff0ef;color:#d92d20}.erp-sync-state.syncing{background:#fff5df;color:#a96000}
.order-detail-ledger th,.order-detail-ledger td{padding:10px 9px;white-space:nowrap}.order-detail-ledger td small{display:block;margin-top:3px;color:#728097}.order-detail-ledger .event-row-actions{justify-content:center}
.order-detail-ledger{table-layout:fixed!important;min-width:1440px}.order-detail-ledger .order-no-col{width:190px}.order-detail-ledger .order-status-col{width:90px}.order-detail-ledger .order-qty-col{width:90px}.order-detail-ledger .order-paid-col{width:105px}.order-detail-ledger .order-province-col{width:78px}.order-detail-ledger .order-customer-col{width:130px}.order-detail-ledger .order-phone-col{width:130px}.order-detail-ledger .order-customer-no-col{width:105px}.order-detail-ledger .order-time-col{width:150px}.order-detail-ledger .order-erp-col{width:105px}.order-detail-ledger .order-actions-col{width:175px}.order-detail-ledger .order-no-cell{overflow:visible;text-align:center;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:700;letter-spacing:0}.order-detail-ledger .order-erp-cell{text-align:center}.order-detail-ledger .order-actions-cell{padding-left:6px!important;padding-right:6px!important}.order-detail-ledger .order-actions-cell .event-row-actions{flex-wrap:nowrap;gap:7px}.order-detail-ledger .order-actions-cell button{white-space:nowrap}
.order-output-actions{display:flex;gap:10px;align-items:center;padding-bottom:4px}
.freight-page{display:grid;gap:14px}.freight-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e8f2;padding-bottom:12px}.freight-toolbar>div{display:grid;gap:4px}.freight-toolbar b{font-size:22px;color:#0b3f7c}.freight-toolbar small{color:#687b96}.freight-card{border:1px solid #d8e2ef;border-radius:12px;overflow:hidden;background:#fff}.freight-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:#f7faff}.freight-card-head h3{margin:0 0 5px;display:flex;align-items:center;gap:8px}.freight-card-head small{color:#6f8097}.freight-rules-view{display:grid}.freight-rules-view>div{display:grid;grid-template-columns:76px 1fr;gap:14px;padding:12px 16px;border-top:1px solid #e6edf5}.freight-rules-view span{line-height:1.7}.freight-basic{display:grid;grid-template-columns:minmax(300px,1fr) auto auto;gap:12px;align-items:end}.check-card{height:43px;display:flex;align-items:center;gap:7px;padding:0 14px;border:1px solid #cdd9e9;border-radius:8px;font-weight:700;white-space:nowrap}.freight-rule-editor{margin-top:14px;border:1px solid #cedbec;border-radius:10px;padding:14px;background:#fafcff}.freight-rule-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.freight-province-grid{display:grid;grid-template-columns:repeat(8,minmax(72px,1fr));gap:7px;max-height:168px;overflow-y:auto;padding:10px;border:1px solid #e0e8f2;border-radius:8px;background:#fff}.freight-province-grid label{display:flex;align-items:center;gap:5px;white-space:nowrap}.freight-fee-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}.freight-fee-grid label{font-weight:700;color:#445a78}.freight-fee-grid input{width:100%;margin-top:6px}.add-freight-rule{margin-top:12px}.danger-link{border:0;background:transparent;color:#d92d20;cursor:pointer}.danger-soft{border:0;background:#fff0ee;color:#d92d20;border-radius:8px;padding:9px 13px}.empty-state{min-height:180px;display:grid;place-content:center;text-align:center;gap:8px;color:#718096}.empty-state b{font-size:20px;color:#23476f}.cart-admin-summary{display:flex;justify-content:flex-end;gap:20px;align-items:center;padding:14px;background:#f5f8fc}.cart-admin-summary em,.freight-error{color:#b42318;font-style:normal}.mobile-price-summary{display:grid;gap:8px;padding:12px;border-radius:10px;background:#f5f8fc}.mobile-price-summary span{display:flex;align-items:center;justify-content:space-between;gap:8px}.mobile-price-summary span small{margin-left:auto;color:#708197}.mobile-price-summary .payable{border-top:1px solid #dae3ef;padding-top:9px;font-size:18px}.mobile-price-summary .payable b{color:#d92d20}.freight-error{margin:0;font-weight:700}
@media(max-width:1100px){.freight-province-grid{grid-template-columns:repeat(5,minmax(72px,1fr))}.freight-fee-grid{grid-template-columns:repeat(2,1fr)}}
.event-order-toolbar{grid-template-columns:minmax(240px,1fr) repeat(4,minmax(120px,165px)) auto;gap:8px;padding-top:12px;padding-bottom:12px}
.color-summary-table th:first-child{width:72px}.color-summary-table th:nth-child(5){width:130px}.color-summary-table th:nth-child(6){width:170px}

/* 手机订货会首页：子品牌/系列完整展开，搜索固定在通顶栏右上角。 */
.mobile-config-note{margin:8px 0 0;padding:9px 11px;border-radius:8px;background:#f3f7fc;color:#667085;font-size:13px;line-height:1.5}
.mobile-demo-series,.agent-mobile-series{padding-top:18px}
.mobile-demo-series-group header,.agent-series-group header{justify-content:flex-start}
.mobile-demo-series-group header span,.agent-series-group header span{display:none}
.mobile-demo-series-group>div,.agent-series-group>div{height:auto!important;max-height:none!important;overflow:visible!important}
.mobile-demo-brand.has-custom-image,.agent-mobile-brand.has-custom-image{position:sticky;overflow:hidden}
.mobile-demo-brand.has-custom-image{background:var(--preview-header,var(--preview-theme))!important}.agent-mobile-brand.has-custom-image{background:var(--header-color,var(--mobile-theme))!important}
.mobile-demo-brand.has-custom-image>img,.agent-mobile-brand.has-custom-image>img{position:absolute;inset:0;z-index:0;width:100%;height:100%;max-height:none;object-fit:cover}
.mobile-demo-brand .mobile-brand-menu,.mobile-demo-brand .mobile-brand-search,.agent-mobile-brand .mobile-brand-menu,.agent-mobile-brand .mobile-brand-search{position:relative;z-index:2}
.mobile-demo-brand.has-custom-image:before,.mobile-demo-brand.has-custom-image:after,.agent-mobile-brand.has-custom-image:before,.agent-mobile-brand.has-custom-image:after{display:none!important;content:none!important}
.agent-mobile-search-panel{position:fixed;z-index:40;top:0;left:50%;display:flex;align-items:center;gap:8px;box-sizing:border-box;width:min(480px,100vw);min-height:78px;padding:10px 13px;transform:translate(-50%,-110%);background:rgba(255,252,247,.98);box-shadow:0 7px 20px rgba(76,52,35,.18);transition:transform .18s ease}
.agent-mobile-search-panel.open{transform:translate(-50%,0)}
.agent-mobile-search-panel label{display:flex;align-items:center;flex:1;height:48px;padding:0 13px;border:1px solid #dfcbb5;border-radius:24px;background:#fff;color:#9a7d67;font-size:20px}
.agent-mobile-search-panel input{min-width:0;flex:1;height:100%;padding:0 9px;border:0;outline:0;background:transparent;color:#4c3b2f;font:inherit;font-size:16px}
.agent-mobile-search-panel>button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#f2e5d8;color:#815f47;font-size:25px}

/* 预览底栏与购物车始终贴合手机屏幕，并统一使用通顶栏主题色。 */
.mobile-phone-screen{padding-bottom:66px!important}
.mobile-demo-nav{position:absolute!important;right:0!important;bottom:0!important;left:0!important;margin:0!important}
.mobile-demo-cart{position:absolute!important;right:12px!important;bottom:70px!important;margin:0!important;background:var(--preview-header,var(--preview-theme,#b9825b))!important}
.agent-mobile-cart{background:var(--header-color,var(--mobile-theme,#b9825b))!important}

/* 手机端正式订货确认流程。 */
.mobile-cart-view,.mobile-confirm-order{display:grid;gap:13px}.mobile-checkout-steps{display:grid;grid-template-columns:28px auto minmax(34px,1fr) 28px auto;align-items:center;gap:7px;color:#8794a7;font-size:13px}.mobile-checkout-steps b,.mobile-checkout-steps em{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#2465c2;color:#fff;font-style:normal}.mobile-checkout-steps i{height:2px;background:#d9e2ee}.mobile-cart-empty{padding:28px 10px;text-align:center;color:#7b8797}.mobile-cart-summary{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:9px;background:#f5f8fc}.mobile-cart-summary strong{color:#d92d20;font-size:20px}.mobile-cart-actions,.mobile-success-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}.mobile-cart-actions button,.mobile-success-actions button,.mobile-submit-order{min-height:46px;font-size:16px;font-weight:800}.mobile-confirm-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-confirm-head h2{margin:0}.mobile-confirm-head p{margin:4px 0 0;color:#667085}.mobile-confirm-customer{display:grid;gap:4px;padding:13px;border:1px solid #d8e3f0;border-radius:10px;background:#f8fbff}.mobile-confirm-customer small{color:#667085}.mobile-confirm-customer b{color:#173b70;font-size:18px}.mobile-confirm-customer span{color:#52677f}.mobile-confirm-order>h3{margin:2px 0 -4px}.mobile-confirm-lines{display:grid;border:1px solid #dbe4ef;border-radius:10px;overflow:hidden}.mobile-confirm-lines>div{display:grid;grid-template-columns:minmax(0,1fr) auto 94px;align-items:center;gap:10px;padding:11px 12px;border-bottom:1px solid #e4eaf2}.mobile-confirm-lines>div:last-child{border-bottom:0}.mobile-confirm-lines small{display:block;margin-top:3px;color:#667085}.mobile-confirm-lines>div>span:nth-child(2){white-space:nowrap}.mobile-confirm-lines strong{text-align:right}.mobile-price-note{padding:9px 12px;border-radius:8px;background:#fff6e8;color:#925a18;font-weight:700}.mobile-submit-order{width:100%}.mobile-submit-tip{margin:-5px 0 0;color:#667085;text-align:center;font-size:13px}.mobile-order-success{display:grid;gap:11px;text-align:center}.mobile-order-success>i{display:grid;place-items:center;width:64px;height:64px;margin:4px auto;border-radius:50%;background:#e6f7ef;color:#07885b;font-size:34px;font-style:normal}.mobile-order-success h2{margin:0;color:#173b70}.mobile-order-success>p{margin:0 0 4px;color:#667085}.mobile-order-success>div:not(.mobile-success-actions){display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:8px;background:#f5f8fc}.mobile-order-success small{color:#667085}.mobile-order-success>span{color:#07885b;font-weight:800}@media(max-width:520px){.mobile-confirm-lines>div{grid-template-columns:minmax(0,1fr) auto}.mobile-confirm-lines strong{grid-column:1/-1}.mobile-cart-lines>div{grid-template-columns:minmax(0,1fr) auto}.mobile-cart-lines>div>strong{grid-column:1/-1;text-align:right}}

/* 发布设置中的可操作手机模拟器：只改预览状态，不写入正式订单。 */
.mobile-preview-mode{position:sticky;z-index:4;top:68px;padding:5px 10px;background:#fff5dfeb;color:#96601e;text-align:center;font-size:10px;font-weight:700;backdrop-filter:blur(4px)}
.mobile-preview-content{min-height:425px;padding-bottom:66px}.mobile-preview-notice{margin:8px 11px;padding:8px 10px;border-radius:8px;background:#e8f6ed;color:#147a42;text-align:center;font-size:12px;font-weight:700}
.mobile-demo-series-group button,.mobile-preview-product-card,.mobile-demo-brand button,.mobile-demo-cart,.mobile-demo-nav button{cursor:pointer}.mobile-demo-nav button{display:grid;place-items:center;gap:1px;border:0;background:transparent;color:#755e4f;font:inherit;font-size:18px}.mobile-demo-nav button.active{color:var(--preview-theme,#b9825b);font-weight:800}.mobile-demo-cart i{position:absolute;top:-4px;right:-3px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border:2px solid #fff;border-radius:11px;background:#d94841;color:#fff;font-style:normal;font-size:10px}
.mobile-preview-page-head{display:flex;align-items:center;gap:9px;padding:11px 12px;color:#78533c}.mobile-preview-page-head>button{display:grid;place-items:center;width:32px;height:32px;border:1px solid #e2cfb8;border-radius:50%;background:#fffaf2;color:#9a6a49;font-size:24px}.mobile-preview-page-head>div{display:flex;min-width:0;flex-direction:column}.mobile-preview-page-head b{font-size:16px}.mobile-preview-page-head small{color:#9a806c;font-size:11px}
.mobile-preview-category-strip{display:flex;gap:6px;overflow-x:auto;padding:0 11px 10px;white-space:nowrap;scrollbar-width:none}.mobile-preview-category-strip button{padding:6px 10px;border:1px solid #e4d2bd;border-radius:15px;background:#fffaf3;color:#8d674d;font-size:11px}.mobile-preview-category-strip button.active{border-color:var(--preview-theme);background:var(--preview-theme);color:#fff}
.mobile-preview-product-card{min-width:0;padding:8px;border:1px solid #eadfce;border-radius:10px;background:rgba(255,253,248,.95)}.mobile-preview-product-card>b,.mobile-preview-product-card>small,.mobile-preview-product-card>p{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-preview-product-card>b{margin-top:6px;color:#73503b;font-size:12px}.mobile-preview-product-card>small,.mobile-preview-product-card>p{margin:2px 0;color:#88735f;font-size:10px}.mobile-preview-product-card>button{width:100%;padding:6px;border:0;border-radius:6px;background:var(--preview-theme);color:#fff;font-size:11px;font-weight:700}.mobile-preview-price{display:flex;align-items:center;gap:5px;min-height:28px}.mobile-preview-price strong{color:#b16f46;font-size:12px}.mobile-preview-price del{color:#a9a29b;font-size:9px}.mobile-preview-empty{grid-column:1/-1;margin:18px 10px;padding:24px 10px;border-radius:9px;background:#fffaf2;color:#947963;text-align:center;font-size:12px}
.mobile-preview-detail-photo{display:grid;place-items:center;aspect-ratio:1.5/1;margin:0 11px;overflow:hidden;border-radius:10px;background:#fff;color:#9a806c;font-size:12px}.mobile-preview-detail-photo img{width:100%;height:100%;object-fit:contain;background:#fff}.mobile-preview-detail-info{padding:10px 13px}.mobile-preview-detail-info h3{margin:0 0 7px;color:#714d37;font-size:16px}.mobile-preview-sku-head,.mobile-preview-sku-list>div{display:grid;grid-template-columns:1.35fr .65fr .7fr 1.2fr;align-items:center;text-align:center}.mobile-preview-sku-head{position:sticky;top:93px;padding:8px 4px;background:#f3e8da;color:#73533e;font-size:11px;font-weight:800}.mobile-preview-sku-list{margin:0 8px;background:#fff}.mobile-preview-sku-list>div{position:relative;min-height:43px;border-bottom:1px solid #eee2d4;font-size:10px}.mobile-preview-stepper{display:flex!important;align-items:center;justify-content:center;gap:5px}.mobile-preview-stepper button{display:grid;place-items:center;width:23px;height:23px;padding:0;border:0;border-radius:50%;background:#e4c09f;color:#fff;font-size:16px}.mobile-preview-stepper b{display:grid;place-items:center;min-width:20px;min-height:24px;border-radius:4px;color:#6c4a35;cursor:text;user-select:none}.mobile-preview-stepper b:hover{background:#fff4e9;outline:1px dashed #d5aa83}.mobile-preview-qty-editor{position:absolute;right:3px;z-index:8;display:flex;align-items:center;gap:4px;padding:5px;border:1px solid #d7b18e;border-radius:7px;background:#fff;box-shadow:0 5px 14px #5e432b35}.mobile-preview-qty-editor>input{box-sizing:border-box;width:49px;height:29px;padding:0 3px;border:1px solid #d7b18e;border-radius:5px;text-align:center;font-size:13px}.mobile-preview-qty-editor>span{display:flex;gap:3px}.mobile-preview-qty-editor button{height:28px!important;width:auto!important;padding:0 6px!important;border-radius:5px!important;background:var(--preview-theme)!important;font-size:10px!important;font-weight:700}.mobile-preview-qty-editor button:last-child{background:#eef2f7!important;color:#40516a!important}.mobile-preview-add-cart{display:block;width:calc(100% - 22px);margin:12px 11px;padding:10px;border:0;border-radius:8px;background:var(--preview-theme);color:#fff;font-weight:800}

/* 手机实时预览统一使用固定上下栏，仅中间内容滚动，避免导航栏被长列表推到页面中间。 */
.mobile-phone-screen{display:flex!important;height:560px!important;min-height:0!important;flex-direction:column!important;overflow:hidden!important;padding-bottom:0!important}
.mobile-phone-screen>.mobile-demo-brand{position:relative!important;top:auto!important;flex:0 0 auto!important}
.mobile-phone-screen>.mobile-preview-mode{position:relative!important;top:auto!important;flex:0 0 auto!important}
.mobile-preview-scroll{min-height:0;flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.mobile-preview-stepper button{position:relative!important;z-index:2;width:25px!important;height:25px!important;touch-action:manipulation;cursor:pointer}
.mobile-preview-content{min-height:100%;padding-bottom:14px}
.mobile-preview-scroll .mobile-preview-sku-head{top:0!important;z-index:3}
.mobile-phone-screen>.mobile-demo-nav{position:relative!important;right:auto!important;bottom:auto!important;left:auto!important;flex:0 0 auto!important;width:100%!important;margin:0!important}
.mobile-phone-screen>.mobile-demo-cart{position:absolute!important;right:12px!important;bottom:68px!important;margin:0!important}

/* 正式手机端所有页面共用同一套底部安全区。 */
.agent-mobile-portal{padding-bottom:max(102px,calc(82px + env(safe-area-inset-bottom)))!important}
.agent-mobile-bottom{bottom:0!important;padding-bottom:env(safe-area-inset-bottom)}
.agent-mobile-cart{bottom:max(88px,calc(78px + env(safe-area-inset-bottom)))!important}
.mobile-preview-cart-lines{display:grid;gap:7px;padding:0 10px}.mobile-preview-cart-lines>div{display:grid;grid-template-columns:1fr auto;gap:7px;padding:9px;border:1px solid #eadccc;border-radius:9px;background:#fffaf5}.mobile-preview-cart-lines>div>span:first-child{display:grid;gap:3px;min-width:0}.mobile-preview-cart-lines>div>span:first-child b,.mobile-preview-cart-lines>div>span:first-child small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-preview-cart-lines>div>span:first-child b{color:#714d37;font-size:11px}.mobile-preview-cart-lines>div>span:first-child small{color:#907764;font-size:9px}.mobile-preview-cart-lines>div>strong{grid-column:1/-1;color:#b16f46;text-align:right;font-size:11px}.mobile-preview-cart-total{display:flex;align-items:center;justify-content:space-between;margin:12px 11px;padding:11px;border-radius:9px;background:#fff5e7;color:#78533c}.mobile-preview-cart-total b{color:#b16f46}
.mobile-preview-checkout{display:grid;gap:8px;padding:0 11px}.mobile-preview-checkout label{display:grid;gap:4px;color:#765541;font-size:10px;font-weight:700}.mobile-preview-checkout input{box-sizing:border-box;width:100%;height:35px;padding:0 9px;border:1px solid #e5d5c2;border-radius:7px;background:#fff;color:#685546;font:inherit}.mobile-preview-tip{margin:0 16px;color:#997b65;text-align:center;font-size:10px;line-height:1.5}
.mobile-preview-profile{display:grid;justify-items:center;padding:24px 12px 18px;background:linear-gradient(180deg,rgba(185,130,91,.25),transparent);color:#78533c}.mobile-preview-profile>span{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--preview-theme);color:#fff;font-size:22px;font-weight:800}.mobile-preview-profile h3{margin:8px 0 3px}.mobile-preview-profile small{font-size:10px}.mobile-preview-profile-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 11px}.mobile-preview-profile-metrics>div{display:grid;gap:3px;padding:11px;border:1px solid #eadccc;border-radius:9px;background:#fffaf5;text-align:center}.mobile-preview-profile-metrics b{color:#8a5e40;font-size:17px}.mobile-preview-profile-metrics span{color:#927965;font-size:10px}.mobile-preview-orders{display:grid;gap:7px;padding:11px}.mobile-preview-orders>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border:1px solid #eadccc;border-radius:9px;background:#fffaf5}.mobile-preview-orders span{display:grid;gap:3px}.mobile-preview-orders b{color:#744f38;font-size:10px}.mobile-preview-orders small{color:#967d69;font-size:8px}.mobile-preview-orders em{color:#199055;font-size:9px;font-style:normal}.mobile-preview-orders strong{color:#b16f46;font-size:10px}
.mobile-preview-search-input{display:flex;align-items:center;gap:6px;margin:0 11px 10px;padding:0 10px;height:37px;border:1px solid #e1ceb9;border-radius:9px;background:#fff;color:#9b7d66}.mobile-preview-search-input input{min-width:0;width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:12px}
