/* /meet — «Встреча без регистрации» (тариф Lite). Standalone, like cast and form. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --bg: #16244a;
  --bg-glow: #24407a;
  --card: #ffffff;
  --text: #1e325c;
  --muted: #6b7080;
  --line: #dfe3ec;
  --field: #f3f5f9;
  --accent: #1c58d9;
  --accent-hover: #154ab8;
  --danger: #d93d48;
  --ok: #1f9d68;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1427;
    --bg-glow: #18294f;
    --card: #172138;
    --text: #eef1f8;
    --muted: #9aa5bf;
    --line: rgba(255, 255, 255, 0.12);
    --field: #1f2a45;
    --accent: #4f86f0;
    --accent-hover: #3b73de;
    --danger: #ff6b73;
    --ok: #3ccf8e;
  }
}

html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(120% 60% at 50% 0%, var(--bg-glow), var(--bg) 70%) fixed, var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }

.page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
.card {
  width: 100%; max-width: 420px; background: var(--card); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column; gap: 12px; text-align: center;
}
.card.center { align-items: center; }
.logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; align-self: center; }
h1 { margin: 4px 0 0; font-size: 22px; }
h2 { margin: 8px 0 0; font-size: 15px; text-align: left; }
.muted { margin: 0; color: var(--muted); }
form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; }
.field input {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--field); font-weight: 400; font-size: 15px;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.error { margin: 0; min-height: 0; color: var(--danger); font-size: 13px; }
.error:empty { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--accent); }
.link {
  background: none; border: 0; padding: 4px; color: var(--accent); cursor: pointer;
  font-size: 14px; text-decoration: none;
}
.link:disabled { color: var(--muted); cursor: default; }
.row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }

.ready { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 12px; border-radius: 12px; background: var(--field); }
.ready-title { margin: 0; font-weight: 600; color: var(--ok); }
.link-box { display: flex; gap: 8px; }
.link-box input {
  flex: 1 1 auto; min-width: 0; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); font-size: 13px;
}
.history { list-style: none; margin: 0; padding: 0; text-align: left; }
.history li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history .h-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history .h-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }

.spinner {
  width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line);
  border-top-color: var(--accent); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
