/* Админка → «Эхо-вызов» (daily.js). Переключатель разделов — как у «Обращений». */
#dl-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
#dl-switch button {
  padding: 5px 14px; border: 1px solid var(--line); border-radius: 20px;
  background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: normal; letter-spacing: 0; cursor: pointer;
}
#dl-switch button.active { color: var(--accent); border-color: var(--accent); }

/* ── Выпуски: таблица дней ── */
.dl-list { display: flex; flex-direction: column; }
.dl-head, .dl-row {
  display: grid; grid-template-columns: 70px 50px minmax(150px, 1.2fr) 150px minmax(150px, 1fr) 190px 170px 26px minmax(0, 110px);
  align-items: center; gap: 10px; padding: 6px 8px;
}
.dl-head { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.dl-head > :nth-child(6) { text-align: center; }
.dl-row { border-top: 1px solid rgba(78,205,196,.12); }
.dl-row:hover { background: rgba(78,205,196,.04); }
.dl-row.open { background: rgba(78,205,196,.08); }
.dl-row.dl-past { opacity: .7; }
.dl-row.dl-today { border-top-color: var(--accent); }
.dl-date { white-space: nowrap; color: var(--muted); }
.dl-today .dl-date { color: var(--accent); }
.dl-no { white-space: nowrap; color: var(--accent); }
.dl-what { min-width: 0; }
.dl-past .dl-what.muted { grid-column: 3 / -1; }
.dl-in {
  width: 100%; padding: 5px 8px; background: #030a14; border: 1px solid rgba(78,205,196,.2); border-radius: 5px;
  color: var(--text); font: inherit; font-size: 13px;
}
.dl-in:focus { border-color: var(--accent); outline: none; }
.dl-in:disabled { opacity: .6; background: none; border-color: transparent; }
.dl-name { font-weight: bold; }
.dl-name.dl-pred { font-weight: normal; color: var(--muted); font-style: italic; }
.dl-name.dl-pred:focus { color: var(--text); font-style: normal; }
select.dl-in { padding: 4px 6px; }
.dl-stat {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; text-align: center;
  padding: 3px 4px; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--text); font: inherit; letter-spacing: 0;
}
button.dl-stat { cursor: pointer; border-color: rgba(78,205,196,.18); }
button.dl-stat:hover { border-color: var(--accent); background: rgba(78,205,196,.08); }
.dl-stat span, .dl-sum span { display: flex; flex-direction: column; line-height: 1.15; }
.dl-stat b { font-size: 14px; }
.dl-stat i, .dl-sum i { font-style: normal; font-size: 9px; color: var(--muted); letter-spacing: 1px; }
.dl-stat-none { display: block; font-size: 11px; }
.dl-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.dl-more { padding: 0; font-size: 18px; line-height: 1; color: var(--accent); }
.dl-say { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-ico { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.pill.dl-today { color: var(--accent); border-color: var(--accent); }
.pill.dl-past { color: var(--muted); }
.pill.dl-fallback { color: #e3b341; border-color: rgba(227,179,65,.4); }

/* ── Окно партий выпуска ── */
.dl-sum { display: flex; gap: 28px; margin: 6px 0 8px; }
.dl-sum b { font-size: 20px; color: var(--accent); }
table.dl-res { margin-top: 10px; }
table.dl-res td.num, table.dl-res th { text-align: right; }
table.dl-res th:nth-child(2), table.dl-res th:nth-child(3), table.dl-res th:nth-child(8), table.dl-res th:nth-child(9), table.dl-res th:nth-child(10) { text-align: left; }
table.dl-res tr.dl-out td { opacity: .55; }
table.dl-res .callsign { color: var(--accent); }
.dl-going { color: #e3b341; }

/* ── Выпуски: правка дня ── */
.dl-edit {
  padding: 12px 14px 14px; margin: 0 0 6px;
  border: 1px solid var(--line); border-top: none; border-radius: 0 0 8px 8px;
  background: rgba(3,10,20,.5);
}
.dl-note { margin-bottom: 10px; font-size: 12px; color: #e3b341; }
.dl-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.dl-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.dl-grid label.chk { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; }
.dl-grid input.tag-input { width: 240px; }
.dl-edit input.tag-input, .dl-edit select, #dl-settings select, #dl-settings input {
  padding: 7px 9px; background: #030a14; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font: inherit;
}
.dl-edit select:disabled, .dl-edit input:disabled { opacity: .5; }
.dl-file {
  display: grid; grid-template-columns: 100px minmax(0, 1fr) auto auto;
  align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(78,205,196,.1);
}
.dl-prev { max-width: 160px; max-height: 70px; border-radius: 4px; border: 1px solid var(--line); vertical-align: middle; }
.dl-file audio { height: 30px; max-width: 100%; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.dl-seed { margin-left: auto; font-size: 11px; }

/* ── Расклады: пульт игры в рамке ── */
.dl-lay-list { margin: 10px 0; }
.dl-lays { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-track-sel { font-size: 12px; }
.dl-pult { width: 100%; height: 78vh; min-height: 560px; border: 1px solid var(--line); border-radius: 8px; background: #000; }

/* ── Настройки ── */
#dl-settings .row { margin-bottom: 12px; }
#dl-settings input[type=text] { width: 200px; }
table.dl-set-info { width: auto; margin-bottom: 8px; }

/* ── Коды: позывной и сброс попытки ── */
#invites .callsign { color: var(--accent); }
.daily-acc { margin: 8px 0; font-size: 13px; }
.daily-acc .link { color: var(--accent); }

@media (max-width: 1100px) {
  .dl-head { display: none; }
  .dl-row { grid-template-columns: 70px 44px minmax(0, 1fr) 26px; }
  .dl-row > * { grid-column: 3; }
  .dl-row > .dl-date { grid-column: 1; }
  .dl-row > .dl-no { grid-column: 2; }
  .dl-row > .dl-more { grid-column: 4; grid-row: 1; }
  .dl-file { grid-template-columns: 80px minmax(0, 1fr); }
}
