/* ==========================================================================
   screens-admin.css — 净屋 · 家政保洁 PC 后台 8 屏专属样式
   布局骨架（侧栏、顶栏、表格、抽屉、表单）在 admin.css；
   这里只补 dashboard / services / aunties / dispatch / orders /
   complaints / reports / settings 这八屏自己的说法。
   ========================================================================== */

/* ==========================================================================
   1. 平台概览
   ========================================================================== */
.dash-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dash-bar__note { margin-left: auto; font-size: var(--fs-11); color: var(--c-text-2); }
.supply-chart { position: relative; height: 188px; padding: 8px 4px 0; }
.supply-chart__grid {
  position: absolute; left: 0; right: 0; top: 8px; bottom: 26px;
  background: repeating-linear-gradient(to top, var(--c-line) 0 1px, transparent 1px 25%);
  pointer-events: none;
}
.supply-cols { position: relative; z-index: 1; display: flex; align-items: stretch; gap: 10px; height: 100%; }
.supply-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.supply-pair { display: flex; align-items: flex-end; justify-content: center; gap: 5px; width: 100%; height: 138px; }
.supply-bar { width: 26px; max-width: 34%; border-radius: var(--r-6) var(--r-6) 0 0; position: relative; min-height: 3px; }
.supply-bar--demand { background: var(--c-chart-1); }
.supply-bar--supply { background: var(--c-chart-2); }
.supply-bar__v {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: var(--c-text-2); white-space: nowrap;
}
.supply-label { font-size: 10px; color: var(--c-text-2); white-space: nowrap; }
.heat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.heat-card { padding: 10px 12px; border-radius: var(--r-10); border: 1px solid var(--c-line); background: var(--c-fill); }
.heat-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.heat-card__name { font-size: var(--fs-12); font-weight: var(--fw-m); }
.heat-card__rate { font-size: var(--fs-16); font-weight: var(--fw-s); font-variant-numeric: tabular-nums; }
.heat-card__bar { height: 5px; border-radius: var(--r-99); background: var(--c-line-2); margin-top: 8px; overflow: hidden; }
.heat-card__bar span { display: block; height: 100%; border-radius: var(--r-99); background: var(--c-brand); }
.heat-card--1 { background: var(--c-fill); }
.heat-card--2 { background: var(--c-brand-soft); }
.heat-card--3 { background: var(--c-warn-soft); }
.heat-card--4 { background: var(--c-danger-soft); }
.heat-card--1 .heat-card__bar span { background: var(--c-text-4); }
.heat-card--2 .heat-card__bar span { background: var(--c-brand); }
.heat-card--3 .heat-card__bar span { background: var(--c-warn); }
.heat-card--4 .heat-card__bar span { background: var(--c-danger); }
.todo-grid { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.todo-grid::-webkit-scrollbar { display: none; }
.todo-grid > .todo-tile { flex: 0 0 auto; width: 160px; }
.todo-tile {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px; text-align: left;
  border: 1px solid var(--c-line); border-radius: var(--r-10); background: var(--c-card);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.todo-tile:hover { background: var(--c-fill); border-color: var(--c-line-2); }
.todo-tile__main { flex: 1; min-width: 0; }
.todo-tile__k { font-size: 10px; color: var(--c-text-2); }
.todo-tile__v { font-size: var(--fs-17); font-weight: var(--fw-s); }
.todo-tile__v .unit { font-size: var(--fs-10); }
.dash-note { margin-top: 10px; }

/* ==========================================================================
   2. 服务目录
   ========================================================================== */
.svc-name { display: flex; align-items: center; gap: 8px; }
.svc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand); flex: 0 0 auto; }
.svc-cat { font-size: var(--fs-12); }
.svc-price { display: inline-flex; align-items: center; gap: 6px; }
.svc-price__edit {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 6px; border-radius: var(--r-6);
  border: 1px dashed var(--c-line-2); font-size: var(--fs-12); font-variant-numeric: tabular-nums;
}
.svc-price__edit:hover { border-color: var(--c-brand); background: var(--c-brand-soft); }
.svc-price__edit span { font-size: 9px; color: var(--c-text-2); }
.svc-save { display: inline-flex; align-items: center; gap: 4px; }
.svc-includes { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.batchbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--c-fill); border-bottom: 1px solid var(--c-line); flex-wrap: wrap;
}
.batchbar__n { font-size: var(--fs-12); font-weight: var(--fw-m); }
.price-matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-12); }
.price-matrix th {
  padding: 0 10px; height: 36px; text-align: right; font-size: 10px; font-weight: var(--fw-m);
  color: var(--c-text-2); background: var(--c-fill); border-bottom: 1px solid var(--c-line); white-space: nowrap;
}
.price-matrix th:first-child, .price-matrix td:first-child { text-align: left; }
.price-matrix td { padding: 0 10px; height: 42px; border-bottom: 1px solid var(--c-line); text-align: right; white-space: nowrap; }
.price-matrix tr:last-child td { border-bottom: 0; }
.price-matrix .tier-val { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.price-matrix .tier-val button { font-size: var(--fs-11); color: var(--c-brand-ink); text-decoration: underline; }
.addon-table { width: 100%; border-collapse: collapse; font-size: var(--fs-12); }
.addon-table th { padding: 0 10px; height: 32px; text-align: left; font-size: 10px; color: var(--c-text-2); background: var(--c-fill); border-bottom: 1px solid var(--c-line); }
.addon-table td { padding: 0 10px; height: 38px; border-bottom: 1px solid var(--c-line); }
.addon-table tr:last-child td { border-bottom: 0; }
.addon-price { display: inline-flex; align-items: center; gap: 4px; }
.addon-price input { width: 66px; height: 28px; padding: 0 7px; text-align: right; border: 1px solid var(--c-line-2); border-radius: var(--r-6); font-size: var(--fs-11); }
.addon-price input:focus { border-color: var(--c-brand-strong); outline: 0; }
.price-tip { font-size: var(--fs-10); color: var(--c-text-2); line-height: 1.6; }
.area-checks { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.area-check { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-12); color: var(--c-text-1); }

/* ==========================================================================
   3. 阿姨档案
   ========================================================================== */
.auntie-cell { display: flex; align-items: center; gap: 9px; }
.avatar--tone-1 { background: var(--c-tone-1); color: var(--c-text-1); }
.avatar--tone-2 { background: var(--c-tone-2); color: var(--c-text-1); }
.avatar--tone-3 { background: var(--c-tone-3); color: var(--c-text-1); }
.avatar--tone-4 { background: var(--c-tone-4); color: var(--c-text-1); }
.avatar--tone-5 { background: var(--c-tone-5); color: var(--c-text-1); }
.avatar--tone-6 { background: var(--c-tone-6); color: var(--c-text-1); }
.doc-cell { display: flex; flex-direction: column; gap: 3px; }
.doc-cell__tags { display: flex; gap: 4px; flex-wrap: wrap; }
.doc-cell__sub { font-size: 9px; color: var(--c-text-2); }
.skill-list { display: flex; gap: 4px; flex-wrap: wrap; max-width: 210px; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--c-warn); }
.stars .num { font-size: var(--fs-12); color: var(--c-text-1); margin-left: 2px; }
.slot-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.slot-chip { font-size: 9px; padding: 1px 6px; border-radius: var(--r-99); background: var(--c-fill); color: var(--c-text-2); white-space: nowrap; }
.slot-chip.is-free { background: var(--c-success-soft); color: var(--c-success-ink); }
.auntie-head { display: flex; align-items: center; gap: 12px; }
.auntie-head__main { flex: 1; min-width: 0; }
.auntie-head__name { font-size: var(--fs-18); font-weight: var(--fw-s); }
.auntie-head__meta { font-size: var(--fs-11); color: var(--c-text-2); margin-top: 2px; }
.doc-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--c-line); }
.doc-row:first-child { border-top: 0; }
.doc-row__main { flex: 1; min-width: 0; }
.doc-row__t { font-size: var(--fs-12); font-weight: var(--fw-m); }
.doc-row__m { font-size: 10px; color: var(--c-text-2); margin-top: 2px; }
.doc-row__side { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.auntie-flag { font-size: 9px; color: var(--c-text-2); margin-top: 2px; }

/* ==========================================================================
   4. 派单工作台
   ========================================================================== */
.dispatch-layout { display: grid; grid-template-columns: 420px 96px minmax(0, 1fr); gap: 14px; align-items: start; }
.dispatch-col { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-14); overflow: hidden; box-shadow: var(--sh-1); }
.dispatch-col__head {
  display: flex; align-items: center; gap: 7px; padding: 11px 13px;
  background: var(--c-fill); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 2;
}
.dispatch-col__title { font-size: var(--fs-13); font-weight: var(--fw-s); }
.dispatch-col__n { font-size: var(--fs-11); color: var(--c-text-2); }
.dispatch-col__body { max-height: 590px; overflow-y: auto; padding: 9px; display: grid; gap: 7px; align-content: start; }
.dispatch-tools { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border-bottom: 1px solid var(--c-line); flex-wrap: wrap; background: var(--c-card); }
.dispatch-tools .chip { height: 26px; padding: 0 9px; font-size: var(--fs-11); }
.order-card {
  position: relative; width: 100%; text-align: left; border: 1px solid var(--c-line); border-radius: var(--r-10);
  padding: 9px 11px 9px 34px; background: var(--c-card); transition: border-color var(--t-fast), background var(--t-fast);
}
.order-card:hover { background: var(--c-fill); }
.order-card.is-on { border-color: var(--c-brand-strong); background: var(--c-brand-soft); box-shadow: 0 0 0 1px var(--c-brand-strong); }
.order-card .check { position: absolute; left: 10px; top: 12px; }
.order-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.order-card__name { font-size: var(--fs-13); font-weight: var(--fw-m); }
.order-card__tag { flex: 0 0 auto; }
.order-card__meta { font-size: 10px; color: var(--c-text-2); margin-top: 3px; line-height: 1.55; }
.order-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; }
.order-card__amt { font-size: var(--fs-13); font-weight: var(--fw-s); }
.order-card__area { font-size: 9px; color: var(--c-text-2); }
.dispatch-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 160px; }
.dispatch-arrow {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-brand-strong); color: var(--c-on-brand); box-shadow: var(--sh-2);
}
.dispatch-arrow:disabled { background: var(--c-line-2); color: var(--c-text-2); box-shadow: none; cursor: not-allowed; }
.dispatch-mid__hint { font-size: 10px; color: var(--c-text-2); text-align: center; line-height: 1.5; max-width: 78px; }
.dispatch-mid__count { font-size: var(--fs-11); color: var(--c-brand-ink); text-align: center; font-weight: var(--fw-m); }
.dispatch-undo { margin-top: 20px; }
.auntie-card {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  border: 1px solid var(--c-line); border-radius: var(--r-10); padding: 9px 10px; background: var(--c-card);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.auntie-card:hover { background: var(--c-fill); }
.auntie-card.is-on { border-color: var(--c-brand-strong); background: var(--c-brand-soft); box-shadow: 0 0 0 1px var(--c-brand-strong); }
.auntie-card.is-dis { opacity: .55; cursor: not-allowed; }
.auntie-card__main { flex: 1; min-width: 0; }
.auntie-card__top { display: flex; align-items: center; gap: 6px; }
.auntie-card__name { font-size: var(--fs-13); font-weight: var(--fw-m); }
.auntie-card__meta { font-size: 10px; color: var(--c-text-2); margin-top: 2px; }
.auntie-card__side { flex: 0 0 auto; text-align: right; }
.auntie-card__score { font-size: var(--fs-12); font-weight: var(--fw-s); }
.auntie-card__slots { font-size: 9px; color: var(--c-text-2); margin-top: 2px; }
.match-badge { display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: var(--r-99); background: var(--c-success-soft); color: var(--c-success-ink); font-size: 9px; white-space: nowrap; }
.match-badge--no { background: var(--c-fill); color: var(--c-text-2); }
.dispatch-empty { padding: 24px 10px; text-align: center; font-size: var(--fs-11); color: var(--c-text-2); }
.dispatch-note { margin-top: 10px; }

/* ==========================================================================
   5. 订单管理
   ========================================================================== */
.order-status-cell { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.timeline { position: relative; margin-left: 4px; }
.tl-item { position: relative; display: flex; gap: 10px; padding-bottom: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-line { position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--c-line); }
.tl-item:last-child .tl-line { display: none; }
.tl-dot {
  position: relative; z-index: 1; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-fill); border: 2px solid var(--c-line-2);
  display: grid; place-items: center; color: var(--c-text-2);
}
.tl-item.is-done .tl-dot { background: var(--c-brand-strong); border-color: var(--c-brand-strong); color: var(--c-on-brand); }
.tl-item.is-now .tl-dot { background: var(--c-warn-soft); border-color: var(--c-warn); color: var(--c-warn-ink); }
.tl-main { flex: 1; min-width: 0; }
.tl-title { font-size: var(--fs-12); font-weight: var(--fw-m); }
.tl-meta { font-size: 10px; color: var(--c-text-2); margin-top: 2px; line-height: 1.5; }
.photo-stage { display: flex; flex-direction: column; gap: 6px; }
.photo-stage__head { display: flex; align-items: center; gap: 6px; font-size: var(--fs-11); color: var(--c-text-2); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-col { border: 1px solid var(--c-line); border-radius: var(--r-10); padding: 9px; }
.photo-col__title { font-size: var(--fs-11); font-weight: var(--fw-m); margin-bottom: 7px; display: flex; align-items: center; gap: 4px; }
.photo-preview { height: 260px; border-radius: var(--r-12); background: var(--c-tone-1); display: grid; place-items: center; color: var(--c-tone-ink); position: relative; overflow: hidden; }
.photo-preview--t2 { background: var(--c-tone-2); }
.photo-preview--t3 { background: var(--c-tone-3); }
.photo-preview--t4 { background: var(--c-tone-4); }
.photo-preview--t5 { background: var(--c-tone-5); }
.photo-preview--t6 { background: var(--c-tone-6); }
.photo-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--c-image-tint, var(--c-tone-shade)), transparent 55%); }
.photo-preview__cap { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-size: var(--fs-11); color: var(--c-tone-ink); }
.reassign-box { margin-top: 10px; padding: 10px; border: 1px dashed var(--c-line-2); border-radius: var(--r-10); background: var(--c-fill); }
.reassign-box__title { font-size: var(--fs-11); font-weight: var(--fw-m); margin-bottom: 6px; }
.reassign-row { display: flex; gap: 6px; align-items: center; }
.reassign-row select { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--c-line-2); border-radius: var(--r-6); background: var(--c-card); font-size: var(--fs-11); }
.reassign-row input { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--c-line-2); border-radius: var(--r-6); font-size: var(--fs-11); }

/* ==========================================================================
   6. 投诉处理
   ========================================================================== */
.cmp-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 14px; align-items: start; }
.cmp-list { padding: 8px; display: grid; gap: 7px; max-height: 640px; overflow-y: auto; }
.cmp-item {
  width: 100%; text-align: left; padding: 10px 11px; border: 1px solid var(--c-line);
  border-radius: var(--r-10); background: var(--c-card); transition: background var(--t-fast), border-color var(--t-fast);
}
.cmp-item:hover { background: var(--c-fill); }
.cmp-item.is-on { border-color: var(--c-brand-strong); background: var(--c-brand-soft); box-shadow: 0 0 0 1px var(--c-brand-strong); }
.cmp-item__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cmp-item__type { font-size: var(--fs-13); font-weight: var(--fw-m); }
.cmp-item__meta { font-size: 10px; color: var(--c-text-2); margin-top: 3px; }
.cmp-item__quote { font-size: var(--fs-11); color: var(--c-text-1); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-detail-head { display: flex; align-items: flex-start; gap: 10px; }
.cmp-detail-head__main { flex: 1; min-width: 0; }
.cmp-detail-head__t { font-size: var(--fs-17); font-weight: var(--fw-s); }
.cmp-detail-head__m { font-size: var(--fs-11); color: var(--c-text-2); margin-top: 3px; }
.evidence-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.evidence-grid .ph__img { height: 64px; }
.basis-list { display: grid; gap: 6px; }
.basis-item {
  display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid var(--c-line);
  border-radius: var(--r-10); background: var(--c-card); cursor: pointer; font-size: var(--fs-12);
}
.basis-item:hover { background: var(--c-fill); }
.basis-item.is-on { border-color: var(--c-brand-strong); background: var(--c-brand-soft); }
.basis-item input { margin-top: 2px; accent-color: var(--c-brand-strong); }
.basis-item__main { flex: 1; min-width: 0; }
.basis-item__t { display: block; font-weight: var(--fw-m); }
.basis-item__m { display: block; font-size: 10px; color: var(--c-text-2); margin-top: 1px; line-height: 1.5; }
.action-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.action-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 1px solid var(--c-line); border-radius: var(--r-10); cursor: pointer; background: var(--c-card); }
.action-card:hover { background: var(--c-fill); }
.action-card.is-on { border-color: var(--c-brand-strong); background: var(--c-brand-soft); }
.action-card input { position: absolute; opacity: 0; pointer-events: none; }
.action-card__t { font-size: var(--fs-12); font-weight: var(--fw-m); }
.action-card__m { font-size: 10px; color: var(--c-text-2); line-height: 1.5; }
.refund-field { margin-top: 10px; }
.cmp-result { border-left: 3px solid var(--c-success); background: var(--c-success-soft); color: var(--c-success-ink); padding: 10px 12px; border-radius: 0 var(--r-10) var(--r-10) 0; font-size: var(--fs-12); line-height: 1.6; }
.cmp-foot-note { margin-top: 10px; }
.cmp-empty-detail { padding: 40px 20px; text-align: center; color: var(--c-text-2); font-size: var(--fs-12); }

/* ==========================================================================
   7. 报表
   ========================================================================== */
.def-block { padding: 12px 14px; background: var(--c-fill); border-radius: var(--r-10); }
.def-block__k { font-size: 10px; color: var(--c-text-2); letter-spacing: .04em; margin-bottom: 4px; }
.def-block__v { font-size: var(--fs-12); line-height: 1.7; color: var(--c-text-1); }
.def-block + .def-block { margin-top: 8px; }
.report-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.report-kpi { padding: 14px 16px; }
.report-kpi__label { display: flex; align-items: center; gap: 5px; font-size: var(--fs-11); color: var(--c-text-2); }
.report-kpi__value { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; font-size: var(--fs-30); font-weight: var(--fw-s); line-height: 1.1; letter-spacing: -.02em; }
.report-kpi__delta { font-size: 10px; margin-top: 4px; color: var(--c-text-2); display: flex; align-items: center; gap: 4px; }
.report-kpi__delta.is-good { color: var(--c-success-ink); }
.report-kpi__delta.is-bad { color: var(--c-danger-ink); }
.report-chart { height: 190px; position: relative; padding-top: 8px; }
.report-chart__grid { position: absolute; left: 0; right: 0; top: 8px; bottom: 24px; background: repeating-linear-gradient(to top, var(--c-line) 0 1px, transparent 1px 25%); }
.report-cols { position: relative; z-index: 1; display: flex; align-items: stretch; gap: 14px; height: 100%; }
.report-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.report-group { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; height: 140px; }
.report-bar { width: 14px; max-width: 26%; border-radius: var(--r-6) var(--r-6) 0 0; min-height: 2px; }
.report-bar--1 { background: var(--c-chart-1); }
.report-bar--2 { background: var(--c-chart-2); }
.report-bar--3 { background: var(--c-chart-3); }
.report-col__label { font-size: 10px; color: var(--c-text-2); }
.report-rank { display: grid; gap: 0; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--c-line); }
.rank-row:first-child { border-top: 0; }
.rank-no { width: 20px; height: 20px; border-radius: 50%; background: var(--c-fill); color: var(--c-text-2); font-size: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.rank-row:nth-child(-n+3) .rank-no { background: var(--c-brand-soft); color: var(--c-brand-ink); font-weight: var(--fw-m); }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: var(--fs-12); font-weight: var(--fw-m); }
.rank-sub { font-size: 10px; color: var(--c-text-2); margin-top: 1px; }
.rank-val { flex: 0 0 auto; text-align: right; font-size: var(--fs-13); font-weight: var(--fw-s); }
.rank-bar { width: 74px; flex: 0 0 74px; }
.report-note { margin-top: 10px; }
.report-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.report-summary__item { padding: 10px 12px; border-radius: var(--r-10); background: var(--c-fill); }
.report-summary__v { font-size: var(--fs-18); font-weight: var(--fw-s); }
.report-summary__k { font-size: 10px; color: var(--c-text-2); margin-top: 2px; }

/* ==========================================================================
   8. 平台设置
   ========================================================================== */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 14px; align-items: start; }
.settings-stack { display: grid; gap: 14px; }
.set-section__title { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: var(--fw-s); }
.set-section__sub { font-size: 10px; color: var(--c-text-2); margin-left: auto; }
.station-table { width: 100%; border-collapse: collapse; font-size: var(--fs-12); }
.station-table th { padding: 0 8px; height: 32px; text-align: left; font-size: 10px; color: var(--c-text-2); background: var(--c-fill); border-bottom: 1px solid var(--c-line); }
.station-table td { padding: 7px 8px; border-bottom: 1px solid var(--c-line); }
.station-table tr:last-child td { border-bottom: 0; }
.station-table input { width: 100%; height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: var(--r-6); background: transparent; font-size: var(--fs-12); }
.station-table input:hover { border-color: var(--c-line); background: var(--c-card); }
.station-table input:focus { border-color: var(--c-brand-strong); background: var(--c-card); outline: 0; }
.station-table .num { font-size: var(--fs-12); }
.role-table { width: 100%; border-collapse: collapse; font-size: var(--fs-12); }
.role-table th { padding: 0 10px; height: 34px; text-align: left; font-size: 10px; color: var(--c-text-2); background: var(--c-fill); border-bottom: 1px solid var(--c-line); }
.role-table td { padding: 9px 10px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.role-table tr:last-child td { border-bottom: 0; }
.role-name { display: flex; align-items: center; gap: 6px; font-weight: var(--fw-m); }
.role-note { font-size: 10px; color: var(--c-text-2); line-height: 1.55; }
.perm-list { display: grid; gap: 8px; }
.perm-row { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-11); color: var(--c-text-2); line-height: 1.6; }
.perm-row b { color: var(--c-text-1); font-weight: var(--fw-m); }
.perm-key { flex: 0 0 auto; margin-top: 1px; color: var(--c-success); }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-card { padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-10); background: var(--c-fill); }
.plan-card__k { font-size: 10px; color: var(--c-text-2); }
.plan-card__v { font-size: var(--fs-13); font-weight: var(--fw-m); margin-top: 2px; }
.plan-note { font-size: 10px; color: var(--c-text-2); line-height: 1.6; margin-top: 8px; }
.time-range { display: flex; align-items: center; gap: 6px; }
.time-range input { width: 92px; height: 34px; padding: 0 8px; border: 1px solid var(--c-line-2); border-radius: var(--r-6); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.time-range span { color: var(--c-text-2); font-size: var(--fs-11); }
.set-hint { font-size: 10px; color: var(--c-text-2); line-height: 1.6; margin-top: 4px; }
.set-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.settings-side .panel + .panel { margin-top: 14px; }
.kbd { font-family: var(--font-num); font-size: 10px; padding: 1px 4px; border: 1px solid var(--c-line-2); border-radius: var(--r-2); color: var(--c-text-2); }

/* ==========================================================================
   窄屏适配
   ========================================================================== */
@media (max-width: 1279px) {
  .dispatch-layout { grid-template-columns: 1fr; }
  .dispatch-mid { padding-top: 0; flex-direction: row; justify-content: center; }
  .dispatch-mid__hint { max-width: none; }
  .dispatch-col__body { max-height: 420px; }
  .cmp-layout { grid-template-columns: 1fr; }
  .cmp-list { max-height: 300px; }
  .settings-grid { grid-template-columns: 1fr; }
  .heat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .photo-pair { grid-template-columns: 1fr; }
  .action-cards { grid-template-columns: 1fr; }
  .report-kpis, .report-summary { grid-template-columns: 1fr; }
}

/* ==========================================================================
   文字堆叠兜底（全局补丁）
   屏里的「标题 + 副标题 / 名称 + 说明」大量写成成对的 <span>。父级若是普通块或
   只负责横向撑开的 .grow，两个 span 会挤成一行、互相压字。这里统一成块级：
   父级是 flex 行时 block 与 inline 无差别（flex item 会被块化），
   父级是普通块时才会真正换行——正是我们要的效果。
   ========================================================================== */
.grow { display: flex; flex-direction: column; min-width: 0; }
[class$="__name"], [class$="__sub"], [class$="__hello"], [class$="__t"], [class$="__d"],
[class$="__title"], [class$="__desc"], [class$="__meta"], [class$="__note"], [class$="__hint"],
[class$="__label"], [class$="__value"], [class$="__k"], [class$="__v"], [class$="__text"] {
  display: block;
}
