/* zvvoice — строго и просто. Один системный шрифт, спокойные цвета. */
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1c2530;
  background: #f4f6f8;
}

/* ---- вход ---- */
body.login { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.card {
  background: #fff; padding: 32px; border-radius: 10px; width: 300px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08); text-align: center;
}
.card h1 { margin: 0 0 4px; font-size: 22px; }
.card input, .card button { width: 100%; padding: 10px 12px; margin-top: 12px;
  border-radius: 6px; border: 1px solid #cdd5de; font-size: 15px; }
.card button { background: #2563eb; color: #fff; border: 0; cursor: pointer; }
.card button:hover { background: #1d4ed8; }

/* ---- шапка ---- */
header {
  display: flex; align-items: center; gap: 20px;
  background: #fff; padding: 12px 22px; border-bottom: 1px solid #e3e8ee;
  position: sticky; top: 0; z-index: 2;
}
.brand { font-weight: 700; font-size: 18px; }
.picker { display: flex; align-items: center; gap: 8px; }
.picker select { padding: 7px 10px; border-radius: 6px; border: 1px solid #cdd5de;
  font-size: 15px; min-width: 260px; }
.logout { margin-left: auto; color: #64748b; text-decoration: none; }
.logout:hover { color: #1c2530; }

/* ---- список звонков ---- */
main { max-width: 900px; margin: 22px auto; padding: 0 16px; }
.empty { text-align: center; padding: 40px; }
.muted { color: #7a8794; }

.call {
  background: #fff; border: 1px solid #e3e8ee; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 14px;
}
.meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; font-size: 14px; }
.party { font-weight: 600; font-size: 15px; }
.when, .dur { color: #7a8794; }
.dir { font-size: 12px; padding: 2px 8px; border-radius: 20px; }
.dir-in  { background: #e7f2ff; color: #1d4ed8; }
.dir-out { background: #eef7ee; color: #237a3a; }

.verdict { margin: 10px 0; display: flex; align-items: center; gap: 12px; }
.verdict button {
  padding: 7px 16px; border: 0; border-radius: 6px; background: #2563eb;
  color: #fff; cursor: pointer; font-size: 14px;
}
.verdict button:hover { background: #1d4ed8; }
.tag { font-weight: 700; padding: 4px 12px; border-radius: 6px; font-size: 14px; }
.tag.yes { background: #dff3e4; color: #1a7a37; }
.tag.no  { background: #f0f2f5; color: #64748b; }
.reason { color: #7a8794; font-size: 14px; }

/* ---- вердикт в строке с метаданными ---- */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verdict { margin: 0; }
.tag.wait { background: #fff4e0; color: #a86400; font-weight: 600; }
.working { color: #a86400; font-size: 14px; }

/* ---- расшифровка: свёрнута, раскрывается по клику ---- */
details.transcript { margin-top: 10px; border: 0; padding: 0; background: none; border-left: 0; }
details.transcript > summary {
  cursor: pointer; color: #2563eb; font-size: 14px; user-select: none;
  list-style: none; display: inline-block; padding: 2px 0;
}
details.transcript > summary::-webkit-details-marker { display: none; }
details.transcript > summary::before { content: "▸ "; }
details.transcript[open] > summary::before { content: "▾ "; }
details.transcript[open] > summary { margin-bottom: 8px; }

.dialogue {
  background: #fafbfc; border-radius: 6px; padding: 8px 14px;
  color: #33414f; white-space: normal;   /* не pre-wrap: переносы из шаблона не должны раздувать блок */
}
.dialogue p { margin: 3px 0; line-height: 1.4; }
.dialogue .op b { color: #1d4ed8; }
.dialogue .cl b { color: #237a3a; }
.dialogue b { margin-right: 4px; }
