/* ##ТЗ #A483## режим «Ответы на вопросы»: сводка по клиентам и квиз; телефон — крупные кнопки, без горизонтального скролла */
.квиз-область { max-width: 900px; min-width: 0; overflow-x: hidden; }
.квиз-панель { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.квиз-кому { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.квиз-кнопка { min-height: 40px; padding: 8px 14px; border: 1px solid var(--рамка); border-radius: 8px; background: var(--фон2);
  cursor: pointer; font-size: 15px; text-align: left; text-decoration: none; color: inherit; display: inline-flex; align-items: center;
  max-width: 100%; overflow-wrap: anywhere; }
.квиз-кнопка:hover:not(:disabled) { background: var(--наведение); }
.квиз-кнопка:disabled { opacity: .55; cursor: default; }
.квиз-кнопка--главная { background: #1f6fb2; border-color: #1f6fb2; color: #fff; font-weight: 600; }
.квиз-кнопка--главная:hover:not(:disabled) { background: #185a91; }
.квиз-кнопка--тихая { background: transparent; }
.квиз-кнопка[aria-pressed="true"] { border-color: var(--отметка); box-shadow: inset 0 -3px 0 var(--отметка); font-weight: 600; }
.квиз-тихо { color: var(--тихо); font-size: 13px; }

.квиз-таблица { border-collapse: collapse; width: 100%; font-size: 14px; }
.квиз-таблица th, .квиз-таблица td { border-bottom: 1px solid var(--рамка2); padding: 6px 8px; text-align: left; }
.квиз-таблица th { font-weight: 600; background: var(--фон2); white-space: nowrap; }
.квиз-таблица .число { text-align: right; }
.квиз-таблица .квиз-ноль { color: var(--тихо); opacity: .6; }
.квиз-таблица .квиз-всего, .квиз-итого td { font-weight: 600; }
.квиз-итого td { border-top: 2px solid var(--рамка); }

.квиз-шапка { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 0 6px; }
.квиз-назад { font-size: 15px; padding: 6px 0; }
.квиз-счётчик { font-weight: 600; font-size: 16px; white-space: nowrap; }
.квиз-полоса { height: 6px; border-radius: 3px; background: var(--фон3); overflow: hidden; margin-bottom: 10px; }
.квиз-полоса__заливка { height: 100%; background: #1f6fb2; transition: width .2s; }
.квиз-карточка { border: 1px solid var(--рамка); border-radius: 10px; padding: 12px 14px; background: var(--фон); display: grid; gap: 10px; min-width: 0; }
/* ##ТЗ #1121## стрелки к предыдущему и следующему вопросу без ответа */
.квиз-навигация { display: flex; justify-content: space-between; gap: 8px; }
.квиз-навигация .квиз-кнопка { min-width: 72px; justify-content: center; font-family: monospace; }
.квиз-мета { display: flex; flex-wrap: wrap; gap: 6px; }
.квиз-метка { border: 1px solid var(--рамка); border-radius: 999px; padding: 1px 9px; font-size: 12px; color: var(--тихо); background: var(--фон2); max-width: 100%; overflow-wrap: anywhere; }
.квиз-метка--clarify { border-color: #e08a00; color: #8a4b00; }
.квиз-метка--access { border-color: #b0306a; color: #8a2050; }
.квиз-метка--install { border-color: #2f7d32; color: #22602a; }
.квиз-метка--review { border-color: #1f6fb2; color: #185a91; }
.квиз-тз { font-size: 15px; overflow-wrap: anywhere; }
.квиз-текст { font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.квиз-круг { margin: 0; color: #8a4b00; font-size: 13px; }
.квиз-варианты { display: grid; gap: 8px; }
.квиз-вариант { width: 100%; justify-content: flex-start; }
.квиз-поле { width: 100%; box-sizing: border-box; min-height: 72px; font-size: 16px; padding: 8px; border: 1px solid var(--рамка); border-radius: 8px; resize: vertical; }
.квиз-действия { display: flex; gap: 8px; flex-wrap: wrap; }
.квиз-действия .квиз-кнопка { flex: 1 1 140px; justify-content: center; }
.квиз-ошибка { margin: 0; }

@media (max-width: 760px) {
  .квиз-кнопка { min-height: 48px; font-size: 16px; }
  .квиз-панель > .квиз-кнопка--главная { flex: 1 1 100%; justify-content: center; }
  /* сводка — карточками: клиент сверху, числа — подписанными ячейками в сетке; горизонтального скролла нет */
  .квиз-таблица thead { display: none; }
  .квиз-таблица, .квиз-таблица tbody, .квиз-таблица tfoot { display: block; }
  .квиз-таблица tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; padding: 8px 0;
    border-bottom: 1px solid var(--рамка); }
  .квиз-таблица td { border: none; padding: 2px 0; text-align: left !important; font-size: 14px; }
  .квиз-таблица td.квиз-клиент { grid-column: 1 / -1; font-weight: 600; font-size: 15px; }
  .квиз-таблица td[data-подпись]::before { content: attr(data-подпись) ": "; color: var(--тихо); font-weight: normal; }
  .квиз-итого td { border-top: none; }
}

/* ##ТЗ #1133## Вид карточки квиза: «Вопрос-уточнение» / «Приёмка» и строка «почему здесь» */
.квиз-вид { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 10px; border-radius: 8px; border-left: 4px solid #e08a00; background: var(--фон2); }
.квиз-вид--acceptance { border-left-color: #1f6fb2; }
.квиз-вид__метка { font-weight: 700; font-size: 15px; color: #8a4b00; }
.квиз-вид--acceptance .квиз-вид__метка { color: #185a91; }
.квиз-почему { font-size: 13px; color: var(--тихо); overflow-wrap: anywhere; min-width: 0; }

/* ##ТЗ #1157## группа партнёра с ≥2 проектами: заголовок + строки проектов; дата вопроса; ссылки на файлы */
.квиз-таблица .квиз-группа td { font-weight: 600; background: var(--фон2); }
.квиз-таблица .квиз-проект td.квиз-клиент { padding-left: 24px; }
.квиз-таблица .квиз-проект td.квиз-клиент a::before { content: "└ "; color: var(--тихо); }
.квиз-дата { color: var(--тихо); font-size: 12px; white-space: nowrap; }
.квиз-метка--дата { color: inherit; }
/* ##ТЗ #1157## плашка актуальности вопроса */
.квиз-метка--running { border-color: #1f6fb2; color: #185a91; }
.квиз-метка--checked { border-color: #2f7d32; color: #22602a; }
.квиз-файл { overflow-wrap: anywhere; }
