/* 数据分析：克制型运营看板 */
.analytics-page { display: flex; flex-direction: column; gap: 16px; max-width: 1280px; margin: 0 auto; }
.da-stats { grid-template-columns: repeat(5, 1fr); align-items: stretch; }
.da-qa {
  grid-column: span 2;
  display: grid;
  grid-template-rows: auto minmax(42px, 1fr) auto;
  gap: 8px;
  padding: 12px 13px;
  min-width: 0;
}
.da-qa-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.da-qa-head b { font-size: 12.5px; color: var(--text); }
.da-qa-head em { margin-left: auto; font-style: normal; color: var(--faint); font-size: 10.5px; }
.da-qa-msgs { display: flex; flex-direction: column; gap: 6px; overflow: auto; min-height: 42px; max-height: 92px; }
.da-qa-sugs { display: flex; gap: 6px; flex-wrap: wrap; align-content: flex-start; }
.da-qa-bubble {
  max-width: 88%;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.55;
}
.da-qa-bubble.user { align-self: flex-end; color: #fff; background: var(--grad-brand); border-radius: 12px 12px 4px 12px; }
.da-qa-bubble.agent { align-self: flex-start; color: var(--text); background: var(--soft); border: 1px solid var(--hairline); border-radius: 4px 12px 12px 12px; }
.da-qa-input { display: flex; gap: 7px; align-items: center; }
.da-qa-input input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  padding: 8px 12px;
  font-size: 12px;
  outline: 0;
}
.da-qa-input input:focus { border-color: var(--brand); box-shadow: var(--ring); background: #fff; }
.da-panel { padding: 16px 16px 14px; min-width: 0; }
.da-justone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
}
.da-justone-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.da-justone-main > span {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--tint);
}
.da-justone-main b { display: block; font-size: 13px; color: var(--text); }
.da-justone-main em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.45;
}
.da-justone-side {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.da-table-card { padding: 14px; }
.da-table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; min-width: 0; }
.da-table-head > .mode-tabs { flex: 0 0 auto; margin: 0; }
.da-filter-selects { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; }
.da-filter-selects .select-shell, .da-filter-selects .btn { flex: 0 0 auto; white-space: nowrap; }
.da-table-wrap { width: 100%; overflow-x: auto; }
.da-table { width: 100%; border-collapse: collapse; min-width: 860px; table-layout: fixed; }
.da-col-account { width: 160px; }
.da-col-title { width: auto; }
.da-col-status { width: 92px; }
.da-col-num { width: 70px; }
.da-col-rate { width: 82px; }
.da-col-time { width: 86px; }
.da-col-action { width: 78px; }
.da-table th { text-align: left; font-size: 11px; color: var(--faint); font-weight: 750; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.da-table td { padding: 10px 8px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.da-table tr:last-child td { border-bottom: 0; }
.da-account, .da-title { min-width: 0; }
.da-account b, .da-title b { display: block; width: 100%; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-account em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: var(--faint); }
.da-title .da-error { color: var(--danger); white-space: normal; max-width: 460px; line-height: 1.45; }
.da-table .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.da-time { color: var(--faint); font-size: 11px; white-space: nowrap; }
.da-actions { text-align: right; white-space: nowrap; }
.da-actions .icon-btn { display: inline-grid; color: var(--brand); text-decoration: none; vertical-align: middle; }
.da-actions button.icon-btn { border: 1px solid transparent; background: transparent; cursor: pointer; }

@media (max-width: 1080px) {
  .da-stats { grid-template-columns: repeat(2, 1fr); }
  .da-qa { grid-column: 1 / -1; }
  .da-justone { align-items: stretch; flex-direction: column; }
  .da-justone-side { justify-content: space-between; }
  .da-table-head { align-items: stretch; flex-direction: column; }
  .da-filter-selects { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .da-stats { grid-template-columns: 1fr; }
  .da-qa { grid-column: auto; }
}
