@charset "UTF-8";
:root{color-scheme:light;--ink:#27313d;--muted:#626d79;--brown:#2563a6;--brown-dark:#194c83;--sand:#edf2f7;--line:#dfe3e8;--paper:#fff;--canvas:#f4f5f7;--green:#277346;--red:#b33932;--gold:#946300;--radius:6px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5}
*{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--ink)}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:0}
button:disabled{cursor:not-allowed;opacity:.48}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79a9dc;outline-offset:2px}
h1,h2,h3,p{margin:0}
h1{font-size:23px;line-height:1.35;font-weight:650}
h2{font-size:17px;line-height:1.5;font-weight:650}
h3{font-size:15px}
small{font-size:12px}
svg.icon{width:19px;height:19px;display:block;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Navigation and runtime status */
.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:var(--paper);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:18px 12px 16px;z-index:30;transition:width .2s,transform .2s}
.brand{display:flex;gap:10px;align-items:center;padding:0 8px 18px;white-space:nowrap}
.brand-seal{display:grid;place-items:center;background:var(--sand);color:var(--brown);font-size:19px;font-weight:650;width:32px;height:34px;border-radius:4px;flex-shrink:0}
.brand-copy strong{font-size:16px;display:block;font-weight:650}
.brand-copy small{font-size:12px;color:var(--muted)}
.nav-group{margin-bottom:10px}
.nav-section{margin:4px 0}
.nav-primary{min-height:44px;font-weight:600}
.nav-toggle{width:100%;background:transparent;text-align:left}
.nav-section.current>.nav-toggle{color:var(--brown);background:#f0f5fb}
.nav-chevron{font-size:22px;line-height:1;transition:transform .15s}
.nav-toggle[aria-expanded="true"] .nav-chevron{transform:rotate(90deg)}
.nav-children{margin:4px 0 9px 20px;padding-left:10px;border-left:1px solid var(--line)}
.nav-children[hidden],.nav-count[hidden]{display:none!important}
.nav-link.nav-child{min-height:36px;padding:7px 10px;font-size:13px;white-space:normal}
.nav-child.active:after{display:none}
.nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 4px;border-radius:10px;background:#fcece8;color:#a5422d;font-size:11px;font-weight:600;flex-shrink:0;font-variant-numeric:tabular-nums}
.nav-dev-tools{margin-top:8px;border-top:1px solid var(--line);padding-top:6px}
.nav-dev-tools summary{padding:7px 10px;color:var(--muted);font-size:12px;cursor:pointer}
.nav-dev-tools summary:focus-visible{outline:3px solid #79a9dc;outline-offset:1px}
.nav-group-label{font-size:12px;color:var(--muted);padding:12px 12px 4px}
.nav-link{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:4px;color:#4a5663;position:relative;white-space:nowrap;margin:2px 0;font-size:14px}
.nav-link:hover{background:#f1f4f7}
.nav-link.active{color:var(--brown);background:#eaf1f9;font-weight:650}
.nav-link.active:after{content:"";position:absolute;right:8px;width:4px;height:4px;border-radius:50%;background:var(--brown)}
.nav-link .nav-label{flex:1}
.sidebar nav{flex:1;overflow-y:auto;scrollbar-width:thin}
.sidebar-footer{display:flex;gap:8px;align-items:center;border-top:1px solid var(--line);padding:12px 8px 0;color:var(--muted);font-size:12px}
.local-dot{width:7px;height:7px;border-radius:50%;background:var(--green);flex-shrink:0}
.workspace{margin-left:232px;transition:margin-left .2s}
.topbar{min-height:56px;background:var(--paper);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:0 24px;position:sticky;top:0;z-index:20}
.icon-button{width:36px;height:36px;border-radius:4px;background:transparent;color:var(--muted);display:inline-flex;justify-content:center;align-items:center}
.icon-button:hover{background:var(--sand);color:var(--brown)}
.topbar-path{display:flex;gap:12px;align-items:center;font-size:13px;color:var(--muted)}
.topbar-path strong{color:var(--ink);font-weight:550}
.separator{color:#b1bac4}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:13px}
.connection{font-size:12px;color:var(--muted);padding-right:12px;border-right:1px solid var(--line)}
.connection.online{color:var(--green)}
.connection.offline{color:var(--red)}
.connection.unconfirmed{color:var(--gold)}
.avatar{width:28px;height:28px;display:grid;place-items:center;background:var(--sand);color:var(--brown);border-radius:4px}
.demo-banner{padding:8px 24px;background:#fff8e8;color:#755716;display:flex;gap:16px;align-items:center;font-size:12px;line-height:1.5;border-bottom:1px solid #efe4c8}
.demo-banner strong{font-weight:650;white-space:nowrap}
main{padding:20px 24px 24px;max-width:1720px;margin:auto;min-height:calc(100vh - 144px)}
.page-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:16px}
.page-heading p{margin-top:5px;color:var(--muted);font-size:13px}
.heading-actions,.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.button{min-height:36px;padding:7px 13px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--brown);border:1px solid var(--brown);color:#fff;font-size:14px;font-weight:550;white-space:nowrap;transition:background .15s}
.button:hover{background:var(--brown-dark);border-color:var(--brown-dark)}
.button.secondary{background:var(--paper);color:#364454;border-color:#bfc8d2}
.button.secondary:hover{background:#f0f4f8}
.button.ghost{background:transparent;color:var(--brown);border-color:transparent}
.button.ghost:hover{background:#edf3fa}
.button.danger{background:#fff7f6;border-color:#dfb4b0;color:var(--red)}
.button.small{min-height:32px;padding:4px 10px;font-size:13px}
.button svg{width:17px;height:17px}
.text-link{color:var(--brown);font-weight:550;font-size:14px;background:transparent;padding:3px 0;text-decoration:underline;text-underline-offset:3px}
.text-link .icon{display:inline-block;width:15px;height:15px;vertical-align:middle;margin-left:4px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}
.panel-header h2{font-size:16px}
.panel-body{padding:16px}
.subtext{font-size:13px;color:var(--muted);line-height:1.5}
.muted{color:var(--muted)}
.number,.stat-value,.task-count,.preview-price,.total-line,.mini-stat strong,.reward-cost,.coupon-value,.order-number,.order-date,input[type=date]{font-variant-numeric:tabular-nums}
td.number{white-space:nowrap}
/* Overview: compact totals followed by recent orders and work queues. */
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.stat{padding:14px 16px;position:relative}
.stat-icon{position:absolute;top:13px;right:14px;width:26px;height:26px;border-radius:4px;background:var(--sand);color:var(--muted);display:grid;place-items:center}
.stat-label{font-size:13px;color:var(--muted);padding-right:28px}
.stat-value{font-size:28px;font-weight:650;line-height:1.2;margin:8px 0 6px;color:var(--ink)}
.stat-note{font-size:12px;color:var(--muted)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:16px;margin-bottom:16px}
.task-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.task-row:first-child{padding-top:0}
.task-row:last-child{border-bottom:0;padding-bottom:0}
a.task-row:hover .task-copy strong{color:var(--brown)}
.task-symbol{width:30px;height:30px;border-radius:4px;display:grid;place-items:center;background:var(--sand);color:var(--muted);flex-shrink:0}
.task-copy{flex:1;min-width:0}
.task-copy strong{font-weight:550;font-size:14px;display:block}
.task-copy p{font-size:12px;color:var(--muted)}
.task-count{font-size:20px;font-weight:600;color:var(--brown)}
.two-columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:16px}
.stack{display:flex;flex-direction:column;gap:16px;min-width:0}
.section-gap{margin-top:16px}
/* Filters, tables and product identifiers. */
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line)}
.search-field{position:relative;min-width:230px;flex:1;max-width:360px}
.search-field .icon{position:absolute;left:11px;top:9px;width:18px;height:18px;color:var(--muted)}
.search-field input{padding-left:36px;width:100%}
.toolbar select{min-width:135px}
.result-count{margin-left:auto;color:var(--muted);font-size:13px}
.field,select,textarea{background:#fff;border:1px solid #bfc8d2;border-radius:4px;color:var(--ink);padding:7px 10px;min-height:36px;max-width:100%;min-width:0;font-size:14px;line-height:1.5}
input::placeholder,textarea::placeholder{color:#78838f}
textarea{resize:vertical;min-height:88px;width:100%}
select{cursor:pointer}
input[type=checkbox],input[type=radio]{accent-color:var(--brown);width:17px;height:17px}
.table-wrap{overflow-x:auto;border-radius:0 0 var(--radius) var(--radius)}
table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}
th{font-weight:600;color:#52606f;font-size:13px;white-space:nowrap;padding:10px 14px;background:#f7f8fa;border-bottom:1px solid var(--line)}
td{padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#f8fafc}
.product-cell{display:flex;align-items:center;gap:10px;min-width:220px}
.product-cell strong{display:block;font-size:14px;font-weight:550;max-width:280px;overflow-wrap:anywhere}
.product-cell small{color:var(--muted);display:block;margin-top:3px;font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.art{display:block;position:relative;overflow:hidden;background:#eef0f3;flex-shrink:0;border-radius:4px;isolation:isolate}
.art img{position:absolute;max-width:none;object-fit:fill}
.thumb{width:46px;height:52px}
.art.fallback{display:grid;place-items:center;color:#8893a0}
.inventory-cell{white-space:nowrap}
.badge{display:inline-flex;align-items:center;gap:5px;border-radius:4px;padding:2px 7px;line-height:1.5;background:#edf1f5;color:#566371;font-size:12px;white-space:nowrap}
.badge.green{background:#eaf5ec;color:#277346}
.badge.gold{background:#fff3d7;color:#896000}
.badge.red{background:#fceceb;color:#aa3730}
.badge.blue{background:#eaf2fd;color:#245f9f}
.badge.neutral{background:#eef0f3;color:#616b76}
.table-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.table-actions button,.table-actions a{font-size:13px}
.order-number{font-size:14px;font-weight:550;white-space:nowrap}
.order-date{margin-top:3px;font-size:12px;white-space:nowrap}
.empty{padding:28px 20px;text-align:center}
.empty-symbol{width:36px;height:36px;border-radius:4px;background:var(--sand);color:#7b8998;display:grid;place-items:center;margin:0 auto 10px}
.empty-symbol .icon{width:21px;height:21px}
.empty h3{font-size:15px;font-weight:550;margin-bottom:5px}
.empty p{max-width:410px;margin:0 auto 12px;font-size:13px;color:var(--muted)}
.empty.compact{padding:22px 16px}
.notice{background:#f3f6fa;border:1px solid #dbe3ed;border-radius:4px;padding:11px 14px;font-size:13px;line-height:1.65;color:#536374}
.notice strong{color:#384d64}
.notice.error,.inline-error{background:#fff0ed;border-color:#ecc4bb;color:#a13729}
.notice.success{background:#edf7ee;border-color:#cde3d0;color:#326c3c}
/* Forms and details. */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-group{display:flex;flex-direction:column;gap:5px;min-width:0}
.form-group label,.form-label{font-size:13px;color:#435160;font-weight:550}
.form-group .field,.form-group select{width:100%}
.form-group small{color:var(--muted);font-size:12px}
.form-group.full{grid-column:1/-1}
.required{color:var(--red);margin-left:3px}
.form-footer{border-top:1px solid var(--line);padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.form-footer .subtext{max-width:560px}
.field-hint{font-size:12px;color:var(--muted);margin-top:5px}
.price-input{position:relative}
.price-input span{position:absolute;left:11px;top:8px;color:var(--muted)}
.price-input input{padding-left:27px}
.product-preview .art{width:100%;max-width:240px;aspect-ratio:4/4.8;border-radius:4px;margin:0 auto}
.product-preview h3{margin-top:14px;overflow-wrap:anywhere}
.product-preview .preview-price{font-size:24px;color:var(--ink);font-weight:600;margin:6px 0}
.product-preview .subtext{overflow-wrap:anywhere}
.detail-list{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px 14px;font-size:14px;margin:0}
.detail-list dt{color:var(--muted)}
.detail-list dd{margin:0;word-break:break-word}
.detail-list.compact{font-size:13px;grid-template-columns:80px minmax(0,1fr);gap:8px}
.total-list{margin-left:auto;max-width:310px}
.total-line{display:flex;justify-content:space-between;font-size:14px;margin:8px 0;color:var(--muted)}
.total-line.total{border-top:1px solid var(--line);padding-top:12px;font-size:16px;color:var(--ink);font-weight:600}
.total-line.total span:last-child{font-size:22px}
.timeline{display:flex;gap:8px;list-style:none;margin:0;padding:5px 0}
.timeline li{flex:1;min-width:0;position:relative;font-size:12px;color:var(--muted)}
.timeline li:before{content:"";display:block;width:9px;height:9px;border-radius:50%;background:#c7d0d9;margin-bottom:8px;position:relative;z-index:1}
.timeline li:not(:last-child):after{content:"";position:absolute;left:8px;right:-8px;top:4px;height:1px;background:#d5dce4}
.timeline li.done{color:var(--brown)}
.timeline li.done:before{background:var(--brown)}
.timeline small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.profile{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.profile-avatar{width:48px;height:48px;border-radius:4px;background:var(--sand);display:grid;place-items:center;font-size:22px;color:var(--brown);flex-shrink:0}
.profile h2{margin-bottom:5px}
.mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin:14px 0;gap:12px}
.mini-stat small{display:block;color:var(--muted)}
.mini-stat strong{font-size:23px;color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.address-card{padding:14px 0;border-bottom:1px solid var(--line)}
.address-card:first-child{padding-top:0}
.address-card:last-child{border:0;padding-bottom:0}
.address-card p{font-size:13px;color:var(--muted);margin-top:6px;word-break:break-word}
.address-card .address-head{display:flex;gap:12px;align-items:center;font-size:14px;flex-wrap:wrap}
.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.review-card{padding:16px;min-width:0}
.review-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.review-top h3{overflow-wrap:anywhere;min-width:0}
.review-card h3{margin-bottom:6px}
.review-body{white-space:pre-wrap;overflow-wrap:anywhere;color:#435160;font-size:14px;line-height:1.65;margin-bottom:14px}
.review-meta{font-size:12px;color:var(--muted);margin-bottom:14px;overflow-wrap:anywhere}
.review-form{border-top:1px solid var(--line);padding-top:14px}
.review-form textarea{min-height:64px;margin-bottom:10px}
.reward-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.reward-card{padding:16px;display:flex;align-items:center;gap:14px}
.reward-art{width:60px;height:66px}
.reward-card h3{font-size:15px;margin-bottom:5px}
.reward-card p{font-size:12px;color:var(--muted)}
.reward-cost{color:var(--ink);font-size:22px;font-weight:600;margin-top:6px}
.reward-cost small{font-size:12px;margin-left:4px}
.coupon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.coupon-card{padding:16px;background:var(--paper);position:relative;border:1px solid var(--line);border-radius:var(--radius)}
.coupon-card .coupon-value{font-size:30px;font-weight:600;color:var(--brown)}
.coupon-value small{font-size:18px}
.coupon-card h3{font-size:15px;margin:4px 0 10px}
.coupon-card p{font-size:12px;color:var(--muted)}
.coupon-bottom{border-top:1px solid var(--line);padding-top:12px;margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.file-input{display:block;width:100%;margin:12px 0;color:var(--muted);font-size:13px}
.file-input::file-selector-button{padding:7px 12px;background:var(--sand);border:1px solid var(--line);border-radius:4px;margin-right:10px;color:#364454;cursor:pointer}
.preview-output{margin-top:16px;border-top:1px solid var(--line);padding-top:16px}
.step-heading{display:flex;align-items:center;gap:10px}
.step-number{width:26px;height:26px;background:var(--sand);color:var(--brown);border-radius:4px;display:grid;place-items:center;font-size:15px;font-weight:600;flex-shrink:0}
.inline-error{border:1px solid #ecc4bb;border-radius:4px;padding:9px 12px;font-size:13px;margin:0 0 14px}
.inline-error:empty{display:none}
.page-footer{padding:0 24px 18px;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px;max-width:1720px;margin:auto}
.toast{position:fixed;left:calc(50% + 104px);bottom:24px;transform:translateX(-50%);background:#344354;color:#fff;padding:12px 18px;border-radius:6px;font-size:14px;max-width:min(580px,85vw);box-shadow:0 3px 16px #18263826;z-index:100}
.toast.error{background:#a13729}
.toast[hidden]{display:none}
.initial-loading{text-align:center;padding:64px 20px;color:var(--muted)}
.initial-loading h1{font-size:21px;margin:20px 0 8px}
.initial-loading p{font-size:14px}
.spinner{width:30px;height:30px;border:2px solid #d8e1eb;border-top-color:var(--brown);border-radius:50%;animation:spin .7s linear infinite;margin:auto}
@keyframes spin{to{transform:rotate(360deg)}}
.refreshing{opacity:.6;pointer-events:none}
dialog{border:1px solid var(--line);border-radius:6px;padding:24px;max-width:520px;width:calc(100% - 32px);color:var(--ink);background:var(--paper);box-shadow:0 8px 32px #17233426}
dialog::backdrop{background:#26354466}
.dialog-close{float:right;font-size:28px;margin:-10px -10px 0 0}
dialog h2{margin-bottom:12px}
dialog p{color:var(--muted);font-size:14px;margin-bottom:18px}
.noscript{position:fixed;inset:0;z-index:200;background:var(--paper);display:grid;place-items:center}
.sidebar-collapsed .sidebar{width:68px;padding-left:8px;padding-right:8px}
.sidebar-collapsed .workspace{margin-left:68px}
.sidebar-collapsed .brand{padding-left:10px;gap:0}
.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-label,.sidebar-collapsed .nav-group-label,.sidebar-collapsed .sidebar-footer-copy{display:none}
.sidebar-collapsed .nav-link{padding:11px 16px}
.sidebar-collapsed .nav-link.active:after{right:4px}
.sidebar-collapsed .sidebar-footer{justify-content:center}
.sidebar-collapsed .toast{left:calc(50% + 34px)}
@media(min-width:761px){
  .sidebar-collapsed .nav-children,.sidebar-collapsed .nav-chevron,.sidebar-collapsed .nav-count{display:none}
  .sidebar-collapsed .nav-primary{padding:11px 16px}
}
.wrap-text{overflow-wrap:anywhere;white-space:pre-wrap}
.wrap-text.subtext{font-size:14px;line-height:1.65}
.loading-inline{display:inline-flex;align-items:center;gap:8px}
.audit-row{display:flex;gap:12px;align-items:flex-start;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}
.audit-row:last-child{border:0}
.audit-row time{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.audit-row span{color:#52606f;overflow-wrap:anywhere}
.list-separator{margin:16px 0;border:0;border-top:1px solid var(--line)}
.review-images{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.review-images img{width:56px;height:56px;object-fit:cover;border-radius:4px}
.demo-step-note{margin:0 0 16px}
.mobile-overlay{display:none}
/* Unified local data status and read-only order queries. */
.order-query{padding:14px 16px;border-bottom:1px solid var(--line)}
.order-query-fields{display:grid;grid-template-columns:1.3fr 1.6fr 1fr 1fr 1fr;gap:12px}
.order-query-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.order-query .field-hint{margin-top:10px}
.database-panel{margin-bottom:16px}
.membership-summary{margin-bottom:16px}
.membership-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.membership-grid .form-footer{align-items:flex-start;flex-wrap:wrap}
.database-panel .notice{margin-bottom:14px}
.database-counts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:16px 0 0}
.database-count{padding:12px;border:1px solid var(--line);border-radius:4px;background:#f7f8fa}
.database-count dt{font-size:13px;color:var(--muted)}
.database-count dd{margin:5px 0 0;font-size:23px;color:var(--ink);font-weight:600}
/* Responsive navigation, forms and contained horizontal table scrolling. */
@media(max-width:1400px){
  .order-query-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
  .database-counts{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1200px){
  .topbar{padding:0 20px}.demo-banner{padding-left:20px;padding-right:20px}main{padding:18px 20px}.page-footer{padding-left:20px;padding-right:20px}
  .dashboard-grid,.two-columns{grid-template-columns:minmax(0,1.3fr) minmax(275px,1fr)}
  .coupon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-label{display:none}
}
@media(max-width:1000px){
  .membership-grid{grid-template-columns:1fr}
  .dashboard-grid,.two-columns{grid-template-columns:1fr}.product-editor{grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr)}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.review-grid,.reward-grid{grid-template-columns:1fr}
  .demo-banner{align-items:flex-start;gap:10px}.topbar-path{font-size:12px;gap:10px}
}
@media(max-width:760px){
  .sidebar{transform:translateX(-100%);width:224px;box-shadow:8px 0 24px #17233420}
  .workspace,.sidebar-collapsed .workspace{margin-left:0}.sidebar.mobile-open{transform:translateX(0)}.sidebar-collapsed .sidebar{width:224px}
  .sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-label,.sidebar-collapsed .nav-group-label,.sidebar-collapsed .sidebar-footer-copy{display:initial}
  .sidebar-collapsed .nav-link{padding:9px 12px}.sidebar-collapsed .brand{gap:10px}.sidebar-collapsed .sidebar-footer{justify-content:flex-start}
  .topbar{padding:0 12px;min-height:52px;gap:8px}.topbar-path{min-width:0;flex:1}.topbar-path strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-path>span:first-child,.topbar-path>.separator{display:none}.topbar-right{gap:8px}.connection{display:none}.avatar{display:none}
  .demo-banner{padding:8px 12px;display:block;font-size:12px}.demo-banner strong,.demo-banner span{display:block}
  main{padding:16px 12px}.page-heading{align-items:flex-start;gap:12px;flex-direction:column}.page-heading h1{font-size:22px}.page-heading p{font-size:13px}.heading-actions{width:100%}
  .stats{gap:10px}.stat{padding:12px}.stat-icon{display:none}.stat-label{padding-right:0}.stat-value{font-size:26px}
  .panel-header,.panel-body{padding:12px}.toolbar{padding:12px;gap:8px}.search-field{min-width:100%;max-width:none}.toolbar select{flex:1;min-width:0}.result-count{width:100%;margin-left:0}
  .two-columns,.product-editor{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-footer{padding:12px;align-items:flex-start;flex-direction:column}.form-footer .actions{width:100%}.form-footer .button{flex:1}
  .page-footer{padding:0 12px 16px;font-size:12px}.page-footer span:last-child{display:none}.toast,.sidebar-collapsed .toast{left:50%;bottom:16px}
  .coupon-grid{grid-template-columns:1fr}.timeline{flex-wrap:wrap;row-gap:14px}.timeline li{flex:1 0 40%}.timeline li:nth-child(2):after{display:none}
  .review-card{padding:12px}.detail-list{font-size:13px;grid-template-columns:76px minmax(0,1fr)}.mini-stats{gap:8px}.mini-stat strong{font-size:20px}
  .mobile-overlay.visible{display:block;position:fixed;inset:0;background:#26354466;z-index:29}.reward-card{gap:12px;padding:12px}
  .order-query{padding:12px}.order-query-fields{grid-template-columns:1fr 1fr}.order-query-fields>.form-group:nth-child(-n+2){grid-column:1/-1}.order-query-actions{align-items:flex-start;flex-direction:column}
  .database-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.database-panel .panel-header{align-items:flex-start;flex-direction:column}
}
/* Page builder: practical desktop forms and an explicitly approximate phone preview. */
.pb-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 8px}.pb-toolbar>div:first-child{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.pb-workspace{display:grid;grid-template-columns:205px minmax(330px,1fr) 375px;gap:14px;align-items:start;margin-top:16px}
.pb-workspace fieldset{border:0;padding:0;margin:0;min-width:0}.pb-workspace label{display:block;font-size:13px}.pb-workspace label>span{display:block;margin-bottom:6px}.pb-workspace input,.pb-workspace select,.pb-workspace textarea{width:100%;min-width:0}.pb-workspace select[multiple]{min-height:155px}.pb-workspace input[type=color]{height:37px;padding:4px}.pb-workspace .full{grid-column:1/-1}
.pb-workspace .panel-header,.pb-workspace .panel-body{padding:14px}.pb-workspace h3{font-size:14px;margin:0}.pb-workspace form+form{margin-top:22px}.pb-pages label{margin:10px 0}.pb-pages form{margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}.pb-pages .button{width:100%}
.pb-page-list{display:flex;flex-direction:column;gap:6px}.pb-page-choice{padding:9px 10px;text-align:left;background:#f7f9fc;border:1px solid var(--line);border-radius:4px;overflow-wrap:anywhere;cursor:pointer}.pb-page-choice strong,.pb-page-choice small{display:block}.pb-page-choice small{color:var(--muted);margin-top:3px}.pb-page-choice.active{background:#eaf3ff;border-color:#4380c4;color:#225d9e}
.pb-inline{display:flex;align-items:center;justify-content:space-between;gap:8px}.pb-inline>select{flex:1;width:auto;min-width:0}.pb-inline>.button{flex-shrink:0}.pb-template{margin:14px 0}.pb-subheading{margin:22px 0 14px;padding-top:15px;border-top:1px solid var(--line);font-weight:600}.pb-subheading .actions{gap:5px}
.pb-block-list{margin-bottom:12px;max-height:300px;overflow-y:auto}.pb-block-row{display:flex;align-items:center;border:1px solid var(--line);border-radius:4px;margin-bottom:6px;padding:6px;gap:4px}.pb-block-row.active{border-color:#4380c4;background:#f1f6fc}.pb-block-select{background:none;border:0;cursor:pointer;text-align:left;flex:1;min-width:0;overflow-wrap:anywhere;padding:3px}.pb-block-select small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.pb-row-actions{display:flex;gap:3px}.pb-row-actions .button{padding:3px 6px;min-height:28px;font-size:12px}.pb-entry{border:1px solid var(--line);border-radius:4px;padding:12px}.pb-entry>.pb-inline{margin-bottom:12px}
.pb-preview-column{min-width:0}.pb-preview-note{padding:0 14px}#pb-phone-preview{margin:12px auto;width:100%;max-width:375px;max-height:760px;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.pb-phone-page{padding:12px;min-height:260px;color:#493c37;overflow-wrap:anywhere}.pb-phone-title{text-align:center;font-size:16px;font-weight:600;padding:5px 0 18px}.pb-preview-block{overflow:hidden}.pb-preview-block h3{margin:12px 0;font-weight:600;line-height:1.4}.pb-preview-block p{white-space:pre-wrap;line-height:1.7;margin:8px 0}.pb-preview-block img{display:block;width:100%;height:auto;max-height:300px;object-fit:cover;border-radius:7px}.pb-preview-block video{width:100%;max-height:240px;background:#222}.pb-preview-block small{display:block;margin-top:7px;color:#796b64;font-size:11px}.pb-preview-empty{padding:28px 15px;text-align:center;color:#81736d;font-size:13px;background:#f7f4ef}.pb-preview-grid{display:grid;gap:10px}.pb-preview-product strong,.pb-preview-product span{display:block;margin-top:7px;font-size:13px}.pb-preview-product img{height:140px;object-fit:cover}.pb-preview-product span{color:#975f4c}.pb-preview-link{display:block;background:#f7f1ec;border-radius:8px;padding:12px;font-size:13px}.pb-preview-slide+.pb-preview-slide{margin-top:14px}.pb-history{margin-top:14px}.pb-history .panel-header{gap:8px}.pb-history-row{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:14px;font-size:12px}.pb-history-row>span{min-width:0;overflow-wrap:anywhere}.pb-history-row small{display:block;color:var(--muted);margin-top:5px}.pb-history-row .button{flex-shrink:0}
.pb-preview-product .pb-product-art{position:relative;display:block;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:7px;background:#f3eee7;margin:0}.pb-preview-product .pb-product-art img{position:absolute;display:block;max-width:none;max-height:none;width:100%;height:100%;left:0;top:0;object-fit:fill;border-radius:0}
@media(max-width:1450px){.pb-workspace{grid-template-columns:180px minmax(300px,1fr)}.pb-preview-column{grid-column:2}.pb-pages{grid-row:1/3}.pb-editor{grid-column:2}.pb-preview-column{display:grid;grid-template-columns:minmax(300px,375px) minmax(180px,1fr);gap:14px}.pb-history{margin-top:0}}
@media(max-width:1050px){.pb-workspace{grid-template-columns:165px minmax(0,1fr)}.pb-preview-column{display:block}.pb-history{margin-top:14px}.pb-row-actions{flex-wrap:wrap;max-width:90px}}
@media(max-width:760px){.pb-workspace{display:block}.pb-workspace>.panel{margin-bottom:14px}.pb-page-list{max-height:200px;overflow:auto}.pb-pages form{display:inline-block;width:calc(50% - 7px);vertical-align:top;margin-right:7px}.pb-toolbar .actions{flex-wrap:wrap}.pb-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pb-preview-column{max-width:100%}.pb-inline{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* 客服与商品媒体 */
#support-root [hidden]{display:none!important}
.support-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px;align-items:start}
.support-layout label,#support-root label{display:block;margin:12px 0 6px}
.support-layout textarea{width:100%;box-sizing:border-box}
.support-messages{height:440px;overflow:auto;background:#f5f7fa;padding:16px;margin:16px 0;border-radius:12px}
.support-message{max-width:85%;background:white;border:1px solid #e4e8ef;border-radius:12px;padding:12px;margin-bottom:12px;overflow-wrap:anywhere}
.support-message.merchant{margin-left:auto;background:#eaf3ff}
.support-message p{white-space:pre-wrap;margin:8px 0 0}
.support-message small{color:#617085}
.support-message img,.support-message video{display:block;max-width:100%;max-height:240px;margin-top:8px;border-radius:8px}
.product-media-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin:20px 0}
.product-media-list article{padding:12px;border:1px solid #dce3ed;border-radius:10px;overflow-wrap:anywhere}
.product-media-list img,.product-media-list video{width:100%;height:180px;object-fit:contain;background:#f5f7fa}
@media(max-width:900px){.support-layout{grid-template-columns:1fr}.support-messages{height:360px}}

/* Multi-customer reception; native mini-program styles are unchanged. */
.support-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.support-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start}
.support-config-panel{grid-column:2}.support-thread-panel{min-width:0}.support-thread{display:block;width:100%;text-align:left;padding:12px;margin:8px 0;border:1px solid #e7ddd1;background:#fff;border-radius:10px;cursor:pointer;color:inherit}.support-thread.selected{border-color:#875d45;background:#f9f3eb}.support-thread small{display:block;overflow-wrap:anywhere;font-size:10px;color:#7d736d}.support-thread p{margin:6px 0;overflow-wrap:anywhere}.support-unread{float:right;font-size:12px}.support-back{display:none}.support-chat-panel{min-width:0}#support-member{overflow-wrap:anywhere;font-size:18px}.support-messages{height:420px;overflow:auto}.support-message{overflow-wrap:anywhere}#support-compose textarea,#support-compose input{max-width:100%;box-sizing:border-box}
@media(max-width:700px){.support-layout{display:block}.support-chat-panel{display:none}.support-layout.chat-open .support-thread-panel{display:none}.support-layout.chat-open .support-chat-panel{display:block}.support-config-panel{margin-top:16px}.support-layout.chat-open .support-config-panel{display:none}.support-back{display:inline-block;margin-bottom:12px}.support-messages{height:38dvh;min-height:180px}.support-chat-panel{padding:14px}.support-toolbar{font-size:12px}.support-message video,.support-message img{max-width:100%}#support-compose textarea{width:100%}}

@media(max-width:700px){.support-chat-panel #support-member{font-size:17px;margin-bottom:8px}.support-chat-panel .support-messages{height:30dvh;min-height:180px;margin:10px 0;padding:10px}.support-chat-panel #support-text{height:64px}.support-chat-panel label{margin:8px 0 4px}.support-chat-panel [data-sm-status]:empty,.support-chat-panel [data-sm-error]:empty{display:none}.support-chat-panel #support-file-name:empty{display:none}}

#support-sound-settings{margin-bottom:16px;min-width:0;overflow-wrap:anywhere}#support-sound-settings summary{cursor:pointer;padding:8px 0}#support-sound-settings input{max-width:100%;box-sizing:border-box}#support-sound-settings .actions{flex-wrap:wrap}#sound-volume{display:block;width:100%;margin:12px 0}
/* Viewport chat workbench. Scoped to the support route. */
.support-page{overflow:hidden}.support-page .workspace{height:100dvh;display:flex;flex-direction:column}.support-page .topbar{flex:none}.support-page .demo-banner{flex:none;padding:4px 24px;font-size:11px}.support-page .demo-banner #runtime-description{display:none}.support-page main{padding:12px 16px 16px;width:100%;max-width:none;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}.support-page main>.page-heading,.support-page .page-footer{display:none}.support-page #support-root{flex:1;min-height:0;display:flex;flex-direction:column}.support-toolbar{flex:none;justify-content:space-between;margin:0 0 10px;gap:8px}.support-toolbar-title{display:flex;align-items:center;gap:10px}.support-toolbar-title strong{font-size:18px}.support-toolbar-title>span{font-size:11px;color:#7b8798}.support-toolbar-actions{display:flex;align-items:center;gap:8px}#support-sound-state{font-size:11px;color:#68798d}.support-layout{flex:1;min-height:0;display:grid;grid-template-columns:278px minmax(0,1fr);gap:0;align-items:stretch;border:1px solid #dce3ec;border-radius:10px;overflow:hidden;background:white;box-shadow:0 3px 16px #223c6410}.support-thread-panel{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e1e6ee;background:#fbfcfe}.support-rail-head{padding:18px 16px 14px;flex:none;border-bottom:1px solid #e8edf3}.support-rail-head h2{font-size:15px;margin-bottom:12px}#support-count{font-size:12px;color:#7d8ba0;font-weight:400;margin-left:5px}.support-rail-head label,.support-input-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#support-search{width:100%;border-color:#e1e7ee;border-radius:7px;background:#f0f3f7;font-size:13px}#support-threads{min-height:0;overflow:auto;padding:6px;scrollbar-width:thin}.support-thread{display:flex;align-items:center;gap:10px;margin:2px 0;padding:13px 10px;border:1px solid transparent;border-radius:7px;background:transparent}.support-thread:hover{background:#f0f4fa}.support-thread.selected{background:#e9f1ff;border-color:#d3e3ff;box-shadow:inset 3px 0 #3978e6}.support-customer-avatar{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:12px;background:#e5eaf2;color:#63748d;font-size:17px;font-weight:600}.selected .support-customer-avatar{background:#cfe1ff;color:#2d63b3}.support-thread-copy{min-width:0;flex:1}.support-thread-top,.support-thread-preview{display:flex;align-items:center;gap:8px}.support-thread-top strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:550}.support-thread-top time{color:#8a96a8;font-size:10px}.support-thread-preview{margin-top:5px;color:#7c889a;font-size:12px}.support-thread-preview>span:first-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1;min-width:0}.support-unread{float:none;flex:none;min-width:17px;padding:0 5px;border-radius:10px;background:#ef615e;color:white;font-size:10px;text-align:center}.support-thread small{font-size:10px;color:#939faf;margin-top:3px}.support-no-results{padding:24px;text-align:center;color:#8895a5}.support-chat-panel{display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden}.support-chat-head{flex:none;display:flex;align-items:center;gap:10px;padding:15px 22px;border-bottom:1px solid #e5eaf1;background:white}.support-chat-head>div{flex:1;min-width:0}#support-member{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-chat-head p{font-size:11px;color:#8a97a9;margin-top:3px}.support-chat-panel .support-messages{flex:1;min-height:0;height:auto;margin:0;padding:24px;border-radius:0;background:#f2f4f8;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.support-message{width:fit-content;max-width:78%;border-color:#e4e8ef;border-radius:2px 12px 12px;padding:10px 14px;margin-bottom:18px;box-shadow:0 1px 2px #203c5c04}.support-message.merchant{background:#e1edff;border-color:#d5e4fa;border-radius:12px 2px 12px 12px}.support-message small{font-size:10px;color:#8290a3}.support-message p{margin-top:5px;line-height:1.7}.support-message img,.support-message video{max-height:220px}#support-compose{flex:none;background:white;border-top:1px solid #dfe6ef;padding:8px 18px 12px}.support-compose-tools{display:flex;align-items:center;gap:14px;min-height:30px}.support-layout #support-compose .support-attach{display:inline-flex;position:relative;align-items:center;margin:0;font-size:13px;color:#52657f;cursor:pointer;padding:4px 0}.support-attach input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.support-attach:focus-within{outline:2px solid #79a9dc;outline-offset:2px}.support-attachment-hint{font-size:10px;color:#9aa5b4}#support-compose #support-text{height:72px;min-height:52px;border:0;resize:none;padding:8px 0;background:white;box-shadow:none;font-size:14px}#support-compose #support-text:focus{outline:0}#support-compose:focus-within{box-shadow:inset 0 2px #92b8f0}.support-selected-file{display:flex;align-items:center;gap:8px;font-size:12px}.support-selected-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}.support-send-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.support-send-row>span{font-size:10px;color:#a1aab7}#support-send{background:#3978e6;border-color:#3978e6;min-width:108px;border-radius:6px}.support-send-row .actions{justify-content:flex-end}#support-compose [data-sm-status]{font-size:11px;color:#708397;margin-top:4px}#support-compose [data-sm-status]:empty{display:none}#support-compose .inline-error{padding:4px 8px;margin:5px 0 0;font-size:12px}.support-settings{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:400px;max-width:100%;border:0;border-left:1px solid #dbe3ef;border-radius:12px 0 0 12px;padding:22px;overflow:auto}.support-settings::backdrop{background:#23354d55}.support-settings>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.support-settings>header h2{margin:0}.support-settings>p{margin:8px 0 22px}.support-settings .support-config-panel{margin:0;padding:20px 0;border-top:1px solid #e1e7ef}.support-settings #support-config label{margin:12px 0;font-size:13px}.support-settings #support-config .field{display:block;width:100%;margin-top:5px}.support-settings #support-config-feedback{font-size:12px;margin:10px 0}.support-settings #support-sound-settings{margin-bottom:18px}.support-settings #support-sound-settings summary{font-weight:600;color:#3a608d}.support-settings #support-sound-settings .panel{padding:12px;background:#f7f9fc}.support-settings p{overflow-wrap:anywhere}.support-back{display:none}
@media(max-width:1100px){.support-layout{grid-template-columns:240px minmax(0,1fr)}#support-sound-state{display:none}}
@media(max-width:700px){.support-page .workspace{margin-left:0}.support-page .topbar{min-height:48px;padding:0 10px}.support-page .demo-banner{padding:3px 12px}.support-page main{padding:8px 8px 10px}.support-toolbar{margin-bottom:8px;gap:6px}.support-toolbar-title strong{font-size:14px}.support-toolbar-title>span{display:none}.support-toolbar-actions{gap:5px}.support-toolbar .button{font-size:11px;min-height:30px;padding:4px 7px}.support-layout{display:flex;border-radius:7px}.support-thread-panel{width:100%;border:0}.support-chat-panel{display:none;width:100%}.support-layout.chat-open .support-thread-panel{display:none}.support-layout.chat-open .support-chat-panel{display:flex}.support-chat-head{padding:10px;gap:8px}.support-chat-head #support-member{font-size:14px;margin:0}.support-chat-head p{font-size:10px}.support-chat-head .button{font-size:11px;padding:4px 6px}.support-back{display:inline-flex;margin:0}.support-chat-panel .support-messages{height:auto;min-height:0;padding:14px 10px;margin:0}.support-message{max-width:89%;padding:8px 11px;margin-bottom:14px}#support-compose{padding:6px 10px 10px}.support-attachment-hint{font-size:9px}.support-compose-tools{gap:10px}#support-compose #support-text{height:64px;min-height:48px}.support-send-row .button{font-size:12px;min-height:32px}#support-send{min-width:86px}.support-settings{width:min(400px,100%);padding:18px;border-radius:0}.support-layout.chat-open~.support-settings .support-config-panel{display:block}}
/* Supplemental order settings share the same compact drawer. */
.support-settings>header{position:sticky;top:-22px;z-index:2;background:#fff;padding:12px 0}.support-order-section{padding:20px 0;border-top:1px solid #e1e7ef}.support-order-section h3{margin-bottom:7px}.support-order-section .subtext{margin:0 0 10px;font-size:12px}.support-order-section button{margin-top:8px}#order-sound-settings{margin:6px 0 20px}#order-sound-settings summary{font-weight:600;color:#3a608d;cursor:pointer;padding:8px 0}#order-sound-settings .panel{padding:12px;background:#f7f9fc}#order-sound-settings input{max-width:100%}#order-sound-volume{display:block;width:100%;margin:12px 0}#order-sound-state,#order-sound-draft,#order-sound-status,#order-reply-status,#mobile-notification-state{font-size:12px;line-height:1.7;margin:8px 0}#order-sound-current{font-size:13px}.support-settings .support-order-section label{font-size:13px}.support-settings .support-order-section textarea{margin:6px 0}

/* Merchant chat: compact contacts, neutral transcript and separate message metadata. */
#support-root .support-layout{border-color:#dfe2e7;border-radius:8px;box-shadow:none;grid-template-columns:278px minmax(0,1fr)}
#support-root .support-thread-panel{background:#f7f8fa;border-color:#dfe2e7}
#support-root .support-rail-head{padding:16px 16px 12px}
#support-root .support-thread{padding:12px 10px;gap:11px;margin:2px 0;border:0;min-height:72px}
#support-root .support-thread:hover{background:#e9ecf0}
#support-root .support-thread.selected{background:#dfe3e9;box-shadow:none}
#support-root .support-customer-avatar{width:42px;height:42px;border-radius:50%;overflow:hidden;background:#e3e8ed;color:#687583;font-size:18px;font-weight:500}
#support-root .support-thread:nth-child(3n+2) .support-customer-avatar{background:#eee4dc;color:#a17557}
#support-root .support-thread:nth-child(3n) .support-customer-avatar{background:#e1e9e4;color:#668171}
#support-root .support-thread-top strong{font-size:14px;color:#30343b}
#support-root .support-thread-top time{font-size:11px;color:#9398a1}
#support-root .support-thread-preview{color:#9398a1;margin-top:5px}
#support-root .support-thread small{display:none}
#support-root .support-chat-head{padding:15px 24px;border-color:#e2e5ea}
#support-root .support-chat-identity{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
#support-root .support-chat-identity>div{flex:1;min-width:0}
#support-root .support-chat-avatar{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#e3e8ed;color:#687583;font-size:15px}
#support-root [data-avatar-image]{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
#support-root .support-chat-panel .support-messages{background:#f0f2f5;padding:24px 28px}
#support-root .support-message{display:flex;align-items:flex-start;gap:11px;width:100%;max-width:100%;padding:0;margin:0 0 24px;border:0;border-radius:0;background:transparent;box-shadow:none}
#support-root .support-message.merchant{flex-direction:row-reverse}
#support-root .support-message-avatar{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;overflow:hidden;background:#e3e8ed;color:#687583;font-size:15px}
#support-root .merchant .support-message-avatar{background:#dde8ff;color:#4e77bf}
#support-root .support-message-body{min-width:0;max-width:78%;display:flex;align-items:flex-start;flex-direction:column}
#support-root .merchant .support-message-body{align-items:flex-end}
#support-root .support-message-meta{display:flex;align-items:center;gap:12px;margin:0 0 8px;font-size:11px;color:#969da7;line-height:1.5}
#support-root .merchant .support-message-meta{flex-direction:row-reverse}
#support-root .support-bubble{max-width:100%;padding:11px 15px;border-radius:3px 12px 12px;background:#fff;border:1px solid #e8eaee;color:#343943;overflow-wrap:anywhere}
#support-root .merchant .support-bubble{background:#e4edff;border-color:#e4edff;border-radius:12px 3px 12px 12px}
#support-root .support-message p{margin:0;line-height:1.7;font-size:14px}
#support-root .support-message img,#support-root .support-message video{margin:0;max-height:220px}
#support-root #support-compose{background:#f9fafc;border-color:#d9dde3;padding:10px 24px 15px}
#support-root .support-compose-tools{gap:18px;min-height:34px}
#support-root #support-compose .support-attach{gap:8px;color:#737d8b;font-size:12px}
#support-root .support-attach:hover{color:#3478ee}
#support-root #support-compose #support-text{height:116px;background:transparent;padding:12px 0;color:#343943}
#support-root #support-compose #support-text::placeholder{color:#a5adb8}
#support-root #support-send{background:#4385ff;border-color:#4385ff;border-radius:5px;min-width:104px;font-weight:500}
#support-root #support-send:hover:not(:disabled){background:#3275eb}
@media(max-width:1100px){#support-root .support-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:700px){
 #support-root .support-chat-head{padding:10px}
 #support-root .support-chat-panel .support-messages{padding:18px 12px}
 #support-root .support-message{gap:8px;margin-bottom:20px}
 #support-root .support-message-avatar{width:30px;height:30px;font-size:13px}
 #support-root .support-chat-avatar{width:30px;height:30px;font-size:13px}
 #support-root .support-message-body{max-width:calc(100% - 38px)}
 #support-root .support-message-meta{gap:7px;font-size:10px;margin-bottom:6px}
 #support-root .support-bubble{padding:9px 12px}
 #support-root #support-compose{padding:7px 12px 10px}
 #support-root .support-compose-tools{gap:8px}
 #support-root #support-compose .support-attach{gap:5px;font-size:11px}
 #support-root #support-compose #support-text{height:82px}
 #support-root #support-send{min-width:86px}
}
.referral-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.referral-stats .panel{padding:20px}.referral-stats strong{display:block;font-size:28px;margin-top:8px}.referral-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:20px}.referral-filters label{display:grid;gap:8px;flex:1;min-width:160px}.referral-filters input,.referral-filters select{width:100%;min-height:40px;padding:8px;border:1px solid #d9e0e8;border-radius:6px}.referral-note{padding:0 20px 20px;color:#64748b}.referral-list{display:grid;gap:16px;margin-top:18px}.referral-card{padding:22px;min-width:0}.referral-people{display:grid;grid-template-columns:1fr auto 1fr auto;align-items:center;gap:18px}.referral-people>div{display:grid;gap:7px;min-width:0}.referral-people small,.referral-order small{overflow-wrap:anywhere;color:#64748b}.referral-amounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.referral-amounts dt{color:#64748b;font-size:12px}.referral-amounts dd{margin:6px 0;font-weight:600}.referral-card summary{cursor:pointer;padding:10px 0;color:#2563a6}.referral-order{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #edf0f4}.referral-order a{overflow-wrap:anywhere}.referral-card>.subtext{margin-top:18px}@media(max-width:600px){.referral-stats{gap:8px}.referral-stats .panel{padding:12px}.referral-card{padding:16px}.referral-people{grid-template-columns:1fr auto 1fr;gap:10px}.referral-people>.badge{grid-column:1/-1;justify-self:start}.referral-amounts{grid-template-columns:repeat(2,minmax(0,1fr))}.referral-order{display:grid;gap:7px}.referral-filters{padding:16px}.referral-filters label{flex-basis:100%}.referral-note{padding:0 16px 16px}}

/* Managed category groups */
.category-groups{display:grid;gap:20px;margin-top:20px}.category-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:20px;padding:24px}.category-tile{border:0;background:transparent;cursor:pointer;min-width:0;display:flex;align-items:center;flex-direction:column;gap:8px;color:inherit}.category-cover{position:relative;display:block;overflow:hidden;width:88px;height:88px;border-radius:50%;background:#f4efea}.category-cover img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover}.category-tile strong{max-width:100%;overflow-wrap:anywhere}.category-tile small{color:#718096}.category-edit input[type=file]{max-width:100%;width:100%}.category-checkbox input{width:auto}.category-message{overflow-wrap:anywhere;color:#a43c35}.category-editor{margin-top:20px}.category-group h2{overflow-wrap:anywhere;min-width:0}@media(max-width:600px){.category-tiles{grid-template-columns:repeat(auto-fit,minmax(76px,1fr));padding:16px;gap:16px 8px}.category-cover{width:70px;height:70px}.category-group .panel-header{gap:8px}.category-group .panel-header button{flex-shrink:0}}

.category-group-actions{display:flex;flex-wrap:wrap;gap:8px}.category-group .panel-header{align-items:flex-start;flex-wrap:wrap}.category-group h2{margin-top:6px}.category-editor>[data-category-cancel]{margin:0 24px 20px}.category-group .panel-header>div{min-width:0}
.category-tile-main{border:0;background:transparent;cursor:pointer;min-width:0;display:flex;align-items:center;flex-direction:column;gap:8px;color:inherit;font:inherit;width:100%}.category-change-icon{background:#fff;border:1px solid #bba785;color:#70572e;border-radius:6px;padding:6px 10px;cursor:pointer;font:inherit;font-size:13px}.category-icon-editor{grid-column:1/-1;min-width:0}.category-icon-editor>[data-icon-toggle]{align-self:flex-start}.category-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px;margin:12px 0}.category-icon-option{background:#fff;border:2px solid #e4ddd2;border-radius:10px;display:flex;align-items:center;flex-direction:column;gap:8px;padding:10px 4px;font:inherit;font-size:13px;cursor:pointer;min-width:0}.category-icon-option[aria-pressed=true]{border-color:#987442;background:#faf4e8}.category-icon-option span:last-child{overflow-wrap:anywhere}.category-upload{display:block;margin:12px 0;font-weight:600}.category-icon-editor [data-cover-default]{display:block;margin-top:12px}.category-current-cover{margin:6px 0}.category-icon-editor [hidden]{display:none}@media(max-width:600px){.category-icon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-change-icon{padding:6px;font-size:12px}}
.pb-video-group>div{min-width:0}.pb-video-group video{display:block;width:100%;height:190px;object-fit:contain;background:#222}.pb-video-group.columns-2 video{height:110px}
#product-groups-root input[type=checkbox]{width:auto;flex:none}.pg-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;max-height:340px;overflow:auto;padding:12px}.pg-products label{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}.pg-products small{color:#718096}
.crm-tabs,.crm-tags{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.crm-tags label{display:flex;align-items:center;gap:6px}#members-root input[type=checkbox]{width:auto}.crm-tabs .button{flex-shrink:0}#members-root input[type=file]{max-width:100%}
.ct-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.ct-gallery img,.ct-gallery video{width:100%;height:180px;object-fit:contain;background:#f3f4f6}.ct-gallery p{overflow-wrap:anywhere}.ct-gallery button{margin-top:12px}#catalog-tools-root input[type=file]{max-width:100%}

/* Shared settings rhythm: labels above controls, compact readable form columns. */
#main:focus{outline:none}
#order-forms-root .of-batch{max-width:1000px;margin-bottom:20px}
#order-forms-root .of-batch h2{margin-bottom:10px;font-size:17px}
#order-forms-root .of-batch>.subtext{margin-bottom:20px;line-height:1.8}
#order-forms-root .of-batch .form-grid{align-items:center}
#order-forms-root [data-batch-list]{margin:18px 0;font-size:13px}
#order-forms-root [data-batch-list] ul{max-height:220px;overflow:auto;padding:12px 12px 12px 28px;background:#f7f9fc;border-radius:6px;margin-top:10px;line-height:2}
.order-form-status{min-width:140px;max-width:240px;white-space:normal}
.order-form-status .subtext{margin-top:6px;font-size:12px;line-height:1.6}
.of-status{display:inline-block;padding:6px 10px;border-radius:5px;font-size:13px;font-weight:600;white-space:nowrap}
.of-status.confirmed{background:#e7f5ec;color:#237344}
.of-status.pending{background:#fff2dd;color:#955b12}
.of-status.review{background:#e8efff;color:#315eb2}
.of-status.closed{background:#edf0f3;color:#687483}
.analytics .an-grid-single{grid-template-columns:minmax(0,1fr)}
.analytics .an-toolbar{margin-bottom:16px}
.analytics .an-panel>label{display:flex;align-items:center;gap:10px;margin-bottom:16px;font-size:13px;color:var(--muted)}
input,select,textarea{font-weight:400}
#members-root>.notice{margin-bottom:20px}
#members-root .panel-body{padding:24px}
#members-root .panel-body>h2{margin-bottom:16px}
#members-root .panel-body>.notice{margin:16px 0}
#members-root .crm-tags.section-gap{margin-top:20px}
#members-root [data-crm-import]{max-width:680px}
input[type=file]::file-selector-button{font:inherit;border:1px solid #cbd7e4;border-radius:5px;padding:8px 14px;margin-right:12px;background:#fff;color:var(--brown);cursor:pointer}
#aftersale-policy-root input[type=number]{max-width:360px}
[data-form=marketing-save] .form-grid+.subtext{margin-top:16px}
.order-summary,.order-status-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin:0}
.order-summary>div{padding:22px;background:#fff;border:1px solid var(--line);border-radius:8px}
.order-summary dt,.order-status-summary dt{font-size:13px;color:var(--muted);line-height:1.6}
.order-summary dd,.order-status-summary dd{margin:10px 0 0;font-size:26px;font-weight:600;color:var(--text)}
.order-status-summary>div{padding:16px;background:#f7f9fc;border-radius:6px}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.panel,.panel-body,.form-grid>*,.two-columns>*{min-width:0}
.notice{overflow-wrap:anywhere}
.form-group>label:has(>input:not([type=checkbox]):not([type=radio])),.form-group>label:has(>textarea),.form-group>label:has(>select){display:flex;flex-direction:column;gap:8px}
:is(#order-forms-root,#catalog-tools-root,#commerce-pricing-root,#purchase-reviews-root,#aftersale-policy-root,#members-root,#product-groups-root,.media-manager) label:has(>input,>select,>textarea){display:flex;flex-direction:column;gap:8px;min-width:0;font-size:13px;font-weight:550;color:#435160;line-height:1.6}
:is(#order-forms-root,#catalog-tools-root,#commerce-pricing-root,#purchase-reviews-root,#aftersale-policy-root,#members-root,#product-groups-root,.media-manager) label:has(>input[type=checkbox],>input[type=radio]){flex-direction:row;align-items:center;gap:9px;font-weight:400}
:is(#order-forms-root,#catalog-tools-root,#commerce-pricing-root,#purchase-reviews-root,#aftersale-policy-root,#members-root,#product-groups-root,.media-manager) label>input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
:is(#order-forms-root,#catalog-tools-root,#commerce-pricing-root,#purchase-reviews-root,#aftersale-policy-root,#members-root,#product-groups-root,.media-manager) label>select{width:100%;min-height:40px}
:is(#order-forms-root,#catalog-tools-root,#commerce-pricing-root,#purchase-reviews-root,#aftersale-policy-root,#members-root,#product-groups-root,.media-manager) input[type=checkbox]{flex:0 0 17px;width:17px;height:17px;margin:0}
:is(#order-forms-root,#catalog-tools-root,#commerce-pricing-root,#purchase-reviews-root,#aftersale-policy-root) .notice{margin-bottom:20px}
:is(#order-forms-root,#catalog-tools-root,#commerce-pricing-root,#purchase-reviews-root,#aftersale-policy-root) .panel-body{padding:24px}
:is(#catalog-tools-root,#commerce-pricing-root,.media-manager) label:has(>select):not(.form-grid label){max-width:480px}
:is(#catalog-tools-root,#commerce-pricing-root,#aftersale-policy-root) form{max-width:920px}
:is(#catalog-tools-root,#commerce-pricing-root,#aftersale-policy-root) form>label,
:is(#catalog-tools-root,#commerce-pricing-root,#aftersale-policy-root) form>.form-group{margin-top:20px;margin-bottom:20px}
:is(#catalog-tools-root,#commerce-pricing-root,#aftersale-policy-root) form>.form-grid{margin-top:20px}
:is(#commerce-pricing-root,#aftersale-policy-root) form>h2{margin-bottom:16px}
#commerce-pricing-root form>h3{margin-top:24px;margin-bottom:8px}
#commerce-pricing-root form>.form-group{max-width:420px}
:is(#members-root,#product-groups-root) .form-grid{row-gap:20px}
#members-root form>.form-grid{margin-top:20px}
#members-root fieldset{border:1px solid var(--line);border-radius:8px;padding:16px;min-width:0}
#members-root legend{font-size:13px;color:var(--muted);padding:0 6px}
#members-root .crm-tags{margin:0}
:is(#members-root,#product-groups-root) .toolbar{row-gap:12px;flex-wrap:wrap}
#members-root .toolbar input{flex:1;min-width:160px;max-width:440px}

/* Order template editor: separate product, configuration and field cards. */
#order-forms-root>label{max-width:480px;margin:0 0 20px}
#order-forms-root .of-preset{max-width:1000px;display:flex;align-items:center;gap:24px;margin-bottom:20px;background:#f7faff}
#order-forms-root .of-preset>div{flex:1;min-width:0}
#order-forms-root .of-preset h2{margin-bottom:10px;font-size:17px}
#order-forms-root .of-preset p{line-height:1.8;font-size:13px;color:var(--muted)}
#order-forms-root .of-preview{border:1px solid var(--line);border-radius:8px;padding:16px;margin-bottom:24px;background:#fafbfd}
#order-forms-root [data-of-preview]{max-width:600px;padding-top:20px}
#order-forms-root .of-preview-field{margin-top:18px;font-size:13px}
#order-forms-root .of-preview-field small{font-weight:400;color:var(--muted);margin-left:6px}
#order-forms-root .of-preview-answer{border:1px solid #e0e6ed;border-radius:6px;background:#fff;padding:12px;margin-top:8px;color:#778594;display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:760px){#order-forms-root .of-preset{align-items:flex-start;flex-direction:column;gap:16px}}
#order-forms-root:has(+.two-columns){margin-bottom:20px}
#order-forms-root [data-template]{max-width:1000px}
#order-forms-root [data-template]>.panel{margin-top:0}
#order-forms-root [data-template]>.panel>label{margin-bottom:22px;max-width:600px}
#order-forms-root [data-template]>.panel>label:has([name=enabled]){padding:14px 16px;background:#f5f8fc;border:1px solid #e0e8f2;border-radius:7px;max-width:none}
#order-forms-root fieldset{min-width:0;margin:0 0 18px;padding:20px;background:#fafbfd;border:1px solid #dfe6ee;border-radius:8px}
#order-forms-root legend{padding:0 8px;color:#34455a;font-size:14px;font-weight:600}
#order-forms-root fieldset .form-grid{grid-template-columns:minmax(0,2fr) minmax(140px,1fr);gap:18px 24px}
#order-forms-root fieldset label:has([name=required]){grid-column:1/-1}
#order-forms-root .of-options{grid-column:1/-1}
#order-forms-root .of-options[hidden]{display:none!important}
#order-forms-root [data-remove]{margin-top:18px;color:#a14540;background:#fff;border-color:#e4cdca}
#order-forms-root [data-template] .actions{padding-top:18px;border-top:1px solid var(--line);margin-top:6px;gap:12px}
#order-forms-root [data-template] .subtext{margin-top:14px;line-height:1.8}
#order-forms-root .address-card{padding:20px;border-radius:8px}
#order-forms-root .address-card>p{margin-top:10px}
#order-forms-root details{padding-top:16px;border-top:1px solid var(--line)}
#order-forms-root summary{cursor:pointer;color:var(--brown);font-size:13px}

/* Upload surfaces and empty states use the same card treatment. */
:is(.media-manager,#catalog-tools-root,#members-root) input[type=file]:not([hidden]){display:block;max-width:100%;width:100%;padding:12px;background:#f8fafc;border:1px dashed #c5d2e0;border-radius:8px;font-size:13px;color:var(--muted)}
:is(.media-manager,#catalog-tools-root,#members-root) input[type=file]::file-selector-button{font:inherit;font-weight:550;border:1px solid #cbd7e4;border-radius:5px;padding:8px 14px;margin-right:12px;background:#fff;color:var(--brown);cursor:pointer}
.media-manager>h2{margin-bottom:6px}
.media-manager>label{margin-top:22px}
.media-manager>label:has(input[type=file]){max-width:680px}
.media-manager .product-media-list{margin:24px 0;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))}
.media-manager .product-media-list article{padding:14px;background:#f8fafc;border:1px solid var(--line);border-radius:8px;min-width:0}
.media-manager .product-media-list p{overflow-wrap:anywhere;margin:10px 0}
.media-manager #media-save{margin-top:0}
#catalog-tools-root label:has(>[data-ct-upload]){max-width:680px;margin:20px 0}
#catalog-tools-root .ct-gallery{margin-top:20px;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))}
#catalog-tools-root .panel-body>label+.subtext{margin-top:16px}
.settings-empty{grid-column:1/-1;width:100%;padding:36px 24px;background:#fafbfd;border:1px dashed #d8e1eb;border-radius:8px;text-align:center;color:var(--muted);line-height:1.8}
.settings-empty strong{display:block;color:#415269;font-weight:550;font-size:15px;margin-bottom:6px}
.settings-empty p{font-size:13px;max-width:520px;margin:0 auto}
#purchase-reviews-root>label{max-width:none;padding:18px 22px;background:white;border:1px solid var(--line);border-radius:8px}
#purchase-reviews-root>label select{max-width:240px}
#purchase-reviews-root .review-grid{align-items:start}
#purchase-reviews-root form{display:grid;gap:18px;margin-top:20px}
#purchase-reviews-root form>.button{justify-self:start;margin-top:0}
#purchase-reviews-root .review-body{margin-top:14px;white-space:pre-wrap;overflow-wrap:anywhere}
#purchase-reviews-root .settings-empty{background:#fff;border-style:solid;padding:48px 24px}

@media(max-width:760px){
 .form-grid{grid-template-columns:minmax(0,1fr)}
 :is(#order-forms-root,#catalog-tools-root,#commerce-pricing-root,#purchase-reviews-root,#aftersale-policy-root) .panel-body{padding:18px}
 #order-forms-root fieldset{padding:16px}
 #order-forms-root fieldset .form-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 #order-forms-root [data-template]>.panel>label:has([name=enabled]){align-items:flex-start;padding:12px}
 #order-forms-root [name=enabled]{margin-top:3px}
 #order-forms-root .actions{flex-wrap:wrap}
 #purchase-reviews-root>label{padding:16px 18px}
 .settings-empty{padding:28px 18px}
 :is(.media-manager,#catalog-tools-root,#members-root) input[type=file]:not([hidden]){font-size:12px;padding:10px}
}
#order-forms-root .of-group-editor{padding:20px;border:1px solid #dce4ef;border-radius:8px;background:#f8fafc}
#order-forms-root .of-group-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;max-height:320px;overflow:auto;margin-top:16px}
#order-forms-root .of-group-products label{display:flex;flex-direction:row;align-items:flex-start;gap:10px;margin:0;padding:10px;background:white;border:1px solid #e4e9f0;border-radius:6px}
#order-forms-root .of-group-products input{flex:none;margin-top:3px}
