/* Терминал отметки поверх app.css: те же цвета и шрифт (--accent, --ok,
   --err, --ink…), своя раскладка на весь экран планшета. Пальцы большие,
   экран виден с полутора метров — отсюда крупные размеры. */

html, body.kiosk { height: 100%; }
body.kiosk {
  min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(1200px 700px at 0% -20%, #DBEAFE 0%, transparent 60%), var(--bg);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.k-head { display: flex; align-items: center; gap: 16px; padding: 14px 22px;
  background: var(--card); border-bottom: 1px solid var(--line); }
.k-brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.k-brand svg { flex: 0 0 auto; }
.k-brand > div { min-width: 0; }
.k-company { font-size: 22px; font-weight: 800; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-sub { font-size: 13px; color: var(--muted); }
.k-time { text-align: right; }
.k-clock { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.k-date { font-size: 13px; color: var(--muted); margin-top: 4px; }
.k-lang { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 14px;
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: .04em; color: var(--ink); cursor: pointer; min-height: 44px; }

.k-offline { background: #FEF2F2; color: var(--err); text-align: center; font-weight: 600; padding: 10px 16px;
  border-bottom: 1px solid #FECACA; }

.k-main { flex: 1; display: grid; place-items: center; padding: 16px; overflow: auto; }
.k-screen { width: min(460px, 100%); text-align: center; }
.k-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.k-state { font-size: 20px; color: var(--muted); margin-bottom: 8px; }
.k-msg { min-height: 26px; font-size: 17px; font-weight: 600; color: var(--err); margin: 6px 0 10px; }
.k-msg.ok { color: var(--ok); }
.k-hint { font-size: 14px; color: var(--muted); margin-top: 16px; }

.k-dots { display: flex; justify-content: center; gap: 18px; margin: 14px 0 4px; }
.k-dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); }
.k-dots i.on { background: var(--ink); border-color: var(--ink); }
.k-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }

.k-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.k-pad button { font-family: inherit; font-weight: 700; font-size: 32px; line-height: 1; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; min-height: 76px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .04); }
.k-pad button:active { background: #EFF6FF; border-color: var(--accent); transform: translateY(1px); }
.k-pad button.k-fn { font-size: 18px; color: var(--muted); }
.k-pad[aria-disabled=true] button { opacity: .4; pointer-events: none; }

.k-avatar { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: inherit; font-weight: 800; font-size: 38px; line-height: 96px; }
.k-actions { display: grid; gap: 12px; margin-top: 18px; }
.btn.k-big { font-size: 24px; min-height: 84px; border-radius: 18px; color: #fff; }
.btn.k-in { background: var(--ok); border-color: var(--ok); }
.btn.k-out { background: var(--err); border-color: var(--err); }
.k-cancel { margin-top: 18px; background: none; border: 0; color: var(--muted); font-family: inherit; font-size: 16px;
  text-decoration: underline; cursor: pointer; padding: 12px; }

.k-check { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--ok); color: #fff; font-family: inherit; font-weight: 800; font-size: 64px; line-height: 120px; }
.k-check.k-bye { background: var(--accent); }
.k-check.k-warn { background: var(--warn); }

/* Планшет горизонтально: клавиатура крупнее, заголовки больше. */
@media (min-width: 900px) and (min-height: 600px) {
  .k-screen { width: min(520px, 100%); }
  .k-pad button { min-height: 88px; font-size: 36px; }
  .k-title { font-size: 34px; }
}
/* Телефон и низкие экраны: плотнее. */
@media (max-width: 480px) {
  .k-head { padding: 10px 14px; gap: 10px; }
  .k-company { font-size: 18px; }
  .k-clock { font-size: 26px; }
  .k-date { display: none; }
  .k-pad button { min-height: 64px; font-size: 28px; }
  .k-title { font-size: 24px; }
}
@media (max-height: 700px) and (min-width: 481px) {
  .k-pad { gap: 10px; }
  .k-pad button { min-height: 66px; }
  .k-dots { margin: 6px 0 0; }
  .k-hint { margin-top: 8px; }
}
