/* October 5 brief: fluid, aligned glass dashboard with real business modules. */
:root {
 --canvas:#f3f6f8; --ink:#18212b; --muted:#596879; --line:#e1e8f0;
 --primary:#4545f5; --primary-soft:#edf1ff; --surface:rgba(255,255,255,.88);
 --surface-border:rgba(218,229,241,.9); --shadow:0 6px 22px #29486108;
}
body {background:radial-gradient(ellipse at 90% 8%,#dcdcff55,transparent 42%),radial-gradient(ellipse at 25% 48%,#a8e3e72e,transparent 45%),#f3f6f8}
.main {padding:26px 28px 40px; width:100%; max-width:none}
.topbar {padding:0 28px; background:#fbfdffcc; height:64px}
.sidebar {padding-top:22px}
.sidebar .brand {padding-bottom:22px}
.sidebar .brand-note {font-size:12px; letter-spacing:1px}
.nav-link {min-height:40px; padding:9px 12px; border-radius:8px}
.nav-link.active,.dashboard-tab.active,.operator-chip.active {background:#080a0b; color:#fff; border-color:#080a0b}
h1,.page-heading h1 {font-size:30px}
.panel,.board-card,.member-card,.training-task-card,.store-info-card {border-radius:24px; background:var(--surface); border-color:var(--surface-border); box-shadow:var(--shadow); backdrop-filter:blur(8px)}
.panel-header {padding:20px 22px 16px}
.section-gap,.margin-bottom {margin-top:16px}
.grid {gap:16px}
.stat-card {border-radius:18px; padding:20px; background:#fbfdffed; box-shadow:var(--shadow)}
.stat-card.accent {background:linear-gradient(145deg,#4545f5,#2878ff 65%,#42b5f3); border-color:#5b8cff}
.stat-card.accent .stat-value,.stat-card.accent .stat-top,.stat-card.accent .stat-foot {color:#fff}
.btn {border-radius:999px}
.operator-store-card,.worksheet-store-card,.followup-card {border-radius:22px}
.route-home .page-heading {flex-direction:column; gap:16px; margin:0}
.route-home .page-heading > .page-actions:not(:empty) {margin:0; padding:0; width:100%; justify-content:flex-start; gap:10px}
.route-home .page-title-icon {display:none}
.route-home .home-capsule {min-height:50px; padding:8px 18px 8px 10px; background:#fafdffde; border:1px solid #e0e9f3; color:#263546; font-size:14px; gap:10px}
.home-capsule > .icon {box-sizing:content-box; padding:9px; background:white; border-radius:50%; width:18px; height:18px; color:#4545f5; box-shadow:0 2px 8px #34588709}
.home-v2 {gap:16px}
.dashboard-period {padding:12px 18px; margin:0; font-size:12px; border-radius:18px; gap:10px 16px}
.home-v2 .home-v2-layout {display:grid; grid-template-columns:minmax(300px,1fr) minmax(0,2fr); grid-template-areas:'core top' 'efficiency work' 'trend alerts' 'shortcuts health'; gap:16px; align-items:stretch}
.home-v2-layout > .dashboard-column {display:contents}
.home-v2-layout .dashboard-top-grid {display:grid; grid-area:top; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:stretch}
.home-v2-layout .home-summary-band {grid-area:core; order:0}
.home-v2-layout .home-efficiency {grid-area:efficiency; order:0}
.home-v2-layout .dashboard-work {grid-area:work; order:0}
.home-v2-layout .home-trend {grid-area:trend; order:0}
.home-v2-layout .home-alerts {grid-area:alerts; order:0}
.home-v2-layout .home-shortcuts {grid-area:shortcuts; order:0}
.home-v2-layout .home-data-health {grid-area:health; order:0; align-self:start}
.home-v2-layout {--home-inset:20px}
.home-v2-layout .home-summary-band {padding:20px; background:linear-gradient(155deg,#4545f5 0%,#2878ff 65%,#42b5f3 100%); color:#fff; border-color:#6196ff; display:flex; flex-direction:column; gap:10px; overflow:hidden}
.core-card-heading {display:flex; justify-content:space-between; align-items:center; gap:12px}
.core-card-heading h2 {font-size:16px; color:white}
.core-card-heading .icon {padding:8px; box-sizing:content-box; border-radius:50%; background:#ffffff22}
.core-card-period {font-size:12px; color:#f0f6ff; margin:0}
.home-summary-values {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0}
.home-summary-values > div {display:block; padding:0; border:0}
.home-summary-values > div:first-child {grid-column:1/-1; padding-bottom:12px; border-bottom:1px solid #ffffff33}
.home-summary-values span,.home-summary-values small {color:#f0f6ff}
.home-summary-values > div:first-child strong {font-size:clamp(32px,2.8vw,42px); color:white; letter-spacing:-1px}
.home-summary-values strong {font-size:26px; color:white; margin:5px 0; line-height:1.25}
.home-summary-values small {font-size:12px}
.core-card-snapshot {padding:8px 12px; border:1px solid #ffffff30; background:#ffffff16; border-radius:999px; font-size:12px; margin-top:auto}
.home-summary-band > .text-button {color:white; font-size:12px; margin-top:0}
.home-efficiency .home-v2-top {gap:8px; margin-bottom:12px}
.home-efficiency .home-v2-top h2 {font-size:16px}
.home-efficiency .home-v2-top .text-button {font-size:12px}
.home-efficiency .home-v2-kpis {grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; grid-auto-rows:1fr}
.home-efficiency .home-v2-kpis .stat-card {padding:12px; min-height:94px; border-radius:16px; background:#f2f6fc; border:1px solid #e3eaf4}
.home-efficiency .home-v2-kpis .stat-value {font-size:24px; margin:6px 0}
.home-efficiency .home-v2-kpis .stat-top .icon {display:none}
.home-efficiency .stat-foot {font-size:12px; line-height:1.4}
.home-fold > summary {font-size:16px; align-items:flex-start; flex-direction:column; gap:6px}
.home-fold > summary > span {width:100%; justify-content:space-between}
.home-fold[open] > summary {padding-bottom:14px}
.home-v2 .dashboard-business-card {background:linear-gradient(145deg,#42b5f3,#2878ff 55%,#4545f5); border-color:#5299fd; color:white; display:flex; flex-direction:column}
.dashboard-business-card .panel-header h2,.dashboard-business-card .panel-header .icon {color:white}
.home-v2 .dashboard-business-card .panel-body {display:flex; flex-direction:column; align-items:stretch; gap:12px; flex:1}
.home-v2 .dashboard-store-total {display:flex; gap:8px; align-items:baseline; min-width:0}
.dashboard-business-card .dashboard-store-total strong {font-size:36px; color:white}
.dashboard-business-card .dashboard-store-total span {color:#f2f7ff; font-size:12px}
.home-v2 .dashboard-business-numbers {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); min-width:0; width:100%; gap:8px; flex:0; padding:12px 0; border-top:1px solid #ffffff33}
.dashboard-business-numbers a {display:flex; flex-direction:column; gap:4px; color:white; border-radius:12px; padding:7px; background:#ffffff12}
.dashboard-business-numbers strong,.dashboard-business-numbers strong.negative {color:white; font-size:24px}
.dashboard-business-numbers span {color:#f2f7ff; font-size:12px}
.dashboard-business-card .btn.dark {margin-top:auto; background:#ffffff20; border-color:#ffffff55; color:white; min-height:36px; font-size:12px}
.home-v2 .dashboard-business-card .panel-body > .btn {align-self:flex-start}
.dashboard-distribution {display:flex; flex-direction:column; gap:16px; align-items:center}
.distribution-ring {width:140px; height:140px; min-width:140px}
.distribution-ring > div {inset:23px}
.distribution-ring strong {font-size:24px}
.distribution-ring span {font-size:12px}
.distribution-legend {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%; order:-1}
.distribution-legend > div {gap:5px}
.distribution-legend strong {font-size:15px}
.distribution-legend small {font-size:12px}
.home-v2 .dashboard-work {background:linear-gradient(150deg,#eaf6f6e6,#f8fcffee); display:flex; flex-direction:column}
.dashboard-work .panel-body {flex:1}
.dashboard-work .empty {height:100%; min-height:160px; display:flex; flex-direction:column; justify-content:center}
.dashboard-work-list {gap:8px}
.dashboard-work-row {background:#ffffffef; padding:16px; border-radius:18px; border:1px solid #e2eaf0; box-shadow:none}
.home-v2 .home-trend {background:linear-gradient(135deg,#eaf6f6e8,#ffffffef)}
.dashboard-trend svg {display:block; width:100%; max-height:170px}
.home-v2 .home-shortcuts .home-v2-shortcuts {gap:8px}
.home-v2 .home-shortcuts .home-v2-shortcuts > a {flex-basis:100%; padding:10px; border-radius:14px}
.home-v2 .home-data-health {border-radius:24px}
@media(min-width:1700px) {
 .home-v2 .home-v2-layout {grid-template-columns:minmax(380px,1fr) minmax(0,2fr)}
 .home-efficiency .home-v2-kpis {grid-template-columns:repeat(3,minmax(0,1fr))}
 .dashboard-distribution {flex-direction:row; justify-content:space-between; gap:12px}
 .distribution-legend {grid-template-columns:1fr; width:auto; flex:1}
}
@media(max-width:1100px) {
 .main {padding:24px}
 .home-v2 .home-v2-layout {grid-template-columns:minmax(275px,1fr) minmax(0,1.5fr)}
 .home-v2-layout .dashboard-top-grid {grid-template-columns:1fr}
 .dashboard-distribution {flex-direction:row; justify-content:space-between; gap:12px}
 .distribution-legend {grid-template-columns:1fr; width:auto}
 .home-v2 .dashboard-business-card .panel-body {gap:8px}
 .core-card-snapshot {margin-top:12px}
}
@media(max-width:900px) {
 .home-v2 .home-v2-layout {display:flex; flex-direction:column; gap:14px}
 .home-v2-layout .home-summary-band {order:1}
 .home-v2-layout .home-efficiency {order:2}
 .home-v2-layout .dashboard-top-grid {order:3; display:flex; flex-direction:column; gap:14px}
 .home-v2-layout .dashboard-business-card {order:0}
 .home-v2-layout .home-distribution {order:1}
 .home-v2-layout .dashboard-work {order:4}
 .home-v2-layout .home-alerts {order:5}
 .home-v2-layout .home-trend {order:6}
 .home-v2-layout .home-shortcuts {order:7}
 .home-v2-layout .home-data-health {order:8}
 .home-summary-values {grid-template-columns:repeat(3,minmax(0,1fr))}
 .home-summary-values > div:first-child {grid-column:auto; border-bottom:0; padding-bottom:0}
 .home-summary-values > div:first-child strong {font-size:32px}
 .home-efficiency .home-v2-kpis {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px) {
 .main {padding:20px 16px 32px}
 .topbar {padding:0 16px; height:60px}
 .page-heading h1 {font-size:28px}
 .home-v2-layout {--home-inset:18px}
 .route-home .page-heading .page-actions:not(:empty) {padding:0; width:100%; gap:8px}
 .route-home .home-capsule {min-height:44px; padding:7px 12px 7px 7px; font-size:12px}
 .home-capsule > .icon {padding:6px; width:16px; height:16px}
 .home-summary-values {grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-summary-values > div:first-child {display:block; grid-column:1/-1; border-bottom:1px solid #ffffff33; padding-bottom:12px}
 .home-summary-values > div:nth-child(2) {padding-left:0}
 .home-efficiency .home-v2-kpis {grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-efficiency .home-v2-kpis .stat-card {padding:12px; min-height:94px}
 .dashboard-distribution {flex-wrap:wrap}
 .distribution-legend {min-width:130px}
}

.distribution-ring {background:conic-gradient(#2878ff var(--share),#a8e3e7 0)}
.distribution-ring > div {width:94px; height:94px; background:#fff; box-shadow:0 0 0 2px #fff}
.trend-area {fill:#42b5f318; stroke:none}
.home-v2 .dashboard-work .panel-body {max-height:330px; overflow-y:auto; min-height:0; scrollbar-width:thin}
.home-v2 .dashboard-work .panel-body .empty {min-height:160px; height:auto}
.home-v2 .home-alerts .home-v2-watchlist > article {padding:14px; border-radius:16px}
.home-v2 .home-alerts .home-v2-watchlist {gap:8px}
@media(max-width:900px) {.home-v2 .dashboard-work .panel-body {max-height:none}}
@media(max-width:900px) {
 .home-v2-layout .dashboard-top-grid {display:contents}
 .home-v2-layout .dashboard-business-card {order:3}
 .home-v2-layout .home-distribution {order:7}
 .home-v2-layout .home-shortcuts {order:8}
 .home-v2-layout .home-data-health {order:9}
}

/* Four aligned core details fill the two former gaps. */
.home-summary-band .home-summary-values {grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px}
.home-summary-band .home-summary-values > div:first-child {grid-column:1/-1; border-bottom:1px solid #ffffff33; padding-bottom:12px}
.home-summary-band .home-summary-values > div:not(:first-child) strong {font-size:clamp(19px,1.5vw,26px); letter-spacing:-.4px}
@media(max-width:1350px) {
 .home-summary-band .home-summary-values {grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-summary-band .home-summary-values > div:not(:first-child) strong {font-size:24px}
}
/* Homepage actions sit beside the title at the upper right. */
.route-home .page-heading {flex-direction:row; align-items:center; flex-wrap:wrap; gap:16px}
.route-home .page-heading > .page-heading-main {flex:1 1 300px; min-width:0}
.route-home .page-heading > .page-actions:not(:empty) {width:auto; margin-left:auto; padding:0; justify-content:flex-end; flex:0 1 auto; flex-wrap:wrap}
@media(max-width:760px) {
 .route-home .page-heading > .page-actions:not(:empty) {width:100%; justify-content:flex-end; margin-left:0}
}

/* Legible overview icon and actionable funding warnings. */
.home-v2 .dashboard-business-card .panel-header > .icon {background:#ffffff24; color:#fff; border:1px solid #ffffff44}
.home-balance-summary {width:100%; border-top:1px solid #ffffff33; padding-top:12px}
.home-balance-summary h3 {color:#fff; font-size:13px; margin-bottom:8px}
.home-balance-levels {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
.home-balance-level {padding:10px; border:1px solid #ffffff66; border-radius:14px; text-align:left; display:grid; gap:4px; background:#fff; color:#943312; min-width:0}
.home-balance-level.critical {background:#fff0f3; color:#a12743; border-color:#ffc0ce}
.home-balance-level.warning {background:#fff6e9; color:#805207; border-color:#ffdab0}
.home-balance-level > span {display:flex; align-items:center; justify-content:space-between; gap:4px; font-size:12px}
.home-balance-level .icon {width:14px; height:14px}
.home-balance-level strong {font-size:24px; line-height:1.3}
.home-balance-level strong small {font-weight:400; font-size:12px}
.home-balance-level > small {font-size:12px; line-height:1.4}
.home-balance-level:hover {filter:brightness(.97)}
.home-balance-summary > p {font-size:12px; color:#f1f6ff; margin-top:8px; line-height:1.5}
.home-balance-details {display:grid; gap:14px}
.home-balance-store {padding:16px; background:#f7f9fe; border:1px solid #dce5f1; border-radius:16px}
.home-balance-store h3 {margin-bottom:8px}

/* Compact operator performance cards and five-section store archives. */
.performance-people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:18px;align-items:start;margin:18px 0}
.performance-people-grid .performance-person{margin:0;min-width:0}
.performance-people-grid .panel-header{display:flex;align-items:flex-start;gap:10px;padding:20px 22px 12px}
.performance-people-grid .panel-header>div{flex:1 1 100%;min-width:0}
.performance-people-grid .panel-header .small-text{display:block;line-height:1.65;overflow-wrap:anywhere}
.performance-people-grid .performance-body{padding:0 22px 18px}
.performance-people-grid .performance-body>h3{margin:8px 0 14px;font-size:20px}
.performance-people-grid .performance-dual{grid-template-columns:minmax(0,1fr);gap:10px;margin:12px 0}
.performance-people-grid .performance-progress{padding:14px 16px;border:1px solid #e0e6fc;background:#f6f8ff;border-radius:14px}
.performance-people-grid .performance-person details{border-top:1px solid #e7ebf7;margin-top:10px}
.performance-people-grid .performance-stores,.performance-people-grid .performance-weekly{grid-template-columns:minmax(0,1fr);max-height:380px;overflow:auto}
.store-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.store-profile-section .panel-header h2{display:flex;align-items:center;gap:10px;font-size:17px}
.store-profile-number{display:inline-grid;place-items:center;width:28px;height:28px;flex:none;border-radius:9px;background:#e9edff;color:#4658de;font-size:13px}
.store-profile-section .panel-header{padding:16px 20px;background:#f7f9ff}
.store-profile-section .panel-body{padding:18px 20px}
.store-profile-section .field{margin:0;min-width:0}
.store-profile-section input,.store-profile-section select,.store-profile-section textarea{width:100%;min-width:0}
.store-profile-value{display:flex;flex-direction:column;gap:6px;padding:10px 12px;background:#f7f9ff;border-radius:10px;min-width:0}
.store-profile-value span{font-size:12px;color:#65728b}
.store-profile-value strong{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:640px){.store-profile-grid{grid-template-columns:minmax(0,1fr)}.performance-people-grid .panel-header{padding:16px}.performance-people-grid .performance-body{padding:0 16px 16px}}

.store-intake-item{padding:16px;margin-bottom:12px;border:1px solid #dde4fb;background:#f8faff;border-radius:16px}.store-intake-item blockquote{margin:12px 0;padding:10px 12px;border-left:3px solid #7181eb;background:white;color:#40516d;font-size:14px;white-space:pre-wrap}.store-intake-item select{width:100%}.store-intake-transcript{white-space:pre-wrap;font-size:14px;line-height:1.8}.store-intake-item .check-field input{width:auto}

.store-expiry-tag{display:inline-block;margin:0 0 12px;padding:7px 11px;border-radius:10px;background:#fff3db;border:1px solid #f1d49a;color:#8a5307;font-size:13px;font-weight:600}.store-expiry-tag.urgent{background:#fff0f1;border-color:#f3c3cb;color:#b52b47}

.store-reported-business{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;padding:12px;background:#f5f7ff;border:1px solid #e2e7fa;border-radius:12px}.store-reported-business span{font-size:12px;color:#68758f}.store-reported-business strong{display:block;margin-top:5px;font-size:18px;color:#273752}.store-reported-business small{grid-column:1/-1;color:#68758f;font-size:11px}

/* 电话邀约：限宽、单列复盘，证据与建议分层阅读。 */
.drawer.call-review{width:min(920px,calc(100vw - 32px));max-width:920px}
.call-review .drawer-body{padding:24px;line-height:1.7}
.call-toolbar{display:flex;justify-content:flex-end;margin:12px 0 16px}
.call-overview{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px;background:#f1f4ff;border:1px solid #dce4f7;border-radius:20px}
.call-overview span{color:#536482;font-size:13px}.call-overview strong{display:block;color:#25375d;font-size:32px;line-height:1.4;margin:6px 0}.call-overview strong small{font-size:15px;font-weight:500}.call-overview p{font-size:12px;color:#5f6d84;margin:0}
.call-counts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #dce4f7;padding-top:12px}.call-counts span{background:#fff;border-radius:8px;padding:5px 10px}.call-counts b{margin-left:8px;color:#263750}
.call-result{margin:18px 0;padding:18px 20px;border-radius:16px;background:#edf8f5;border:1px solid #c9e5db;border-left:4px solid #299276}.call-result p{margin:6px 0 0;color:#214d41}
.call-eyebrow{font-size:12px;font-weight:700;color:#526580;letter-spacing:.03em}
.call-fold{margin:14px 0;padding:14px 18px;border:1px solid #dde4ef;border-radius:14px;background:#fff}.call-fold summary,.call-evidence summary{cursor:pointer;font-weight:600;color:#425880}.call-fold p{white-space:pre-wrap}.call-fold[open] summary{margin-bottom:14px}
.call-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}.call-section-heading h3{margin:0;font-size:18px}.call-section-heading>span{font-size:12px;color:#63738c}
.call-step-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.call-step-nav button{font-size:12px;padding:6px 10px;border-radius:8px;background:#f4f6fa;color:#4e607a;text-decoration:none;border:1px solid #dde4ef}.call-step-nav button.uncertain{background:#fff8eb;color:#875f20;border-color:#efddb7}.call-step-nav button.rated{background:#edf7f2;color:#267055;border-color:#c9e6d7}
.call-items{display:grid;gap:14px}.call-item{background:#fff;border:1px solid #dce4ef;border-radius:18px;padding:18px 20px;scroll-margin-top:20px}.call-item header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e5eaf2}.call-item-title{display:flex;align-items:center;gap:10px}.call-item h3{margin:0;font-size:16px;color:#24344f}.call-item-number{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eff2fb;color:#5b6bb0;font-size:12px;font-weight:700;flex-shrink:0}.call-status{white-space:nowrap;padding:4px 9px;font-size:12px;border-radius:7px;background:#eef1f6;color:#526078}.uncertain .call-status{background:#fff4df;color:#875a12}.rated .call-status{background:#eaf6ef;color:#267252}
.call-observation{padding:14px 0}.call-item p{margin:5px 0 0;white-space:pre-wrap;font-size:14px;color:#34445e}.call-suggestion{background:#eff4ff;border:1px solid #dbe5fa;border-radius:12px;padding:12px 14px}.call-suggestion .call-eyebrow{color:#415fa8}.call-suggestion p{color:#263f70}.call-evidence{margin-top:14px;font-size:13px}.call-evidence blockquote{margin:10px 0 0;padding:10px 14px;background:#f8fafc;border-left:3px solid #b9c5da;color:#526078;white-space:pre-wrap}.call-item p.call-evidence-missing{font-size:12px;color:#768297;margin-top:12px}
@media(max-width:600px){.drawer.call-review{width:100vw;max-width:100vw}.call-review .drawer-body{padding:16px}.call-overview{padding:16px;gap:12px}.call-overview strong{font-size:25px}.call-item{padding:16px}.call-item header{align-items:flex-start;flex-direction:column;gap:8px}.call-section-heading{align-items:flex-start;flex-direction:column;gap:2px}.call-toolbar .btn{width:100%;justify-content:center}}

.call-step-nav button{font:inherit;font-size:12px;cursor:pointer}
.store-month-bar{padding:16px;background:#f4f7ff;border:1px solid #dbe5f5;border-radius:16px;margin-bottom:18px}.store-month-bar>.inline-actions{margin-top:10px;flex-wrap:wrap}.store-month-status{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.store-month-status span{font-size:12px;padding:4px 9px;border-radius:7px}.store-month-status .pending{background:#fff2dc;color:#845d20}.store-month-status .complete{background:#e6f4ee;color:#286e55}
.distribution-detail{margin-top:20px;border-top:1px solid #dce5f3;padding-top:16px}.distribution-detail h3{font-size:14px;margin:0 0 12px}.distribution-detail>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.distribution-detail section{padding:12px;background:#f2f6ff;border-radius:12px}.distribution-detail span{display:block;font-size:12px;color:#61728f}.distribution-detail strong{display:block;font-size:18px;color:#2d4164;margin-top:6px}.broadcast-gap-panel>summary{padding:18px;cursor:pointer;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.broadcast-gap-list article{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e3e9f3}.broadcast-gap-list article>div{flex:1}.broadcast-gap-list p{margin:4px 0 0}@media(max-width:600px){.distribution-detail>div{grid-template-columns:1fr}.broadcast-gap-list article{flex-wrap:wrap}.broadcast-gap-list article>div{flex-basis:100%}}

/* 门店经营明细：桌面每排四店，卡内指标两列，避免通栏留白。 */
.store-metric-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.store-metric-entry{display:flex;flex-direction:column;min-width:0;padding:16px}
.store-metric-entry>header{flex:1;flex-wrap:wrap;gap:8px;align-content:flex-start}
.store-metric-entry>header>div{flex-basis:100%;overflow-wrap:anywhere}
.store-metric-entry>header>.icon-btn{margin-left:auto;width:30px;height:30px}
.store-metric-entry dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
.store-metric-entry dd{font-size:18px;line-height:1.5}
@media(max-width:1200px){.store-metric-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.store-metric-list{grid-template-columns:1fr;gap:12px}}

/* 预警模块分列独立堆叠，短模块不再等待相邻长模块占满整行。 */
.insight-column{display:grid;gap:18px;min-width:0;align-content:start}
.insight-column>.insight-module{height:auto;min-height:0;margin:0}
@media(max-width:1100px){.insight-modules{display:flex;flex-direction:column;gap:16px}.insight-column{display:contents}.insight-module{width:100%}}

/* 资料中心：紧凑卡片、限宽阅读、版本与学习状态分层。 */
.library-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:20px}.library-stats .stat-card{padding:16px;min-height:0}.library-stats .stat-value{font-size:27px}.library-stats .stat-foot{font-size:11px}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.library-card{display:flex;flex-direction:column;gap:12px;padding:20px}.library-card h2{font-size:18px;margin:0}.library-card p{margin:0;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.library-card>.btn{margin-top:auto;align-self:flex-start}.library-tags,.library-personal-state,.library-version-tabs{display:flex;gap:8px;flex-wrap:wrap}.library-personal-state{align-items:center;font-size:13px}.library-version-tabs{margin:18px 0}
.drawer.library-review{width:min(940px,calc(100vw - 24px));max-width:940px}.library-review .inline-actions{flex-wrap:wrap}.library-change-card,.library-guide,.library-confirm,.library-questions{padding:18px;border:1px solid #dce5f4;border-radius:16px;margin-bottom:18px;line-height:1.8}.library-change-card{background:#f0f4ff}.library-change-card h3,.library-guide h3,.library-confirm h3,.library-questions h3{margin:0 0 10px;font-size:17px}.library-change-card .flex-between{flex-wrap:wrap;gap:8px}.library-guide{background:#fff}.library-guide>div{margin-bottom:12px}.library-guide p{margin:5px 0;white-space:pre-wrap}.library-guide ol{padding-left:22px;margin:10px 0}.library-guide li{padding:8px 0}.library-guide li>.btn{font-size:11px;min-height:28px;padding:4px 10px;margin-left:12px}.library-confirm{background:#edf8f1;border-color:#cce6d5}.library-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:14px}.library-question{padding:15px;border:1px solid #e0e6f0;border-radius:12px;margin-top:12px}.library-question p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.library-question .inline-actions{margin-top:12px}.library-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:300px;overflow:auto;padding:12px;border:1px solid #dbe3f0;border-radius:12px;margin:12px 0}.library-people label{display:flex;align-items:center;gap:10px;min-height:40px;padding:8px;background:#f5f7fd;border-radius:8px;font-size:13px}.library-people-actions{display:flex;gap:8px}.library-task-links{display:flex;gap:8px;flex-wrap:wrap;padding:12px;background:#eff4ff;border-radius:12px;margin-bottom:14px}.library-task-links>span{flex-basis:100%}.library-task-links .btn{font-size:12px;min-height:34px}
@media(max-width:1200px){.library-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.library-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.library-grid{grid-template-columns:1fr}.drawer.library-review{width:100vw;max-width:100vw}.library-people{grid-template-columns:1fr}.library-guide li>.btn{display:block;margin:6px 0 0}.library-change-card,.library-guide,.library-confirm,.library-questions{padding:14px}}

/* 首页按列独立流动，避免最高卡片撑高同排的所有卡片。 */
.home-v2 .home-flow-layout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:none;gap:16px;align-items:start}
.home-v2 .home-flow-layout>.home-flow-column{display:flex;flex-direction:column;gap:16px;min-width:0;align-self:start}
.home-flow-layout .home-flow-column>*{grid-area:auto;order:0;width:100%;height:auto;min-height:0;margin:0;align-self:stretch}
.home-flow-layout .core-card-snapshot{margin-top:12px}
.home-v2 .home-flow-layout .dashboard-business-card .panel-body{flex:0 1 auto;align-items:stretch}
.home-flow-layout .dashboard-business-card .btn.dark{margin-top:12px}
.home-flow-layout .home-efficiency .home-v2-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-flow-layout .distribution-detail>div{gap:8px}
.home-flow-layout .distribution-detail section{padding:10px}
.home-flow-layout .distribution-detail strong{font-size:17px}
@media(max-width:1400px) and (min-width:801px){
 .home-v2 .home-flow-layout{display:block;column-count:2;column-gap:16px}
 .home-v2 .home-flow-layout>.home-flow-column{display:contents}
 .home-flow-layout .home-flow-column>*{display:inline-block;vertical-align:top;width:100%;break-inside:avoid;margin:0 0 16px}
 .home-v2 .home-flow-layout .home-summary-band,.home-v2 .home-flow-layout .dashboard-business-card,.home-v2 .home-flow-layout .dashboard-work{display:inline-flex;flex-direction:column}
}
@media(max-width:800px){
 .home-v2 .home-flow-layout{display:flex;flex-direction:column;gap:14px}
 .home-v2 .home-flow-layout>.home-flow-column{display:contents}
 .home-flow-layout .home-flow-column>*{width:100%;margin:0}
 .home-flow-layout .home-summary-band{order:1}.home-flow-layout .home-efficiency{order:2}.home-flow-layout .dashboard-business-card{order:3}.home-flow-layout .dashboard-work{order:4}.home-flow-layout .home-alerts{order:5}.home-flow-layout .home-trend{order:6}.home-flow-layout .home-distribution{order:7}.home-flow-layout .home-shortcuts{order:8}.home-flow-layout .home-data-health{order:9}
}
/* Store reports keep the weekly/monthly switch and copy actions together. */
.board-controls {display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px;max-width:610px;min-width:0}
.board-controls select {width:auto;min-width:130px;max-width:100%;margin:0}
@media(max-width:800px){.board-controls {margin-top:14px;justify-content:flex-start;max-width:100%}.board-controls .btn {white-space:normal}.board-controls select {flex:1;min-width:130px}}
