:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#202938;background:#f5f7fa;font-size:14px;--blue:#2563eb;--line:#e5e9f0;--muted:#637084;--danger:#b42318;--success:#187246}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue)}button{cursor:pointer;transition:background-color .16s,color .16s;min-height:36px}button:disabled{opacity:.55;cursor:not-allowed}input,select{background:white;border:1px solid #d6dce5;color:inherit;border-radius:6px;padding:8px 10px;min-height:36px;min-width:0}input::placeholder{color:#68758a}input:hover,select:hover{border-color:#a4b1c5}input:disabled{background:#f2f4f7}input{caret-color:var(--blue)}a{color:var(--blue);text-underline-offset:3px}::selection{background:#dce7ff;color:#173a8a}h1,h2,h3,p{margin:0}h1{font-size:25px;font-weight:650;letter-spacing:-.025em}h2{font-size:16px;font-weight:600}h3{font-size:14px}strong{font-weight:600}.muted,small{color:var(--muted)}small{font-size:12px;line-height:1.6}.num{font-variant-numeric:tabular-nums;white-space:nowrap}.boot{padding:70px;color:var(--muted)}.sidebar{width:212px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:10px;align-items:center;padding:27px 19px;font-size:16px;font-weight:650;white-space:nowrap}.brand img{width:32px;height:32px}.brand small{font-size:11px;font-weight:400;display:block;margin-top:4px}.sidebar nav{padding:12px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.nav-label{font-size:11px;color:var(--muted);padding:12px 15px 7px}.nav-item{width:100%;border:0;background:transparent;color:#526176;text-align:left;padding:11px 15px;border-radius:6px;margin:3px 0;display:flex;justify-content:space-between;align-items:center}.nav-item:hover{background:#f3f6fa}.nav-item.active{color:#205cda;background:#edf3ff;font-weight:600}.nav-count{font-size:11px;color:var(--muted)}.sidebar-foot{padding:20px;border-top:1px solid var(--line);font-size:12px;line-height:1.8}.local-dot{display:inline-block;width:7px;height:7px;background:#187246;border-radius:50%;margin-right:7px}.workspace{margin-left:212px;min-width:0}.topbar{height:64px;background:white;border-bottom:1px solid var(--line);padding:0 30px;display:flex;justify-content:space-between;align-items:center;gap:15px}.breadcrumb{display:flex;gap:12px;align-items:center;color:var(--muted);font-size:12px}.breadcrumb strong{color:#38465a;font-weight:500}.mode-switch,.segmented{display:inline-flex;background:#f1f4f8;padding:3px;border-radius:7px;gap:3px}.mode-switch button,.segmented button{border:0;background:transparent;color:#5b687b;border-radius:4px;font-size:12px;padding:5px 12px;min-height:30px;white-space:nowrap}.mode-switch button.active,.segmented button.active{background:white;color:#205cda;box-shadow:0 1px 3px #20293814}.mobile-menu{display:none}.main{padding:28px 30px 24px;max-width:1800px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:23px}.page-head p{font-size:13px;color:var(--muted);line-height:1.7;margin-top:8px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{background:white;border:1px solid #d8dfe9;color:#46546a;border-radius:6px;padding:7px 13px;white-space:nowrap;font-size:13px;line-height:20px}.btn:hover:not(:disabled){border-color:#84a6ee;color:var(--blue);background:#fafcff}.btn.primary{background:var(--blue);border-color:var(--blue);color:white}.btn.primary:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8}.btn.danger{color:var(--danger)}.link-btn{background:none;border:0;color:var(--blue);padding:0;min-height:28px;font-size:12px;white-space:nowrap}.link-btn:hover{text-decoration:underline;text-underline-offset:3px}.badge{display:inline-flex;align-items:center;font-size:11px;line-height:1.5;padding:3px 7px;border-radius:4px;background:#f0f3f7;color:#586679;white-space:nowrap}.badge.ok{background:#eaf5ee;color:#187246}.badge.warn{background:#fff4db;color:#855710}.badge.error{background:#fff0ec;color:#b42318}.badge.blue{background:#edf3ff;color:#205cda}.banner{padding:12px 15px;border:1px solid #dbe5f7;border-radius:7px;background:#f0f5ff;color:#365780;font-size:12px;line-height:1.8;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.banner.sample{background:#fff8e9;border-color:#eedfb7;color:#765522}.banner.error{background:#fff5f3;border-color:#f0d2ca;color:#a43c2b}.filters{background:white;border:1px solid var(--line);border-radius:9px;padding:15px 18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:19px}.filter-control{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.filters select{max-width:230px}.filters input[type=date]{width:141px;font-size:12px}.filters .grow{flex:1}.search{width:230px;font-size:12px}.scope-line{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px;font-size:12px;color:var(--muted);line-height:1.8}.scope-line strong{font-weight:500;color:#38465a}.metrics{background:white;border:1px solid var(--line);border-radius:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:23px 0;margin-bottom:20px}.metric{padding:0 25px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric-label{font-size:12px;color:var(--muted);display:block;margin-bottom:9px}.metric-value{font-size:29px;letter-spacing:-.035em;line-height:1.2;font-weight:650}.metric-sub{font-size:11px;color:var(--muted);display:block;margin-top:9px;line-height:1.7}.metric-value.accent{color:#205cda}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:20px}.panel-head{padding:20px 22px 16px;display:flex;gap:16px;align-items:center;justify-content:space-between}.panel-head p{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.7}.panel-body{padding:0 22px 22px}.overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(330px,1fr);gap:20px}.chart{width:100%;height:218px;display:block}.chart text{font-family:inherit;fill:#68758a;font-size:11px}.chart .grid{stroke:#e9edf3;stroke-width:1}.chart .line{stroke:#2563eb;stroke-width:2.5;fill:none;stroke-linejoin:round;stroke-linecap:round}.chart .area{fill:#edf3ff}.chart .point{fill:white;stroke:#2563eb;stroke-width:2}.chart-caption{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;margin-top:10px}.mini-list{list-style:none;padding:0;margin:0}.mini-list li{padding:12px 0;border-bottom:1px solid #eef1f5;display:flex;gap:14px;align-items:center;justify-content:space-between}.mini-list li:last-child{border:0}.mini-list strong{font-size:13px;display:block;font-weight:500}.mini-list small{display:block;font-size:11px}.mini-list .amount{text-align:right;font-weight:600}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap;text-align:left}th{padding:13px 18px;background:#f8fafc;color:#5e6c80;font-weight:500;border-bottom:1px solid var(--line);line-height:1.6}td{padding:15px 18px;border-bottom:1px solid #edf0f5;color:#38465a;line-height:1.6}td.money,th.money{text-align:right;font-variant-numeric:tabular-nums}tbody tr:hover{background:#fafcff}tbody tr:last-child td{border-bottom:0}td:first-child{min-width:160px}td .product-name{display:block;font-size:13px;max-width:260px;white-space:normal;line-height:1.6;color:#26364b;font-weight:500}td small{display:block;font-size:11px;max-width:280px;overflow-wrap:anywhere;white-space:normal}td .link-btn{display:block;text-align:left}.amount-negative{color:#b42318}.pagination{padding:15px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.page-buttons{display:flex;gap:8px;align-items:center}.page-buttons .btn{font-size:12px;min-height:30px;padding:3px 10px}.empty{padding:62px 28px;text-align:center}.empty h2{font-size:19px;margin-bottom:12px}.empty p{max-width:540px;margin:0 auto 22px;line-height:1.8;color:var(--muted);font-size:13px}.empty .actions{justify-content:center}.welcome{padding:43px 38px}.welcome h2{font-size:24px;letter-spacing:-.025em;line-height:1.5}.welcome p{line-height:1.9;color:var(--muted);max-width:640px;margin:14px 0 23px;font-size:13px}.welcome-steps{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);margin-top:32px;padding-top:23px;gap:25px}.welcome-steps strong{font-size:13px}.welcome-steps p{font-size:12px;margin:8px 0 0}.form-panel{padding:24px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 24px;margin:22px 0}.field label{display:block;font-size:12px;font-weight:500;margin-bottom:8px}.field input{width:100%}.field small{display:block;margin-top:7px;font-size:11px}.wide{grid-column:1/-1}.check{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.7}.check input{width:16px;height:16px;min-height:16px;accent-color:var(--blue)}.form-error{color:var(--danger);background:#fff5f3;padding:10px 12px;font-size:12px;border-radius:5px;margin-bottom:16px;line-height:1.8}.form-foot{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:18px}.form-foot small{max-width:540px}.shop-name{font-size:13px;font-weight:600}.health{font-size:11px;line-height:1.8}.health strong{font-weight:500}.health.error{color:#a43c2b}.notes{font-size:12px;line-height:1.9;color:var(--muted)}.notes p+p{margin-top:8px}.notes summary{color:#38465a;cursor:pointer}.notes ul{padding-left:19px}.job{padding:20px 22px;border-top:1px solid var(--line)}.job:first-of-type{border-top:0}.job-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.job p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:9px}.job-errors{margin:12px 0 0;padding:12px 15px;background:#fff7f4;color:#a43c2b;border-radius:5px;list-style:none;font-size:12px;line-height:1.8}.table-empty{padding:40px;text-align:center;color:var(--muted);white-space:normal}.loading-bar{height:3px;background:#dbe6fb;overflow:hidden;margin-bottom:12px}.loading-bar:after{content:"";display:block;width:35%;height:100%;background:#2563eb;animation:load 1s ease-in-out infinite}.footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#788396;font-size:11px;padding:3px 2px;line-height:1.8}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:#26364b;color:white;border-radius:7px;padding:12px 18px;font-size:13px;box-shadow:0 8px 24px #24324a26;display:none;max-width:min(90vw,600px);line-height:1.7}#notice.visible{display:block}dialog{border:0;border-radius:12px;padding:0;width:min(850px,94vw);max-height:86dvh;box-shadow:0 20px 60px #24324a40;color:#202938}dialog::backdrop{background:#20304b44}dialog .panel-head{position:sticky;top:0;background:white;border-bottom:1px solid var(--line)}dialog .detail-body{padding:22px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.detail-grid dt{font-size:11px;color:var(--muted);margin-bottom:7px}.detail-grid dd{margin:0;font-size:13px;overflow-wrap:anywhere}.screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes load{0%{transform:translateX(-100%)}100%{transform:translateX(380%)}}
@media(min-width:1600px){.metrics{padding:27px 0}.metric-value{font-size:32px}.chart{height:245px}}
@media(max-width:1200px){.overview-grid{grid-template-columns:1fr}.main{padding:24px 22px}.topbar{padding:0 22px}.metric{padding:0 18px}.metric-value{font-size:25px}.filters{gap:10px}.filters .grow{display:none}.search{flex:1;min-width:180px}.scope-line{gap:8px}}
@media(max-width:850px){.sidebar{width:176px}.workspace{margin-left:176px}.brand{padding:24px 13px;font-size:14px;gap:8px}.brand img{width:29px;height:29px}.sidebar nav{padding:8px}.sidebar-foot{padding:17px}.main{padding:22px 18px}.metrics{grid-template-columns:repeat(2,1fr);gap:22px 0}.metric:nth-child(2){border:0}.page-head{flex-wrap:wrap;gap:16px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.welcome-steps{grid-template-columns:1fr;gap:19px}.welcome{padding:29px}.detail-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.sidebar{width:212px;transform:translateX(-100%);visibility:hidden;transition:transform .18s}.sidebar.open{visibility:visible;transform:translateX(0);box-shadow:8px 0 25px #20304b1f}.workspace{margin-left:0}.mobile-menu{display:block;background:white;border:1px solid #d8dfe9;border-radius:5px;padding:5px 9px;font-size:12px;min-height:32px}.topbar{height:58px;padding:0 14px;gap:10px}.breadcrumb{gap:9px}.breadcrumb>span{display:none}.breadcrumb strong{font-size:12px}.mode-switch button{padding:4px 8px;font-size:11px;min-height:27px}.main{padding:21px 14px}.page-head{margin-bottom:18px}.page-head h1{font-size:23px}.page-head p{font-size:12px}.page-head .actions{gap:8px}.btn{font-size:12px;padding:6px 11px;min-height:34px}.filters{padding:13px;gap:10px}.filter-control{flex:1 1 auto}.filters select{flex:1;max-width:none}.filters input[type=date]{width:122px;padding:7px 5px}.filters .date-control{flex:1 1 100%;justify-content:space-between}.search{width:100%;flex-basis:100%}.segmented{width:100%}.segmented button{flex:1}.metrics{padding:19px 0}.metric{padding:0 15px}.metric-value{font-size:25px}.metric-label{font-size:11px}.metric-sub{font-size:10px}.scope-line{font-size:11px}.scope-line>span:last-child{max-width:100%}.panel-head{padding:17px 15px;align-items:flex-start;flex-wrap:wrap}.panel-body{padding:0 13px 16px}.chart{height:185px}.panel h2{font-size:15px}.chart-caption{font-size:10px}.pagination{padding:13px;font-size:11px}.form-panel{padding:19px 16px}.form-foot{align-items:flex-start;flex-direction:column}.banner{font-size:11px;align-items:flex-start;gap:10px;flex-wrap:wrap}.welcome{padding:28px 22px}.welcome h2{font-size:21px}.job{padding:18px 15px}.job-top{align-items:flex-start}.footer{font-size:10px}.overview-grid{gap:0}.detail-grid{grid-template-columns:1fr 1fr}.detail-grid dd{font-size:12px}th,td{padding:12px 14px}.notes{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.block { display: block; }

.balance-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(200px,1fr);gap:24px;padding:4px 22px 22px;align-items:start}.balance-summary>div{min-width:0}.balance-summary span{display:block;font-size:12px;color:var(--muted);line-height:1.8}.balance-summary>div>strong.num{display:block;font-size:27px;line-height:1.4;margin-top:5px;overflow-wrap:anywhere;white-space:normal;letter-spacing:-.025em}.balance-summary>div:first-child>strong{color:#205cda}.balance-coverage{padding-top:2px}.balance-coverage>strong{display:block;font-size:13px;margin-bottom:7px}.balance-coverage>span+span{margin-top:6px}.balance-alert{margin:0;padding:12px 22px;background:#fff8ed;color:#7f440d;font-size:12px;line-height:1.8}.balance-alert .link-btn{margin-left:8px}.balance-panel .panel-note{margin:0}.balance-panel td.money strong{font-weight:600}.balance-panel td small{max-width:240px}
@media(max-width:1000px){.balance-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.balance-coverage{grid-column:1/-1}}
@media(max-width:640px){.balance-summary{padding:0 15px 18px;grid-template-columns:1fr;gap:15px}.balance-summary>div>strong.num{font-size:25px}.balance-alert{padding:12px 15px}}

.product-identity{display:flex;gap:12px;align-items:center;min-width:250px}.product-copy{min-width:0}.product-photo{display:inline-flex;position:relative;width:56px;height:56px;min-width:56px;flex:0 0 56px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;background:#f6f8fb;color:var(--muted);padding:0;font-size:10px;overflow:hidden;white-space:normal;line-height:1.4}.product-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:white}.product-photo img[hidden]{display:none}.product-photo:not(.no-photo):not(:disabled){cursor:zoom-in}.product-photo:hover:not(:disabled){border-color:#87a5e7}.image-preview{padding:24px;display:flex;align-items:center;justify-content:center;min-height:180px}.image-preview img{display:block;max-width:100%;max-height:65vh;object-fit:contain}.image-preview img[hidden]{display:none}.image-error{color:var(--muted);font-size:13px}

.operating-intro{padding:22px}.operating-intro p{margin:8px 0 16px;color:var(--muted);font-size:13px;line-height:1.8}.operating-summary{display:flex;gap:24px;align-items:center;flex-wrap:wrap;font-size:13px;margin-bottom:18px}.operating-summary strong{font-size:20px;font-variant-numeric:tabular-nums}.operating-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--line)}.operating-controls label{display:flex;align-items:center;gap:8px;font-size:12px}.operating-controls>span{color:#59677a;font-size:12px;line-height:1.7}.rate-cell strong{font-size:17px;color:#203b66;font-variant-numeric:tabular-nums}.rate-cell small{white-space:nowrap;font-size:11px}.insight-cell{min-width:210px;max-width:300px;white-space:normal}.insight-cell strong{font-size:12px}.warning-text{color:#9b440e!important}.diagnosis-identity{padding:22px}.diagnosis-identity>.link-btn{margin-bottom:14px}.diagnosis-identity .product-identity{margin-bottom:20px}.diagnosis-identity .product-name{font-size:16px;font-weight:600;line-height:1.7;display:block;max-width:800px}.diagnosis-identity small{display:block;margin-top:4px}.data-limit{padding:14px 16px;background:#fff8ed;color:#7f440d;font-size:12px;line-height:1.8;border-radius:6px;margin-bottom:20px}.data-limit p{margin-top:5px}.diagnostic-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:8px 0 22px}.diagnostic-list h3{font-size:14px;margin:0 0 10px}.diagnostic-list p{font-size:12px;line-height:1.9;margin:7px 0;color:#506078}.diagnostic-list p:first-of-type{color:#28374c}.definition-cell{min-width:220px;max-width:650px;white-space:normal;line-height:1.8}.panel-note{padding:16px 20px;font-size:12px;line-height:1.9;color:#59677a;border-top:1px solid var(--line)}.diagnosis-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.phase-list{padding:0 22px 18px}.phase-list>div{display:grid;grid-template-columns:1fr 90px 70px;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.phase-list>div:last-child{border-bottom:0}.phase-list strong,.phase-list span:last-child{text-align:right;font-variant-numeric:tabular-nums}.operating-money{padding:0 22px 12px}.operating-money>div{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.operating-money dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.operating-money>div:last-child{border:0}::selection{background:#dce8ff;color:#172f56}input{caret-color:#2563eb}
@media(max-width:1000px){.diagnostic-list{grid-template-columns:1fr;gap:12px}.diagnosis-grid{grid-template-columns:1fr;gap:0}}
@media(max-width:640px){.operating-intro,.diagnosis-identity{padding:17px 15px}.operating-summary{gap:12px}.operating-controls{gap:12px}.operating-controls label{width:100%;justify-content:space-between}.operating-controls select{max-width:180px}.panel-note{padding:14px}.phase-list{padding:0 15px 12px}.phase-list>div{grid-template-columns:1fr 60px 55px;gap:7px}.diagnosis-identity .product-identity{min-width:0}.diagnosis-identity .product-name{font-size:14px}}

.receipt-status{min-width:210px;max-width:320px;white-space:normal}.receipt-status strong{display:block;font-size:12px}.receipt-table .product-identity{min-width:240px}.receipt-table .rate-cell{min-width:145px}.receipt-table .panel-head p{max-width:70ch;line-height:1.8}
.receipt-table td.money small{white-space:nowrap;overflow-wrap:normal}.receipt-table th.money,.receipt-table td.money{min-width:92px}.receipt-table td.money .link-btn{white-space:nowrap}.receipt-table td:last-child .link-btn{display:block;white-space:nowrap}
@media(max-width:640px){.receipt-table .panel-head p::after{content:' 表格可左右滑动。';color:#59677a}}

.operations-jumps{padding:0 22px 18px}.product-operations .panel-head h3{font-size:15px;margin:0}.product-operations td:first-child .link-btn{white-space:normal;text-align:left;max-width:240px}.product-operations .panel-note{margin:0}.product-operations{scroll-margin-top:16px}
@media(max-width:640px){.product-operations>.panel-head p::after{content:" 表格可左右滑动。"}.operations-jumps{padding:0 15px 16px}}

.today-overview { margin-bottom: 1rem; }
.today-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.today-cards .metric { min-width:0; padding:1rem; }
.today-cards .metric-value { font-size:clamp(1.2rem,2vw,2rem); overflow-wrap:anywhere; }
@media(max-width:900px){.today-cards{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Product analysis */
.analysis-heading,.analysis-toolbar,.analysis-settings{padding:16px 20px}
.analysis-heading,.analysis-toolbar,.analysis-options,.analysis-focus,.analysis-settings,.analysis-options label,.analysis-settings label{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.analysis-heading,.analysis-toolbar{justify-content:space-between}
.analysis-heading{padding-bottom:8px}
.analysis-heading p,.analysis-settings p{margin:4px 0 0;color:var(--muted);font-size:12px}
.analysis-toolbar{border-bottom:1px solid var(--line);gap:12px}
.analysis-focus{gap:4px}
.analysis-focus button{border:0;background:transparent;color:#49586e;padding:7px 10px;border-radius:5px;font-size:13px;min-height:34px}
.analysis-focus button[aria-pressed=true]{background:#edf3ff;color:#205cda;font-weight:600}
.analysis-focus button:hover{background:#f1f4f8}
.analysis-focus span{font-variant-numeric:tabular-nums}
.analysis-options label,.analysis-settings label{color:var(--muted);font-size:12px;gap:6px}
.analysis-settings{background:#f8fafc;border-bottom:1px solid var(--line);align-items:flex-start}
.analysis-settings[hidden]{display:none}
.analysis-settings .operating-controls{padding:0;border:0;gap:12px}
.analysis-settings p{width:100%}
.analysis-list td{padding:12px 16px}
.analysis-list th{padding:10px 16px}
.analysis-list .product-identity{min-width:180px;max-width:420px;gap:10px}
.analysis-list .product-name{max-width:100%;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.analysis-list .product-photo{width:46px;height:46px;min-width:46px;flex-basis:46px}
.analysis-list td small{color:var(--muted);margin-top:3px}
.analysis-number{text-align:right;font-variant-numeric:tabular-nums}
.analysis-number strong{font-size:19px;color:#203b66;font-weight:650}
.analysis-number strong.warning-text,.analysis-status.is-pending,.analysis-status.is-pending button{color:#924309}
.analysis-list .analysis-number button{display:inline-block;color:#36465e;font-size:14px;min-height:28px;text-decoration:underline;text-decoration-color:#b9c6d8;text-underline-offset:4px}
.analysis-list .analysis-number small button{font-size:11px;min-height:20px;color:var(--muted)}
.analysis-number small{margin-left:auto}
.analysis-status{color:var(--muted)}
.analysis-status button{min-height:28px}
.analysis-detail,.analysis-list th:last-child{text-align:right}
.analysis-detail button{display:inline-block}
@media(max-width:760px){
 .analysis-heading,.analysis-toolbar,.analysis-settings{padding:12px}
 .analysis-toolbar{gap:8px}.analysis-focus{gap:1px}.analysis-focus button{padding:6px}
 .analysis-list table,.analysis-list tbody{display:block}
 .analysis-list thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .analysis-list tbody tr{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px 6px;padding:14px 12px;border-bottom:1px solid var(--line)}
 .analysis-list td{min-width:0;padding:0;border:0}
 .analysis-list td:first-child,.analysis-list .table-empty,.analysis-empty td[colspan]{grid-column:1/-1}
 .analysis-list .product-identity{min-width:0}
 .analysis-list td.analysis-number{text-align:left}
 .analysis-number::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted)}
 .analysis-number small{margin-left:0}
 .analysis-status{grid-column:span 2}
 .analysis-detail,.analysis-empty td:last-child{grid-column:3;text-align:right}
}

.cost-product{border-top:1px solid var(--line)}
.cost-product-heading{display:flex;align-items:center;gap:16px;padding:14px 20px}
.cost-product-heading .product-identity{min-width:0;flex:1}
.cost-product-heading .product-name{display:block;font-weight:600;line-height:1.6}
.cost-product-heading small{display:block;color:var(--muted);font-size:12px}
.cost-filters{border:0;margin:0;box-shadow:none;justify-content:flex-start}
.cost-filters label{display:flex;align-items:center;gap:6px}
.cost-filters input[type=checkbox]{height:16px;width:16px}
.cost-coverage,.cost-date-note{color:var(--muted);font-size:12px}
.cost-product table{background:#f8fafc}
#sku-cost-dialog{width:min(540px,94vw)}
#sku-cost-dialog .actions{justify-content:flex-end;margin-top:16px}
#sku-cost-dialog form>p:first-child{margin-top:0}
@media(max-width:640px){.cost-product-heading{padding:12px;flex-wrap:wrap;gap:8px}.cost-product-heading .product-identity{flex-basis:100%}.cost-product-heading .cost-coverage{margin-right:auto}.cost-filters{gap:12px}}


.product-specs{padding:16px 20px;min-width:0}
.product-specs h2{margin-bottom:14px}
.product-specs .link-btn{padding:0;font-size:inherit}
.sku-line{display:grid;grid-template-columns:minmax(90px,1.5fr) repeat(3,minmax(0,1fr)) minmax(48px,.56fr);align-items:center;column-gap:clamp(8px,1vw,20px);padding:5px 0;min-height:29px}
.sku-line+.sku-line{border-top:1px solid #edf0f4}
.sku-column-head{align-items:start;color:#566477;font-size:11px;padding-top:0;min-height:23px}
.sku-label{font-size:12px;color:#26374b;overflow-wrap:anywhere;line-height:1.35}
.sku-sales{--ink:#326bbb}.sku-refunds{--ink:#ad5d21}.sku-returns{--ink:#80549d}
.sku-column-head > [class^=sku-]:not(.sku-pending)::before{content:"";display:inline-block;margin-right:4px;width:6px;height:6px;border-radius:50%;background:var(--ink)}
.sku-cell{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 5px;font-variant-numeric:tabular-nums;color:#27384d;line-height:1.25}
.sku-cell-value,.sku-cell-value button{font-size:13px;font-weight:600;color:inherit;white-space:nowrap}
.sku-cell small,.sku-column-head small{font-size:11px;line-height:1.2}
.sku-cell .link-btn{min-height:0}.sku-cell .link-btn:hover{text-decoration:underline}
.sku-unknown{color:#8b571f}.sku-column-head .sku-unknown{display:block;margin-top:2px;font-weight:400}
.sku-cell progress{flex-basis:100%;width:100%;height:3px;margin:3px 0 0;border:none;border-radius:3px;overflow:hidden;appearance:none;background:#e8edf3;color:var(--ink)}
.sku-cell progress::-webkit-progress-bar{background:#e8edf3}.sku-cell progress::-webkit-progress-value{background:var(--ink)}.sku-cell progress::-moz-progress-bar{background:var(--ink)}
@media(max-width:550px){.product-specs{padding:12px}.sku-line{grid-template-columns:minmax(52px,1.1fr) repeat(3,minmax(0,1fr)) minmax(38px,.68fr);column-gap:4px}.sku-cell{gap:1px 3px}.sku-label{font-size:11px}.sku-column-head > [class^=sku-]:not(.sku-pending)::before{display:none}.sku-cell-value,.sku-cell-value button{font-size:12px}}

.refund-distribution{container:refund-panel / inline-size}
.refund-distribution .panel-head{padding-bottom:10px}
.refund-distribution .panel-head label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;min-width:0}
.refund-distribution select{max-width:min(300px,60vw)}
.refund-ring-toolbar,.ring-totals{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px}
.refund-ring-toolbar{justify-content:space-between;margin:0 22px;padding:0 0 11px;border-bottom:1px solid var(--line)}
.ring-totals{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.ring-totals strong{margin-left:4px;color:var(--text,#202938);font-size:20px;letter-spacing:-.025em;white-space:nowrap}
.ring-totals .ring-review{color:#95501c;font-size:12px}
.refund-distribution .ring-switch{width:auto}
.ring-switch button{min-height:26px;padding:3px 11px}
.refund-rings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.refund-ring{display:grid;grid-template-areas:"title title" "plot legend";grid-template-columns:clamp(92px,7.3vw,120px) minmax(0,1fr);grid-template-rows:auto 1fr;gap:8px 12px;padding:14px 20px 16px;min-width:0}
.refund-ring+.refund-ring{border-left:1px solid var(--line)}
.refund-ring header{grid-area:title}.refund-ring header small{font-size:11px}
.ring-plot{position:relative;grid-area:plot;align-self:center}
.ring-plot>svg{width:100%;display:block}
.ring-plot>div{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;pointer-events:none}
.ring-plot strong{font-size:22px;font-variant-numeric:tabular-nums;line-height:1.3}
.ring-plot .ring-center-money{font-size:clamp(12px,1vw,16px);white-space:nowrap}
.ring-plot span{font-size:10px;color:var(--muted)}
.ring-legend{grid-area:legend;min-width:0;align-self:start;--numeric-columns:3.4rem 4.1rem 6.2rem}
.ring-columns,.ring-legend-row,.ring-other summary{display:grid;grid-template-columns:minmax(0,1fr) var(--numeric-columns);align-items:center;column-gap:8px;width:100%;padding:4px 5px;text-align:right;font-variant-numeric:tabular-nums}
.ring-columns{font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);margin-bottom:2px}
.ring-columns>span:first-child{text-align:left}
.ring-legend-row,.ring-other summary{border:0;border-radius:4px;background:none;min-height:27px;color:inherit;cursor:pointer;list-style:none;font-size:13px;line-height:1.45}
.ring-other summary::-webkit-details-marker{display:none}
.ring-other summary .ring-label span::after{content:' ▾';color:var(--muted)}
.ring-other[open]>summary .ring-label span::after{content:' ▴'}
.ring-other .ring-legend-row .ring-label{padding-left:8px}
.ring-legend-row:hover,.ring-other summary:hover,.ring-legend-row[aria-pressed=true]{background:#eff4fc}
.ring-label{display:flex;align-items:center;gap:6px;text-align:left;overflow-wrap:anywhere}
.ring-label svg{flex-shrink:0}
.ring-share{color:var(--muted)}
.ring-legend-row strong,.ring-other summary strong{font-weight:600}
.ring-selection{display:flex;gap:14px;padding:8px 22px;border-top:1px solid var(--line);align-items:center;font-size:13px}
@container refund-panel (max-width:960px){
  .refund-rings{grid-template-columns:1fr}
  .refund-ring+.refund-ring{border-left:0;border-top:1px solid var(--line)}
}
@container refund-panel (max-width:490px){
  .refund-distribution .panel-head{flex-wrap:wrap}
  .refund-ring-toolbar{margin:0 14px;gap:8px}
  .ring-totals{gap:3px 10px}
  .refund-ring{padding:12px 14px;grid-template-areas:"title plot" "legend legend";grid-template-columns:minmax(0,1fr) 76px;gap:4px 10px;align-items:center}
  .ring-plot strong{font-size:16px}.ring-plot .ring-center-money{font-size:10px}.ring-plot span{font-size:9px}
  .ring-legend{--numeric-columns:3.1rem 3.5rem 5.7rem}
  .ring-columns,.ring-legend-row,.ring-other summary{column-gap:5px;padding-inline:2px}
  .ring-legend-row,.ring-other summary{font-size:12px;min-height:28px}
}


.geo-panel{container:geo-panel / inline-size}
.geo-panel>.panel-head{gap:10px 16px;padding-bottom:12px;flex-wrap:wrap}
.geo-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.geo-controls .segmented{width:auto}
.geo-controls button{min-height:26px;padding:3px 10px}
.geo-scope{color:var(--blue);font-size:12px}
.geo-band{display:grid;grid-template-areas:"info plot legend";grid-template-columns:minmax(190px,0.86fr) clamp(88px,8vw,114px) minmax(340px,1.75fr);gap:10px 20px;align-items:center;padding:12px 22px 14px;border-top:1px solid var(--line);min-width:0}
.geo-overview{grid-area:info;min-width:0}
.geo-overview h3{font-size:15px}
.geo-overview select{width:100%;max-width:320px;font-size:12px;min-height:28px;height:30px;margin-top:5px;padding:3px 6px;text-overflow:ellipsis}
.geo-finding{margin:7px 0 3px}
.geo-finding>span,.geo-coverage,.geo-finding small{color:var(--muted);font-size:11px}
.geo-leader{display:flex;align-items:baseline;gap:5px 12px;flex-wrap:wrap;margin:1px 0}
.geo-leader strong{font-size:19px;color:#203b66}
.geo-leader b{font-size:17px;font-variant-numeric:tabular-nums}
.geo-no-rank,.geo-empty{font-size:12px;color:var(--muted)}
.geo-empty{padding:14px 22px;border-top:1px solid var(--line)}
.geo-band .ring-legend{--numeric-columns:5.5rem 6.2rem 8rem}
.geo-band .geo-speed{--numeric-columns:6.2rem 4.5rem 4.5rem 5.5rem}
.geo-band .ring-legend-row,.geo-band summary{min-height:24px;padding-block:3px}
.geo-static{cursor:default}.geo-static:hover{background:transparent}
.geo-band button .ring-label{color:#244e85}
@container geo-panel (max-width:780px){
  .geo-band{grid-template-columns:minmax(0,1fr) 92px;grid-template-areas:"info plot" "legend legend";gap:5px 12px}
  .geo-band .ring-legend{width:100%}
}
@container geo-panel (max-width:480px){
  .geo-panel>.panel-head{padding:12px}
  .geo-band{grid-template-columns:minmax(0,1fr) 72px;padding:10px 12px}
  .geo-band .ring-legend{--numeric-columns:3.75rem 4rem 6rem}
  .geo-band .geo-speed{--numeric-columns:4.3rem 2.7rem 2.7rem 3.8rem}
  .geo-band .ring-columns,.geo-band .ring-legend-row,.geo-band summary{column-gap:3px;padding-inline:1px;font-size:11px}
  .geo-band .ring-label{gap:3px}
  .geo-leader strong{font-size:16px}.geo-leader b{font-size:15px}
  .geo-band .ring-plot strong{font-size:15px}.geo-band .ring-plot .ring-center-money{font-size:10px}
}

/* Shop wallet */
.wallet-summary,.wallet-detail{overflow:hidden;margin-bottom:14px}
.wallet-totals{display:flex;align-items:center;gap:clamp(20px,4vw,68px);padding:16px 20px;border-bottom:1px solid var(--line)}
.wallet-totals>div{display:grid;gap:4px}.wallet-totals span,.wallet-columns,.wallet-totals small,.wallet-list-foot,.wallet-shop small{color:var(--muted);font-size:12px}
.wallet-totals strong,.wallet-shop b,.wallet-table td:nth-child(3),.wallet-fields dd{font-variant-numeric:tabular-nums}
.wallet-totals strong{font-size:clamp(22px,2vw,29px);line-height:1.22;letter-spacing:-.03em}.wallet-totals>div:first-child strong{color:#203b66}
.wallet-totals small{margin-left:auto}.wallet-shop-grid{display:grid;grid-template-columns:minmax(150px,1.25fr) minmax(110px,1fr) minmax(110px,1fr) minmax(140px,1fr);align-items:center;text-align:right;column-gap:18px;padding:9px 20px}
.wallet-shop-grid>:first-child{text-align:left}.wallet-columns{background:#f8fafc;border-bottom:1px solid var(--line)}
.wallet-shop{width:100%;min-height:43px;border:0;border-bottom:1px solid var(--line);background:white;color:#253952}.wallet-shop:last-child{border-bottom:0}
.wallet-shop>strong{overflow-wrap:anywhere}.wallet-shop strong small,.wallet-error{display:block}.wallet-shop b{font-size:16px}.wallet-shop:hover{background:#f7faff}
.wallet-shop[aria-pressed=true]{background:#eef4ff;box-shadow:inset 3px 0 #2563eb}.wallet-shop[aria-pressed=true]>strong{color:#205cda}.wallet-shop:focus-visible{outline-offset:-3px}
.wallet-detail-head,.wallet-toolbar,.wallet-list-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px}
.wallet-detail-head{padding-bottom:3px;min-height:43px}.wallet-detail-head h2{margin:0;font-size:17px}
.wallet-tabs,.wallet-dates,.wallet-ranges,.wallet-list-foot>div{display:flex;align-items:center;gap:6px}
.wallet-toolbar{flex-wrap:wrap;padding-top:7px;padding-bottom:10px}
.wallet-tabs{gap:3px;background:#f1f4f8;border-radius:6px;padding:3px}
.wallet-tabs button{border:0;padding:6px 10px;background:transparent;color:#526278;border-radius:4px}.wallet-tabs button[aria-pressed=true]{background:white;color:#205cda;box-shadow:0 1px 4px #1f32451c;font-weight:600}
.wallet-dates{color:var(--muted);font-size:12px;flex-wrap:wrap}.wallet-dates input{border:1px solid #d6dce5;padding:5px 6px;border-radius:5px;min-width:0;background:#fff;color:#354960}
.wallet-ranges{margin-right:4px;gap:8px}.wallet-ranges button[aria-pressed=true]{text-decoration:underline;text-underline-offset:3px}
.wallet-table-wrap{width:100%;overflow:auto}.wallet-table{width:100%;min-width:510px;font-variant-numeric:tabular-nums;border-collapse:collapse}
.wallet-table th,.wallet-table td{padding:8px 16px;line-height:1.4;text-align:left}.wallet-table th{font-size:12px}.wallet-table td{font-size:13px}
.wallet-table th:nth-child(3),.wallet-table td:nth-child(3),.wallet-table th:nth-child(4),.wallet-table td:nth-child(4),.wallet-table td:last-child{text-align:right}
.wallet-table td:nth-child(3){font-weight:650}.wallet-income{color:#187246}.wallet-empty{padding:25px;text-align:center;color:var(--muted);border-top:1px solid var(--line)}
.wallet-list-foot{min-height:39px;padding-block:8px}.wallet-list-foot .btn,.wallet-detail-head .btn{min-height:28px;padding:4px 10px;font-size:12px}
.wallet-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:0;padding:14px 20px;border-top:1px solid var(--line)}
.wallet-fields dt{font-size:12px;color:var(--muted);margin-bottom:4px}.wallet-fields dd{margin:0;font-size:14px;font-weight:550;overflow-wrap:anywhere}
.wallet-dialog-body{padding:12px 20px 20px;max-width:580px}.wallet-dialog-body .wallet-fields{padding:0 0 12px;border:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.wallet-dialog-body p[role=alert],.wallet-error{color:#9b440e}.wallet-bank-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wallet-bank-form input,.wallet-bank-form select{width:100%;min-width:0}
.wallet-modal-shop{margin-top:0;color:#203b66;font-weight:600}.wallet-dialog-body .actions{justify-content:flex-end}
@media(max-width:720px){.wallet-shop-grid{grid-template-columns:minmax(0,1.25fr) minmax(80px,1fr) minmax(80px,1fr);gap:6px;padding:9px 12px}.wallet-shop-grid>:last-child{display:none}.wallet-shop b{font-size:14px}.wallet-totals{padding:13px 12px;flex-wrap:wrap;gap:8px 20px}.wallet-totals small:not(:empty){flex-basis:100%}.wallet-totals small:empty{display:none}.wallet-toolbar,.wallet-detail-head,.wallet-list-foot{padding-inline:12px}.wallet-table td,.wallet-table th{padding-inline:9px}.wallet-table{min-width:435px}.wallet-dates{gap:4px}.wallet-bank-form{grid-template-columns:1fr}.wallet-dates input{max-width:120px}.wallet-fields{padding-inline:12px}}

.compass-toolbar,.compass-tabs,.compass-heading,.compass-pager{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.compass-toolbar{padding:14px 18px;border-bottom:1px solid var(--line)}
.compass-toolbar label,.compass-heading label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:13px}
.compass-toolbar select,.compass-toolbar input,.compass-heading select{max-width:100%;min-width:0}
.compass-tabs{padding:0 18px;gap:20px;border-bottom:1px solid var(--line)}
.compass-tabs button{padding:12px 2px 10px;background:transparent;color:#475569;border:0;border-radius:0;border-bottom:2px solid transparent;font:inherit;white-space:nowrap}
.compass-tabs button.active{border-bottom-color:#2563eb;color:#1d4ed8;font-weight:650}
.compass-heading{padding:16px 18px 9px;justify-content:space-between}.compass-heading h2{font-size:15px;margin:0}
.compass-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0;padding:5px 18px 17px}.compass-stats + .compass-heading{border-top:1px solid var(--line)}
.compass-stats dt,.compass-profile small{font-size:12px;color:var(--muted)}.compass-stats dd{margin:5px 0 0;font-size:clamp(17px,1.5vw,24px);font-weight:650;font-variant-numeric:tabular-nums}
.compass-table th,.compass-table td{padding:9px 14px;text-align:right;font-variant-numeric:tabular-nums}.compass-table th:first-child,.compass-table td:first-child{text-align:left}.compass-name{max-width:34em;text-align:left}
.compass-pager{justify-content:flex-end;padding:9px 14px;font-size:12px;color:var(--muted)}.compass-empty,.compass-error{margin:0;padding:22px 18px;font-size:13px;color:var(--muted)}.compass-error{color:#924309}
.compass-profiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px 20px;padding:0 18px 16px;align-items:start}.compass-profile{min-width:0;border-top:1px solid var(--line)}
.compass-profile summary{padding:10px 0;cursor:pointer;font-weight:600}.compass-profile small{margin-left:3px;font-weight:400}.compass-profile dl{margin:0;max-height:225px;overflow:auto}.compass-profile dl div{display:flex;justify-content:space-between;gap:8px;padding:4px 2px}.compass-profile dd{margin:0;font-variant-numeric:tabular-nums}
@media(max-width:760px){
  .analysis-list tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  .analysis-status{grid-column:1}.analysis-detail,.analysis-empty td:last-child{grid-column:2}
  .compass-toolbar,.compass-heading{padding:12px}.compass-tabs{padding:0 8px;gap:0;justify-content:space-between}.compass-tabs button{font-size:12px;padding:11px 3px}
  .compass-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:3px 12px 14px;gap:12px}
  .compass-heading label,.compass-heading select{max-width:100%}.compass-name{min-width:9em}.compass-table th{white-space:nowrap}.compass-profiles{padding:0 12px 12px}
}

.compass-ranges{display:inline-flex;flex-wrap:wrap;gap:2px;padding:2px;background:#f0f3f7;border-radius:6px}
.compass-ranges button{padding:7px 10px;font:inherit;font-size:13px;color:#475569;border:0;border-radius:4px;background:transparent}
.compass-ranges button[aria-pressed="true"]{background:#fff;color:#205cda;font-weight:600;box-shadow:0 1px 3px #182f4e18}
.compass-interval,.compass-count-note{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.compass-custom{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;width:100%}.compass-custom .compass-error{padding:0}
.compass-count-note{margin:0;padding:10px 18px 0}.compass-partial{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;padding:9px 18px;color:#924309;font-size:13px}.compass-partial summary{cursor:pointer}.compass-partial ul{max-height:130px;overflow:auto}

/* Audience: a quick reading of the customer mix, then six comparable charts. */
.audience-heading{padding:23px 24px 19px;gap:16px}
.audience-heading h2{font-size:19px;letter-spacing:-.02em}
.audience-heading p{margin-top:6px;color:var(--muted);font-size:12px}
.audience-controls{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.audience-view-switch{display:flex;gap:2px;background:#f0f3f8;border:1px solid #e8ecf3;border-radius:8px;padding:3px}
.audience-view-switch button{background:none;border:0;border-radius:5px;font-size:12px;padding:5px 12px;min-height:31px;color:#637084}
.audience-view-switch button[aria-pressed="true"]{background:#fff;color:#205cda;font-weight:600;box-shadow:0 1px 4px #20304b12}
.audience-dashboard{padding:0 24px 21px}
.audience-highlights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e1e9f6;border-radius:10px;background:#f5f8fe;margin-bottom:20px;padding:20px 0}
.audience-highlight{padding:0 22px;border-right:1px solid #e0e7f2;display:flex;align-items:flex-start;flex-direction:column;min-width:0;gap:7px}
.audience-highlight:last-child{border-right:0}
.audience-highlight>span{font-size:12px;color:#62738c}
.audience-highlight>strong{font-size:22px;line-height:1.35;font-weight:650;color:#243c62;letter-spacing:-.025em;overflow-wrap:anywhere}
.audience-highlight>small{font-size:12px;color:#596e8b;font-variant-numeric:tabular-nums}
.audience-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.audience-card{--audience-color:#4476ec;--audience-soft:#8eaff7;display:flex;flex-direction:column;min-width:0;min-height:300px;padding:20px 21px 0;background:#fff;border:1px solid #e5eaf2;border-radius:11px;box-shadow:0 3px 12px #24364e04}
.audience-card.tone-violet{--audience-color:#8773dc;--audience-soft:#b4a5ed}
.audience-card.tone-teal{--audience-color:#2d9e97;--audience-soft:#83c8bd}
.audience-card.tone-amber{--audience-color:#cb9242;--audience-soft:#e4bb7d}
.audience-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:20px}
.audience-card-head h3{font-size:15px;font-weight:600;letter-spacing:-.015em}
.audience-card-head p{font-size:11px;color:#7b8798;margin-top:5px}
.audience-card-meta{font-size:11px;color:#6a788b;padding:3px 7px;background:#f5f7fa;border-radius:5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.audience-coverage{font-size:11px!important;color:#916424!important;display:block;margin:0 0 8px}
.audience-card-insight{font-size:11px;line-height:1.6;color:#5e6f87;border-top:1px solid #edf0f5;padding:11px 0 12px;margin-top:18px;overflow-wrap:anywhere}
.audience-bars{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:15px;flex:1;max-height:300px;overflow:auto;scrollbar-width:thin}
.audience-bars-spacious{gap:26px;padding-top:9px}
.audience-row-label{display:flex;gap:10px;align-items:baseline;font-size:12px;line-height:1.5;margin-bottom:8px}
.audience-row-label>span:not(.audience-row-values){overflow-wrap:anywhere}
.audience-row-values{display:flex;align-items:baseline;gap:12px;white-space:nowrap;margin-left:auto;font-variant-numeric:tabular-nums}
.audience-row-values strong{font-size:13px;color:#314056;font-weight:600}
.audience-row-values small{font-size:11px;color:#7b8798;min-width:32px;text-align:right}
.audience-bar{display:block;width:100%;height:7px;overflow:visible}
.audience-track{fill:#f0f3f8}.audience-fill{fill:var(--audience-color)}.audience-fill.secondary{fill:var(--audience-soft)}
.audience-bar-row:hover .audience-fill{fill:var(--audience-color)}
.audience-rank{font-size:10px;color:#8b99ac;font-variant-numeric:tabular-nums;min-width:17px}
.audience-region .audience-bars{gap:8px}.audience-region-row{display:grid;grid-template-columns:17px minmax(48px,.8fr) minmax(24px,1fr) auto;align-items:center;gap:7px;min-height:22px}.audience-region-label{font-size:12px;overflow-wrap:anywhere}.audience-region .audience-bar{height:6px}.audience-region .audience-row-values{gap:7px}.audience-region .audience-row-values small{min-width:26px}
.audience-gender{display:flex;gap:18px;align-items:center;justify-content:center;flex:1;padding:2px 0}
.audience-donut{position:relative;width:155px;max-width:51%;flex-shrink:0;aspect-ratio:1}
.audience-donut svg{width:100%;height:100%;display:block}
.audience-ring-track,.audience-slice{fill:none;stroke-width:18}.audience-ring-track{stroke:#f0f3f8}
.audience-slice.slice-0{stroke:#4778ef}.audience-slice.slice-1{stroke:#b5c8f8}.audience-slice.slice-2{stroke:#8b77d9}.audience-slice.slice-3{stroke:#3aa399}.audience-slice.slice-4{stroke:#ca9447}.audience-slice.slice-5{stroke:#8492a5}
.audience-donut>div{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.audience-donut strong{font-size:31px;color:#273c5b;font-weight:650;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.audience-donut span{font-size:10px;color:#7b8798}
.audience-legend{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:20px;min-width:80px}
.audience-legend li{display:grid;grid-template-columns:auto 1fr;gap:4px 6px;font-variant-numeric:tabular-nums}
.audience-legend-label{grid-column:1/-1;display:flex;align-items:center;gap:7px;font-size:12px;margin-bottom:2px}
.audience-legend strong{font-size:18px;font-weight:600;color:#314056;letter-spacing:-.03em}
.audience-legend small{font-size:11px;align-self:end;white-space:nowrap}
.audience-dot{width:8px;height:8px;border-radius:50%;background:#4778ef;flex-shrink:0}.audience-dot.dot-1{background:#b5c8f8}.audience-dot.dot-2{background:#8b77d9}.audience-dot.dot-3{background:#3aa399}.audience-dot.dot-4{background:#ca9447}.audience-dot.dot-5{background:#8492a5}
.audience-notes{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#7a8698;line-height:1.7;margin-top:17px}
.audience-detail{border:1px solid #e5eaf2;border-radius:9px}.audience-detail td:first-child{min-width:100px}.audience-detail td:nth-child(n+3),.audience-detail th:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}.audience-detail td{padding:11px 18px}

/* Compact overview: selected-period business canvas + current account/task rail. */
#app[data-view="overview"]{--dash-ink:#202d43;--dash-muted:#65738a;--dash-line:#e7ebf1;--dash-blue:#315fca}
#app[data-view="overview"] .main{max-width:1660px;padding:30px 36px 24px}
#app[data-view="overview"] .workspace{background:#f5f7fb}
#app[data-view="overview"] .page-head{align-items:center;margin-bottom:26px}
#app[data-view="overview"] .page-head h1{font-size:28px;letter-spacing:-.025em;color:var(--dash-ink);font-weight:650}
#app[data-view="overview"] .page-head .btn{border-radius:8px;min-height:36px}
#app[data-view="overview"] .footer{margin-top:24px;font-size:11px;color:var(--dash-muted)}
#app[data-view="overview"] ::selection{background:#dbe7ff;color:#17376f}
#app[data-view="overview"] :is(button,summary,select,input):focus-visible{outline:2px solid #315fca;outline-offset:3px}
#app[data-view="overview"] input{caret-color:#315fca}
#app[data-view="overview"] .table-wrap{scrollbar-width:thin;scrollbar-color:#bac6d9 #f6f8fb}
.dash-toolbar{display:flex;align-items:center;gap:18px;margin-bottom:20px;flex-wrap:wrap}
.dash-store select{min-height:38px;max-width:240px;border:1px solid #dce2ec;border-radius:8px;background:#fff;padding:0 34px 0 13px;font-size:13px;color:var(--dash-ink)}
.dash-ranges{display:flex;gap:4px;background:#eaf0f7;padding:4px;border-radius:9px}
.dash-ranges button{min-height:30px;padding:5px 14px;font-size:12px;border:0;background:transparent;color:#566782;border-radius:6px;white-space:nowrap}
.dash-ranges button[aria-pressed="true"]{background:#fff;color:#244ea6;font-weight:600}
.dash-ranges button:hover{color:#244ea6;background:#f7faff}
.dash-date-label{font-size:12px;color:var(--dash-muted);font-variant-numeric:tabular-nums}
.dash-filter-options{position:relative;margin-left:auto;z-index:5}
.dash-filter-options>summary{cursor:pointer;list-style:none;font-size:12px;color:#465b7b;padding:9px 12px;border:1px solid #dce2ec;border-radius:8px;background:#fff}
.dash-filter-options>summary::-webkit-details-marker{display:none}
.dash-filter-options>summary:after{content:'+';margin-left:8px;font-size:14px}
.dash-filter-options[open]>summary:after{content:'−'}
.dash-filter-popover{position:absolute;right:0;top:calc(100% + 10px);background:#fff;box-shadow:0 8px 32px #17315124;border-radius:12px;width:350px;padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dash-filter-popover label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#465b7b;min-width:0}
.dash-filter-popover input{width:100%;min-width:0;height:36px;font-size:12px}
.dash-wide{grid-column:1/-1}
.dash-mode{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#465b7b;gap:10px}
.dash-toolbar .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dash-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:22px;margin-bottom:22px;align-items:stretch}
.dash-business,.dash-rail,.dash-shops,.dash-products,.dash-queue{min-width:0;background:#fff;border:1px solid var(--dash-line);border-radius:14px}
.dash-business{overflow:hidden}
.dash-metrics{display:grid;grid-template-columns:1fr 1.45fr .82fr 1.3fr .95fr;margin:0;padding:0}
.dash-metric{min-width:0;position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;border:0;border-radius:0;background:#fff;padding:25px 20px 23px;color:var(--dash-ink)}
.dash-metric:after{content:'';position:absolute;bottom:0;left:20px;right:20px;height:2px;background:transparent}
.dash-metric.selected{background:#f5f8ff}
.dash-metric.selected:after{background:#315fca}
.dash-metric:hover{background:#f8faff}
.dash-metric>span{font-size:12px;color:#586b87;white-space:nowrap}
.dash-metric>strong{font-size:clamp(24px,1.9vw,33px);font-weight:650;letter-spacing:-.035em;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dash-metric.selected>strong{color:#315fca}
.dash-metric>small{font-size:11px;color:#6a7890;line-height:1.5}
.dash-metric.unknown>strong{font-size:23px;color:#986425;letter-spacing:0}
.dash-scope{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 24px 0;font-size:11px;color:#69778b;flex-wrap:wrap}
.dash-warning{color:#916126!important}
.dash-trend{padding:22px 24px 18px}
.dash-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.dash-chart-heading h2,.dash-section-heading h2{font-size:15px;font-weight:600;letter-spacing:-.01em;color:var(--dash-ink)}
.dash-chart-unit,.dash-chart-heading>span,.dash-section-heading>span{font-size:11px;color:var(--dash-muted)}
.dash-chart-unit{display:flex;gap:12px;align-items:center}.dash-chart-unit .link-btn{font-size:11px}.dash-products td:nth-child(2){white-space:normal;overflow-wrap:anywhere}
.dash-chart-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#bdc9dc transparent}
.home-trend-chart{width:100%;display:block;height:auto;min-height:220px}
.home-trend-chart text{font:12px -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC',sans-serif;fill:#65738a;font-variant-numeric:tabular-nums}
.home-chart-grid{stroke:#e7edf5;stroke-width:1;stroke-dasharray:3 4}
.home-chart-line{stroke:#4878df;stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.home-chart-area{fill:#f1f5fd}
.home-chart-point{stroke:#4878df;stroke-width:1.8;fill:#fff}
.dash-chart-empty{height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:#65738a}
.dash-chart-empty strong{font-size:15px;font-weight:500;color:#435773}.dash-chart-empty span{font-size:12px}
.dash-chart-bottom{position:relative;display:flex;gap:12px;justify-content:space-between;align-items:flex-start;font-size:11px;color:var(--dash-muted);margin-top:12px;flex-wrap:wrap}
.dash-daily-data{margin-left:auto}
.dash-daily-data>summary{cursor:pointer;color:#48638c;list-style:none;padding:2px 0;text-decoration:underline;text-underline-offset:4px}
.dash-daily-data>summary::-webkit-details-marker{display:none}
.dash-daily-data[open]{flex-basis:100%}.dash-daily-data[open]>summary{text-align:right;margin-bottom:12px}
.dash-daily-data .table-wrap{max-height:240px}.dash-daily-data td,.dash-daily-data th{padding:8px 12px}
.dash-rail{display:flex;flex-direction:column}
.dash-funds{padding:22px 22px 0}
.dash-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.dash-section-heading .link-btn{display:inline-flex;align-items:center;gap:3px;font-size:12px}
.dash-cash{display:flex;flex-direction:column;gap:12px;margin:23px 0 16px}
.dash-cash>span{font-size:12px;color:var(--dash-muted)}
.dash-cash>strong{font-size:30px;font-variant-numeric:tabular-nums;line-height:1.2;letter-spacing:-.03em;font-weight:650;color:#243b60;overflow-wrap:anywhere}
.dash-pending{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px;color:var(--dash-muted)}
.dash-pending strong{font-size:17px;font-weight:600;letter-spacing:-.015em;color:#3c526e;font-variant-numeric:tabular-nums}
.dash-fund-note{margin-top:12px;font-size:11px;line-height:1.6}
.dash-rail-link{margin-top:18px;width:100%;padding:12px 0;display:flex;align-items:center;justify-content:space-between;color:#426393;font-size:12px;background:transparent;border:0;border-top:1px solid var(--dash-line);border-radius:0;text-align:left}
.dash-rail-link:hover{color:#315fca}
.dash-tasks{padding:19px 22px 18px;border-top:1px solid var(--dash-line)}
.dash-task-list{margin-top:12px;display:flex;flex-direction:column;gap:2px}
.dash-task{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:7px 0;border:0;background:transparent;text-align:left;color:#506078;font-size:12px;border-radius:5px}
.dash-task>strong{margin-left:auto;color:#2a3d59;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.dash-task>svg{color:#8492a7}.dash-task:hover,.dash-task.selected{background:#f2f6fc;color:#315fca}.dash-task:hover strong,.dash-task.selected strong{color:#315fca}
.dash-task.dash-ledger{color:#916126}.dash-task.dash-ledger strong{color:#916126}
.dash-task-scope{font-size:10px;color:#6c788b;margin-top:10px;line-height:1.6}
.dash-bottom-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.6fr);gap:22px;margin-bottom:22px;align-items:start}
.dash-shops{padding:22px 24px}
.dash-shops ol{list-style:none;padding:0;margin:12px 0 0}
.dash-shops li{padding:18px 0;border-bottom:1px solid var(--dash-line)}.dash-shops li:last-child{padding-bottom:0;border-bottom:0}
.dash-shop-rank{color:#8797ae;font-size:12px;min-width:20px;font-variant-numeric:tabular-nums;font-weight:600}
.dash-shop-rank.top{color:#0f766e;font-weight:700}
.dash-shop-top{display:flex;align-items:baseline;justify-content:space-between;gap:14px}
.dash-shop-name{background:none;border:0;padding:0;color:#3c536f;font-size:13px;text-align:left;line-height:1.6;white-space:normal;overflow-wrap:anywhere;font-weight:500}
.dash-shop-name:hover{color:#315fca;text-decoration:underline;text-underline-offset:4px}
.dash-shop-top>strong{font-size:16px;color:#253d5a;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.dash-shop-graph{display:flex;gap:16px;align-items:center;margin:12px 0 4px}.dash-shop-graph svg{width:100%;height:7px;min-width:0}.dash-shop-graph span{min-width:44px;text-align:right;font-size:12px;color:#536b8b;font-variant-numeric:tabular-nums}
.dash-track{fill:#edf2f8}.dash-bar{fill:#678cdb}.dash-bar.secondary{fill:#a8bfeb}
.dash-shops li>small{font-size:11px;color:#6a7890}
.dash-products{overflow:hidden}.dash-products>.dash-section-heading{padding:22px 24px 18px}
.dash-products table{width:100%;table-layout:fixed;min-width:0}
.dash-products th{background:#fafbfd;font-size:11px;color:#68778d;font-weight:400;padding:10px 20px;border-bottom:1px solid var(--dash-line)}
.dash-products th:nth-child(2){width:74px}.dash-products th:nth-child(3){width:143px}
.dash-products td{padding:13px 20px;border-bottom:1px solid #edf1f6;font-size:13px}.dash-products tr:last-child td{border-bottom:0}
.dash-products td.money{font-variant-numeric:tabular-nums;color:#3d526e}.dash-products td.money strong{font-weight:600;color:#294260}
.dash-product{display:flex;align-items:center;gap:12px;background:none;border:0;padding:0;text-align:left;min-width:0;width:100%;color:#293f5d}
.dash-product:hover .dash-product-copy>strong{color:#315fca}
.dash-rank{color:#8797ae;font-size:12px;min-width:12px;font-variant-numeric:tabular-nums}
.dash-product img{width:40px;height:40px;border-radius:6px;object-fit:contain;background:#f6f8fb;flex-shrink:0}
.dash-product-copy{min-width:0;display:block}.dash-product-copy>strong{font-weight:500;font-size:13px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere}
.dash-product-copy>small{font-size:11px;color:#6c7d96;line-height:1.5;margin-top:3px;white-space:normal;display:block}
.dash-disclosures{border:1px solid var(--dash-line);border-radius:12px;background:#fff;overflow:hidden}
.dash-disclosure{border-bottom:1px solid var(--dash-line)}.dash-disclosure:last-child{border-bottom:0}
.dash-disclosure>summary{cursor:pointer;display:flex;align-items:center;gap:16px;padding:16px 22px;list-style:none;font-size:12px;color:#3f5473;min-height:50px}
.dash-disclosure>summary::-webkit-details-marker{display:none}
.dash-disclosure>summary>span{margin-left:auto;color:#738197;font-size:11px;text-align:right}
.dash-disclosure>summary:after{content:'+';font-size:16px;color:#72839e}
.dash-disclosure[open]>summary{background:#f8fafd}.dash-disclosure[open]>summary:after{content:'−'}
.dash-disclosure>.panel{border:0;border-radius:0;margin:0}
.dash-extra-content{padding:0 24px 24px}.dash-extra-content h3{font-size:13px;color:#3b516e;font-weight:600;margin:24px 0 16px}.dash-extra-content h3 small{margin-left:8px;font-size:11px;font-weight:400;color:#71819a}.dash-extra-content>p{font-size:11px;color:#6a7890;line-height:1.7;margin-top:12px}
.dash-extra-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 24px;margin:0}.dash-extra-grid>div{min-width:0}.dash-extra-grid dt{font-size:12px;color:#62748f;margin-bottom:8px}.dash-extra-grid dd{font-size:18px;font-weight:500;color:#2e4563;margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dash-explain{padding:16px 22px;font-size:12px;color:#607087;line-height:1.8}.dash-explain .panel-body{padding:0}.dash-explain li{margin:8px 0}.dash-explain .scope-line{font-size:11px}
.dash-queue{padding:20px 24px 0;margin-bottom:22px}.dash-queue>.dash-section-heading{margin-bottom:18px}.dash-queue>.dash-section-heading>div{display:flex;align-items:baseline;gap:12px}.dash-queue>.dash-section-heading span{font-size:11px;color:#6e7b90}.dash-queue-message{padding:20px 0;font-size:13px;color:#5d6e87}.dash-queue-product{max-width:380px;min-width:170px;white-space:normal}
.dash-queue-pages{display:flex;justify-content:flex-end;gap:12px;align-items:center;padding:14px 0;font-size:11px;color:#687992}.dash-queue-pages>span:first-child{margin-right:auto}
.dash-empty{padding:24px 0;color:#6a7890;font-size:13px}
@media(min-width:1800px){.dash-layout{grid-template-columns:minmax(0,1fr) 320px}.dash-metric{padding:30px 24px}.dash-metric>strong{font-size:35px}.dash-trend{padding-top:25px}.home-trend-chart{min-height:260px}}
@media(max-width:1250px){#app[data-view="overview"] .main{padding:26px 24px}.dash-layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.dash-metric{padding:22px 14px}.dash-metric>strong{font-size:24px}.dash-metric.unknown>strong{font-size:21px}.dash-metric>small{font-size:10px}.dash-cash>strong{font-size:26px}.dash-funds,.dash-tasks{padding-left:18px;padding-right:18px}.dash-trend{padding-left:18px;padding-right:18px}.dash-bottom-grid{grid-template-columns:minmax(250px,.8fr) minmax(0,1.4fr);gap:18px}.dash-products td,.dash-products th{padding-left:16px;padding-right:16px}.dash-toolbar{gap:12px}.dash-date-label{display:none}.dash-store select{max-width:205px}}
@media(max-width:1250px){.dash-layout{grid-template-columns:1fr}.dash-rail{display:grid;grid-template-columns:1fr 1fr}.dash-tasks{border-top:0;border-left:1px solid var(--dash-line)}.dash-funds{padding-bottom:8px}.dash-bottom-grid{grid-template-columns:minmax(240px,.8fr) minmax(0,1.3fr)}.dash-metric>strong{font-size:27px}.dash-metric>small{font-size:11px}.dash-extra-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-trend-chart{min-height:210px}}
@media(max-width:820px){.dash-bottom-grid{grid-template-columns:1fr}.dash-shops ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.dash-shops li{border:0;padding-bottom:4px}.dash-toolbar{gap:10px}.dash-ranges button{padding:5px 10px}.dash-filter-options{margin-left:auto}.dash-metric>strong{font-size:24px}}
@media(max-width:640px){#app[data-view="overview"] .main{padding:22px 16px}#app[data-view="overview"] .page-head{margin-bottom:22px;gap:12px}#app[data-view="overview"] .page-head h1{font-size:24px}#app[data-view="overview"] .page-head .actions{gap:6px}#app[data-view="overview"] .page-head .btn{font-size:11px;padding:7px 9px;min-height:32px}.dash-toolbar{margin-bottom:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.dash-store select{max-width:100%;width:100%}.dash-ranges{grid-row:2;grid-column:1/-1;width:max-content;max-width:100%}.dash-ranges button{padding:5px 15px;min-height:32px}.dash-filter-options{grid-row:1;grid-column:2}.dash-filter-popover{width:min(350px,calc(100vw - 32px));padding:18px}.dash-layout{gap:16px;margin-bottom:16px}.dash-metrics{grid-template-columns:1fr 1fr}.dash-metric{padding:20px 16px;gap:10px;border-bottom:1px solid #edf1f7}.dash-metric>strong{font-size:clamp(18px,5.3vw,25px)}.dash-metric>small{font-size:10px}.dash-metric.unknown>strong{font-size:22px}.dash-scope{padding:12px 16px 0;font-size:10px}.dash-trend{padding:20px 12px 14px}.dash-chart-heading{padding:0 4px}.dash-chart-heading h2{font-size:14px}.home-trend-chart{min-width:560px;min-height:0}.home-trend-chart text{font-size:16px}.dash-chart-bottom{font-size:10px;padding:0 4px}.dash-rail{grid-template-columns:1fr}.dash-funds{padding:20px 20px 0}.dash-cash{margin:18px 0 14px}.dash-cash>strong{font-size:30px}.dash-tasks{border-left:0;border-top:1px solid var(--dash-line);padding:18px 20px}.dash-task-list{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.dash-task.dash-ledger{grid-column:1/-1}.dash-task{font-size:12px;min-height:38px}.dash-bottom-grid{gap:16px;margin-bottom:16px}.dash-shops{padding:20px}.dash-shops ol{display:block}.dash-shops li{border-bottom:1px solid var(--dash-line);padding:16px 0}.dash-shop-top>strong{font-size:15px}.dash-products>.dash-section-heading{padding:20px 16px 14px}.dash-products th,.dash-products td{padding:11px 12px}.dash-products th:nth-child(2){width:72px}.dash-products th:nth-child(3){width:112px}.dash-product{gap:8px}.dash-product img{display:none}.dash-rank{min-width:9px}.dash-product-copy>strong{font-size:12px}.dash-product-copy>small{font-size:10px}.dash-products td.money{font-size:12px}.dash-disclosure>summary{padding:15px 16px;font-size:12px;gap:12px}.dash-disclosure>summary>span{font-size:10px}.dash-extra-content{padding:0 18px 22px}.dash-extra-grid{grid-template-columns:1fr 1fr;gap:20px}.dash-extra-grid dd{font-size:17px}.dash-queue{padding:18px 16px 0}.dash-queue-pages{gap:8px;flex-wrap:wrap}.dash-queue-pages>span:first-child{flex-basis:100%}.dash-explain{padding:14px 18px}}
@media(prefers-reduced-motion:no-preference){.dash-metric,.dash-task,.dash-ranges button{transition:background-color .15s ease-out,color .15s ease-out}}

@media(min-width:1600px){.audience-card{min-height:310px;padding:23px 25px 0}.audience-gender{gap:32px}.audience-donut{width:176px}.audience-bars-spacious{gap:30px}}
@media(max-width:1180px){.audience-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.audience-highlight{padding:0 15px}.audience-highlight>strong{font-size:20px}.audience-controls{gap:12px}.audience-card{min-height:295px}}
@media(max-width:760px){.audience-heading{padding:18px 16px}.audience-dashboard{padding:0 16px 17px}.audience-highlights{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 0;padding:18px 0}.audience-highlight:nth-child(2){border:0}.audience-grid{grid-template-columns:1fr;gap:14px}.audience-card{min-height:270px}.audience-controls{width:100%;justify-content:space-between}.audience-heading p{font-size:11px}.audience-card-head{margin-bottom:22px}.audience-gender{gap:35px}.audience-donut{width:155px}.audience-bars-spacious{gap:24px}}

/* Merchant operations share the catalog and homepage navigation. */
.merch-panel{overflow:hidden}
.merch-toolbar,.merch-section-head,.merch-more,.merch-modal-head,.merch-modal-footer,.merch-apply{display:flex;gap:16px;align-items:center;justify-content:space-between}
.merch-toolbar{padding:12px 18px;background:#f9fbfd;border-bottom:1px solid var(--line);flex-wrap:wrap}
.merch-tabs,.merch-controls,.merch-row-actions,.merch-modal-footer>div,.merch-category-list{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.merch-tabs{gap:2px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:3px}
.merch-tabs button,.merch-tool-nav button{cursor:pointer;border:0;color:#4c5d73;padding:7px 12px;border-radius:5px;background:transparent;font:inherit}
.merch-tabs button.active,.merch-tool-nav button.active{background:#eaf1ff;color:#184fc2;font-weight:650}
.merch-controls label{display:flex;align-items:center;gap:7px;color:#526277}
.merch-panel input,.merch-panel select,.merch-field input,.merch-field select,.merch-field textarea{font:inherit;border:1px solid #cbd5e1;border-radius:6px;padding:7px 9px;max-width:100%;color:#24354d;background:white}
.merch-section-head{padding:18px 20px 12px;flex-wrap:wrap}
.merch-section-head h2,.merch-tools h2,.merch-modal-head h2,.merch-section-head h3{margin:0;font-size:17px}
.merch-section-head small,.merch-identity small,.merch-modal-head small,.merch-more span,.merch-banner-item small{display:block;color:#607086;font-size:12px}
.merch-section-head small{margin-top:3px}
.merch-row{display:flex;align-items:center;gap:14px;border-top:1px solid #edf0f5;padding:10px 20px;min-height:61px}
.merch-row:hover{background:#f8faff}
.merch-rank{font-size:16px;min-width:26px;text-align:center;color:#71819a;font-variant-numeric:tabular-nums}
.merch-product{min-width:0;display:flex;align-items:center;gap:12px;flex:1}
.merch-photo{width:44px;height:44px;flex:none;object-fit:cover;border-radius:6px;border:1px solid #e1e6eb}
.merch-placeholder{background:#f1f5fb;color:#8192a8;display:grid;place-items:center}
.merch-identity{min-width:0}.merch-identity strong{font-size:14px;display:block;overflow-wrap:anywhere}.merch-identity small{margin-top:2px;font-variant-numeric:tabular-nums}
.merch-status{padding:2px 8px;border-radius:4px;background:#f0f2f5;color:#526174;font-size:12px;white-space:nowrap}
.merch-status.shown{color:#116445;background:#e5f4eb}.merch-status.top{color:#204d9e;background:#e6efff}
.merch-row-actions{justify-content:flex-end;min-width:166px}.merch-row-actions .btn,.merch-row-actions select{font-size:13px;min-height:30px;padding:4px 9px}
.merch-more,.merch-apply{padding:12px 20px;border-top:1px solid var(--line);justify-content:flex-end}
.merch-tools{display:grid;grid-template-columns:minmax(135px,180px) minmax(0,1fr);min-height:264px}
.merch-tool-nav{padding:14px;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:stretch;gap:3px}
.merch-tool-nav button{text-align:left}.merch-tools section{padding:20px}
.merch-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin-top:14px}
.merch-tool{font:inherit;border:1px solid #dce4ef;border-radius:7px;background:#fff;color:#263951;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:11px 13px;cursor:pointer}
.merch-tool span{color:#6a81a2}.merch-tool:hover:not(:disabled),.merch-category-list [aria-pressed=true]{border-color:#8baeea;background:#f0f5ff}.merch-tool:disabled{color:#8794a4;cursor:default}
.merch-empty,.merch-pending{padding:25px;text-align:center;color:#64748b}.merch-pending{padding:8px;font-size:13px}
.merch-error{color:#9b3d1c}.merch-panel>.merch-error{padding:10px 18px;background:#fff6ed}
.merch-category-list,.merch-decor{padding:0 20px 15px}.merch-decor{display:flex;gap:12px;flex-wrap:wrap}.merch-cover{max-width:100%;width:auto;max-height:160px;border-radius:6px;object-fit:contain}.merch-banner-item{display:grid;gap:4px}.merch-apply{justify-content:flex-start;flex-wrap:wrap}
#merchant-editor{width:min(680px,94vw);max-height:86dvh;overscroll-behavior:contain}
.merch-modal-head,.merch-modal-footer{position:sticky;background:#fff;z-index:2;padding:14px 20px}
.merch-modal-head{top:0;border-bottom:1px solid var(--line)}.merch-modal-head small{margin-bottom:3px}
.merch-modal-footer{bottom:0;border-top:1px solid var(--line)}.merch-modal-footer a{font-size:12px}
.merch-modal-body{padding:16px 20px;overflow-wrap:anywhere}.merch-object{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
.merch-field{display:flex;flex-direction:column;gap:4px;min-width:0}.merch-field span{font-weight:600}.merch-field small{font-size:11px;color:#66768d}
.merch-structure,.merch-options{grid-column:1/-1;border:1px solid #dce4ef;border-radius:6px;padding:8px 10px}
.merch-options{margin-top:12px}.merch-options>div,.merch-structure .merch-object{padding-top:10px}
.merch-structure>.btn{margin-top:8px}.merch-structure summary,.merch-options summary,.merch-values summary{cursor:pointer;color:#31517b}
.merch-values{margin:0}.merch-values>div{display:grid;grid-template-columns:minmax(6em,34%) 1fr;gap:6px;padding:6px 0;border-bottom:1px solid #edf0f5}.merch-values dd{margin:0}.merch-values .merch-nested{display:block}.merch-nested .merch-values{padding-left:12px}
.merch-context,.merch-confirm{background:#f1f6ff;border-radius:6px;padding:10px 12px;margin:0 0 14px}
@media(max-width:760px){
 .merch-toolbar,.merch-section-head,.merch-row,.merch-modal-head,.merch-modal-footer{padding:10px 12px;gap:8px}
 .merch-row{flex-wrap:wrap}.merch-row-actions{width:100%;justify-content:flex-end}.merch-photo{width:36px;height:36px}
 .merch-tools{display:block}.merch-tool-nav{flex-direction:row;flex-wrap:wrap;border:0;border-bottom:1px solid var(--line);padding:8px}
 .merch-tools section{padding:12px}.merch-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .merch-object{grid-template-columns:minmax(0,1fr)}.merch-modal-body{padding:12px}.merch-tabs button{padding:6px 8px}
}
.merch-visibility{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:0 20px 12px}
.merch-visibility button{font:inherit;font-size:13px;color:#54647a;border:0;border-radius:5px;background:transparent;padding:5px 9px;cursor:pointer}
.merch-visibility button.active{color:#184fc2;background:#eaf1ff;font-weight:650}
.merch-visibility small{color:#68788d}
.merch-field input[readonly]{background:#f5f7fa;color:#57677d}
.merch-detail-summary{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.merch-detail-summary .merch-photo{width:60px;height:60px}
.merch-detail-summary small,.merch-modal-body td small{display:block;color:#65748a;font-size:12px;margin-top:3px}
.merch-modal-body .table-wrap table{min-width:0;width:100%}
.merch-share{text-align:center;padding:8px}
.merch-share img{max-width:min(200px,100%);height:auto}
.merch-share p{font-size:13px;overflow-wrap:anywhere}

/* Marketing workspace */
.coupon-panel {overflow:hidden}
.coupon-panel select,.coupon-query input,.coupon-target select {font:inherit;color:var(--text);background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:7px 9px;max-width:100%}
.coupon-section,.coupon-query,.coupon-record {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px}
.coupon-section .merch-visibility {padding:0}
.coupon-ticket {display:grid;grid-template-columns:140px minmax(0,1fr) minmax(95px,auto) auto;align-items:center;gap:20px;margin:0 18px 12px;border:1px solid #d7e2e8;border-radius:9px;overflow:hidden}
.coupon-face {align-self:stretch;min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#10605d;background:#ecf7f4;border-right:1px dashed #91bcb4;font-variant-numeric:tabular-nums}
.coupon-face strong {font-size:26px;font-weight:700;line-height:1.2}.coupon-face span {font-size:12px}
.coupon-identity {min-width:0;padding:10px 0;overflow-wrap:anywhere}.coupon-identity h3 {font-size:16px;margin:0 0 4px;color:#203652}
.coupon-identity small,.coupon-stock small,.coupon-record small,.coupon-empty small {display:block;color:#566a7e;font-size:12px}
.coupon-stock {white-space:nowrap;font-variant-numeric:tabular-nums}.coupon-stock strong {font-size:17px;color:#263f58}.coupon-stock strong span {font-size:12px;font-weight:500}
.coupon-actions,.coupon-footer {display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.coupon-actions {padding-right:14px}.coupon-actions .btn {font-size:13px;padding:5px 9px}
.coupon-query {justify-content:flex-start;flex-wrap:wrap;border-bottom:1px solid var(--line)}.coupon-query label {display:flex;align-items:center;gap:10px}.coupon-query input {width:270px}
.coupon-record {border-bottom:1px solid var(--line);overflow-wrap:anywhere}.coupon-error {margin:8px 18px 16px;color:#82341c}
.coupon-empty {display:grid;justify-items:center;align-content:center;gap:7px;min-height:170px;padding:20px;text-align:center;color:#34475a;background:linear-gradient(#fff,#f9fbfc)}
.coupon-glyph {display:grid;place-items:center;width:48px;height:32px;border-radius:5px;background:#e2f1ec;color:#286653;border:1px dashed #9cbbb2;margin-bottom:6px;font-weight:700}
#coupon-dialog {width:min(640px,calc(100% - 24px));max-height:88vh;padding:0;border:1px solid #cfdae4;border-radius:12px;box-shadow:0 16px 60px #10223c38;color:#25384c}
#coupon-dialog::backdrop {background:#1a2c4070}.coupon-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.coupon-form-grid [hidden] {display:none}.coupon-target {display:flex;align-items:center;gap:9px;margin-top:16px}
@media(max-width:760px){.coupon-ticket {grid-template-columns:96px minmax(0,1fr) auto;gap:10px;margin:0 10px 10px}.coupon-face {grid-row:1/3;height:100%}.coupon-actions {grid-column:2/4;justify-content:flex-start;padding:0 6px 8px 0}.coupon-stock {padding-right:8px}.coupon-identity {padding-bottom:0}.coupon-section,.coupon-query,.coupon-record {padding:10px}.coupon-query label {flex-wrap:wrap;max-width:100%}.coupon-query input {width:min(260px,100%)}.coupon-form-grid {gap:10px}.coupon-section {align-items:flex-start}.coupon-section>.btn {flex-shrink:0}}
@media(max-width:490px){.coupon-form-grid {grid-template-columns:minmax(0,1fr)}.coupon-face strong {font-size:22px}.coupon-ticket {column-gap:8px}.coupon-panel .merch-controls {justify-content:space-between;width:100%}}

.order-data-section {border-bottom:1px solid var(--line);padding:3px 0}
.order-data-section summary {padding:9px 0;font-weight:650;cursor:pointer;color:#294e77}
.order-data-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr));gap:10px 17px;padding:10px 13px;margin:0 0 8px;background:#f7f9fc;border-radius:6px}
.order-data-grid dt {font-size:12px;color:#586b80}.order-data-grid dd {margin:3px 0 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.order-data-grid img {width:52px;height:52px;object-fit:contain;border-radius:4px}

.order-region {min-width:7em;line-height:1.45}

/* Store diagnosis */
.dg-toolbar .panel-head,.dg-record .panel-head{padding:16px 20px;flex-wrap:wrap}
.dg-picks{display:flex;gap:8px;flex-wrap:wrap;padding:0 20px 16px}
.dg-pick{display:grid;gap:4px;align-content:center;min-width:150px;max-width:100%;padding:9px 13px;border:1px solid var(--line);border-radius:7px;background:white;text-align:left;color:inherit}
.dg-pick strong,.dg-pick small{overflow-wrap:anywhere}
.dg-pick:hover{border-color:#98afd6}
.dg-pick[aria-pressed=true]{color:#1c4fa5;background:#f0f5ff;border-color:#7e9fd7}
.dg-pick[aria-pressed=true] small{color:#47618b}
.dg-progress,.dg-assignment{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 18px;padding:12px 16px;border-radius:7px}
.dg-progress{margin:0 0 14px;background:#edf3ff;color:#284e87}
.dg-progress span{display:inline-block;margin-left:8px;font-size:12px}
.dg-assignment{margin:0 20px 14px;border:1px solid #e8d4a7;background:#fffaf0;color:#73501c}
.dg-assignment p,.dg-empty p{margin:4px 0 0;line-height:1.6;font-size:13px}
.dg-assignment select,.dg-record select{max-width:100%}
.dg-record .panel-head p{font-variant-numeric:tabular-nums}
.dg-check{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}
.dg-check input{margin:0;min-height:0}
.dg-failure{margin:0 20px 12px;color:#9b4319}
.dg-empty{padding:26px 20px;border-top:1px solid var(--line);color:var(--muted)}
.dg-empty strong{display:block;color:#34445b}
.dg-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 20px 17px}
.dg-group{border:1px solid var(--line);border-top:3px solid #9ca9ba;border-radius:7px;padding:12px 14px;min-width:0}
.dg-group.ok{border-top-color:#07c160}
.dg-group.attention{border-top-color:#fa9d3b}
.dg-group.danger{border-top-color:#fa5151}
.dg-group.missing{border-top-color:#b2b2b2}
.dg-group h3{font-size:12px;font-weight:500;color:var(--muted);margin:0 0 7px}
.dg-group>strong{font-size:16px;color:#273951}
.dg-group ul{list-style:none;padding:0;margin:10px 0 0}
.dg-group li{border-top:1px solid var(--line);padding:8px 0 0;margin-top:7px;overflow-wrap:anywhere;line-height:1.6;font-size:13px}
.dg-group li b{font-weight:550}.dg-group li small{display:block}
.dg-group li p{margin-top:3px;font-size:12px;color:var(--muted)}
.dg-measures{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;border-top:1px solid var(--line);padding:15px 20px}
.dg-measures h3{margin-bottom:9px}
.dg-measures table{width:100%;min-width:0}
.dg-measures td,.dg-measures th{padding:8px;text-align:right;min-width:0;font-variant-numeric:tabular-nums}
.dg-measures th:first-child{text-align:left}
.dg-measures tbody th{background:white;font-weight:500;color:#38465a}
.dg-metrics{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
.dg-metrics div{border-left:2px solid #e2e9f4;padding:4px 0 4px 10px}
.dg-metrics dt{font-size:12px;color:var(--muted)}.dg-metrics dd{margin:4px 0 0;font-weight:600;font-variant-numeric:tabular-nums}
.dg-downloads{display:flex;justify-content:flex-end;gap:16px;border-top:1px solid var(--line);padding:5px 20px}
@media(max-width:900px){.dg-measures{grid-template-columns:1fr}.dg-groups{gap:7px}.dg-group{padding:10px}}
@media(max-width:650px){.dg-toolbar .panel-head,.dg-record .panel-head,.dg-measures{padding:12px}.dg-picks,.dg-groups{padding:0 12px 12px}.dg-pick{min-width:0;flex:1 1 122px}.dg-groups{grid-template-columns:1fr}.dg-assignment{margin:0 12px 12px}.dg-downloads{padding:4px 12px}.dg-measures td,.dg-measures th{padding:6px 4px}.dg-record .panel-head>.actions{width:100%}.dg-record .filter-control{flex-wrap:wrap}.dg-group>strong{font-size:15px}}
.dg-all-panel .panel-head{align-items:flex-start;flex-wrap:wrap;gap:10px 18px}
.dg-all-panel .panel-head p{color:var(--muted);font-size:12px;margin-top:4px}
.dg-all-panel .panel-head>div:first-child{min-width:0}
.dg-all-actions{justify-content:flex-end}
.dg-legend{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:12px;color:var(--muted)}
.dg-legend-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.dg-legend-item i{width:8px;height:8px;border-radius:50%;display:inline-block}
.dg-all-filters{display:flex;gap:8px;flex-wrap:wrap;padding:12px 20px}
.dg-filter{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;min-height:30px;color:#526077;font-size:12px}
.dg-filter:hover{border-color:#8fb0e6}
.dg-filter.active{background:#eef4ff;border-color:#7e9fd7;color:#1c4fa5;font-weight:600}
.dg-all-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;padding:0 20px 16px}
.dg-shop-card{position:relative;display:grid;gap:10px;text-align:left;min-width:0;padding:14px 14px 13px;border:1px solid var(--line);border-left:4px solid var(--tone);border-radius:8px;background:#fff;color:inherit}
.dg-shop-card:hover{border-color:#98afd6;border-left-color:var(--tone);box-shadow:0 2px 10px rgba(25,45,80,.06)}
.dg-shop-card[aria-pressed=true]{background:#f8fbff;border-color:var(--tone);box-shadow:0 0 0 2px rgba(32,96,180,.08)}
.dg-shop-card-head{display:flex;justify-content:space-between;gap:8px;align-items:center}
.dg-shop-card-head strong{font-size:14px;overflow-wrap:anywhere}
.dg-status{color:var(--tone);border:1px solid var(--tone);border-radius:999px;padding:1px 8px;font-size:11px;white-space:nowrap;background:#fff}
.dg-shop-meta{font-size:12px;color:var(--muted)}
.dg-mini-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.dg-mini-metric{background:#f7f9fc;border-radius:6px;padding:7px 6px;min-width:0}
.dg-mini-metric span{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dg-mini-metric strong{display:block;margin-top:3px;font-size:13px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dg-mini-diag{display:flex;flex-wrap:wrap;gap:5px}
.wx-tag{border-left:3px solid var(--tone);background:#f7f9fc;border-radius:3px;padding:3px 6px;font-size:11px;color:#425166;overflow-wrap:anywhere}
.dg-all-detail{margin:0 20px 18px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe;overflow:hidden}
.dg-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid var(--line)}
.dg-detail-head h3{display:flex;align-items:center;gap:8px;margin:0}
.dg-detail-head p{margin:5px 0 0;color:var(--muted);font-size:12px}
.wx-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}
.wx-groups{padding:14px 16px 0}
.dg-group.wx-group{border-top-width:3px}
.dg-all-detail .dg-measures{border-top:0;padding-top:10px}
.dg-highlights{list-style:none;padding:0;margin:0;display:grid;gap:7px;font-size:13px;line-height:1.55}
.dg-highlights li{position:relative;padding-left:14px;color:#46546a}
.dg-highlights li:before{content:'';position:absolute;left:0;top:8px;width:5px;height:5px;border-radius:50%;background:#fa9d3b}
@media(max-width:650px){.dg-all-grid{padding:0 12px 12px;grid-template-columns:1fr}.dg-all-filters{padding:10px 12px}.dg-all-detail{margin:0 12px 12px}.dg-detail-head{padding:12px}.wx-groups{padding:12px 12px 0}.dg-all-actions{width:100%;justify-content:space-between}}
.dg-auto-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin:0 20px 12px;padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:#f8fafc;font-size:12px;color:#526077}
.dg-auto-line strong{color:#273951}
.dg-auto-line .btn{margin-left:auto;min-height:30px;padding:4px 12px}
.dg-auto-dot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--tone,#07c160)}
.dg-auto-line.tone-ok{--tone:#07c160}
.dg-auto-line.tone-warn{--tone:#fa9d3b;background:#fffaf2}
.dg-auto-line.tone-danger{--tone:#fa5151;background:#fff5f5}
.dg-auto-line.muted{--tone:#b2b2b2}
.dg-auto-message{color:var(--tone);font-weight:600}
@media(max-width:650px){.dg-auto-line{margin:0 12px 12px}.dg-auto-line .btn{margin-left:0}}
.dg-good-needed{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:7px 9px;border-radius:6px;border:1px solid color-mix(in srgb,var(--need) 35%,#fff);background:color-mix(in srgb,var(--need) 7%,#fff)}
.dg-good-needed span{font-size:11px;color:var(--muted)}
.dg-good-needed strong{font-size:14px;color:var(--need);font-variant-numeric:tabular-nums}
.dg-good-note{margin:0;padding:10px 16px 14px;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--muted)}
@media(max-width:650px){.dg-good-note{padding:10px 12px 12px}}

/* 店铺诊断 · 新版店铺卡片 */
.dg2-panel{overflow:hidden}
.dg2-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px 16px}
.dg2-head h2{font-size:19px;font-weight:650;color:#1f2d3d}
.dg2-head p{margin-top:6px;font-size:12px;color:var(--muted);line-height:1.6}
.dg2-head-actions{flex:none}
.dg2-stats{display:flex;flex-wrap:wrap;gap:10px;padding:0 24px 14px}
.dg2-stat{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid color-mix(in srgb,var(--tone) 25%,#fff);border-radius:999px;background:color-mix(in srgb,var(--tone) 6%,#fff);font-size:12px;color:#526077}
.dg2-stat i{width:7px;height:7px;border-radius:50%;background:var(--tone)}
.dg2-stat b{font-size:14px;color:var(--tone);font-variant-numeric:tabular-nums}
.dg-all-filters{padding:4px 24px 16px}
.dg2-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(460px,1fr));gap:18px;padding:4px 24px 24px}
.dg2-card{border:1px solid #e7ebf1;border-top:4px solid var(--tone);border-radius:12px;background:#fff;box-shadow:0 2px 12px rgba(20,35,60,.04);overflow:hidden;min-width:0;transition:box-shadow .18s,transform .18s}
.dg2-card:hover{box-shadow:0 8px 26px rgba(20,35,60,.09);transform:translateY(-1px)}
.dg2-card-head{display:flex;gap:12px;align-items:center;padding:18px 20px 14px;border-bottom:1px solid #eef1f5}
.dg2-avatar{width:42px;height:42px;flex:none;border-radius:10px;background:color-mix(in srgb,var(--tone) 12%,#fff);color:var(--tone);font-size:18px;font-weight:650;display:flex;align-items:center;justify-content:center}
.dg2-shop-id{flex:1;min-width:0}
.dg2-shop-id h3{font-size:17px;color:#1f2d3d;line-height:1.4;overflow-wrap:anywhere}
.dg2-shop-id p{margin-top:5px;font-size:11px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.dg2-status{flex:none;border:1px solid;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:600;background:#fff}
.dg2-nodata{margin:12px 20px 0;padding:9px 12px;border-radius:6px;background:#f7f8fa;color:#637084;font-size:12px}
.dg2-section{padding:16px 20px;border-bottom:1px solid #eef1f5}
.dg2-section:last-child{border-bottom:0}
.dg2-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.dg2-section-head h4{font-size:14px;font-weight:650;color:#273951}
.dg2-section-head>span{font-size:11px;color:var(--muted)}
.dg2-inline-btn{border:0;background:transparent;color:#1c7c5a;font-size:12px;min-height:26px;padding:0}
.dg2-inline-btn:hover{text-decoration:underline}
.dg2-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dg2-metric{min-width:0;padding:12px 12px 11px;border:1px solid #e9edf2;border-radius:8px;background:#fafbfc}
.dg2-metric-label{font-size:11px;color:#637084;line-height:1.5;margin-bottom:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dg2-metric-value{display:block;font-size:21px;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.02em;overflow-wrap:anywhere}
.dg2-metric-bench{display:grid;gap:3px;margin-top:10px;padding-top:9px;border-top:1px dashed #e3e8ef;font-size:11px;color:#8791a0;line-height:1.5}
.dg2-metric-bench span{display:flex;justify-content:space-between;gap:6px;min-width:0}
.dg2-metric-bench b{font-weight:600;color:#637084;font-variant-numeric:tabular-nums;white-space:nowrap}
.dg2-review-line{margin-top:11px;font-size:12px;color:#637084;line-height:1.7}
.dg2-review-line b{color:#273951;font-variant-numeric:tabular-nums}
.dg2-issues{display:grid;gap:8px}
.dg2-issue{width:100%;display:grid;grid-template-columns:minmax(96px,auto) minmax(0,1fr) auto;gap:12px;align-items:center;text-align:left;border:1px solid #e9edf2;border-left:3px solid var(--tone);border-radius:7px;background:#fff;padding:10px 12px;min-height:54px;color:inherit}
.dg2-issue:hover{border-color:color-mix(in srgb,var(--tone) 45%,#fff);border-left-color:var(--tone);background:color-mix(in srgb,var(--tone) 3%,#fff)}
.dg2-issue-title{font-size:13px;font-weight:650;color:var(--tone);line-height:1.5;white-space:nowrap}
.dg2-issue-summary{font-size:12px;color:#637084;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dg2-issue-more{font-size:12px;color:#1c7c5a;white-space:nowrap}
.dg2-issue-more i{font-style:normal;font-size:16px}
.dg2-legacy{max-width:100%;margin:18px 24px 24px}
.dg2-legacy>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:#526077;font-size:13px}
.dg2-legacy>summary::-webkit-details-marker{display:none}
.dg2-legacy>summary:before{content:'▸';color:#8791a0}
.dg2-legacy[open]>summary:before{content:'▾'}
.dg2-legacy>summary span{margin-right:auto}
.dg2-legacy-body{margin-top:10px;display:grid;gap:12px}
.dg2-modal{width:min(880px,94vw);max-height:88dvh;border-radius:14px;overflow:hidden}
.dg2-modal::backdrop{background:rgba(20,32,50,.48)}
.dg2-modal-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:16px;padding:20px 24px 16px;background:#fff;border-bottom:1px solid var(--line)}
.dg2-modal-kicker{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.dg2-modal-kicker i{width:8px;height:8px;border-radius:50%}
.dg2-modal-head h3{margin-top:6px;font-size:20px;color:#1f2d3d}
.dg2-modal-head p{margin-top:5px;font-size:12px;color:var(--muted)}
.dg2-close{width:32px;height:32px;flex:none;border:0;border-radius:50%;background:#f2f4f7;color:#637084;font-size:20px;line-height:1;min-height:32px}
.dg2-modal-tabs{display:flex;gap:6px;flex-wrap:wrap;padding:12px 24px;border-bottom:1px solid var(--line);background:#fbfcfe}
.dg2-modal-tabs button{border:1px solid transparent;background:transparent;border-radius:999px;color:#637084;padding:5px 12px;min-height:30px;font-size:12px}
.dg2-modal-tabs button.active{background:#fff;border-color:#cfdae4;color:#1f2d3d;font-weight:600}
.dg2-modal-body{padding:20px 24px 24px;overflow:auto;max-height:calc(88dvh - 150px)}
.dg2-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px}
.dg2-table{width:100%;border-collapse:collapse;font-size:12px}
.dg2-table th,.dg2-table td{padding:10px 12px;text-align:right;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.dg2-table th:first-child{text-align:left}
.dg2-table thead th{background:#fafbfc;color:#637084;font-weight:500}
.dg2-table tbody th{color:#273951;font-weight:600}
.dg2-table tbody tr:last-child>*{border-bottom:0}
.dg2-detail-block{margin-top:18px}
.dg2-detail-block h5{margin:0 0 8px;font-size:13px;color:#273951}
.dg2-highlights{margin:0;padding-left:18px;color:#526077;font-size:12px;line-height:1.9}
.dg2-note{margin:16px 0 0;padding:10px 12px;border-radius:6px;background:#f8fafc;color:#637084;font-size:12px;line-height:1.8}
.dg2-diagnosis-head{border-left:4px solid var(--tone);padding:10px 14px;border-radius:6px;background:color-mix(in srgb,var(--tone) 5%,#fff)}
.dg2-diagnosis-head span{font-size:11px;color:var(--tone)}
.dg2-diagnosis-head h4{margin-top:4px;font-size:18px;color:var(--tone)}
.dg2-diagnosis-head p{margin-top:5px;font-size:12px;color:var(--muted)}
.dg2-problems{display:grid;gap:10px;margin-top:14px}
.dg2-problem{border:1px solid var(--line);border-radius:8px;padding:14px 16px;background:#fff}
.dg2-problem-title{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.dg2-problem-title h5{margin:0;font-size:14px;color:#273951}
.dg2-problem-title span{font-size:16px;font-weight:650;color:#fa5151;font-variant-numeric:tabular-nums;white-space:nowrap}
.dg2-problem-detail{margin:8px 0 0;font-size:12px;color:#637084;line-height:1.7}
.dg2-problem-suggest{margin:10px 0 0;padding-top:10px;border-top:1px dashed var(--line);font-size:12px;color:#526077;line-height:1.8}
.dg2-problem-suggest b{display:block;margin-bottom:3px;color:#1c7c5a;font-weight:600}
.dg2-empty-line{padding:20px;border:1px dashed var(--line);border-radius:8px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}
@media(max-width:1100px){.dg2-grid{grid-template-columns:1fr}}
@media(max-width:700px){.dg2-head,.dg2-stats{padding-left:14px;padding-right:14px}.dg-all-filters{padding-left:14px;padding-right:14px}.dg2-grid{padding:0 14px 16px;gap:12px}.dg2-card-head,.dg2-section{padding-left:14px;padding-right:14px}.dg2-metric-grid{grid-template-columns:1fr 1fr}.dg2-metric:last-child{grid-column:1/-1}.dg2-issue{grid-template-columns:1fr auto;gap:4px 8px}.dg2-issue-summary{grid-column:1/-1;white-space:normal}.dg2-legacy{margin:14px}.dg2-modal-head,.dg2-modal-tabs,.dg2-modal-body{padding-left:14px;padding-right:14px}}

/* 售后订单 · 官方接口推送状态 */
.sa-head{align-items:flex-start;flex-wrap:wrap;gap:10px 18px}
.sa-sub{margin-top:4px;font-size:12px;color:var(--muted);line-height:1.7}
.sa-summary{display:flex;flex-wrap:wrap;gap:8px;padding:0 20px 12px}
.sa-stat{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;background:#f7f9fc;color:#526077;font-size:12px}
.sa-stat b{font-size:14px;font-variant-numeric:tabular-nums}
.sa-stat-ok b{color:#07c160}.sa-stat-danger b{color:#fa5151}.sa-stat-warn b{color:#fa9d3b}.sa-stat-muted b{color:#8791a0}
.sa-filters{display:flex;flex-wrap:wrap;gap:8px;padding:0 20px 12px;border-bottom:1px solid var(--line)}
.sa-filter{padding:5px 12px;border:1px solid var(--line);border-radius:16px;background:#fff;color:#526077;font-size:12px;cursor:pointer}
.sa-filter:hover{border-color:#98afd6}
.sa-filter.active{background:#1f5fae;border-color:#1f5fae;color:#fff}
.sa-scroll-hint{display:none;margin:0;padding:0 14px 8px;color:var(--muted);font-size:12px}
.sa-table-wrap{overflow-x:auto}
.sa-table{width:100%;min-width:1180px;border-collapse:collapse;font-size:12px}
.sa-table th,.sa-table td{padding:11px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.sa-table th{background:#f2f5f9;color:#526077;font-weight:600;white-space:nowrap}
.sa-table tbody tr:hover{background:#f7faff}
.sa-table td>strong{display:block;color:#273951;line-height:1.6}
.sa-table td>small{display:block;color:var(--muted);line-height:1.5;margin-top:2px;overflow-wrap:anywhere}
.sa-shop{min-width:130px}.sa-product{min-width:210px}.sa-content{min-width:170px}.sa-money{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600;color:#273951}.sa-region{min-width:100px;color:#526077}.sa-time{white-space:nowrap;color:#526077;font-variant-numeric:tabular-nums}.sa-duration{min-width:150px;white-space:nowrap;color:#526077;font-variant-numeric:tabular-nums}.sa-duration.is-pending{color:#c77a13}.sa-ids{min-width:190px}.sa-ids span{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.sa-push-cell{min-width:120px}
.sa-push{display:inline-block;padding:2px 8px;border:1px solid;border-radius:12px;font-size:11px;font-weight:600;white-space:nowrap}
.sa-push-ok{color:#07c160;border-color:#07c160;background:#f2fcf6}
.sa-push-danger{color:#fa5151;border-color:#fa5151;background:#fff5f5}
.sa-push-warn{color:#c77a13;border-color:#fa9d3b;background:#fffaf2}
.sa-push-muted{color:#8791a0;border-color:#cfd6df;background:#f7f8fa}
@media(max-width:700px){.sa-head,.sa-summary,.sa-filters{padding-left:14px;padding-right:14px}.sa-table th,.sa-table td{padding:9px 8px}.sa-scroll-hint{display:block}}

/* 违规预警 · 按店铺维度 */
.vi-panel .panel-head{align-items:flex-start;gap:12px}
.vi-panel-sub{margin-top:4px;font-size:12px;color:var(--muted)}
.vi-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted)}
.dg-legend-item{display:inline-flex;align-items:center;gap:5px}
.dg-legend-item i{width:9px;height:9px;border-radius:50%;display:inline-block}
.vi-filters{display:flex;flex-wrap:wrap;gap:8px;padding:12px 20px;border-bottom:1px solid var(--line)}
.vi-filter{padding:5px 12px;border:1px solid var(--line);border-radius:16px;background:#fff;color:#526077;font-size:12px;cursor:pointer}
.vi-filter:hover{border-color:#98afd6}
.vi-filter.active{background:#1f5fae;border-color:#1f5fae;color:#fff}
.vi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;padding:16px 20px 24px;align-items:start}
.vi-shop-wrap{min-width:0}
.vi-shop-card{position:relative;display:grid;gap:9px;width:100%;text-align:left;min-width:0;padding:14px;border:1px solid var(--line);border-left:4px solid var(--tone);border-radius:8px;background:#fff;color:inherit;cursor:pointer}
.vi-shop-card:hover{box-shadow:0 2px 12px rgba(25,45,80,.08)}
.vi-card-head{display:flex;justify-content:space-between;gap:8px;align-items:center}
.vi-card-head strong{font-size:14px;overflow-wrap:anywhere}
.vi-status-pill{flex:none;padding:2px 8px;border:1px solid;border-radius:12px;font-size:11px;font-weight:600}
.vi-card-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.vi-card-metrics>div{display:grid;gap:2px;padding:7px 6px;border-radius:6px;background:#f7f9fc;text-align:center}
.vi-card-metrics span{font-size:11px;color:var(--muted)}
.vi-card-metrics b{font-size:16px;font-variant-numeric:tabular-nums;color:#273951}
.vi-card-metrics small{font-size:10px;font-weight:400;color:var(--muted)}
.vi-card-recent{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vi-card-arrow{font-size:11px;color:#1f5fae;font-weight:600}
.vi-detail{margin-top:10px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe;overflow:hidden}
.vi-detail-head{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line)}
.vi-detail-head h3{margin:0 0 4px;font-size:15px}
.vi-detail-tone{font-size:12px;font-weight:600;margin-left:6px}
.vi-detail-sub{font-size:12px;color:var(--muted)}
.vi-detail-sub b{color:#273951;font-size:14px}
.vi-highlights{margin:0;padding-left:18px;font-size:12px;line-height:1.7;color:#526077;max-width:420px}
.vi-table-wrap{overflow-x:auto}
.vi-table{width:100%;border-collapse:collapse;font-size:12px}
.vi-table th,.vi-table td{padding:9px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.vi-table th{background:#f2f5f9;color:#526077;font-weight:600;white-space:nowrap;position:sticky;top:0}
.vi-table tbody tr:hover{background:#f7faff}
.vi-rec-time{white-space:nowrap;color:#526077;font-variant-numeric:tabular-nums}
.vi-rec-reason{font-weight:600;color:#273951;max-width:180px}
.vi-rec-id{font-size:10px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.vi-rec-method{max-width:240px;line-height:1.5}
.vi-rec-score{white-space:nowrap;font-variant-numeric:tabular-nums}
.vi-rec-detail{max-width:380px}
.vi-detail-line{line-height:1.6;margin-bottom:3px}
.vi-detail-line b{display:inline-block;margin-right:6px;padding:0 5px;border-radius:3px;background:#eef2f8;color:#526077;font-size:11px;font-weight:600}
.vi-status{display:inline-block;padding:2px 8px;border:1px solid;border-radius:12px;font-size:11px;font-weight:600;white-space:nowrap}
.vi-empty-rec{text-align:center;color:var(--muted);padding:20px}
.vi-note{padding:10px 16px;font-size:11px;line-height:1.6;color:var(--muted);border-top:1px solid var(--line)}
@media(max-width:650px){.vi-grid{padding:0 12px 20px;grid-template-columns:1fr}.vi-filters{padding:10px 12px}.vi-legend{width:100%}.vi-detail-head{padding:12px}.vi-table th,.vi-table td{padding:7px 6px}}

/* ===== V2 visual refresh: light data workspace with deep ink navigation ===== */
:root{
  --bg:#f4f6f8;
  --surface:#ffffff;
  --ink:#101828;
  --muted:#667085;
  --line:#e4e7ec;
  --blue:#0f766e;
  --blue-soft:#ecfdf5;
  --danger:#d92d20;
  --success:#079455;
  --radius-xl:18px;
  --radius-lg:14px;
  --radius-md:10px;
  --shadow-xs:0 1px 2px rgba(16,24,40,.04);
  --shadow-card:0 1px 2px rgba(16,24,40,.03),0 18px 36px -28px rgba(16,24,40,.28);
}
html{background:var(--bg)}
body{
  color:var(--ink);
  background:radial-gradient(1100px 520px at 88% -8%,#e8f5f1 0,transparent 55%),var(--bg);
  -webkit-font-smoothing:antialiased;
}
.sidebar{
  width:236px;
  background:linear-gradient(180deg,#0b1220 0%,#111c2f 100%);
  border-right:0;
  box-shadow:12px 0 40px -32px #0f172a;
  color:#cbd5e1;
}
.workspace{margin-left:236px}
.brand{padding:26px 22px;color:#fff;border-bottom:1px solid rgba(255,255,255,.07)}
.brand small{color:#8fa0b8}
.brand img{filter:drop-shadow(0 5px 14px rgba(45,212,191,.28))}
.sidebar nav{padding:14px 12px}
.nav-label{color:#7b8ba3;font-size:10px;letter-spacing:.14em;text-transform:uppercase;padding:16px 14px 8px}
.nav-item{
  color:#aebbd0;border:1px solid transparent;border-radius:10px;
  padding:10px 14px;margin:2px 0;font-size:13px;min-height:40px;
}
.nav-item:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-item.active{
  color:#5eead4;border-color:rgba(45,212,191,.16);
  background:linear-gradient(90deg,rgba(20,184,166,.18),rgba(20,184,166,.04));
  box-shadow:inset 3px 0 0 #2dd4bf;
}
.nav-count{color:#9aacc2;background:rgba(255,255,255,.07);border-radius:999px;padding:2px 7px;font-size:10px}
.sidebar-foot{color:#7b8ba3;border-top-color:rgba(255,255,255,.08);padding:18px 22px}
.local-dot{background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.12)}
.topbar{
  height:70px;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(16,24,40,.07);padding:0 34px;position:sticky;top:0;z-index:18;
}
.breadcrumb{color:#667085;gap:10px}
.breadcrumb strong{color:#101828;font-weight:600}
.mode-switch{background:#f2f4f7;border-radius:10px;padding:4px}
.mode-switch button{border-radius:8px;min-height:32px;padding:4px 12px;color:#667085}
.mode-switch button.active{background:#fff;color:#0f766e;box-shadow:0 1px 3px rgba(16,24,40,.08)}
.main{padding:34px 36px 32px;max-width:1720px}
.page-head{margin-bottom:26px;align-items:flex-start}
.page-head>div:first-child{position:relative;padding-left:16px}
.page-head>div:first-child::before{
  content:"";position:absolute;left:0;top:5px;bottom:5px;width:3px;border-radius:3px;
  background:linear-gradient(180deg,#0f766e,#2dd4bf);
}
.page-head h1{font-size:30px;line-height:1.25;font-weight:700;letter-spacing:-.035em;color:#0b1220}
.page-head p{font-size:13px;color:#667085;line-height:1.75;max-width:760px;margin-top:8px}
.btn{
  background:#fff;border:1px solid #d0d5dd;border-radius:10px;padding:9px 15px;
  color:#344054;font-size:13px;font-weight:500;box-shadow:var(--shadow-xs);
}
.btn:hover:not(:disabled){border-color:#0f766e;color:#0f766e;background:#f6fefb}
.btn.primary{
  background:linear-gradient(135deg,#0f766e,#0d9488);border-color:transparent;color:#fff;
  box-shadow:0 8px 18px -10px rgba(13,148,136,.72);
}
.btn.primary:hover:not(:disabled){background:linear-gradient(135deg,#0b5f58,#0f766e);border-color:transparent;color:#fff}
.link-btn{color:#0f766e;font-weight:500}
input,select{
  border-radius:10px;border-color:#d0d5dd;min-height:38px;background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.02);
}
input:focus,select:focus{border-color:#14b8a6;box-shadow:0 0 0 3px rgba(20,184,166,.12);outline:0}
input::placeholder{color:#98a2b3}
.panel{
  background:var(--surface);border:1px solid rgba(16,24,40,.07);border-radius:var(--radius-xl);
  box-shadow:var(--shadow-card);margin-bottom:22px;
}
.panel-head{padding:22px 24px 16px;align-items:flex-start}
.panel-head h2{font-size:17px;font-weight:650;letter-spacing:-.015em;color:#101828}
.panel-head p{color:#667085;font-size:12px;line-height:1.7}
.panel-body{padding:0 24px 22px}
.metrics{
  background:transparent;border:0;box-shadow:none;padding:0;gap:14px;
  grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px;
}
.metric{
  background:#fff;border:1px solid var(--line);border-right:1px solid var(--line);
  border-radius:16px;padding:18px 20px;box-shadow:var(--shadow-xs);
}
.metric:last-child{border-right:1px solid var(--line)}
.metric-label{font-size:12px;color:#667085;margin-bottom:10px}
.metric-value{font-size:30px;font-weight:700;line-height:1.15;letter-spacing:-.045em;color:#101828}
.metric-value.accent{color:#0f766e}
.metric-sub{font-size:11px;color:#98a2b3;margin-top:10px}
.filters{
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 18px;
  box-shadow:var(--shadow-xs);gap:12px;
}
.filter-control{color:#667085;font-size:12px}
.segmented{background:#f2f4f7;border-radius:10px;padding:4px}
.segmented button{border-radius:8px;color:#667085;font-size:12px;min-height:30px}
.segmented button.active{background:#fff;color:#0f766e;box-shadow:0 1px 3px rgba(16,24,40,.08)}
.scope-line{color:#667085;font-size:12px}
.scope-line strong{color:#344054;font-weight:600}
.table-wrap{scrollbar-color:#cbd5e1 #f8fafc}
table{font-size:13px}
th{
  background:#f8fafc;color:#667085;font-size:11px;font-weight:600;letter-spacing:.03em;
  padding:12px 18px;border-bottom:1px solid #eaecf0;line-height:1.5;
}
td{padding:14px 18px;border-bottom:1px solid #f2f4f7;color:#344054;line-height:1.65}
tbody tr:hover{background:#f9fbfb}
tbody tr:last-child td{border-bottom:0}
td small{color:#98a2b3}
.badge{border-radius:999px;padding:4px 9px;font-size:11px;font-weight:600}
.badge.ok{background:#ecfdf3;color:#067647}
.badge.warn{background:#fffaeb;color:#b54708}
.badge.error{background:#fef3f2;color:#b42318}
.badge.blue{background:#eff8ff;color:#175cd3}
.banner{border-radius:12px;padding:12px 16px;border-color:#d1e9ff;background:#f5faff;color:#175cd3;font-size:12px}
.banner.sample{background:#fffaeb;border-color:#fedf89;color:#93370d}
.banner.error{background:#fef3f2;border-color:#fecdca;color:#b42318}
.welcome{border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f8fbfa 100%);box-shadow:var(--shadow-card)}
.welcome h2{font-size:26px;letter-spacing:-.03em}
.empty{border-radius:20px}
.sa-table th,.sa-table td,.vi-table th,.vi-table td,.wallet-table th,.wallet-table td,.compass-table th,.compass-table td{padding:11px 14px}
.sa-panel .panel-head,.sa-summary,.sa-filters{padding-left:24px;padding-right:24px}
.sa-table th{background:#f8fafc}
dialog{border-radius:18px;box-shadow:0 24px 70px rgba(16,24,40,.28)}
#notice{border-radius:12px;background:#101828;box-shadow:0 12px 34px rgba(16,24,40,.25)}
.footer{color:#98a2b3}

@media(max-width:1200px){
  .main{padding:28px 24px}
  .topbar{padding:0 24px}
}
@media(max-width:1100px){
  .sidebar{width:212px}.workspace{margin-left:212px}
  .page-head h1{font-size:27px}
}
@media(max-width:850px){
  .sidebar{width:196px}.workspace{margin-left:196px}
  .brand{padding:22px 16px;font-size:14px;gap:8px}
  .brand img{width:29px;height:29px}
  .sidebar nav{padding:8px}
  .nav-item{font-size:12px;padding:9px 12px}
  .main{padding:24px 18px}
  .topbar{padding:0 18px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .sidebar{
    width:236px;transform:translateX(-100%);visibility:hidden;
    transition:transform .18s;box-shadow:8px 0 34px rgba(15,23,42,.28);
  }
  .sidebar.open{visibility:visible;transform:translateX(0)}
  .workspace{margin-left:0}
  .mobile-menu{
    display:block;background:#fff;border:1px solid #d0d5dd;border-radius:9px;
    padding:5px 10px;font-size:12px;min-height:32px;color:#344054;
  }
  .topbar{height:60px;padding:0 14px;backdrop-filter:blur(12px)}
  .main{padding:20px 14px 34px}
  .page-head{margin-bottom:20px}
  .page-head h1{font-size:24px}
  .page-head>div:first-child{padding-left:12px}
  .page-head>div:first-child::before{top:4px;bottom:4px;width:3px}
  .page-head p{font-size:12px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .metric{padding:14px}
  .metric-value{font-size:24px}
  .metric-label{font-size:11px}
  .panel-head{padding:18px 16px 14px}
  .panel-body{padding:0 16px 18px}
  .sa-panel .panel-head,.sa-summary,.sa-filters{padding-left:16px;padding-right:16px}
  th,td{padding:12px 14px}
  .sa-table th,.sa-table td,.vi-table th,.vi-table td{padding:9px 10px}
}

/* Dashboard-specific card treatment */
.dash-metrics{gap:12px;padding:0;background:transparent}
.dash-metric{
  background:#fff;border:1px solid var(--line);border-radius:15px;
  box-shadow:var(--shadow-xs);padding:18px 20px;gap:9px;
}
.dash-metric:hover{border-color:#b8e6df;background:#fbfefd}
.dash-metric.selected{
  background:linear-gradient(135deg,#f0fdfa,#ffffff);border-color:#99f6e4;
  box-shadow:0 0 0 3px rgba(20,184,166,.08),var(--shadow-xs);
}
.dash-metric span{font-size:12px;color:#667085}
.dash-metric strong{font-size:clamp(19px,1.65vw,25px);letter-spacing:-.04em;color:#101828;white-space:nowrap}
.dash-metric small{color:#98a2b3;font-size:11px}
.dash-trend{
  background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow-card);margin-top:12px;
}
.dash-scope{padding-top:14px}
@media(max-width:1100px){.dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  .dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .dash-metric{padding:14px;border-radius:13px}
  .dash-metric strong{font-size:20px}
  .dash-trend{border-radius:14px}
}
.chart .line{stroke:#0f766e}
.chart .area{fill:#ecfdf5}
.chart .point{stroke:#0f766e}
.home-chart-line{stroke:#0f766e}
.home-chart-area{fill:#ecfdf5}
.home-chart-point{stroke:#0f766e}
.home-trend-chart{cursor:crosshair}
.home-trend-chart-wrap{position:relative}
.home-chart-crosshair{stroke:#94a3b8;stroke-width:1.2;stroke-dasharray:4 4}
.home-chart-focus{fill:#0f766e;stroke:#fff;stroke-width:2}
.home-chart-tip{position:absolute;pointer-events:none;background:#fff;border:1px solid #e5e9f0;border-radius:8px;box-shadow:0 10px 26px rgba(16,24,40,.14);padding:8px 12px;white-space:nowrap;z-index:6}
.home-chart-tip-date{font-size:11px;color:#667085;line-height:1.4;margin-bottom:4px}
.home-chart-tip-row{display:flex;align-items:center;gap:6px;font-size:12px;color:#344054}
.home-chart-tip-dot{width:8px;height:8px;border-radius:50%;background:#0f766e;flex-shrink:0}
.home-chart-tip-row strong{font-size:13px;color:#101828;font-weight:650;font-variant-numeric:tabular-nums}
.dg-shop-card,.vi-shop-card{
  border-radius:14px;box-shadow:var(--shadow-xs);
  transition:box-shadow .16s ease,transform .16s ease,border-color .16s ease;
}
.dg-shop-card:hover,.vi-shop-card:hover{
  box-shadow:var(--shadow-card);transform:translateY(-1px);border-color:#cbd5e1;
}

/* Permission management */
.um-grid{display:grid;gap:22px}
.um-panel{margin:0}
.um-head{align-items:flex-start}
.um-count{font-size:12px;color:#667085;background:#f2f4f7;border-radius:999px;padding:5px 10px;white-space:nowrap}
.um-summary{display:flex;gap:10px;padding:0 24px 16px;flex-wrap:wrap}
.um-summary>div{display:flex;align-items:baseline;gap:6px;padding:8px 12px;border-radius:10px;background:#f8fafc;color:#667085;font-size:11px}
.um-summary b{font-size:18px;color:#101828;letter-spacing:-.03em}
.um-table{width:100%;min-width:760px}
.um-table td{vertical-align:middle}
.um-user strong{display:block;font-size:13px;color:#101828}
.um-user small{display:block;color:#98a2b3;font-size:11px;margin-top:2px}
.um-role-select{min-height:32px;height:32px;padding:3px 28px 3px 9px;font-size:12px;border-radius:8px}
.um-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:600}
.um-status-ok{background:#ecfdf3;color:#067647}
.um-status-warn{background:#fffaeb;color:#b54708}
.um-status-muted{background:#f2f4f7;color:#667085}
.um-time{font-size:12px;color:#667085;white-space:nowrap}
.um-actions{white-space:nowrap}
.btn.tiny{min-height:30px;padding:4px 10px;font-size:12px;border-radius:8px}
.um-empty{text-align:center;color:#98a2b3;padding:32px!important}
.um-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 24px 24px}
.um-role-card{border:1px solid var(--line);border-radius:14px;padding:17px 18px;background:#fbfcfd}
.um-role-card.is-admin{background:linear-gradient(135deg,#f0fdfa,#fbfefd);border-color:#b8e6df}
.um-role-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.um-role-head h3{font-size:14px;margin:0;color:#101828}
.um-role-head p{font-size:11px;color:#98a2b3;line-height:1.6;margin:4px 0 0}
.um-role-tag{font-size:10px;color:#0f766e;background:#ecfdf5;border-radius:999px;padding:4px 8px;white-space:nowrap}
.um-lock{font-size:12px;color:#0f766e;margin-top:16px;background:#fff;border:1px dashed #99f6e4;border-radius:9px;padding:10px;text-align:center}
.um-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;margin-top:16px}
.um-check{display:flex;align-items:center;gap:7px;font-size:12px;color:#475467;line-height:1.5}
.um-check input{width:15px;height:15px;min-height:15px;accent-color:#0f766e;box-shadow:none}
@media(max-width:900px){.um-roles{grid-template-columns:1fr}}
@media(max-width:640px){
  .um-summary{padding:0 16px 14px}
  .um-roles{padding:0 16px 18px}
  .um-checks{grid-template-columns:1fr}
  .um-table{min-width:680px}
}
.sidebar-user{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 18px;border-top:1px solid rgba(255,255,255,.08);color:#cbd5e1}
.sidebar-user strong{display:block;font-size:12px;font-weight:600;color:#f8fafc;line-height:1.4;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-user small{display:block;font-size:10px;color:#8292a9;margin-top:2px}
.sidebar-user button{border:1px solid rgba(255,255,255,.12);background:transparent;color:#aebbd0;border-radius:8px;padding:5px 9px;font-size:11px;min-height:30px}
.sidebar-user button:hover{color:#fff;background:rgba(255,255,255,.07)}
@media(max-width:640px){.sidebar-user{padding:12px 14px}}

/* 资金钱包：顶部汇总 + 操作记录 + 改卡级联 */
.wallet-topbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.wallet-top-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 18px;box-shadow:var(--shadow-xs)}
.wallet-top-card span{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}
.wallet-top-card strong{font-size:22px;letter-spacing:-.03em;color:#101828;font-variant-numeric:tabular-nums}
.wallet-operator{color:var(--muted);font-size:12px;margin:0}
.wallet-actions-note{color:var(--muted);font-size:12px;padding:0 20px 12px;margin:0}
.wallet-actions-table{min-width:780px}
.wallet-actions-table th,.wallet-actions-table td{text-align:left}
.wallet-actions-table td:last-child,.wallet-actions-table th:last-child{text-align:right}
@media(max-width:820px){.wallet-topbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:640px){
  .wallet-top-card{padding:12px 14px}.wallet-top-card strong{font-size:18px}
  .wallet-bank-form{grid-template-columns:1fr}
  .wallet-actions-table{min-width:640px}
}

/* 店铺备注 */
.shop-remark{display:inline-block;color:#0f766e;background:#ecfdf5;border:1px solid #b8e6df;border-radius:6px;padding:1px 7px;font-size:11px;margin:2px 0}

/* 售后企业微信群推送设置 */
.sa-webhook{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 24px 14px}
.sa-webhook-label{font-size:12px;color:#667085;white-space:nowrap}
.sa-webhook-current{font-size:11px;color:#0f766e;background:#ecfdf5;border:1px solid #b8e6df;border-radius:6px;padding:3px 8px;word-break:break-all}
.sa-webhook-none{font-size:12px;color:#98a2b3}
.sa-webhook-input{flex:1;min-width:280px}
@media(max-width:640px){.sa-webhook{padding:0 16px 12px}.sa-webhook-input{min-width:100%}}

/* 类目保证金 */
.deposit-totals>div>strong{font-size:clamp(18px,1.8vw,24px);line-height:1.3;overflow-wrap:anywhere}
.deposit-totals>div:nth-child(3)>strong{color:#b54708}
.deposit-table td:first-child{min-width:200px;white-space:normal;font-weight:500;color:#26364b}
.deposit-table td:nth-child(3){font-weight:650}
.deposit-table td{text-align:left}
.deposit-table td.num{text-align:right}

/* 扫码更新登录态 */
.dg-auto-error{color:#fa5151;font-weight:600}
.vi-relogin-note{margin-left:6px;color:#067647}
.vi-relogin-error{color:#fa5151}

/* 冻结资金（店铺资金页） */
.wallet-columns-5{grid-template-columns:minmax(150px,1.2fr) minmax(100px,1fr) minmax(100px,1fr) minmax(100px,1fr) minmax(130px,1fr)}
.wallet-frozen{color:#b42318;font-weight:650}
.wallet-shop .wallet-frozen small{color:#b42318}
.wallet-top-card.has-sub small{display:block;margin-top:6px;font-size:11px;color:var(--muted)}
.wallet-top-card.frozen{border-color:#f3d0cc;background:linear-gradient(180deg,#fff7f6,#fff)}
.wallet-top-card.frozen strong{color:#b42318}
.wallet-top-card.frozen span{color:#9a6b66}
@media(max-width:720px){
  .wallet-columns-5{grid-template-columns:minmax(0,1.2fr) minmax(76px,1fr) minmax(76px,1fr) minmax(68px,1fr);gap:6px}
  .wallet-columns-5>:last-child{display:none}
}

/* 店铺余额明细头 */
.wallet-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 20px;border-bottom:1px solid var(--line);background:#fbfcfe}
.wallet-summary-head strong{font-size:13px;color:#253952;font-weight:650}
.wallet-summary-head small{font-size:11px;color:var(--muted)}
@media(max-width:640px){.wallet-summary-head{padding:11px 14px}}

/* 老客复购 */
.repurchase-funnel{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;padding:14px 18px}
.repurchase-funnel>div{flex:1;min-width:96px;background:#f6f8fb;border:1px solid var(--line);border-radius:10px;padding:12px 14px;text-align:center}
.repurchase-funnel>div span{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.repurchase-funnel>div strong{font-size:20px;color:#1f6feb;font-weight:700}
.repurchase-funnel>i{align-self:center;color:#b7c2d2;font-style:normal;font-size:16px}
@media(max-width:640px){
  .repurchase-funnel>i{display:none}
  .repurchase-funnel>div{min-width:45%}
}

/* 老客复购（官方式紧凑布局） */
.rp-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 18px;background:#fbfcfe;border:1px solid var(--line);border-radius:12px;margin-bottom:12px}
.rp-select{font-size:13px;color:#253952;font-weight:600;display:flex;align-items:center;gap:8px}
.rp-select select{font-size:13px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#253952;max-width:260px;font-weight:600}
.rp-total{font-size:12px;color:var(--muted)}
.rp-total b{color:#1f6feb;font-size:14px}
.rp-asof{margin-left:auto;font-size:12px;color:var(--muted)}
.rp-section-title{display:flex;align-items:baseline;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.rp-section-title h2{font-size:15px;font-weight:700;color:#253952;margin:0}
.rp-section-title small{font-size:12px;color:var(--muted)}
.rp-overview{padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:12px}
.rp-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.rp-metric{background:#f6f8fb;border:1px solid var(--line);border-radius:10px;padding:12px 14px}
.rp-metric span{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.rp-metric strong{font-size:22px;color:#1f6feb;font-weight:700;line-height:1.1}
.rp-metric small{display:block;font-size:12px;color:#067647;margin-top:6px}
.rp-main{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px;align-items:start}
.rp-funnel,.rp-hot{padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.rp-funnel-list{display:flex;flex-direction:column;gap:12px}
.rp-funnel-label{display:flex;align-items:baseline;gap:10px;font-size:13px;margin-bottom:5px}
.rp-funnel-label span{color:var(--muted);min-width:56px}
.rp-funnel-label b{color:#253952;font-size:16px}
.rp-funnel-label em{font-style:normal;font-size:11px;color:#067647}
.rp-funnel-bar{height:8px;background:#eef1f6;border-radius:4px;overflow:hidden}
.rp-funnel-bar i{display:block;height:100%;background:linear-gradient(90deg,#07c160,#10b981);border-radius:4px}
.rp-products{display:flex;flex-direction:column;gap:10px}
.rp-product{display:flex;align-items:center;gap:10px}
.rp-product img{width:40px;height:40px;border-radius:8px;object-fit:cover;flex:none;background:#f0f2f5}
.rp-product-meta{flex:1;min-width:0}
.rp-product-title{font-size:13px;color:#253952;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-product-sub{font-size:11px;color:var(--muted);margin-top:2px}
.rp-product>b{font-size:14px;color:#1f6feb;font-weight:700;flex:none}
@media(max-width:720px){
  .rp-main{grid-template-columns:1fr}
  .rp-metrics{grid-template-columns:1fr 1fr}
  .rp-asof{margin-left:0}
}

/* 经营总览指标卡：平均客单价 + 涨跌对比 */
.dash-metric-aov{cursor:default;pointer-events:none}
.dash-metric-aov:hover{background:#fff}
.dash-delta{display:inline-flex;align-items:center;gap:2px;font-size:11px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.4}
.dash-delta.up{color:#d4380d}
.dash-delta.down{color:#389e0d}
.dash-delta.flat{color:#98a2b3}

.dash-metric-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dash-yesterday{font-size:11px;color:#98a2b3;font-variant-numeric:tabular-nums}

/* 保本 ROI 计算器：一屏工作台（对齐 V2 青绿主题） */
#app[data-view="roi"] .main{padding:16px 24px 12px}
#app[data-view="roi"] .page-head{margin-bottom:10px;align-items:center}
#app[data-view="roi"] .page-head h1{font-size:21px;letter-spacing:-.025em}
#app[data-view="roi"] .page-head p{margin-top:2px;font-size:11.5px;line-height:1.5;max-width:none}

.roi-page{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;min-height:0}
.roi-cols{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(276px,.98fr) minmax(268px,.94fr);gap:12px;min-height:0}
.roi-col{display:flex;flex-direction:column;gap:12px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dbe2ec transparent}
.roi-col::-webkit-scrollbar{width:6px}
.roi-col::-webkit-scrollbar-thumb{background:#dfe5ee;border-radius:3px}
.roi-main-col{display:flex;flex-direction:column;gap:12px;min-height:0}

/* 结果条 */
.roi-hero{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);grid-template-areas:"main facts" "bar bar";gap:5px 26px;padding:13px 20px 11px;border-radius:16px;color:#fff;
  background:radial-gradient(720px 220px at 94% -60%,rgba(45,212,191,.42),transparent 62%),linear-gradient(118deg,#0b5f58,#0f766e 58%,#0d9488);
  box-shadow:0 16px 32px -26px rgba(15,118,110,.65)}
.roi-hero.is-empty{background:linear-gradient(120deg,#f8fafc,#f2f4f7);color:#101828;box-shadow:none;border:1px solid #e4e7ec}
.roi-hero.is-bad{background:linear-gradient(118deg,#8f1d16,#b42318);box-shadow:0 16px 32px -26px rgba(180,35,24,.6)}
.roi-hero-main{grid-area:main;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"label label" "value msg";gap:0 18px;align-items:center;min-width:0}
.roi-hero-label{grid-area:label;display:flex;align-items:center;gap:8px;font-size:11.5px;line-height:1.5;color:#ccfbf1}
.roi-state{font-size:10px;font-weight:600;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.26);color:#fff;line-height:1.5;white-space:nowrap}
.roi-state.is-good{background:rgba(255,255,255,.24);border-color:rgba(255,255,255,.42)}
.roi-state.is-bad{background:rgba(0,0,0,.2);border-color:rgba(0,0,0,.16)}
.roi-hero.is-empty .roi-hero-label{color:#667085}
.roi-hero.is-empty .roi-state{background:#fff;border-color:#e4e7ec;color:#667085}
.roi-hero-value{grid-area:value;font-size:44px;line-height:.98;font-weight:700;letter-spacing:-.05em;font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap}
.roi-hero-value small{font-size:14px;font-weight:600;margin-left:3px;letter-spacing:0;color:#a7f3d0}
.roi-hero.is-empty .roi-hero-value{color:#101828}
.roi-hero.is-empty .roi-hero-value small{color:#667085}
.roi-na{font-size:24px;letter-spacing:-.02em}
.roi-hero-msg{grid-area:msg;margin:0;font-size:11.5px;line-height:1.6;color:#e6fffa;max-width:44ch;align-self:center}
.roi-hero.is-empty .roi-hero-msg{color:#667085}
.roi-hero-facts{grid-area:facts;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-content:center;border-left:1px solid rgba(255,255,255,.18);padding-left:14px;min-width:0}
.roi-hero-facts>div{padding:1px 10px;border-left:1px solid rgba(255,255,255,.1);min-width:0}
.roi-hero-facts>div:first-child{border-left:0;padding-left:6px}
.roi-hero-facts span{display:block;font-size:10px;color:#ccfbf1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roi-hero-facts strong{display:block;font-size:17px;font-weight:700;margin-top:3px;font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:#fff;white-space:nowrap}
.roi-hero.is-empty .roi-hero-facts{border-left-color:#e4e7ec}
.roi-hero.is-empty .roi-hero-facts>div{border-left-color:#e4e7ec}
.roi-hero.is-empty .roi-hero-facts span{color:#667085}
.roi-hero.is-empty .roi-hero-facts strong{color:#101828}
.roi-hero-bar{grid-area:bar;display:flex;align-items:center;gap:12px;min-width:0;padding-top:3px}
.roi-bar-title{font-size:10px;color:#ccfbf1;white-space:nowrap}
.roi-bar{display:flex;flex:1;min-width:40px;height:6px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.18)}
.roi-bar i{display:block;height:100%}
.roi-legend{display:flex;gap:14px;font-size:10px;color:#d7fef7;white-space:nowrap}
.roi-legend>span{display:flex;align-items:center;gap:4px}
.roi-legend i{display:inline-block;width:7px;height:7px;border-radius:2px}
.roi-legend strong{font-weight:600;color:#fff;font-variant-numeric:tabular-nums}
.roi-bar-none{font-size:10.5px;color:#ccfbf1}
.roi-hero.is-empty .roi-bar-none{color:#667085}

/* 面板骨架 */
.roi-panel{margin:0;flex:0 0 auto;border-radius:14px}
.roi-panel-rows{display:flex;flex-direction:column;min-height:0;flex:1}
.roi-phead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 14px 7px;border-bottom:1px solid #f2f4f7;flex:0 0 auto}
.roi-phead>div{min-width:0}
.roi-phead h2{font-size:13.5px;font-weight:650;letter-spacing:-.015em;color:#101828;line-height:1.35}
.roi-phead span{display:block;font-size:10px;color:#98a2b3;margin-top:1px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roi-phead .btn{padding:3px 9px;font-size:11.5px;min-height:27px;border-radius:8px;flex:0 0 auto}
.roi-phead h2{white-space:nowrap}
.roi-phead .segmented{padding:2px;border-radius:8px;flex:0 0 auto;width:auto}
.roi-phead .segmented button{flex:0 0 auto;min-height:23px;padding:2px 8px;font-size:10.5px;border-radius:6px}
.roi-phead .segmented button[aria-pressed=true]{background:#fff;color:#0f766e;font-weight:600;box-shadow:0 1px 2px rgba(16,24,40,.08)}

/* 规格表 */
.roi-page{--roi-cols:7px minmax(0,1fr) 76px 76px 70px 58px 22px}
.roi-thead,.roi-row{display:grid;grid-template-columns:var(--roi-cols);gap:6px;align-items:center;padding:0 14px}
.roi-thead{flex:0 0 auto;padding-top:6px;padding-bottom:5px;font-size:10px;font-weight:600;letter-spacing:.02em;color:#98a2b3;background:#f9fafb;border-bottom:1px solid #eef1f5}
.roi-thead>span:nth-child(2){padding-left:2px}
.roi-rows-scroll{flex:1;min-height:88px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.roi-rows-scroll::-webkit-scrollbar{width:6px}
.roi-rows-scroll::-webkit-scrollbar-thumb{background:#e1e7f0;border-radius:3px}
.roi-rows{display:grid}
.roi-row{padding-top:4px;padding-bottom:4px;border-bottom:1px solid #f5f7fa}
.roi-row:hover{background:#f9fbfb}
.roi-row.is-invalid{background:#fffbfa}
.roi-dot{display:block;width:7px;height:7px;border-radius:50%}
.roi-cell{display:flex;flex-direction:column;gap:1px;min-width:0}
.roi-mini-label{display:none}
.roi-row input{width:100%;min-height:30px;padding:3px 7px;font-size:12.5px;border:1px solid #dbe2ec;border-radius:7px;background:#fff;font-variant-numeric:tabular-nums}
.roi-cell-name input{font-weight:500}
.roi-name-meta{display:flex;align-items:center;gap:5px;height:11px;padding:0 1px}
.roi-name-meta>b{flex:0 0 34px;font-size:9.5px;font-weight:600;color:#667085;font-variant-numeric:tabular-nums}
.roi-share-bar{flex:1;height:3px;border-radius:999px;background:#eef2f6;overflow:hidden}
.roi-share-bar b{display:block;height:100%;border-radius:999px;background:#5eead4;transition:width .12s}
.roi-cell-roi strong{font-size:12.5px;font-weight:650;line-height:30px;color:#0f766e;font-variant-numeric:tabular-nums}
.roi-del{width:22px;height:22px;min-height:22px;padding:0;border:1px solid transparent;border-radius:6px;background:none;color:#c3cbd8;font-size:15px;line-height:1;justify-self:end}
.roi-del:hover:not(:disabled){background:#fef3f2;border-color:#fecdca;color:#d92d20}
.roi-rows-foot{flex:0 0 auto;padding:6px 14px;font-size:10.5px;color:#667085;background:#f9fafb;border-top:1px solid #eef1f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roi-rows-foot strong{font-weight:600;color:#101828;font-variant-numeric:tabular-nums}
.roi-alert{margin:0;padding:5px 14px 6px;font-size:10.5px;line-height:1.5;color:#667085}
.roi-alert.is-error{background:#fef3f2;color:#b42318}
.roi-add-mobile{display:none}

/* 参数行 */
.roi-fields{padding:5px 14px 2px;display:grid}
.roi-field-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 0}
.roi-field-row>span:first-child{font-size:11.5px;color:#667085;white-space:nowrap}
.roi-unit-input{display:flex;align-items:center;gap:4px;width:108px;flex:0 0 108px}
.roi-unit-input input{width:100%;min-height:29px;padding:3px 8px;font-size:12.5px;text-align:right;border:1px solid #dbe2ec;border-radius:7px;background:#fff;font-variant-numeric:tabular-nums}
.roi-unit-input em{font-style:normal;font-size:10px;color:#98a2b3;flex:0 0 auto}
.roi-hint{margin:0;padding:0 14px 9px;font-size:10px;line-height:1.55;color:#98a2b3}
/* 每单成本四项排成 2×2，加税点后总高度不变 */
.roi-cost-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 10px;padding:7px 14px 3px}
.roi-cost-cell{display:flex;flex-direction:column;gap:3px;min-width:0}
.roi-cost-cell>span:first-child{font-size:10.5px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:1px}
.roi-cost-cell .roi-unit-input{width:100%;flex:1 1 auto;min-width:0}
.roi-cost-cell .roi-unit-input input{min-height:28px;font-size:12.5px;padding:3px 7px}
.roi-cost-cell:focus-within>span:first-child{color:#0f766e}

/* 签收 */
.roi-rate{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 14px 4px}
.roi-rate>span:first-child{font-size:11.5px;color:#667085}
.roi-rate .roi-unit-input{width:92px;flex:0 0 92px}
.roi-range{display:block;width:calc(100% - 28px);height:16px;min-height:16px;margin:0 14px;padding:0;border:0;background:transparent;box-shadow:none;accent-color:#0f766e}
.roi-chips{display:flex;gap:4px;padding:0 14px 2px}
.roi-chip{min-height:21px;padding:1px 7px;border:1px solid #e4e7ec;border-radius:999px;background:#fff;font-size:10px;line-height:1.4;color:#667085}
.roi-chip:hover{border-color:#5eead4;background:#f0fdfa;color:#0f766e}
.roi-chip.is-active{border-color:#5eead4;background:#ecfdf5;color:#0f766e;font-weight:600}
.roi-recovery{display:grid;gap:4px;padding:6px 14px 4px}
.roi-recovery-title{font-size:10px;color:#98a2b3}
.roi-recovery label{display:flex;gap:7px;align-items:flex-start;padding:5px 8px;border:1px solid #eef1f5;border-radius:8px;background:#fff;cursor:pointer;transition:border-color .12s,background-color .12s}
.roi-recovery label:hover{border-color:#99f6e4}
.roi-recovery label:has(input:checked){border-color:#5eead4;background:#f0fdfa}
.roi-recovery input{flex:0 0 13px;width:13px;height:13px;min-height:0;margin:1px 0 0;padding:0;accent-color:#0f766e}
.roi-recovery strong{display:block;font-size:11.5px;font-weight:600;line-height:1.35;color:#101828}
.roi-recovery small{display:block;font-size:9.5px;line-height:1.35;margin-top:1px;color:#98a2b3}

/* 投放复盘 */
.roi-sim-empty{margin:0;padding:6px 14px 12px;font-size:10.5px;line-height:1.6;color:#98a2b3}
.roi-sim-card{margin:4px 12px 12px;border:1px solid #eaecf0;border-radius:10px;overflow:hidden}
.roi-sim-card.is-loss{border-color:#fecdca}
.roi-sim-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;background:#ecfdf3;font-size:10.5px;font-weight:600;color:#067647}
.roi-sim-card.is-loss .roi-sim-head{background:#fef3f2;color:#b42318}
.roi-sim-head strong{font-size:14.5px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.roi-sim-kv{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#eef1f5}
.roi-sim-kv>div{min-width:0;padding:5px 9px;background:#fff}
.roi-sim-kv span{display:block;font-size:9.5px;color:#98a2b3}
.roi-sim-kv strong{display:block;margin-top:1px;font-size:12px;font-weight:650;color:#101828;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roi-sim-kv strong.is-neg{color:#b42318}
.roi-sim-foot{display:flex;justify-content:space-between;gap:8px;padding:4px 9px;font-size:9.5px;color:#98a2b3;background:#fcfcfd;border-top:1px solid #f2f4f7}

.roi-receipt-panel{display:flex;flex-direction:column}
.roi-sens-panel{flex:0 0 auto}
.roi-sens{padding:3px 8px 7px;display:grid}
.roi-sens-row{display:grid;grid-template-columns:44px minmax(0,1fr) 54px 44px;gap:9px;align-items:center;padding:3px 6px;border-radius:6px;font-size:10.5px;color:#667085}
.roi-sens-row.is-now{background:#f0fdfa;color:#0f766e}
.roi-sens-rate{font-variant-numeric:tabular-nums;white-space:nowrap}
.roi-sens-bar{height:5px;border-radius:999px;background:#eef2f6;overflow:hidden}
.roi-sens-bar b{display:block;height:100%;border-radius:999px;transition:width .12s}
.roi-sens-row strong{text-align:right;font-size:11px;font-weight:600;color:#101828;font-variant-numeric:tabular-nums;white-space:nowrap}
.roi-sens-row.is-now strong{color:#0f766e}
.roi-sens-row em{font-style:normal;text-align:right;font-size:9.5px;color:#98a2b3;font-variant-numeric:tabular-nums;white-space:nowrap}
.roi-sens-row em.is-up{color:#b54708}
.roi-sens-row em.is-down{color:#079455}

/* 反推目标利润率 */
.roi-target{display:flex;flex-direction:column;gap:5px;padding:1px 0 3px}
.roi-target-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 6px;font-size:11.5px;color:#667085}
.roi-target-top .roi-unit-input{width:84px;flex:0 0 84px}
.roi-target-kv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e7ecf4;border-radius:8px;overflow:hidden;background:#fff}
.roi-target-kv>div{min-width:0;padding:5px 9px;border-left:1px solid #eef1f6}
.roi-target-kv>div:first-child{border-left:0;background:#f0fdfa}
.roi-target-kv span{display:block;font-size:9.5px;color:#98a2b3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roi-target-kv strong{display:block;margin-top:1px;font-size:13px;font-weight:650;color:#101828;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roi-target-kv strong.is-key{color:#0f766e}
.roi-target-kv strong.is-loss{color:#b42318}
.roi-bid-state{display:inline-block;margin-left:3px;padding:0 5px;border-radius:4px;font-style:normal;font-size:9.5px;line-height:15px;vertical-align:1px;white-space:nowrap}
.roi-bid-state.is-ok{background:#ecfdf3;color:#067647}
.roi-bid-state.is-bad{background:#fef3f2;color:#b42318}
.roi-bid-state.is-idle{background:#f2f4f7;color:#98a2b3}
.roi-bid-state.is-warn{background:#fffaeb;color:#b54708}
.roi-target-kv.is-bid>div:first-child{background:#fff}
.roi-target-kv.is-bid>div:nth-child(2){background:#f0fdfa}
.roi-target-kv.is-bid>div.is-loss-cell{background:#fef3f2}
.roi-target-hint{margin:0;padding:0 6px;font-size:10px;line-height:1.55;color:#98a2b3}

/* 门槛测算面板放大一档：这栏是常用的二次测算，字号和留白比周围信息块更大 */
.roi-sens-panel{display:flex;flex-direction:column;min-height:clamp(200px,22dvh,248px)}
.roi-sens-panel .roi-phead{padding:10px 16px 8px}
.roi-sens-panel .roi-phead h2{font-size:15px}
.roi-sens-panel .roi-phead span{font-size:11px;margin-top:2px}
.roi-sens-panel .segmented{padding:3px}
.roi-sens-panel .segmented button{min-height:26px;padding:3px 11px;font-size:11.5px}
.roi-sens-panel .roi-sens{flex:1;align-content:center;padding:8px 10px 10px}
.roi-sens-panel .roi-sens-row{grid-template-columns:50px minmax(0,1fr) 62px 48px;gap:10px;padding:5px 7px;font-size:12px}
.roi-sens-panel .roi-sens-bar{height:6px}
.roi-sens-panel .roi-sens-row strong{font-size:12.5px}
.roi-sens-panel .roi-sens-row em{font-size:10.5px}
.roi-sens-panel .roi-target{gap:7px;padding:2px 0 3px}
.roi-sens-panel .roi-target-top{font-size:12.5px}
.roi-sens-panel .roi-target-top .roi-unit-input{width:96px;flex:0 0 96px}
.roi-sens-panel .roi-unit-input input{min-height:34px;font-size:14px;padding:4px 10px}
.roi-sens-panel .roi-unit-input em{font-size:10.5px}
.roi-sens-panel .roi-target-kv>div{padding:9px 13px}
.roi-sens-panel .roi-target-kv span{font-size:10.5px}
.roi-sens-panel .roi-target-kv strong{font-size:19px;margin-top:3px}
.roi-sens-panel .roi-target-hint{font-size:11px;padding:0 4px}
.roi-bid-state{font-size:10.5px;line-height:16px;padding:0 6px}

/* 排行 */
.roi-rank-panel{display:flex;flex-direction:column;flex:1;min-height:104px}
.roi-rank{flex:1;min-height:0;overflow-y:auto;padding:2px 0 4px;scrollbar-width:thin}
.roi-rank::-webkit-scrollbar{width:6px}
.roi-rank::-webkit-scrollbar-thumb{background:#e1e7f0;border-radius:3px}
.roi-rank-row{display:grid;grid-template-columns:7px minmax(0,1fr) 52px 38px;gap:6px;align-items:center;padding:4px 14px}
.roi-rank-row .roi-dot{margin:0}
.roi-rank-name{min-width:0}
.roi-rank-name strong{display:block;font-size:10.5px;font-weight:500;line-height:1.4;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roi-rank-name small{font-size:9px;line-height:1.3;color:#98a2b3}
.roi-rank-bar{height:5px;border-radius:999px;background:#eef2f6;overflow:hidden}
.roi-rank-bar b{display:block;height:100%;border-radius:999px;transition:width .12s}
.roi-rank-val{text-align:right;font-size:10.5px;font-weight:650;color:#101828;font-variant-numeric:tabular-nums}
.roi-empty{margin:0;padding:6px 14px 10px;font-size:10.5px;line-height:1.6;color:#98a2b3}

/* 操作区 */
.roi-ghost{display:flex;align-items:center;justify-content:center;gap:5px;margin:8px 14px 10px;min-height:32px;border:1px dashed #d7dfe9;border-radius:9px;background:#fcfdfe;color:#98a2b3;font-size:11.5px}
.roi-ghost:hover:not(:disabled){border-color:#5eead4;background:#f0fdfa;color:#0f766e}
.roi-rank-foot{flex:0 0 auto;padding:6px 14px 7px;border-top:1px solid #f2f4f7;font-size:9.5px;color:#98a2b3;background:#fcfcfd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roi-actions{display:grid;gap:6px;flex:0 0 auto}
.roi-export{width:100%;justify-content:center;min-height:32px;padding:5px 10px;font-size:12px}
.roi-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:9.5px;color:#98a2b3}
.roi-links .link-btn{min-height:18px;font-size:10.5px}
.roi-formula{border:1px solid #eef1f5;border-radius:9px;background:#fcfcfd;font-size:10px;line-height:1.55;color:#667085}
.roi-formula summary{padding:5px 9px;font-size:10.5px;font-weight:600;color:#667085;cursor:pointer}
.roi-formula>div{display:grid;gap:3px;padding:0 9px 7px}

@media(min-width:900px){
  #app[data-view="roi"] .main{height:calc(100vh - 70px);height:calc(100dvh - 70px);display:flex;flex-direction:column;overflow:hidden}
  #app[data-view="roi"] .roi-page{flex:1;min-height:0}
  #app[data-view="roi"] .footer{display:none}
  #app[data-view="roi"] .banner{flex:0 0 auto;margin-bottom:8px;padding:7px 12px;font-size:11px}
}
@media(max-width:1299px) and (min-width:900px){
  .roi-page{--roi-cols:7px minmax(0,1fr) 60px 60px 56px 48px 18px}
  .roi-cols{grid-template-columns:minmax(0,1fr) minmax(282px,.82fr)}
  .roi-hero-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 0}
  .roi-hero-facts>div{padding:1px 9px}
  .roi-hero-facts>div:nth-child(4){border-left:0;padding-left:6px}
  .roi-main-col{overflow-y:auto;scrollbar-width:thin}
  .roi-side>.roi-col{flex:0 0 auto}
  .roi-side{display:flex;flex-direction:column;gap:12px;min-height:0;overflow-y:auto;scrollbar-width:thin}
  .roi-side::-webkit-scrollbar{width:6px}
  .roi-side::-webkit-scrollbar-thumb{background:#dfe5ee;border-radius:3px}
  .roi-side .roi-col{overflow:visible}
}
@media(min-width:1300px){
  .roi-side{display:contents}
}
@media(max-width:1150px) and (min-width:900px){
  .roi-hero{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:5px 18px}
  .roi-hero-value{font-size:40px}
  .roi-legend{gap:10px}
  .roi-sens-panel .roi-phead{padding:8px 12px 7px;gap:6px}
  .roi-sens-panel .roi-phead h2{font-size:14px}
  .roi-sens-panel .segmented button{font-size:10.5px;padding:3px 8px}
}
@media(max-height:860px) and (min-width:900px){
  #app[data-view="roi"] .main{padding-top:12px}
  #app[data-view="roi"] .page-head{margin-bottom:8px}
  #app[data-view="roi"] .page-head h1{font-size:19px}
  .roi-hero{padding:11px 18px 9px;gap:4px 22px}
  .roi-hero-value{font-size:38px}
  .roi-hero-facts strong{font-size:16px}
  .roi-phead{padding:8px 14px 6px}
  .roi-row input{min-height:28px}
  .roi-cell-roi strong{line-height:28px}
  .roi-fields{padding-top:3px}
  .roi-field-row{padding:2px 0}
  .roi-recovery{gap:3px;padding-top:4px}
  .roi-recovery label{padding:4px 8px}
  .roi-rank-row{padding:3px 14px}
  .roi-phead{padding:8px 14px 6px}
}
@media(max-height:820px) and (min-width:900px){
  .roi-phead{padding:7px 14px 5px}
  .roi-sim-card{margin:2px 12px 9px}
  .roi-sim-head{padding:6px 10px}
  .roi-sim-kv>div{padding:4px 9px}
  .roi-sim-foot{display:none}
  .roi-rank-row{padding:2px 14px}
  .roi-actions{gap:4px}
  .roi-formula summary{padding:4px 9px}
}

@media(max-width:899px){
  .roi-page{grid-template-rows:auto;gap:12px}
  .roi-cols{grid-template-columns:minmax(0,1fr);gap:12px}
  .roi-side{display:flex;flex-direction:column;gap:12px}
  .roi-col{overflow:visible}
  .roi-hero{grid-template-columns:1fr;grid-template-areas:"main" "facts" "bar";gap:10px;padding:16px}
  .roi-hero-main{grid-template-columns:auto minmax(0,1fr);gap:0 14px}
  .roi-hero-value{font-size:40px}
  .roi-hero-facts{border-left:0;padding-left:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 0;border-top:1px solid rgba(255,255,255,.18);padding-top:8px}
  .roi-hero-facts>div{padding:0 10px}
  .roi-hero-facts>div:nth-child(odd){border-left:0;padding-left:6px}
  .roi-hero-facts span,.roi-hero-facts strong{white-space:normal}
  .roi-hero.is-empty .roi-hero-facts{border-top-color:#e4e7ec}
  .roi-hero-bar{flex-wrap:wrap;gap:6px 10px}
  .roi-legend{flex-wrap:wrap;gap:4px 10px}
  .roi-phead .btn{display:none}
  .roi-add-mobile{display:block;margin:8px 12px 10px;width:calc(100% - 24px)}
  .roi-ghost{display:none}
  .roi-thead{display:none}
  .roi-rows-scroll{overflow:visible;padding:8px 10px 2px}
  .roi-rows{gap:8px}
  .roi-row{position:relative;grid-template-columns:1fr 1fr;gap:7px 8px;padding:10px 34px 10px 10px;border:1px solid #e7ecf4;border-radius:12px;background:#fff}
  .roi-row:hover{background:#fff}
  .roi-mini-label{display:block;font-size:9.5px;color:#98a2b3}
  .roi-cell-name{grid-column:1/-1}
  .roi-cell-roi{align-self:end}
  .roi-cell-roi strong{line-height:30px;font-size:13px}
  .roi-del{position:absolute;top:6px;right:6px;width:26px;height:26px}
  .roi-rows-foot{white-space:normal;line-height:1.6;font-size:10.5px}
  .roi-rank-panel{flex:0 0 auto}
  .roi-rank{overflow:visible}
  .roi-rank-row{padding:5px 14px}
  .roi-field-row{padding:4px 0}
  .roi-export{min-height:36px;font-size:12.5px}
}
@media(max-width:420px){
  .roi-hero-value{font-size:34px}
  .roi-hero-main{grid-template-columns:1fr;grid-template-areas:"label" "value" "msg"}
  .roi-hero-msg{margin-top:4px}
}

/* 商品卡推荐 */
.cr-overview{padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:12px}
.cr-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.cr-metric{background:#f6f8fb;border:1px solid var(--line);border-radius:10px;padding:12px 14px;text-align:left}
.cr-metric span{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.cr-metric strong{font-size:20px;color:#1f6feb;font-weight:700;font-variant-numeric:tabular-nums}
.cr-metric small{display:block;font-size:11px;color:#067647;margin-top:4px}
.cr-table th{cursor:pointer;user-select:none;white-space:nowrap}
.cr-table th:hover{color:#1f6feb}
.cr-table td:first-child{min-width:180px;font-weight:500}
@media(max-width:900px){.cr-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.cr-metrics{grid-template-columns:repeat(2,1fr)}}

/* 店铺管理：删除/隐藏/备注 */
.shop-remark-btn{display:block;color:var(--muted);font-size:11px;text-align:left;padding:0;margin-top:3px;min-height:20px;line-height:1.6}
.shop-remark-btn:hover{color:var(--blue)}
.link-btn.danger{color:var(--danger)}
.link-btn.danger:hover{color:#9a1c15}
.shop-hidden{opacity:.55;background:#fafbfc}
.shop-hidden:hover{background:#f3f6fa}
#shop-delete-confirm{background:var(--danger);border-color:var(--danger);color:#fff}
#shop-delete-confirm:hover:not(:disabled){background:#9a1c15;border-color:#9a1c15}

@media(max-height:780px) and (min-width:900px){
  .roi-ghost{display:none}
}

@media(max-width:480px){
  .roi-sens-panel .roi-phead span{display:none}
}

/* 罗盘·店铺人群：一屏紧凑版（覆盖默认与大屏放大） */
.audience-heading{padding:14px 20px 10px}
.audience-heading h2{font-size:17px}
.audience-heading p{margin-top:4px}
.audience-dashboard{padding:0 20px 16px}
.audience-highlights{padding:14px 0;margin-bottom:14px}
.audience-highlight{padding:0 16px;gap:5px}
.audience-highlight>strong{font-size:18px}
.audience-highlight>small{font-size:11px}
.audience-grid{gap:14px}
.audience-card{min-height:206px;padding:14px 16px 0}
.audience-card-head{margin-bottom:12px}
.audience-card-head h3{font-size:14px}
.audience-card-insight{margin-top:10px;padding:8px 0 10px;font-size:10.5px}
.audience-bars{gap:9px;max-height:178px}
.audience-bars-spacious{gap:13px;padding-top:6px}
.audience-gender{gap:14px}
.audience-donut{width:116px}
.audience-donut strong{font-size:23px}
.audience-legend{gap:12px}
.audience-legend strong{font-size:15px}
.audience-notes{margin-top:12px;line-height:1.6}
.audience-coverage{margin-bottom:6px}
@media(max-width:760px){
  .audience-grid{grid-template-columns:1fr;gap:12px}
  .audience-card{min-height:0}
  .audience-highlights{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 0;padding:14px 0}
}

/* 罗盘人群：卡片严格限高，内容区内部滚动 */
.audience-card{height:200px;min-height:200px;max-height:200px;overflow:hidden}
.audience-card-head{flex:0 0 auto}
.audience-coverage{flex:0 0 auto}
.audience-bars{flex:1;min-height:0;max-height:none}
.audience-gender{flex:1;min-height:0;max-height:none;overflow:auto}
.audience-card-insight{flex:0 0 auto}
@media(max-width:760px){.audience-card{height:auto;min-height:0;max-height:none}}

/* 罗盘人群：进一步压缩至一屏 */
.compass-toolbar{padding:10px 18px}
.audience-heading{padding:10px 20px 6px}
.audience-heading h2{font-size:16px}
.audience-dashboard{padding:0 20px 12px}
.audience-highlights{padding:10px 0;margin-bottom:12px}
.audience-highlight>strong{font-size:16px;line-height:1.25}
.audience-highlight>small{font-size:10.5px}
.audience-grid{gap:12px}
.audience-card{height:190px;min-height:190px;max-height:190px;padding:12px 14px 0}
.audience-card-head{margin-bottom:10px}
.audience-card-head h3{font-size:13.5px}
.audience-card-insight{margin-top:8px;padding:7px 0 8px}
.audience-bars{gap:7px;max-height:none}
.audience-gender{gap:12px}
.audience-donut{width:96px}
.audience-donut strong{font-size:20px}
.audience-legend{gap:9px}
.audience-legend strong{font-size:14px}
.audience-notes{margin-top:9px;line-height:1.5}

/* 侧边栏：微信登录态（全局共享扫码入口） */
.sidebar-login{padding:12px 16px;border-top:1px solid var(--line);background:#f8fafc}
.sidebar-login-head{display:flex;align-items:center;gap:7px;margin-bottom:6px}
.sidebar-login-head strong{font-size:12px;color:#38465a;font-weight:600}
.login-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;background:#d97706}
.login-dot.ok{background:#187246}
.sidebar-login>small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-bottom:8px}
.sidebar-login-btn{width:100%;font-size:12px;min-height:30px;padding:4px 10px}
.sidebar-login-running{display:block;font-size:11px;color:#855710;line-height:1.6}

/* 微信扫码登录弹窗 */
#relogin-dialog{width:min(360px,92vw)}
.relogin-body{display:flex;flex-direction:column;align-items:center;padding:26px 22px 22px;text-align:center}
.relogin-qr-wrap{width:232px;height:232px;border:1px solid var(--line);border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.relogin-qr-wrap img{width:230px;height:230px;border-radius:10px;image-rendering:pixelated}
.relogin-status{font-size:14px;color:#26364b;font-weight:600;line-height:1.6}
.relogin-note{font-size:12px;color:var(--muted);line-height:1.7;margin-top:8px}

