/* Страницы приложения: вход, кабинет, аккаунт. Мастер и отчёт — wizard.css, report.css. */

.auth { min-height: calc(100vh - 64px - 240px); display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; }
.auth-title { font-size: 30px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 22px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tg-box { display: flex; justify-content: center; min-height: 40px; }
.note { padding: 12px 14px; border-radius: 12px; font-size: 14px; background: var(--surface-2); }
.note.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.note.good { color: var(--good); background: color-mix(in srgb, var(--good) 10%, transparent); }

.last-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; padding: 32px; }
.block-bars { display: grid; gap: 12px; max-width: 520px; }
.block-bar { display: grid; grid-template-columns: 190px 1fr 36px; gap: 14px; align-items: center; font-size: 14.5px; }
.block-bar b { text-align: right; }
.block-bar .code-tag { margin-left: 6px; }
@media (max-width: 640px) {
  .last-card { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 24px; }
  .block-bar { grid-template-columns: 1fr 70px 32px; }
}

.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: baseline; }
@media (max-width: 560px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }

.chat { max-height: 56vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 80%; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg .bubble { padding: 10px 14px; border-radius: 16px; background: var(--surface-2); white-space: pre-wrap; line-height: 1.5; }
.msg.me .bubble { background: var(--accent); color: var(--on-accent); }
