/* 月度模型用量共用工作区导航与私有快照数据。 */
.token-usage-meter { margin-top:18px; min-width:0; font-variant-numeric:tabular-nums; }
.token-usage-meter-summary,.token-usage-meter-footer { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:5px 10px; font-size:11px; color:#7b8d83; }
.token-usage-meter-track { height:8px; background:#e8eee9; border-radius:20px; overflow:hidden; margin:10px 0; }
.token-usage-meter-fill { display:block; height:100%; background:#60957a; border-radius:inherit; transition:width .3s ease; }
#tokenUsagePanel .token-usage-meter-footer strong { color:#426e55; font-size:12px; font-weight:500; letter-spacing:0; line-height:1.5; margin:0; }
.token-usage-meter[data-level=warning] .token-usage-meter-fill { background:#c29849; }
.token-usage-meter[data-level=exceeded] .token-usage-meter-fill { background:#c47564; }
#tokenUsagePanel .token-usage-meter[data-level=exceeded] .token-usage-meter-footer strong { color:#ae6254; }
#tokenUsagePanel .token-usage-meter-note { color:#a58b59; font-size:10px; margin-top:7px; }
#tokenUsagePanel td.token-usage-budget-cell { min-width:190px; text-align:left; }
.token-usage-meter.is-small { margin-top:0; }
.token-usage-meter.is-small .token-usage-meter-track { height:6px; margin:8px 0; }
@media(prefers-reduced-motion:reduce) { .token-usage-meter-fill { transition:none; } }
#tokenUsagePanel { color:#253c40; min-width:0; padding:8px 0 30px; }
#tokenUsagePanel * { box-sizing:border-box; }
.token-usage-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px; margin-bottom:24px; }
#tokenUsagePanel .token-usage-eyebrow { color:#63857d; font-size:10px; letter-spacing:.15em; font-weight:700; margin:0 0 9px; }
#tokenUsagePanel h2 { margin:0 0 8px; font-size:24px; letter-spacing:-.025em; }
#tokenUsagePanel .token-usage-description { color:#738386; margin:0; font-size:13px; }
.token-usage-filters { display:flex; gap:12px; align-items:flex-end; }
#tokenUsagePanel label { display:flex; flex-direction:column; gap:7px; color:#738386; font-size:11px; margin:0; }
#tokenUsagePanel input,#tokenUsagePanel select { min-height:38px; border:1px solid #dde6e3; background:#fff; color:#344e4b; border-radius:8px; padding:8px 11px; font:inherit; font-size:13px; max-width:100%; }
.token-usage-scopes { display:flex; gap:6px; align-items:center; margin:0 0 22px; }
#tokenUsagePanel button { min-height:34px; border:1px solid #dde6e3; border-radius:7px; background:#fff; color:#526d67; padding:7px 13px; font-size:12px; cursor:pointer; }
#tokenUsagePanel button:hover { background:#edf5f1; }
#tokenUsagePanel button[aria-pressed=true] { background:#e3f0e9; color:#255e4c; border-color:#bdd6c9; font-weight:600; }
#tokenUsagePanel button:disabled { cursor:default; opacity:.4; }
#tokenUsagePanel :focus-visible { outline:2px solid #619b83; outline-offset:3px; }
#tokenUsagePanel .token-usage-back { margin-left:auto; border:0; background:transparent; }
.token-usage-metrics { display:flex; flex-direction:column; gap:25px; margin:0 0 29px; padding:5px 0; }
.token-usage-scope-note { color:#7b8d83; font-size:11px; margin:0 0 -8px; }
.token-usage-row { display:grid; grid-template-columns:200px minmax(0,1fr); align-items:center; gap:24px; min-width:0; }
.token-usage-row-title { display:flex; flex-direction:column; gap:6px; min-width:0; }
.token-usage-row-title strong { color:#334d40; font-size:14px; font-weight:600; }
.token-usage-row-title span { color:#899990; font-size:11px; line-height:1.5; }
.token-usage-row .token-usage-meter { margin:0; }
.token-usage-row .token-usage-meter-track { height:10px; }
.token-usage-card { border:1px solid #e1e8e4; border-radius:12px; background:#fff; overflow:hidden; }
.token-usage-section-heading { padding:23px 24px 19px; display:flex; gap:18px; justify-content:space-between; align-items:center; flex-wrap:wrap; }
#tokenUsagePanel h3 { font-size:15px; margin:0 0 7px; font-weight:600; }
.token-usage-section-heading p { font-size:11px; color:#81918b; margin:0; }
.token-usage-search { display:flex; gap:8px; }
.token-usage-search input { width:220px; min-width:0; }
.token-usage-table-wrap { overflow-x:auto; }
#tokenUsagePanel .token-usage-table { width:100%; border-collapse:collapse; min-width:680px; margin:0; font-size:12px; }
#tokenUsagePanel th { padding:13px 20px; background:#f8faf8; border-block:1px solid #edf0ed; color:#83918b; text-align:right; white-space:nowrap; font-weight:500; font-size:11px; }
#tokenUsagePanel td { padding:18px 20px; border-bottom:1px solid #edf0ed; text-align:right; vertical-align:middle; color:#465c53; }
#tokenUsagePanel th:first-child,#tokenUsagePanel td:first-child { text-align:left; padding-left:24px; }
#tokenUsagePanel td:first-child { max-width:280px; overflow-wrap:anywhere; }
#tokenUsagePanel td strong { display:block; font-size:13px; color:#334d40; font-weight:500; }
#tokenUsagePanel td small { display:block; color:#8b9990; margin-top:6px; font-size:10px; }
.token-usage-numeric { font-variant-numeric:tabular-nums; white-space:nowrap; }
#tokenUsagePanel td .token-usage-partial { color:#b38747; font-size:10px; }
.token-usage-badge { font-size:10px; padding:4px 8px; border-radius:5px; color:#547460; background:#edf4ef; white-space:nowrap; }
#tokenUsagePanel .token-usage-link { border:0; padding:4px 0; min-height:24px; color:#43866a; background:transparent; }
.token-usage-pagination { display:flex; gap:9px; align-items:center; justify-content:flex-end; padding:16px 24px; }
.token-usage-pagination span { font-size:11px; color:#81918b; margin-right:12px; }
.token-usage-model-filters { display:flex; gap:12px; padding:0 24px 18px; }
.token-usage-model-filters input { width:240px; min-width:0; }
.token-usage-empty { text-align:center; color:#8a9990; padding:38px 20px; font-size:13px; }
.token-usage-footnote { color:#98a49d; font-size:11px; line-height:1.9; margin:18px 3px 0; max-width:960px; }
.token-usage-notice { padding:12px 16px; font-size:12px; background:#fcf6e9; border:1px solid #eee3c8; color:#9a7e42; border-radius:8px; margin:0 0 18px; }
.token-usage-loading { min-height:320px; border:1px solid #e1e8e4; border-radius:12px; padding:32px; background:#fff; color:#91a098; font-size:13px; }
@media(max-width:600px) { .token-usage-toolbar { gap:18px; }.token-usage-filters { width:100%; }.token-usage-filters label { flex:1; min-width:0; }.token-usage-metrics { gap:22px; }.token-usage-row { grid-template-columns:minmax(0,1fr); gap:10px; }.token-usage-row-title { flex-direction:row; align-items:baseline; flex-wrap:wrap; gap:5px 12px; }.token-usage-section-heading { padding:18px 16px; }.token-usage-search { width:100%; }.token-usage-search input { flex:1; }.token-usage-model-filters { padding:0 16px 16px; }.token-usage-model-filters input { width:100%; } }

/* 原有的客户话题标签样式现已迁入销售看板。 */
.sc-customer-analytics .customer-topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sc-customer-analytics .analytics-topic-placeholder { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 9px; border: 1px solid #edf0f2; border-radius: 9px; background: #fbfcfd; }
.sc-customer-analytics .analytics-topic-placeholder span:first-child { width: 58%; height: 24px; border-radius: 6px; background: #edf3f4; }
.sc-customer-analytics .analytics-topic-placeholder:nth-child(3n+1) span:first-child { background: #edf4ef; }
.sc-customer-analytics .analytics-topic-placeholder:nth-child(3n+2) span:first-child { background: #edf1f8; }
.sc-customer-analytics .analytics-topic-placeholder span:last-child { width: 27px; height: 10px; border-radius: 4px; background: #eef1f3; }
.sc-customer-analytics .analytics-loading-message { margin: 8px 0 0; color: var(--analytics-muted); font-size: 11px; }
.sc-customer-analytics button.customer-topic-row {
  --topic-ink: #4b8d7b;
  --topic-soft: #e9f4ef;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  align-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  width: 100%;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid #edf0f2;
  border-radius: 9px;
  background: #fbfcfd;
  color: var(--analytics-ink);
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}
.sc-customer-analytics button.customer-topic-row[data-tone="blue"] { --topic-ink: #567ea9; --topic-soft: #edf3fb; }
.sc-customer-analytics button.customer-topic-row[data-tone="violet"] { --topic-ink: #8770a7; --topic-soft: #f1edf8; }
.sc-customer-analytics button.customer-topic-row[data-tone="amber"] { --topic-ink: #ac8447; --topic-soft: #fbf3e5; }
.sc-customer-analytics button.customer-topic-row[data-tone="rose"] { --topic-ink: #b27788; --topic-soft: #faedf1; }
.sc-customer-analytics button.customer-topic-row[data-tone="cyan"] { --topic-ink: #5a909c; --topic-soft: #eaf5f6; }
.sc-customer-analytics button.customer-topic-row:not(:disabled):hover { border-color: #dce6ec; background: #f5f8fa; color: var(--analytics-ink); }
.sc-customer-analytics button.customer-topic-row[aria-pressed="true"] { border-color: #b9cedd; background: #f0f5f8; }
.sc-customer-analytics button.customer-topic-row:focus-visible { outline: 2px solid #7295b1; outline-offset: 2px; }
.sc-customer-analytics .customer-topic-name { display: grid; justify-items: start; min-width: 0; gap: 2px; }
.sc-customer-analytics .customer-topic-label {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--topic-soft);
  color: var(--topic-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
.sc-customer-analytics .customer-topic-context { max-width: 100%; padding-left: 2px; color: var(--analytics-muted); font-size: 10px; font-weight: 400; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.sc-customer-analytics .customer-topic-rate { color: #516578; font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-customer-analytics .customer-topic-evidence { margin-top: 12px; padding: 12px; border: 1px solid #e7edf1; border-radius: 9px; background: #f8fafc; }
.sc-customer-analytics .customer-topic-evidence[hidden] { display: none; }
.sc-customer-analytics .customer-topic-evidence h3 { margin: 0; color: #62778a; font-size: 12px; font-weight: 500; }
.sc-customer-analytics .customer-topic-evidence blockquote { margin: 10px 0; padding: 0 0 0 10px; border-left: 2px solid #cfdee8; color: #4b6073; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.sc-customer-analytics .knowledge-sample-note { margin: 5px 0 0; color: #8a96a0; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.sc-customer-analytics button.knowledge-evidence-link { min-height: 28px; padding: 2px 0; border: 0; border-radius: 4px; background: transparent; color: #5e829b; font-size: 12px; }
.sc-customer-analytics button.knowledge-evidence-link:not(:disabled):hover { background: transparent; color: #304c69; text-decoration: underline; text-underline-offset: 3px; }

.sc-customer-analytics .analytics-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; padding: 20px 10px; text-align: center; }
.sc-customer-analytics .analytics-empty-state strong { color: #6c8091; font-size: 14px; font-weight: 500; line-height: 1.7; }
.sc-customer-analytics .analytics-empty-state p { max-width: 270px; margin: 7px 0 0; color: #97a2ac; font-size: 12px; line-height: 1.7; }

/* 嵌入销售看板中的客户会话信号。 */
.sc-customer-analytics{--analytics-ink:#243f5b;--analytics-muted:#8191a3;margin:20px 0;padding:24px;border:1px solid #e3eaf2;border-radius:18px;background:#fff;color:#243f5b;min-width:0;container-type:inline-size}
.sc-customer-analytics[hidden]{display:none!important}
.sc-customer-analytics .sca-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 20px;padding:0;background:none;border:0;min-height:0}
.sc-customer-analytics .sca-heading-copy{margin:0;padding:0;min-width:0;text-align:left}
.sc-customer-analytics .sca-eyebrow{color:#7892ac;font-size:10px;letter-spacing:.12em}
.sc-customer-analytics .sca-heading h3{margin:5px 0 7px;font-size:20px;line-height:1.4;color:#21415f}
.sc-customer-analytics .sca-heading p{margin:0;color:#8191a3;font-size:12px;line-height:1.7}
.sc-customer-analytics .sca-period{display:flex;gap:4px;padding:4px;border:1px solid #e9eef4;border-radius:10px;background:#f6f8fb;flex-shrink:0}
.sc-customer-analytics .sca-period button{margin:0;padding:7px 10px;border:0;border-radius:7px;background:transparent;color:#72859a;font-size:11px;font-weight:500;white-space:nowrap;box-shadow:none}
.sc-customer-analytics .sca-period button[aria-pressed=true]{background:#fff;color:#2e6ea7;box-shadow:0 2px 8px #325c8a12}
.sc-customer-analytics button:focus-visible,.sc-customer-analytics [tabindex]:focus-visible{outline:2px solid #6d9fc4;outline-offset:3px}
.sc-customer-analytics .sca-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}
.sc-customer-analytics .sca-metrics>div{display:grid;gap:5px;padding:14px 16px;border:1px solid #e9eff5;border-radius:12px;background:#fafcfe}
.sc-customer-analytics .sca-metrics span{color:#71869b;font-size:11px}
.sc-customer-analytics .sca-metrics strong{font-size:24px;font-weight:650;line-height:1.3;font-variant-numeric:tabular-nums;color:#2b5278}
.sc-customer-analytics .sca-metrics>div:last-child strong{font-size:21px}
.sc-customer-analytics .sca-metrics small{font-size:10px;color:#8b9bab}
.sc-customer-analytics .sca-layout{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.15fr);gap:28px}
.sc-customer-analytics .sca-topics,.sc-customer-analytics .sca-activity{min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
.sc-customer-analytics .sca-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}
.sc-customer-analytics .sca-section-heading h4{margin:0;color:#34516c;font-size:14px;font-weight:600}
.sc-customer-analytics .sca-section-heading>span{font-size:10px;color:#90a0b0;letter-spacing:.04em}
.sc-customer-analytics .sca-hour-bars{height:125px;display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:4px;align-items:end;padding:5px 0 0;border-bottom:1px solid #e9eef5;background:repeating-linear-gradient(to top,transparent 0,transparent 38px,#f0f4f8 39px,#f0f4f8 40px)}
.sc-customer-analytics .sca-hour-bar{height:100%;position:relative;min-width:0;cursor:default}
.sc-customer-analytics .sca-hour-bar i{position:absolute;bottom:0;left:0;right:0;height:max(2px,var(--activity-height));background:#b6cee3;border-radius:3px 3px 0 0;transition:height .2s}
.sc-customer-analytics .sca-hour-bar.is-peak i{background:#427eae}
.sc-customer-analytics .sca-hour-bar:hover i{background:#6295bd}
.sc-customer-analytics .sca-hour-axis{display:flex;justify-content:space-between;margin:8px 0 22px;color:#94a4b3;font-size:9px;font-variant-numeric:tabular-nums}
.sc-customer-analytics .sca-week-heatmap{display:grid;grid-template-columns:28px repeat(24,minmax(0,1fr));gap:4px;align-items:center}
.sc-customer-analytics .sca-week-label{font-size:9px;color:#8a9dad;line-height:17px}
.sc-customer-analytics .sca-heat-cell{display:block;min-width:0;height:15px;border-radius:3px;background:#eff4f8}
.sc-customer-analytics [data-level='0']{background:#eff4f8}
.sc-customer-analytics [data-level='1']{background:#d2e3ef}
.sc-customer-analytics [data-level='2']{background:#9dbfd8}
.sc-customer-analytics [data-level='3']{background:#699cc1}
.sc-customer-analytics [data-level='4']{background:#3678aa}
.sc-customer-analytics .sca-heat-legend{display:flex;justify-content:flex-end;align-items:center;gap:4px;margin-top:10px;color:#91a1af;font-size:9px}
.sc-customer-analytics .sca-heat-legend i{display:block;width:10px;height:10px;border-radius:2px}
.sc-customer-analytics .sca-note{margin:14px 0 0;color:#93a0ae;font-size:10px;line-height:1.8}
.sc-customer-analytics .sca-empty{margin:0;min-height:100px;display:flex;align-items:center;justify-content:center;color:#94a5b5;font-size:12px;line-height:1.8;text-align:center}
.sc-customer-analytics .sca-status{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:11px;color:#8d9eae}
.sc-customer-analytics .sca-status:has(.sca-retry[hidden]):has(span:empty){display:none}
.sc-customer-analytics .sca-retry{padding:4px 9px;background:#f3f7fb;border:1px solid #dde7f0;border-radius:7px;color:#6487a7;font-size:11px;font-weight:400;box-shadow:none}
.sc-customer-analytics .sca-retry[hidden]{display:none}
@container(max-width:650px){.sc-customer-analytics .sca-layout{grid-template-columns:minmax(0,1fr);gap:25px}.sc-customer-analytics .sca-heading{flex-wrap:wrap}.sc-customer-analytics .sca-metrics{gap:8px}.sc-customer-analytics .sca-metrics>div{padding:11px}.sc-customer-analytics .sca-metrics strong{font-size:21px}.sc-customer-analytics .sca-metrics>div:last-child strong{font-size:15px}.sc-customer-analytics .sca-hour-bars{gap:3px}}
@media(max-width:700px){.sc-customer-analytics{padding:18px 14px}.sc-customer-analytics .sca-layout{grid-template-columns:minmax(0,1fr);gap:25px}.sc-customer-analytics .sca-heading{flex-wrap:wrap}.sc-customer-analytics .sca-metrics{gap:7px}.sc-customer-analytics .sca-metrics>div{padding:10px 8px}.sc-customer-analytics .sca-metrics strong{font-size:21px}.sc-customer-analytics .sca-metrics>div:last-child strong{font-size:15px}.sc-customer-analytics .sca-metrics small{font-size:9px}.sc-customer-analytics .sca-week-heatmap{gap:3px;grid-template-columns:24px repeat(24,minmax(0,1fr))}.sc-customer-analytics .sca-heat-cell{height:13px}.sc-customer-analytics .sca-hour-bars{gap:3px}}
@media(prefers-reduced-motion:reduce){.sc-customer-analytics .sca-hour-bar i{transition:none}}

.sc-customer-analytics .customer-topic-body{min-width:0}
@container(max-width:420px){.sc-customer-analytics .customer-topic-list{grid-template-columns:minmax(0,1fr)}}
