:root{--bg:#f3f4f6;--surface:#fff;--line:#dde1e6;--ink:#242a33;--muted:#606975;--brand:#303640;--tint:#eceef1;--danger:#a3342b;--warn:#875718;font:14px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #737d8c;outline-offset:2px}h1,h2,h3,h4,p{margin:0}h1{font-size:23px}h2{font-size:20px}h3{font-size:16px}h4{font-size:14px}a{color:var(--brand)}input,select,textarea{width:100%;padding:9px 10px;border:1px solid #bcc3cd;border-radius:7px;color:var(--ink);background:white;min-width:0}textarea{resize:vertical;min-height:70px}input[type=checkbox],input[type=radio]{width:18px;height:18px;accent-color:var(--brand);margin:0;flex:none}input[type=file]{font-size:13px}label{min-width:0}label>span:first-child{display:block;font-size:13px;color:var(--muted);margin-bottom:5px}label:has(input[type=checkbox]),label:has(input[type=radio]){display:flex;gap:7px;align-items:center}label:has(input[type=checkbox])>span:first-child{display:inline;margin:0}fieldset{border:1px solid var(--line);border-radius:8px;margin:0;padding:14px;min-width:0}legend{font-weight:600;padding:0 6px}summary{cursor:pointer;color:var(--brand);font-weight:550}details[open]>summary{margin-bottom:12px}small,.small{font-size:12px}.muted{color:var(--muted)}.danger{color:var(--danger)}.boot{padding:80px;text-align:center}.button,button{border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);padding:8px 12px;line-height:1.4;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:37px}.button:hover,button:hover{background:#f1f2f4;border-color:#a5aebb}.primary,button.primary{background:var(--brand);color:white;border-color:var(--brand)}.primary:hover,button.primary:hover{background:#20252d}.button.small,button.small{font-size:12px;min-height:31px;padding:5px 9px}.button.danger,button.danger{color:var(--danger);border-color:#e4b8b4}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:14px}.grid,.grid-2,.grid-3,.form-grid{display:grid;gap:14px;min-width:0}.grid-2,.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.span-2{grid-column:1/-1}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:18px;min-width:0}.panel>h3{margin-bottom:12px}.field{display:grid;gap:5px;min-width:0}.field>span{font-size:13px;color:var(--muted)}.empty{padding:36px 20px;text-align:center;color:var(--muted);background:white;border:1px dashed var(--line);border-radius:10px}.badge{display:inline-flex;border-radius:5px;padding:3px 7px;background:var(--tint);color:var(--brand);font-size:12px;max-width:100%;overflow-wrap:anywhere}.badge.warn{background:#fcf1dd;color:var(--warn)}.badge.danger{background:#fbe9e6;color:var(--danger)}.warning{padding:11px 13px;background:#fff5e4;border:1px solid #ecd6b4;border-radius:8px;color:#76501b;font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:16px}.toolbar>label{min-width:110px;flex:1}.toolbar>.grow{flex:3;min-width:170px}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}.tabs button[aria-pressed=true],.tabs .active{background:var(--brand);color:white;border-color:var(--brand)}.page-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.table-wrap{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:8px}.table{border-collapse:collapse;width:100%;font-size:13px}.table th,.table td{padding:11px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top;white-space:nowrap}.table th{background:#f5f6f8;color:var(--muted);font-weight:550}.table tr:last-child td{border-bottom:0}.table td.wrap{white-space:normal;min-width:140px}.header{height:73px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:12px 26px;gap:12px}.brand{display:flex;gap:11px;align-items:center}.seal{display:grid;place-items:center;width:39px;height:43px;border:1px solid var(--brand);border-radius:6px;color:var(--brand);font-family:serif;font-size:25px}.brand strong{font:600 22px/1.3 "Songti SC",serif;letter-spacing:3px}.brand small{display:block;color:var(--muted)}.shell{display:grid;grid-template-columns:174px minmax(0,1fr);min-height:calc(100vh - 73px)}nav{background:white;border-right:1px solid var(--line);padding:18px 10px;display:flex;flex-direction:column;gap:6px}nav button{justify-content:flex-start;border-color:transparent;background:transparent;padding:10px 12px;color:var(--muted);width:100%;white-space:nowrap}nav button[aria-current=page]{color:white;background:var(--brand)}.nav-sep{height:1px;background:var(--line);margin:7px 4px}.main{padding:24px;min-width:0;max-width:1800px;width:100%;margin:0 auto}.trial-label{font-size:12px;background:var(--tint);padding:3px 8px;border-radius:5px;color:var(--brand)}.sync{background:#fff6e7;border:1px solid #e0c897;border-radius:8px;padding:9px 13px;margin-bottom:14px;display:flex;gap:12px;align-items:center;justify-content:space-between}.sync[hidden]{display:none}.cart-top{white-space:nowrap}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.product-card{border:1px solid var(--line);background:white;border-radius:10px;overflow:hidden;min-width:0}.product-image{width:100%;aspect-ratio:4/3;object-fit:contain;background:#f0f2f5;display:block}.media-empty{aspect-ratio:4/3;background:#e9ecf0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#687281;font-size:13px}.media-empty b{font-size:18px;letter-spacing:2px;color:#8b95a3}.product-info{padding:12px}.prices{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px}.prices strong{display:block;font-size:16px}.prices .ours{color:var(--brand)}.metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 18px}.metric{border:1px solid var(--line);border-radius:9px;background:white;padding:15px;min-width:0}.metric span{display:block;color:var(--muted);font-size:12px}.metric b{display:block;font-size:23px;line-height:1.7;white-space:nowrap}.metric small{color:var(--muted)}.login-wrap{max-width:420px;margin:12vh auto;padding:24px}.login-wrap .brand{margin-bottom:27px}.login-wrap form{display:grid;gap:18px}.login-wrap h1{font-size:20px}.login-error{color:var(--danger);font-size:13px}.form-error{color:var(--danger);white-space:pre-line}.pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:20px}.body-us .shell{grid-template-columns:1fr}.body-us nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:12px;max-width:700px;width:100%;margin:auto;border:0}.body-us nav button{justify-content:center;border:1px solid var(--line);min-height:42px;white-space:normal}.body-us .main{max-width:1000px}.body-us .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.body-us .nav-sep{display:none}dialog{width:min(650px,calc(100vw - 24px));max-height:88vh;border:1px solid var(--line);border-radius:12px;padding:0;color:var(--ink);box-shadow:0 20px 60px #171d2633}dialog::backdrop{background:#171d2655}#dialog-content{padding:22px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.dialog-actions{margin-top:18px;display:flex;justify-content:flex-end;gap:10px}.dialog-error{color:var(--danger);font-size:13px;margin-top:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#303640;color:white;max-width:calc(100vw - 30px);padding:13px 18px;border-radius:9px;z-index:1000;display:none;box-shadow:0 3px 18px #0002}#toast.visible{display:block}#toast.error{background:#932f28}.service-note{font-size:13px;color:var(--muted);margin-top:10px}.checklist{padding:0;list-style:none;display:grid;gap:8px}.settings-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.num{font-variant-numeric:tabular-nums}.link-button{padding:0;border:0;background:none;min-height:0;color:var(--brand);text-decoration:underline}.report-caption{font-size:12px;color:var(--muted);margin-top:9px}.divider{height:1px;background:var(--line);margin:15px 0}
@media(min-width:1550px){.product-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1150px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.main{padding:18px}.shell{grid-template-columns:152px minmax(0,1fr)}.product-grid{gap:10px}}@media(max-width:800px){.shell{grid-template-columns:1fr}.header{padding:10px 15px;height:auto;min-height:68px}.header .user-name{display:none}nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:9px;border-bottom:1px solid var(--line);border-right:0}nav button{justify-content:center;padding:8px 3px;font-size:13px}.nav-sep{display:none}.main{padding:15px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr}.metrics .metric b{font-size:21px}}@media(max-width:560px){.main{padding:12px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.panel{padding:13px}.page-title{margin-bottom:13px;align-items:flex-start}.page-title h1{font-size:20px}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2.mobile-stack{grid-template-columns:1fr}.form-grid{gap:11px}.metrics{gap:7px}.metric{padding:10px}.metric b,.metrics .metric b{font-size:18px}.metric small{font-size:11px}.header .brand small{display:none}.brand strong{font-size:19px}.seal{height:34px;width:32px;font-size:21px}.header .button{font-size:12px;padding:7px 9px}.trial-label{font-size:11px}.toolbar{gap:8px}.toolbar label{min-width:100px}.toolbar .grow{flex-basis:100%}.body-us nav{padding:9px 12px}.table th,.table td{padding:9px}.prices{font-size:12px}.prices strong{font-size:14px}.login-wrap{margin-top:6vh}input,select,textarea{font-size:16px}.field>span,label>span:first-child{font-size:13px}.body-us .main{max-width:100%}.page-title .actions{gap:5px}.page-title .actions button{font-size:12px;padding:6px 9px}}

/* Keep the brand readable on narrow screens. */
.brand strong{white-space:nowrap}.header .brand{flex-shrink:0}.header>.row{justify-content:flex-end}.sales-thumb .media-empty b{font-size:10px;letter-spacing:0;overflow-wrap:anywhere}.sales-thumb .media-empty span{display:none}
@media(max-width:360px){.header{flex-wrap:wrap;gap:8px}.header>.brand{width:100%}.header>.row{width:100%;flex-wrap:nowrap}.header .brand small{display:block;font-size:11px}.header .trial-label{margin-left:auto}}

/* V02: compact shell and recoverable, role-scoped reporting. */
.header{height:64px;padding:9px 20px}.shell{min-height:calc(100vh - 64px)}.header .brand{gap:9px}.header .seal{height:37px;width:34px;font-size:23px}.header .brand strong{font-size:20px}.main{padding:20px}.page-title{margin-bottom:14px}nav{padding:12px 9px;gap:3px}nav button{min-height:39px;padding:9px 11px}.header>.row{gap:8px}.report-filter{padding:13px;background:var(--surface);border:1px solid var(--line);border-radius:9px;margin-bottom:10px}.report-quick{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.report-quick button{min-height:33px;padding:6px 12px}.report-date-fields{display:grid;grid-template-columns:minmax(135px,1fr) minmax(135px,1fr) auto auto;gap:10px;align-items:end}.report-date-fields .field{gap:3px}.report-date-fields .field>span{margin-bottom:0}.report-date-fields input{min-height:39px;padding:7px 9px}.report-date-fields>button,.report-date-fields>a{min-height:39px}.report-error{margin-top:10px;border-left:3px solid var(--danger);background:#fff1ed;color:var(--danger);padding:8px 10px;font-size:13px}.report-error[hidden]{display:none}.report-range-note{font-size:12px;color:var(--muted);margin-bottom:12px;line-height:1.7}.report-pending{display:block;color:var(--warn)}.report-view .metrics{gap:9px;margin-bottom:10px;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.report-view .metric{padding:12px}.report-view .metric b{font-size:23px;line-height:1.65;overflow-wrap:anywhere;white-space:normal;font-variant-numeric:tabular-nums}.report-view .metric small{display:block;font-size:11px;line-height:1.5}.report-secondary .metric{background:#fafbfc}.report-explanation{font-size:12px;color:var(--muted);margin:10px 0 14px}.report-detail{padding:14px}.report-detail .tabs{margin-bottom:10px}.report-rules{margin-top:12px;padding:12px 14px}.report-table{overscroll-behavior-x:contain}.report-table th:first-child,.report-table td:first-child{position:sticky;left:0;z-index:1;background:white;min-width:94px;max-width:160px;white-space:normal;overflow-wrap:anywhere;border-right:1px solid var(--line)}.report-table th:first-child{background:#f5f6f8}.report-table th,.report-table td{padding:9px 11px}.report-table:focus-visible{outline:2px solid #737d8c;outline-offset:2px}.header .row button{white-space:nowrap}.table-wrap{-webkit-overflow-scrolling:touch}
@media(max-width:1150px){.main{padding:16px}.report-view .report-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.report-view .report-secondary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.header{height:auto;min-height:57px;padding:9px 12px}.header .trial-label{display:none}.header .brand small{display:none}.shell{min-height:calc(100vh - 57px)}nav,.body-us nav{display:flex;flex-direction:row;flex-wrap:nowrap;gap:5px;padding:7px 10px;max-width:100%;width:100%;margin:0;overflow-x:auto;overscroll-behavior-x:contain;border-bottom:1px solid var(--line);border-right:0;-webkit-overflow-scrolling:touch;scrollbar-width:thin}nav button,.body-us nav button{flex:0 0 auto;width:auto;min-height:36px;padding:7px 11px;font-size:13px;white-space:nowrap;justify-content:center}nav button{border:1px solid transparent}.body-us nav button{border:1px solid var(--line)}.main{padding:13px}.report-date-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.report-export{grid-column:1/-1;justify-self:start}.report-filter{padding:11px}.page-title h1{font-size:20px}}
@media(max-width:560px){.header{gap:6px;flex-wrap:nowrap}.header>.brand{width:auto;gap:6px}.header .brand strong{font-size:17px;letter-spacing:1px}.header .seal{height:29px;width:27px;font-size:19px}.header>.row{gap:5px;flex-wrap:nowrap;width:auto}.header .row button{min-height:34px;padding:6px 8px;font-size:12px}.header .cart-top{gap:3px}.main{padding:10px}.report-view .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.report-view .metric{padding:10px}.report-view .metric b{font-size:21px}.report-date-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.report-date-fields>button{grid-column:1}.report-date-fields>.report-export{grid-column:2;justify-self:stretch}.report-quick{gap:5px;margin-bottom:9px}.report-quick button{flex:1;min-width:0;padding:7px 5px;font-size:13px}.report-date-fields input{width:100%;max-width:100%;font-size:14px;min-height:39px}.report-detail{padding:10px}.report-detail .tabs{gap:5px}.report-detail .tabs button{font-size:12px;min-height:35px;padding:6px 8px}.report-table th,.report-table td{padding:8px}.report-table th:first-child,.report-table td:first-child{min-width:80px;max-width:125px}.report-explanation{margin-bottom:10px}.report-rules{padding:11px}.settings-grid{gap:12px}.settings-grid .panel{padding:12px}.settings-grid .table th,.settings-grid .table td{padding:8px}.settings-grid h3{font-size:15px}.settings-grid .panel>.row{margin-bottom:10px!important}#dialog-content{padding:15px}.dialog-head{margin-bottom:12px}.dialog-head h2{font-size:18px}}
@media(max-width:360px){.header .brand small{display:none}.header .brand strong{font-size:16px}.header .seal{display:none}.header .brand{width:auto}.header>.row{width:auto}.header{padding:8px 10px}.header .row button{padding:6px 7px}.report-view .metric b{font-size:19px}.report-range-note{font-size:11px}}
@media(min-width:801px){.body-a .report-view .report-summary,.body-b .report-view .report-summary,.report-view .report-secondary{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Show every main function on phones; shortened labels retain full aria labels. */
.nav-short{display:none}
@media(max-width:800px){nav,.body-us nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:8px 10px;overflow:visible;scrollbar-width:auto}.body-us nav{grid-template-columns:repeat(3,minmax(0,1fr))}nav button,.body-us nav button{width:100%;min-width:0;min-height:36px;padding:7px 3px;font-size:13px;white-space:nowrap;gap:0}nav .nav-full{display:none}nav .nav-short{display:inline}.body-us nav button{padding:7px 5px}}
@media(max-width:360px){nav,.body-us nav{gap:4px;padding:7px 8px}nav button,.body-us nav button{font-size:12px;min-height:36px;padding:7px 2px}}

/* Neutral workspace identity: system typography without the decorative seal. */
.brand strong{font-family:inherit;font-weight:650;letter-spacing:0}.header .brand strong{letter-spacing:0}

/* Graphite: clear actions, neutral content, semantic status colors. */
:root{--brand-hover:#20252d;--focus:#737d8c;--success:#23724d;--success-tint:#eaf5ee;--warn-tint:#fff3dd;--danger-tint:#fceceb}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--focus)}
.badge.success{background:var(--success-tint);color:var(--success)}
.nav-count{margin-left:auto;min-width:21px;border-radius:5px;padding:1px 5px;font-size:11px;line-height:18px;font-variant-numeric:tabular-nums;flex-shrink:0;background:var(--warn-tint);color:var(--warn);font-weight:650}
.nav-count.attention{background:var(--danger-tint);color:var(--danger)}
nav button[aria-current=page] .nav-count{box-shadow:0 0 0 1px #ffffff38}
.product-card{transition:border-color .12s ease,box-shadow .12s ease}.product-card:hover{border-color:#a5aebb;box-shadow:0 2px 9px #20252d0a}
.main .page-title h1,.login-wrap h1{letter-spacing:-.4px}.login-wrap .brand{margin-bottom:22px}.login-wrap .panel{box-shadow:0 10px 36px #242a3305}
.header #open-cart:has(#cart-count:not(:empty)){font-variant-numeric:tabular-nums}
@media(max-width:800px){nav button,.body-us nav button{gap:3px}.nav-count{margin-left:1px;min-width:17px;font-size:10px;line-height:16px;padding:0 3px}}
@media(max-width:360px){nav button,.body-us nav button{gap:2px}.nav-count{min-width:15px;padding:0 2px}}
@media(prefers-reduced-motion:reduce){.product-card{transition:none}}

/* Let mobile navigation use its content height instead of stretching to fill the viewport. */
@media(max-width:800px){.shell{align-content:start}nav,.body-us nav{align-content:start;grid-auto-rows:minmax(38px,auto);margin:0}.main{align-self:start}}

.body-us .shell{align-content:start}

/* Keep the shared test environment visible without using extra horizontal space. */
.header .brand .environment-mobile{display:none}
@media(max-width:800px){.header .brand .environment-mobile{display:block;font-size:10px;line-height:1.3;color:var(--muted)}}

/* Keep save errors beside the dialog heading and preserve a direct retry path. */
.dialog-error:empty,.form-error:empty,.login-error:empty{display:none}
.dialog-error:not(:empty){padding:10px 12px;margin:0 0 14px;background:#fff0ed;border:1px solid #e4b8b4;border-radius:7px;white-space:pre-line}
.dialog-error:focus,.form-error:focus,.login-error:focus{outline:2px solid #a3342b;outline-offset:3px}
.page-recovery{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.page-recovery p{overflow-wrap:anywhere;min-width:0}
form[aria-busy=true] button[type=submit]{cursor:wait}
