/* Страница приёма записи — минимум и читаемость, светлая и тёмная тема */

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1c1e21;
  --muted: #6b7280;
  --line: #d9dce1;
  --accent: #2f6feb;
  --accent-text: #ffffff;
  --error: #b42318;
  --ok: #157347;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --card: #1f2229;
    --text: #e8eaed;
    --muted: #9aa1ab;
    --line: #343841;
    --accent: #5b8def;
    --accent-text: #0f1115;
    --error: #f2837a;
    --ok: #5cc98b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}

h1 { margin: 0 0 8px; font-size: 24px; }
.lead { margin: 0 0 24px; color: var(--muted); }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 20px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); }
.drop-title { font-weight: 600; }
.drop-hint { color: var(--muted); font-size: 14px; }

.chosen { margin: 14px 0 0; font-size: 15px; }

.btn {
  width: 100%;
  margin-top: 18px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.btn:disabled { opacity: .45; cursor: default; }

.status { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.error { color: var(--error); margin: 12px 0 0; }
.done { color: var(--ok); font-weight: 600; }

.bar {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width .2s;
}

.code-input {
  width: 100%;
  padding: 14px;
  font: 600 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .35em;
  text-align: center;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.code-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
