:root {
  font-family: Arial, sans-serif;
  color: #eefcff;
  color-scheme: dark;
  background: #03233b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 100% 100%, #30bed022, transparent 65%), linear-gradient(165deg, #03233b 0%, #04345b 58%, #064779 100%);
}

button,
input {
  font: inherit;
  font-size: 16px;
}

button {
  min-height: 54px;
  padding: 14px 22px;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  background: #30bed0;
  color: #03233b;
  font-weight: 700;
}

button:disabled { opacity: 0.65; cursor: wait; }
button:hover { background: #56cddd; }

button:focus-visible,
input:focus-visible {
  outline: 3px solid #dfeb24;
  outline-offset: 4px;
}

.center {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  place-items: center;
}

.join {
  display: grid;
  width: min(100%, 360px);
  gap: 18px;
}

.phone {
  display: flex;
  align-items: center;
  height: 62px;
  border: 1px solid #30bed077;
  border-radius: 14px;
  background: #03233b88;
}

.prefix {
  padding: 0 18px;
  border-right: 1px solid #30bed088;
  color: #30bed0;
  font-size: 18px;
}

.phone input {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border: 0;
  outline-offset: -4px;
  background: transparent;
  color: #eefcff;
  letter-spacing: 2px;
}

.join p:empty { display: none; }

p[role=alert] {
  margin: 0;
  color: #ffb9b2;
  font-size: 14px;
  line-height: 1.5;
}

.waiting { text-align: center; color: #30bed0; }
.waiting[hidden],
[hidden] { display: none !important; }

.spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 3px solid #30bed033;
  border-top-color: #30bed0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.waiting p { margin-top: 20px; font-size: 18px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
}

.login input {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  border: 1px solid #30bed077;
  border-radius: 12px;
  background: #03233b88;
  color: #eefcff;
}

.login label { font-size: 14px; }
.login h1 { margin: 0 0 8px; font-size: 24px; }

.dashboard {
  width: min(100%, 800px);
  padding: 32px 20px;
  margin: auto;
}

.dashboard header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard h1 { font-size: 24px; }
.dashboard button { min-height: 44px; padding: 10px 16px; font-size: 14px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #30bed0;
  font-size: 14px;
}

.records {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.records li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #30bed055;
  border-radius: 16px;
  background: linear-gradient(135deg, #03233bcc, #07517b99);
  box-shadow: 0 8px 22px #00182733;
}

.entry-values {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.entry-phone,
.entry-note {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 12px;
}

.entry-phone {
  flex: 2 1 340px;
  border: 1px solid #59d6e5aa;
  background: #03233baa;
  color: #f5feff;
}

.entry-note {
  flex: 1 1 170px;
  border: 1px solid #ffffa8;
  background: #dfeb24;
  color: #03233b;
  box-shadow: 0 0 0 2px #dfeb2433;
}

.entry-phone-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.phone-country {
  flex: none;
  padding: 6px 9px;
  border: 1px solid #5dd8e7;
  border-radius: 9px;
  background: #30bed022;
  color: #8ce9f3;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.phone-main {
  min-width: 0;
  color: #fff;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.045em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.phone-extra {
  flex: 1 1 100%;
  padding: 6px 8px;
  border-left: 3px solid #30bed0;
  border-radius: 5px;
  background: #ffffff12;
  color: #d6f6f9;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.entry-label {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
}

.entry-value {
  overflow-wrap: anywhere;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.055em;
  font-variant-numeric: tabular-nums;
}

.entry-note .entry-value { white-space: pre-wrap; }

.records time {
  flex: none;
  color: #c8e0eb;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.empty { color: #a9c6d7; }
.connection { color: #ffb9b2; font-size: 14px; }

.waiting { width: min(100%, 360px); }

.continue-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.continue-form input {
  width: 100%;
  padding: 16px;
  border: 1px solid #30bed077;
  border-radius: 14px;
  background: #03233b88;
  color: #eefcff;
}

.continue-form label { font-size: 14px; }

.main-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: 120px;
  margin: 0 auto 12px;
  object-fit: contain;
  justify-self: center;
}

.delayed-message {
  color: #eefcff;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .dashboard { padding: 22px 14px; }

  .records li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .entry-values { width: 100%; }

  .entry-phone,
  .entry-note { flex: 1 1 100%; }

  .phone-main { white-space: normal; }

  .records time { text-align: left; }
}
