/* Agent integrity (docs/AGENT_INTEGRITY.md): admin review page, live floor
   badge and panel, wallboard "Needs a look" card. Calm colours: a flag is a
   prompt to look, not an alarm. */

/* ---- admin ---- */
.ig-sev { font-weight: 700; }
.ig-sev-high { background: var(--warn-soft); color: var(--warn-text); }
.ig-sev-medium { background: var(--accent-soft); color: var(--accent-strong); }
.ig-filters { flex-wrap: wrap; gap: 8px; align-items: center; }
.ig-filters input, .ig-filters select { width: auto; }
.ig-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ig-detail { grid-template-columns: 1fr; } }
.ig-caveat { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-size: 14px; }
.ig-play td { background: var(--accent-soft); }
.ig-play audio { width: 100%; }
.ig-timeline { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.ig-t { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgba(127, 127, 127, 0.15); font-size: 14px; }
.ig-t-at { min-width: 88px; font-variant-numeric: tabular-nums; opacity: 0.7; }
.ig-t-wrap .ig-t-text, .ig-t-hangup .ig-t-text, .ig-t-away .ig-t-text { font-weight: 700; }

/* ---- live floor ---- */
.ig-badge { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-strong); text-align: left; }
.ig-badge.ig-high { background: var(--warn-soft); color: var(--warn-text); }
.ig-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.ig-badge span { overflow: hidden; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.lv-card .ig-badge { box-sizing: border-box; max-width: 100%; min-width: 0; overflow: hidden; }
.lv-card:has(.ig-badge) { grid-template-columns: minmax(0, 1fr); }
.ig-btn { font-weight: 700; }
.ig-btn.ig-has { background: var(--warn-soft); color: var(--warn-text); border-color: transparent; }
.ig-count { display: inline-block; min-width: 1.4em; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(127, 127, 127, 0.18); }
.ig-panel { position: fixed; top: 64px; right: 16px; z-index: 50; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow: auto;
  background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 14px 16px; }
.ig-panel-hd { display: flex; gap: 10px; align-items: center; }
.ig-panel-hd h2 { margin: 0; font-size: 16px; flex: 1; }
.ig-note { font-size: 13px; }
.ig-item { padding: 8px 10px; margin: 6px 0; border-radius: 8px; border-left: 4px solid var(--accent); background: rgba(127, 127, 127, 0.07); }
.ig-item.ig-high { border-left-color: var(--warn); }
.ig-item-top { display: flex; justify-content: space-between; gap: 8px; }

/* ---- wallboard ---- */
.wbi .wbi-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.wbi .wbi-head h2 { margin: 0; font-size: 26px; }
.wbi-sub { opacity: 0.7; font-size: 15px; }
.wbi-list { list-style: none; margin: 10px 0 0; padding: 0; }
.wbi-row { display: grid; grid-template-columns: 16px minmax(120px, 0.8fr) minmax(0, 2fr) auto; gap: 14px; align-items: center;
  padding: 10px 4px; border-top: 1px solid rgba(127, 127, 127, 0.18); font-size: 22px; line-height: 1.25; }
.wbi-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.wbi-high .wbi-dot { background: var(--warn); }
.wbi-why { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wbi-when { opacity: 0.7; font-size: 18px; font-variant-numeric: tabular-nums; }
.wbi-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 16px; }
.wbi-more { margin: 0; font-weight: 700; }
@media (max-width: 700px) {
  .wbi-row { grid-template-columns: 12px 1fr; font-size: 18px; }
  .wbi-why, .wbi-when { grid-column: 2; }
}
