
  .pg-head .rg-pop{ width:min(640px,calc(100vw - 290px)); max-height:calc(100vh - 150px); overflow:auto; }
  .pg-head .rg-main{ flex:1; min-width:0; }
  .pg-head .rg-cals{ gap:12px; }
  .pg-head .rg-cal{ flex:1; width:auto; min-width:0; }
  .pg-head .rg-day{ border:none; background:transparent; font-family:inherit; padding:0; }
  .pg-head .rg-day:hover{ background:#fbe9ef; }
  .pg-head .rg-day.inr{ background:#f7e3ea; }
  .pg-head .rg-day.sel-s,.pg-head .rg-day.sel-e{ background:var(--brand-grad); }
  .pg-head .rg-foot{ flex-wrap:wrap; }
  .pg-head .rg-inputs{ min-width:0; }
  .pg-head .rg-inputs input{ min-width:0; flex:1; }
  .pg-head .rg-inputs input[aria-invalid="true"]{ border-color:var(--red); }
  .pg-head .rg-day:focus-visible,.pg-head .rg-btn:focus-visible{ outline:2px solid var(--rose-deep); outline-offset:2px; }
  .stat-row{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
  .stat-row .stat>div:not(.si){ min-width:0; }
  .stat-row .sv{ font-size:22px; line-height:1.3; overflow-wrap:anywhere; }
  .stat-row .delta{ display:inline-block; white-space:nowrap; }
  .stat-primary{ grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .stat-primary .metric-card{ display:block; min-width:0; padding:14px 16px; }
  .stat-primary .metric-equity{ grid-column:1 / -1; }
  .metric-heading{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:6px; }
  .metric-heading h2{ font-size:13px; font-weight:800; margin:0; }
  .metric-period{ font-size:10.5px; color:var(--muted); text-align:right; }
  .metric-note{ font-size:10.5px; line-height:1.5; color:var(--muted); margin-top:3px; }
  .metric-totals{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; }
  .metric-totals>div{ min-width:0; }
  .metric-profit{ display:flex; flex-direction:column; gap:3px; padding-left:14px; border-left:1px solid var(--line); font-size:11px; color:var(--muted); }
  .metric-profit b{ font-size:20px; color:#36805d; overflow-wrap:anywhere; }
  .metric-profit.loss b{ color:var(--red); }
  .breakdown{ position:relative; margin-top:10px; }
  .breakdown-title{ font-size:10.5px; color:var(--muted); }
  .breakdown-part{ cursor:help; }
  .breakdown-segment:hover,.breakdown-segment:focus{ filter:brightness(1.08); }
  .breakdown-part:focus-visible{ outline:2px solid var(--rose-deep); outline-offset:2px; }
  .breakdown .breakdown-stack{ height:12px; margin:6px 0 8px; }
  .breakdown-list{ display:grid; grid-template-columns:repeat(auto-fit,minmax(84px,1fr)); gap:4px 8px; min-width:0; }
  .breakdown-key{ display:grid; grid-template-columns:8px minmax(0,1fr); align-items:baseline; gap:5px; padding:2px 0; border-radius:4px; font-size:11px; }
  .breakdown-key:hover,.breakdown-key:focus{ background:var(--soft); }
  .breakdown-key i{ width:8px; height:8px; border-radius:3px; }
  .breakdown-label{ display:flex; flex-wrap:wrap; gap:1px 5px; line-height:1.3; color:var(--muted); }
  .breakdown-amount{ display:block; margin-top:2px; font-size:12px; font-weight:700; line-height:1.35; overflow-wrap:anywhere; }
  .breakdown-percent{ font-size:10px; color:var(--muted); font-weight:500; white-space:nowrap; }
  .breakdown-empty{ margin:6px 0 8px; padding:6px 8px; background:var(--soft); border-radius:8px; color:var(--muted); font-size:11px; line-height:1.5; text-align:center; }
  .breakdown-tooltip{ position:absolute; top:100%; left:0; right:0; z-index:10; margin-top:6px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 4px 16px rgba(58,49,64,.15); color:var(--ink); font-size:12px; line-height:1.5; overflow-wrap:anywhere; pointer-events:none; }
  .metric-warning{ margin-top:6px; color:var(--red); font-size:10.5px; line-height:1.4; overflow-wrap:anywhere; }
  .equity-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 14px; margin-top:8px; }
  .equity-item{ min-width:0; padding-left:14px; border-left:1px solid var(--line); }
  .equity-item:first-child{ padding-left:0; border-left:none; }
  .equity-label{ font-size:11px; color:var(--muted); }
  .equity-value{ font-size:18px; font-weight:800; line-height:1.4; overflow-wrap:anywhere; }
  .equity-value small{ font-size:11px; font-weight:500; color:var(--muted); margin-left:4px; }
  .equity-note{ margin-top:8px; }
  .stat-secondary .stat{ padding:12px 16px; gap:10px; }
  .stat-secondary .si{ width:34px; height:34px; flex-basis:34px; border-radius:10px; }
  .stat-secondary .si svg{ width:18px; height:18px; }
  .stat-secondary .sv{ font-size:18px; }
  .stat-secondary .sl{ font-size:11.5px; }
  .dash-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:12px; }
  .dcard{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px 16px; box-shadow:0 10px 26px -22px rgba(120,70,95,.6); }
  .dcard.wide{ grid-column:1 / -1; }
  .dcard h3{ font-size:13.5px; font-weight:800; display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
  .dcard h3 .sub{ font-size:11.5px; color:var(--muted); font-weight:600; }
  /* 柱状图（营收趋势） */
  .vbars{ display:flex; align-items:flex-end; gap:8px; height:164px; }
  .vbars .vb{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:7px; height:100%; min-width:0; }
  .vbars .vb b{ font-size:10.5px; color:var(--muted); font-weight:700; }
  .vbars .vb i{ display:block; width:100%; max-width:30px; border-radius:8px 8px 3px 3px; background:linear-gradient(180deg,#e8b3c0,#c25e77); transition:filter .18s; }
  .vbars .vb:hover i{ filter:brightness(1.1); }
  .vbars .vb.cur i{ background:linear-gradient(180deg,#f2cd85,#c9952f); }
  .vbars .vb.cur b{ color:#c9952f; }
  .vbars .vb span{ font-size:10.5px; color:var(--muted); }
  /* 横向条（门店对比 / 等级） */
  .hrow{ margin-bottom:14px; } .hrow:last-child{ margin-bottom:2px; }
  .hrow .ht{ display:flex; justify-content:space-between; align-items:baseline; font-size:12.5px; margin-bottom:7px; gap:10px; }
  .hrow .ht b{ font-weight:700; } .hrow .ht .hv{ color:var(--rose-deep); font-weight:800; } .hrow .ht span{ color:var(--muted); font-size:11.5px; }
  .hbar{ height:9px; border-radius:99px; background:var(--soft); overflow:hidden; }
  .hbar i{ display:block; height:100%; border-radius:99px; background:var(--brand-grad); transition:width .4s ease; }
  .hbar i.g2{ background:linear-gradient(90deg,#f2cd85,#c9952f); }
  .hbar i.g3{ background:linear-gradient(90deg,#c9b7e0,#8a76b8); }
  /* 排行 */
  .rank{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px dashed var(--line); }
  .rank:last-child{ border-bottom:none; padding-bottom:2px; }
  .rank .no{ width:23px; height:23px; border-radius:7px; background:var(--soft); color:var(--muted); font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; flex:0 0 23px; }
  .rank.t1 .no{ background:var(--brand-grad); color:#fff; } .rank.t2 .no{ background:linear-gradient(135deg,#f2cd85,#c9952f); color:#fff; } .rank.t3 .no{ background:linear-gradient(135deg,#e8b3c0,#d98a9b); color:#fff; }
  .rank .nm{ flex:1; min-width:0; font-size:13px; font-weight:600; }
  .rank .nm small{ display:block; color:var(--muted); font-size:11px; font-weight:500; margin-top:2px; }
  .rank .vv{ font-size:13px; font-weight:800; color:var(--rose-deep); text-align:right; }
  .rank .vv small{ display:block; font-size:11px; color:var(--muted); font-weight:600; margin-top:2px; }
  /* 时段分布 */
  .slots{ display:flex; gap:10px; align-items:flex-end; height:144px; }
  .slots .sl{ flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:7px; height:100%; min-width:0; }
  .slots .sl b{ font-size:10.5px; color:var(--muted); font-weight:700; }
  .slots .sl i{ display:block; width:100%; max-width:44px; border-radius:8px; background:#f3dfe6; }
  .slots .sl.hot i{ background:var(--brand-grad); }
  .slots .sl.hot b{ color:var(--rose-deep); }
  .slots .sl span{ font-size:10.5px; color:var(--muted); white-space:nowrap; }
  /* 等级构成 */
  .stack{ display:flex; height:16px; border-radius:99px; overflow:hidden; margin:4px 0 14px; }
  .stack i{ display:block; height:100%; }
  .lgd{ display:flex; flex-wrap:wrap; gap:18px; }
  .lgd .li{ display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--muted); }
  .lgd .li i{ width:10px; height:10px; border-radius:3px; flex:0 0 10px; }
  .lgd .li b{ color:var(--ink); font-weight:700; }
  .empty-state{ min-height:120px; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:13px; }

  @media (max-width:1180px){
    .pg-head .rg{ width:100%; }
    .pg-head .rg-pop{ left:0; right:auto; }
    .metric-totals{ grid-template-columns:1fr; gap:6px; }
    .metric-profit{ flex-direction:row; align-items:baseline; justify-content:space-between; padding-left:0; border-left:none; }
    .breakdown-list{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  }
  @media (max-width:1000px){
    .stat-primary{ grid-template-columns:1fr; }
    .metric-totals{ grid-template-columns:minmax(0,1fr) auto; }
    .metric-profit{ flex-direction:column; padding-left:12px; border-left:1px solid var(--line); }
    .equity-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:8px; }
    .equity-item:nth-child(3){ padding-left:0; border-left:none; }
    .stat-secondary .stat{ padding:10px; gap:8px; min-width:0; }
  }
  @media (max-width:900px){
    .dash-grid{ grid-template-columns:1fr; }
    .dcard.wide{ grid-column:auto; }
  }
  @media (max-width:760px){
    .pg-head .rg-cals{ flex-direction:column; }
  }
  @media (max-width:640px){
    .pg-head .rg-pop{ width:calc(100vw - 106px); }
    .pg-head .rg-side{ width:86px; flex-basis:86px; padding:12px 6px; }
    .pg-head .rg-main{ padding:12px 8px; }
    .pg-head .rg-inputs{ flex-basis:100%; }
    .pg-head .rg-acts{ margin-left:auto; }
    .sidebar{ width:66px; flex-basis:66px; }
    .side-brand .txt,.side-foot,.menu a span.lbl,.menu a .badge{ display:none; }
    .menu .group{ text-align:center; font-size:0; padding:8px 0; }
    .menu .group::after{ content:"···"; font-size:12px; }
    .menu a{ justify-content:center; padding:11px 0; }
    .topbar{ padding:0 10px; gap:8px; }
    .store-btn{ max-width:120px; }
    .vdivider{ display:none; }
    .stat-row{ grid-template-columns:1fr; }
    .metric-totals{ grid-template-columns:1fr; gap:6px; }
    .metric-profit{ flex-direction:row; align-items:baseline; justify-content:space-between; padding-left:0; border-left:none; }
    .stat-primary .metric-card,.dcard{ padding:12px; }
    .breakdown-list{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .vbars{ gap:4px; overflow-x:auto; }
    .vbars .vb{ min-width:24px; }
    .slots{ gap:5px; }
    .lgd{ gap:12px; }
  }
