*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#292523;background:#f7f6f3;font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #d5a083;outline-offset:2px}.hidden{display:none!important}.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-story{background:linear-gradient(145deg,rgba(58,26,23,.96),rgba(111,48,36,.86)),url('/images/demo/hero.jpg') center/cover;color:#f9f1e9;padding:54px 9%;display:flex;flex-direction:column;justify-content:space-between}.brand-mark{width:52px;height:52px;border:1px solid #d3aa8d;border-radius:14px;display:grid;place-items:center;color:#f1d3bb;font:700 27px Georgia,serif}.login-story h1{font-size:52px;line-height:1.35;letter-spacing:4px;margin:24px 0}.login-story p{font-size:16px;color:#dfc6b8}.eyebrow{font-size:11px;letter-spacing:3px;font-weight:700;color:#d6aa94}.login-foot{font-size:12px;color:#c9afa3}.login-panel{display:grid;place-items:center;padding:40px}.login-box{width:min(360px,100%)}.accent{color:#a15942}.login-box h2{font-size:27px;margin:15px 0 10px}.subtle{color:#978e88;margin:0 0 30px;line-height:1.7}.login-box label,.dialog-fields label{display:block;font-size:13px;font-weight:600;margin-top:20px}.login-box input,.dialog-fields input,.dialog-fields textarea,.dialog-fields select,.month-input{display:block;width:100%;border:1px solid #e5dfda;border-radius:9px;padding:12px 13px;margin-top:8px;background:#fff;color:#292523}.dialog-fields textarea{resize:vertical;min-height:85px}.primary,.secondary{border:0;border-radius:9px;padding:12px 19px;font-weight:600}.primary{background:#913e2e;color:#fff}.primary:hover{background:#7c3023}.secondary{background:#f2eeea;color:#59483f}.login-box .primary{width:100%;margin-top:20px;text-align:left;display:flex;justify-content:space-between}.local-notice{margin-top:22px;color:#a59a91;font-size:12px;text-align:center}.form-error{color:#b13729;font-size:13px;min-height:18px;margin-top:10px}.shell{min-height:100vh;display:flex}.sidebar{width:225px;flex:none;background:#fff;border-right:1px solid #ece8e4;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;padding:30px 16px}.side-brand{display:flex;align-items:center;gap:12px;padding:0 8px 35px}.brand-mark.small{width:42px;height:42px;background:#873b2e;color:#f4e2d1;border:0;font-size:22px;border-radius:12px}.side-brand b{font-size:16px}.side-brand small,.admin-name small,.sidebar-bottom small{display:block;color:#a49a92;font-size:11px;margin-top:4px}.side-caption{color:#b7ada4;font-size:11px;margin:0 12px 12px}nav{display:grid;gap:4px}nav button{border:0;background:transparent;text-align:left;color:#7f7670;border-radius:9px;padding:13px 14px;font-weight:500}nav button span{display:inline-block;width:29px;font-size:18px;vertical-align:-1px}nav button:hover{background:#f8f3ef}nav button.active{background:#f7ebe5;color:#913e2e;font-weight:700}.sidebar-bottom{margin-top:auto;border-top:1px solid #f0ebe6;padding:20px 10px 0;color:#6d625b;font-size:12px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#7ca888;margin-right:7px}.main{margin-left:225px;width:calc(100% - 225px);min-width:0}.topbar{height:118px;padding:27px 42px;background:#fff;border-bottom:1px solid #ede8e2;display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:12px;color:#aaa19a}.breadcrumb span:first-child{padding:0 8px;color:#d2c9c3}.topbar h1{font-size:22px;margin:12px 0 0}.top-actions{display:flex;align-items:center;gap:22px}.env-tag{font-size:12px;color:#6a806d;border:1px solid #e2ebe2;background:#f6faf5;border-radius:20px;padding:7px 10px}.admin-name{display:flex;align-items:center;gap:10px;font-size:12px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f4e4d8;color:#8c4a35}.logout{border:0;background:transparent;color:#9a8a80}.content{padding:32px 42px;max-width:1600px;margin:auto}.page-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:23px}.page-intro h2{font-size:20px;margin:0 0 8px}.page-intro p{margin:0;color:#9b9088;line-height:1.6}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:22px}.stat,.panel{background:#fff;border:1px solid #eee9e4;border-radius:13px;box-shadow:0 4px 20px rgba(70,48,30,.025)}.stat{padding:21px}.stat-label{color:#968b83;font-size:13px}.stat-value{font-size:27px;font-weight:700;margin:15px 0 7px;letter-spacing:-.5px}.stat-note{color:#b2a79e;font-size:12px}.panel{margin-bottom:20px;overflow:hidden}.panel-head{padding:21px 23px;display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-head h3{font-size:16px;margin:0}.panel-head p{font-size:12px;color:#a69b93;margin:6px 0 0}.panel-body{padding:0 23px 23px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:630px;text-align:left}th{font-size:12px;color:#a69c94;font-weight:500;background:#faf8f6;padding:14px 23px}td{padding:15px 23px;border-bottom:1px solid #f3efeb;vertical-align:middle;color:#514a45}tr:last-child td{border-bottom:0}.product-cell{display:flex;gap:12px;align-items:center;min-width:200px}.product-image{width:48px;height:48px;object-fit:cover;border-radius:8px;background:#f4eee8}.product-placeholder{width:48px;height:48px;border-radius:8px;background:#f4eee8;display:grid;place-items:center;color:#aa8773}.product-name{font-weight:600;color:#3a332f}.tiny{font-size:12px;color:#aea49c;margin-top:5px}.badge{display:inline-block;border-radius:20px;background:#edf7ed;color:#4f8859;padding:5px 9px;font-size:11px;white-space:nowrap}.badge.off{background:#f3f1ef;color:#9a928c}.badge.warm{background:#fbede4;color:#a76240}.text-button{border:0;background:none;color:#9c4b37;padding:5px;margin-right:9px}.empty{padding:45px 22px;text-align:center;color:#b0a69d}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.hint{font-size:12px;color:#a1958c;line-height:1.8}.section-number{font-size:26px;font-weight:700;color:#8f3d2d}.money{font-weight:700;color:#963f2c}.metric{display:flex;justify-content:space-between;padding:11px 0;color:#746a63}.metric.total{font-weight:700;color:#423832;border-top:1px solid #eee8e2;margin-top:8px;padding-top:20px}.month-input{width:150px;margin:0;padding:9px}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:19px;margin:0}.icon-button{border:0;background:none;font-size:26px;color:#aaa}.dialog-fields{max-height:65vh;overflow:auto;padding:0 2px 6px}.dialog-fields label:first-child{margin-top:8px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}dialog{border:0;border-radius:14px;padding:25px;width:min(510px,calc(100vw - 32px));box-shadow:0 20px 80px #39251a40}dialog::backdrop{background:#2b211d80}.toast{position:fixed;right:26px;bottom:26px;padding:13px 18px;background:#33302d;color:#fff;border-radius:9px;box-shadow:0 8px 30px #0002;z-index:10}footer{padding:0 42px 25px;color:#b6aca4;font-size:12px}@media(max-width:950px){.stats{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}.topbar{padding:25px}.content{padding:25px}.sidebar{width:185px}.main{margin-left:185px;width:calc(100% - 185px)}}@media(max-width:650px){.login-story{display:none}.login-screen{grid-template-columns:1fr}.sidebar{position:static;width:100%;padding:14px}.side-brand{padding:0 0 10px}.side-caption,.sidebar-bottom{display:none}nav{display:flex;overflow:auto}nav button{white-space:nowrap;padding:10px}.shell{display:block}.main{margin:0;width:100%}.topbar{height:auto}.top-actions{gap:8px}.admin-name,.env-tag{display:none}.content{padding:20px}.stats{gap:10px}.stat{padding:15px}.stat-value{font-size:22px}}

/* Dashboard */
.dashboard{max-width:1500px}.dash-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:25px;gap:16px}.dash-kicker,.dash-overline{font-size:10px;letter-spacing:1.6px;font-weight:700;color:#ba8874}.dash-heading h2{font-size:24px;letter-spacing:.5px;margin:8px 0}.dash-heading p,.dash-card-head p{font-size:13px;color:#a3988e;margin:0}.dash-date{border:1px solid #eae1da;border-radius:9px;padding:10px 13px;color:#8b796e;background:#fff;font-size:12px;white-space:nowrap}.dash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.dash-stat{min-width:0;text-align:left;border:1px solid #eee7df;background:#fff;border-radius:13px;padding:20px 21px;position:relative;min-height:142px;color:inherit;box-shadow:0 4px 20px rgba(70,48,30,.025);transition:transform .18s,box-shadow .18s}.dash-stat:hover{transform:translateY(-2px);box-shadow:0 8px 26px rgba(70,48,30,.08)}.dash-stat-label,.dash-stat-note{display:block;color:#958a81;font-size:12px}.dash-stat-number{display:block;font-size:27px;font-weight:700;margin:14px 0 9px;letter-spacing:-.5px}.dash-stat-number small{font-size:12px;font-weight:500;color:#a99b91}.dash-stat-icon{position:absolute;right:19px;top:18px;width:35px;height:35px;display:grid;place-items:center;border-radius:10px;font-size:18px}.dash-stat-icon.wine{color:#a04a36;background:#f8eae4}.dash-stat-icon.gold{color:#ba8651;background:#faf1e3}.dash-stat-icon.green{color:#6f9475;background:#edf5ec}.dash-stat-icon.dark{color:#9f533f;background:#f8ebe5}.profit-stat{border-top:3px solid #a04a36;padding-top:18px}.dash-main-grid,.dash-lower-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:18px;margin-bottom:18px}.dashboard-card{background:#fff;border:1px solid #eee7e1;border-radius:13px;box-shadow:0 4px 20px rgba(70,48,30,.025);min-width:0}.dash-card-head{padding:23px 24px 0;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.dash-card-head h3{font-size:16px;margin:7px 0 6px}.dash-card-head p{font-size:12px;line-height:1.5}.range-switch{display:flex;background:#f7f4f1;border-radius:8px;padding:3px;flex:none}.range-switch button{border:0;background:transparent;color:#9b8e84;border-radius:6px;padding:7px 10px;font-size:12px}.range-switch button[aria-pressed="true"]{background:#fff;color:#914330;box-shadow:0 1px 4px #46302012;font-weight:600}.trend-summary{padding:23px 24px 0;display:flex;align-items:baseline;gap:7px}.trend-summary strong{font-size:30px;line-height:1}.trend-summary span{font-size:12px;color:#8e8178}.trend-summary small{color:#b4a79d;margin-left:5px}.trend-chart{display:block;width:100%;height:auto;max-height:265px;padding:8px 20px 15px}.chart-grid{stroke:#f1ece8;stroke-width:1}.chart-axis{fill:#aa9f96;font:11px sans-serif}.chart-dot{fill:#fff;stroke:#963f2c;stroke-width:2}.dash-link{border:0;background:none;padding:4px;color:#a35540;font-size:12px;white-space:nowrap}.dash-link:hover{color:#763226}.distribution-body{display:flex;align-items:center;justify-content:center;gap:34px;padding:36px 24px 35px}.donut{width:166px;height:166px;border-radius:50%;display:grid;place-items:center;flex:none}.donut-center{width:116px;height:116px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut-center strong{font-size:29px;line-height:1}.donut-center span{font-size:11px;color:#a59a91;margin-top:8px}.legend{width:145px;max-width:100%}.legend-row{display:flex;justify-content:space-between;gap:15px;font-size:12px;padding:9px 0;color:#80746c}.legend-row i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:9px}.legend-row b{color:#4c423c}.legend-row small{font-weight:400;color:#b0a59c}.finance-content{padding:22px 24px 24px}.finance-row{margin-bottom:16px}.finance-label{display:flex;justify-content:space-between;font-size:12px;color:#8a7d73;margin-bottom:8px}.finance-label b{font-size:12px;color:#55483f}.finance-track{height:7px;border-radius:8px;background:#f3efeb;overflow:hidden}.finance-track div{height:100%;border-radius:8px}.finance-divider{height:1px;background:#f0ebe7;margin:20px 0}.finance-result{display:flex;justify-content:space-between;gap:20px}.finance-result span,.finance-result strong{display:block}.finance-result span{font-size:11px;color:#9f9288;margin-bottom:8px}.finance-result strong{font-size:19px;color:#923f2e}.recent-list{padding:12px 24px 20px}.recent-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #f4efea}.recent-row:last-child{border-bottom:0}.recent-icon{width:37px;height:37px;display:grid;place-items:center;background:#f8f1eb;color:#a27059;border-radius:10px;font-size:16px;flex:none}.recent-detail{min-width:0;flex:1}.recent-detail strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-detail small,.recent-right small{display:block;font-size:11px;color:#aea198;margin-top:6px}.recent-right{text-align:right}.dashboard-empty{min-height:185px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#b7a9a0;text-align:center}.dashboard-empty>span{width:40px;height:40px;display:grid;place-items:center;background:#f8f3ef;color:#bba79a;border-radius:12px;font-size:20px;margin-bottom:10px}.dashboard-empty strong{font-size:13px;color:#8c7f76}.dashboard-empty p{font-size:12px;margin:8px 0}.dash-footnote{font-size:11px;color:#b5a99f;margin:6px 2px 0}@media(max-width:1100px){.dash-main-grid,.dash-lower-grid{grid-template-columns:1fr}.distribution-body{justify-content:flex-start}.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.dash-heading{align-items:flex-start}.dash-date{display:none}.dash-stats{gap:10px}.dash-stat{padding:15px;min-height:130px}.dash-stat-number{font-size:23px}.dash-card-head{padding:18px 18px 0}.trend-summary{padding-left:18px}.distribution-body{gap:18px;padding:25px 18px}.donut{width:140px;height:140px}.donut-center{width:98px;height:98px}.finance-content,.recent-list{padding-left:18px;padding-right:18px}}

/* Keep the dashboard header compact after removing decorative captions. */
.topbar h1{margin:0}.dash-heading h2{margin:0}.dash-card-head h3{margin:0}.dash-heading{align-items:center}

/* Order management */
.orders-page{max-width:1500px}.orders-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:25px}.orders-heading h2{font-size:22px;margin:0 0 8px}.orders-heading p{margin:0;color:#a39890;font-size:13px}.orders-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;border:1px solid #eee8e2;border-radius:12px;padding:9px 14px;margin-bottom:16px}.order-filters{display:flex;gap:4px;overflow:auto}.order-filter{border:0;background:transparent;color:#8d8077;padding:10px 12px;border-radius:8px;white-space:nowrap;font-size:13px}.order-filter span{margin-left:6px;font-size:11px;color:#aa9c92}.order-filter.active{color:#963f2c;font-weight:700;background:#f8eee9}.order-filter.active span{color:#963f2c}.orders-search{display:flex;align-items:center;gap:8px;border:1px solid #eee7e0;border-radius:8px;padding:0 11px;min-width:240px;color:#aa9a90}.orders-search span{font-size:22px;line-height:1}.orders-search input{width:100%;padding:10px 0;border:0;background:transparent;outline:none;color:#3f3832;font-size:12px}.order-cards{display:grid;gap:14px}.order-card{border:1px solid #eee7e0;border-radius:13px;overflow:hidden;background:#fff;box-shadow:0 4px 20px rgba(70,48,30,.025)}.order-card[hidden],.orders-empty[hidden],.order-image-fallback[hidden]{display:none}.order-card-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 21px;background:#fbf9f7;border-bottom:1px solid #f2ece7}.order-meta{display:flex;align-items:center;gap:10px;min-width:0;color:#a39890;font-size:12px}.order-meta-label{color:#a39890}.order-id-button{border:0;padding:0;background:transparent;color:#594f49;font-weight:700;font-size:12px}.order-id-button:hover{color:#963f2c}.order-meta-separator{width:1px;height:13px;background:#e7ded7}.order-card-body{display:grid;grid-template-columns:minmax(0,1fr) 225px;min-width:0}.order-products{padding:5px 21px}.order-product{display:flex;align-items:center;gap:14px;padding:15px 0;min-width:0}.order-product+.order-product{border-top:1px solid #f4efeb}.order-item-image,.order-image-fallback{width:62px;height:62px;flex:none;border-radius:9px;background:#f3eae2;object-fit:cover}.order-image-fallback{display:grid;place-items:center;color:#b9917d;font-size:23px;font-weight:700}.order-product-info{min-width:0;flex:1}.order-product-name{font-size:13px;font-weight:650;color:#3d3530;line-height:1.5;overflow-wrap:anywhere}.order-product-unit{font-size:12px;color:#aa9e95;margin-top:7px}.order-product-unit span{padding-left:12px}.order-product-total{font-size:13px;color:#74685f;font-weight:600;white-space:nowrap}.order-summary{border-left:1px solid #f2ece7;padding:22px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;text-align:right}.order-summary-label{font-size:12px;color:#aa9e95}.order-summary>strong{font-size:20px;color:#963f2c;margin-top:7px}.order-delivery{font-size:11px;line-height:1.6;color:#9a8c82;margin-top:9px;overflow-wrap:anywhere;max-width:100%}.order-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:17px}.order-detail-button,.order-ship-button{font-size:12px;font-weight:600;border-radius:8px;padding:9px 12px}.order-detail-button{background:#fff;border:1px solid #e9ded6;color:#78675e}.order-ship-button{background:#963f2c;border:1px solid #963f2c;color:#fff}.order-detail-button:hover{background:#fbf7f4}.order-ship-button:hover{background:#7c3023}.orders-empty{background:#fff;border:1px solid #eee7e0;border-radius:13px;text-align:center;padding:64px 20px;color:#9b8c82}.orders-empty-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#f8f1ec;color:#b29281;font-size:24px;margin:0 auto 14px}.orders-empty strong{font-size:14px;color:#776b63}.orders-empty p{font-size:12px;margin:8px 0 0}.order-detail-dialog{width:min(600px,calc(100vw - 32px))}.order-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.order-detail-header h2{font-size:19px;margin:0 0 6px}.order-detail-header p{font-size:12px;color:#a39890;margin:0}.order-detail-close{border:0;background:transparent;color:#a99c93;font-size:26px;line-height:1}.order-detail-section{background:#faf8f6;border-radius:10px;padding:5px 16px;margin:22px 0}.order-detail-line{display:flex;align-items:flex-start;gap:16px;padding:12px 0;font-size:12px}.order-detail-line>span:first-child{color:#a1948a;width:74px;flex:none}.order-detail-line>strong{color:#51453e;font-weight:500;line-height:1.6;overflow-wrap:anywhere}.full-order-id{user-select:all}.order-detail-products h3{font-size:14px;margin:0}.order-detail-products .order-product:last-child{border-bottom:0}.order-detail-total{border-top:1px solid #eee8e2;padding:18px 0 0;display:flex;justify-content:space-between;align-items:center}.order-detail-total strong{color:#963f2c;font-size:20px}.order-detail-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.order-detail-dialog::backdrop{background:#2b211d80}@media(max-width:1050px){.orders-toolbar{align-items:stretch;flex-direction:column}.orders-search{min-width:0}.order-card-body{grid-template-columns:minmax(0,1fr) 175px}.order-summary{padding:18px}}@media(max-width:650px){.order-card-top{align-items:flex-start}.order-meta{flex-wrap:wrap;gap:6px}.order-meta-separator{display:none}.order-card-body{display:block}.order-summary{border-left:0;border-top:1px solid #f2ece7;align-items:flex-end;padding:15px 18px}.order-products{padding:5px 18px}.order-item-image,.order-image-fallback{width:54px;height:54px}.order-product{gap:10px}.order-product-total{font-size:12px}}

/* Sidebar icons and page actions */
#nav button{display:flex;align-items:center;gap:12px}#nav .nav-icon{width:19px;height:19px;flex:none;display:block}.page-actions{justify-content:flex-end;min-height:42px}.dash-heading{justify-content:flex-end}.topbar h1{line-height:1.3}

/* Shipment dialog */
.ship-summary{display:flex;align-items:center;gap:12px;margin:18px 0 24px;padding:14px;border:1px solid #f0e7df;border-radius:10px;background:#faf7f4}.ship-summary-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:10px;background:#f4e7dd;color:#a25640;font-size:19px}.ship-summary span,.ship-summary strong{display:block}.ship-summary span{font-size:11px;color:#a79a90;margin-bottom:5px}.ship-summary strong{font-size:13px;color:#51443e}.ship-summary-count{margin-left:auto;color:#9e9086;font-size:12px;white-space:nowrap}.ship-form-intro{padding-bottom:1px}.ship-form-intro strong,.ship-form-intro span{display:block}.ship-form-intro strong{font-size:14px;color:#433a34}.ship-form-intro span{font-size:12px;color:#a59990;margin-top:7px}.dialog-fields label[hidden]{display:none}.dialog-fields select{height:43px;cursor:pointer}.dialog-fields select:invalid{color:#a89c93}

/* Custom carrier menu */
#modal.shipping-dialog{max-height:calc(100vh - 32px);overflow-y:auto}#modal.shipping-dialog .dialog-fields{overflow:visible;max-height:none}.shipping-dialog .ship-summary{margin-bottom:22px}.carrier-field{margin-top:20px}.carrier-field>label{display:block;margin:0;font-size:13px;font-weight:600}.carrier-picker{position:relative;margin-top:8px}.carrier-trigger{width:100%;height:44px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e5dfda;border-radius:9px;color:#38302b;font-weight:500;text-align:left}.carrier-trigger:hover{border-color:#d1b7a8}.carrier-trigger[aria-expanded="true"]{border-color:#ba806a;box-shadow:0 0 0 3px #f4e4db}.carrier-trigger.is-placeholder{color:#a99c93}.carrier-arrow{width:18px;height:18px;flex:none;color:#a29489;transition:transform .15s}.carrier-trigger[aria-expanded="true"] .carrier-arrow{transform:rotate(180deg)}.carrier-menu{position:static;margin-top:7px;max-height:200px;overflow:auto;padding:6px;background:#fff;border:1px solid #eee3dc;border-radius:10px;box-shadow:0 10px 28px rgba(66,42,30,.16)}.carrier-menu[hidden]{display:none}.carrier-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:7px;background:transparent;padding:10px 12px;text-align:left;font-size:13px;color:#594e47}.carrier-option:hover,.carrier-option:focus{background:#faf2ed;outline:none;color:#963f2c}.carrier-option[aria-selected="true"]{background:#f8ebe5;color:#963f2c;font-weight:600}.carrier-check{visibility:hidden;color:#963f2c;font-weight:700}.carrier-option[aria-selected="true"] .carrier-check{visibility:visible}.carrier-option:focus-visible{box-shadow:inset 0 0 0 2px #d5a083}.shipping-dialog .dialog-actions{margin-top:24px}

.badge.sent{background:#e8f1fb;color:#386ea4}.badge.done{background:#e8f4eb;color:#4d815d}

/* 商品和轮播图片选择 */
.image-field{margin-top:20px}.image-field-label{font-size:13px;font-weight:600;margin-bottom:9px}.image-picker{display:flex;align-items:center;gap:17px;padding:14px;background:#faf8f6;border:1px solid #eee6e0;border-radius:11px}.image-preview{width:126px;height:96px;flex:none;overflow:hidden;border:1px solid #eadfd8;border-radius:8px;background:#fff}.image-preview img{display:block;width:100%;height:100%;object-fit:contain}.image-preview img[hidden],.image-placeholder[hidden],.image-remove[hidden]{display:none}.image-placeholder{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#b4a69b;gap:4px}.image-placeholder span{font-size:25px;line-height:1}.image-placeholder small{font-size:11px}.image-controls{min-width:0}.dialog-fields label.image-select{display:inline-flex;margin:0;padding:9px 14px;border:1px solid #d7bcae;border-radius:8px;background:white;color:#91422f;cursor:pointer;font-size:12px}.image-select:hover{background:#fbf1ec}.dialog-fields input.image-file{position:absolute;width:1px;height:1px;padding:0;margin:0;opacity:0;overflow:hidden}.image-file:focus-visible+.image-remove{outline:2px solid #d5a083}.image-remove{display:inline-block;padding:8px;border:0;background:transparent;color:#a68c7e;font-size:12px}.image-help{color:#a89b91;font-size:11px;margin-top:10px;line-height:1.5}.dialog-actions button:disabled{opacity:.55;cursor:wait}@media(max-width:450px){.image-picker{gap:10px}.image-preview{width:100px;height:80px}}

/* 商品介绍图片及表单提示 */
.detail-image-field{margin-top:20px}.field-optional{font-weight:400;color:#a99b90}.detail-image-list{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:9px}.detail-image-list:empty{display:none}.detail-thumb{position:relative;width:90px;height:78px;border:1px solid #ece2da;border-radius:8px;background:#faf7f4}.detail-thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}.detail-thumb button{position:absolute;top:-7px;right:-7px;width:22px;height:22px;border:0;border-radius:50%;background:#7b655b;color:#fff;font-size:16px;line-height:20px;padding:0}.dialog-fields label.detail-image-add{display:inline-flex;margin:0;padding:9px 13px;border:1px dashed #d7bcae;border-radius:8px;background:#fff;color:#91422f;cursor:pointer;font-size:12px}.field-error{margin-top:7px;color:#bd3429;font-size:12px;font-weight:400;line-height:1.4}.dialog-fields input[aria-invalid=true],.dialog-fields textarea[aria-invalid=true]{border-color:#cb6657;box-shadow:0 0 0 2px #fbecea}.image-field:has(input[aria-invalid=true]) .image-picker{border-color:#cb6657}

/* 商品操作 */
.product-actions{display:flex;align-items:center;gap:9px;white-space:nowrap}.product-button{border:1px solid #e9d9ce;border-radius:8px;background:#fff;padding:8px 14px;font-size:12px;font-weight:600;color:#8d4332}.product-button:hover{background:#fbf3ee;border-color:#d6b9a8}.product-button.delete{border-color:#f0d9d5;color:#b45145}.product-button.delete:hover{background:#fff4f2}.product-status{display:flex;align-items:center;gap:9px;white-space:nowrap;color:#81756d;font-size:12px}.status-switch{width:40px;height:23px;flex:none;border:0;border-radius:20px;padding:2px;background:#d4cec9;transition:background .15s}.status-switch.on{background:#8c9f80}.status-switch span{display:block;width:19px;height:19px;border-radius:50%;background:white;box-shadow:0 1px 4px #0003;transition:transform .15s}.status-switch.on span{transform:translateX(17px)}

/* 商品及轮播编辑表单 */
#modal.editor-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:28px 30px;overflow:hidden}#modal.editor-dialog .dialog-fields{max-height:calc(100vh - 190px);padding:4px 6px 16px 0}#modal.editor-dialog .dialog-head{padding-bottom:12px;border-bottom:1px solid #f1ebe6}#modal.editor-dialog .editor-row,#modal.editor-dialog .image-field,#modal.editor-dialog .detail-image-field{display:grid;grid-template-columns:132px minmax(0,1fr);column-gap:18px;align-items:start;margin-top:18px}#modal.editor-dialog .editor-row>label,#modal.editor-dialog .editor-row-label,#modal.editor-dialog .image-field-label{display:block;margin:0;padding-top:12px;font-size:13px;font-weight:600;color:#51443d;line-height:1.5}#modal.editor-dialog .editor-control{min-width:0}#modal.editor-dialog .editor-control>input:not([type=hidden]),#modal.editor-dialog .editor-control>textarea{margin:0;width:100%}#modal.editor-dialog .editor-control>textarea{min-height:78px}#modal.editor-dialog .image-picker{min-width:0}#modal.editor-dialog .detail-image-control{min-width:0}#modal.editor-dialog .image-field>.field-error,#modal.editor-dialog .detail-image-field>.field-error{grid-column:2}#modal.editor-dialog .editor-help{margin-top:7px;font-size:11px;color:#a89b91;line-height:1.5}#modal.editor-dialog .editor-status{display:flex;align-items:center;gap:10px;min-height:43px;color:#796b61;font-size:13px}#modal.editor-dialog .dialog-actions{margin-top:16px}#modal.editor-dialog .editor-control>input[type=hidden]{display:none}@media(max-width:520px){#modal.editor-dialog{padding:20px}#modal.editor-dialog .editor-row,#modal.editor-dialog .image-field,#modal.editor-dialog .detail-image-field{grid-template-columns:94px minmax(0,1fr);column-gap:10px}#modal.editor-dialog .image-picker{flex-wrap:wrap}}

/* 编辑弹窗内容独立滚动，底部操作始终位于弹窗内 */
#modal.editor-dialog[open]{display:flex;flex-direction:column}
#modal.editor-dialog #dialog-form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
#modal.editor-dialog .dialog-head,#modal.editor-dialog .dialog-actions,#modal.editor-dialog #dialog-error{flex:0 0 auto}
#modal.editor-dialog .dialog-fields{flex:0 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
#modal.editor-dialog #dialog-error:empty{display:none}
#modal.editor-dialog .dialog-actions{padding-top:14px;margin-top:12px;border-top:1px solid #f2ece7}
#modal.editor-dialog .editor-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#modal.editor-dialog .editor-metric{min-width:0}
#modal.editor-dialog .editor-metric>label{display:block;margin:0 0 7px;padding:0;color:#74665d;font-size:12px;font-weight:600}
#modal.editor-dialog .editor-metric .editor-control>input{margin:0;width:100%;min-width:0}
#modal.editor-dialog .editor-metrics-row>.editor-row-label{padding-top:2px}
@media(max-width:450px){#modal.editor-dialog .editor-metrics{grid-template-columns:1fr;gap:10px}}
.customer-cell{display:flex;align-items:center;gap:12px;min-width:160px}.customer-avatar{display:block;width:42px;height:42px;flex:none;border-radius:50%;object-fit:cover;background:#f3e8df}.customer-avatar-placeholder{display:grid;place-items:center;color:#a77b66;font-size:16px;font-weight:600}.customer-avatar[hidden]{display:none}
.sidebar{overflow-y:auto}.about-editor{max-width:1000px}.about-label{display:block;font-size:13px;font-weight:600;color:#5e5048;margin:4px 0 10px}.about-textarea{display:block;width:100%;min-height:340px;resize:vertical;padding:16px;border:1px solid #e8dfd8;border-radius:10px;background:#fcfaf8;color:#3c302a;line-height:1.8}.about-actions{display:flex;align-items:center;justify-content:space-between;margin-top:18px;color:#a69a91;font-size:12px}.about-actions button:disabled{opacity:.6}
.notice-cell{max-width:680px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
