/* Киоск «МТ Вход»: самодостаточный, тёмный, крупный — общий телефон точки.
   Никаких зависимостей от style.css основной PWA. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font: 17px/1.45 "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #191919; color: #f2efe9;
  display: flex; justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 16px 32px;
}
main { width: 100%; max-width: 420px; }
.brand { font-weight: 800; letter-spacing: .04em; font-size: 15px; color: #c8b98d; margin-bottom: 4px; }
h1 { font-size: 26px; font-weight: 800; margin: 4px 0 2px; }
.sub { color: #9a968e; font-size: 14px; margin-bottom: 18px; }
label { display: block; color: #9a968e; font-size: 13px; margin: 14px 0 6px; }
select, input, button {
  width: 100%; font: inherit; color: inherit;
  background: #242424; border: 1px solid #3a3a3a; border-radius: 14px;
  padding: 14px 16px; min-height: 52px;
}
select:focus, input:focus { outline: none; border-color: #c8b98d; }
button { cursor: pointer; font-weight: 700; }
button.primary { background: #f2efe9; color: #191919; border: none; margin-top: 18px; }
button.primary:disabled { opacity: .5; }
button:active { transform: scale(.99); }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; }
.seg button.on { background: #f2efe9; color: #191919; border-color: #f2efe9; }
.selfie-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; display: block; margin: 10px 0; }
.err {
  background: #3a1f1f; border: 1px solid #7a3333; color: #ffb4b4;
  border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-top: 12px;
  display: none;
}
.done { text-align: center; padding-top: 8vh; }
.done .check {
  width: 84px; height: 84px; border-radius: 50%; background: #1f3a28; color: #7ade9e;
  font-size: 44px; line-height: 84px; margin: 0 auto 16px;
}
.done .name { font-size: 20px; font-weight: 700; margin-top: 6px; }
.done .meta { color: #9a968e; font-size: 14px; margin-top: 4px; }
.done .next { margin: 18px 0 6px; font-weight: 700; }
.hint { color: #6f6c66; font-size: 12px; margin-top: 20px; text-align: center; }

/* Живая камера селфи (13.08). Оверлей ложится ПОВЕРХ экрана открытия смены, а
   не заменяет его: под ним остаётся выбранный человек, введённый ПИН и тип
   смены. Внешнее приложение камеры их и уносило — вместе со всей страницей. */
.cam-ov {
  position: fixed; inset: 0; z-index: 1200; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px;
}
.cam-wrap { position: relative; width: 100%; max-width: 420px; border-radius: 14px;
  overflow: hidden; background: #000; }
.cam-wrap video { width: 100%; display: block; }
/* Селфи снимают, глядя на себя: зеркалим превью, как это делает камера
   телефона. Кадр в канвас идёт НЕзеркальным — на фото бейдж должен читаться. */
.cam-wrap video { transform: scaleX(-1); }
.cam-hint { position: absolute; top: 10px; left: 0; right: 0; text-align: center;
  color: #fff; text-shadow: 0 1px 3px #000; font-size: 14px; padding: 0 12px;
  pointer-events: none; }
.cam-shoot {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 72px; min-height: 0; border-radius: 50%;
  border: 4px solid #fff; background: rgba(255,255,255,.35); padding: 0; margin: 0;
}
.cam-shoot:active { transform: translateX(-50%) scale(.96); }
.cam-cancel { width: auto; min-width: 160px; background: transparent; border-color: #3a3a3a; }
