/* AI 품질 화면 — ai-quality.js 전용. 표 · 타일 · 알림은 billing.css 의 bl-* 를 같이 쓴다(래퍼에 .billing).
   색은 style.css 의 토큰만 쓴다(다크 모드는 토큰이 바뀌어 따라온다). */

.aq-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .aq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aq-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1099px) { .aq-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.aq .table td.aq-bar-col, .aq .table th.aq-bar-col { width: 30%; min-width: 80px; }
.aq-bar { width: 100%; }
.aq .table tbody tr.aq-click { cursor: pointer; }
.aq .table tbody tr.aq-click:focus-visible td { background: var(--hover); }
.aq .table tbody tr.aq-click:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.aq .table td.aq-wrap, .aq p.aq-wrap { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.aq .table td.aq-wrap { min-width: 12em; }

.aq-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }

.aq-insight, .aq-switch { display: grid; gap: 8px; padding: 14px 16px; }

.aq-transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aq-transcript li { padding: 8px 12px; border: 1px solid var(--ink-200); border-radius: var(--radius); background: var(--surface); }
.aq-transcript li.mine { border-color: var(--brand); background: var(--brand-50); }
.aq-item-head { margin-bottom: 4px; color: var(--ink-600); font-size: 12px; }
.aq-item-text, .aq-md {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; line-height: 1.6; color: var(--ink-800);
}
.aq-md { padding: 12px 14px; border: 1px solid var(--ink-200); border-radius: var(--radius); background: var(--surface); max-height: 70vh; overflow: auto; }
