/* Раздел «Медиа» в Хабе (задача #55). Основа — классы разделов «Тестеры» и «Выпуски» из app.css. */
.med .md-book { border: 1px solid var(--border); border-radius: 10px; margin: 8px 0; }
.med .md-when { min-width: 170px; font-variant-numeric: tabular-nums; }
.med .md-slotform .field.small { width: auto; }
.med .md-slotform input[type=date] { min-width: 140px; }
.med .md-chat { display: grid; grid-template-columns: 230px 1fr; gap: 12px; align-items: start; }
.med .md-chans { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.med .md-ch { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.med .md-ch:hover { background: var(--hover); color: var(--text); }
.med .md-ch.on { background: var(--active); color: var(--text); font-weight: 600; }
.med .md-ch .count { font-size: 11px; min-width: 18px; text-align: center; line-height: 18px; border-radius: 9px; padding: 0 5px; }
.med .md-ch .count.bad { background: var(--danger); color: #fff; }
.med .md-thread { display: flex; flex-direction: column; gap: 8px; }
.med .md-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; min-height: 200px; overflow-y: auto; padding: 4px 2px; }
.med .md-msg { max-width: 80%; padding: 8px 11px; border-radius: 12px; background: var(--user-bubble); align-self: flex-start; }
.med .md-msg.team { align-self: flex-end; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.med .md-msg .tst-text { margin: 2px 0 0; }
.med .md-prog { height: 6px; border-radius: 4px; background: var(--hover); overflow: hidden; margin-top: 6px; }
.med .md-prog > div { height: 100%; background: var(--accent); transition: width .3s; }
.med .md-mat { gap: 12px; }
.med .md-prev { width: 84px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--code-bg); flex: none; }
.med .md-prev img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 760px) {
  .med .md-chat { grid-template-columns: 1fr; }
  .med .md-chans { flex-direction: row; flex-wrap: wrap; }
  .med .md-ch { width: auto; }
  .med .md-msg { max-width: 94%; }
}
