:root {
  color-scheme: light dark;
  font:
    16px/1.5 system-ui,
    sans-serif;
  --surface: light-dark(#fff, #1d2028);
  --border: light-dark(#dce1ec, #42495a);
  --muted: light-dark(#536078, #bac5dc);
  --accent: light-dark(#3159be, #9bb7ff);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: light-dark(#f2f5fa, #14161c);
}
main {
  width: min(100% - 32px, 500px);
  margin: clamp(18px, 8vw, 80px) auto;
  padding: clamp(20px, 6vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}
h1 {
  font-size: 24px;
  margin: 4px 0 18px;
}
h2 {
  font-size: 17px;
  margin-top: 22px;
}
.brand,
#message {
  color: var(--muted);
}
#message:empty {
  display: none;
}
form,
label {
  display: grid;
  gap: 8px;
}
form {
  gap: 16px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  margin-bottom: 8px;
}
.phone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}
input,
select,
button {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
}
input,
select {
  min-height: 46px;
  min-width: 0;
  padding: 0 12px;
  background: var(--surface);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button {
  min-height: 42px;
  padding: 0 16px;
  border-color: var(--accent);
  background: var(--accent);
  color: light-dark(#fff, #151c2b);
  cursor: pointer;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button.secondary {
  background: transparent;
  border-color: var(--border);
  color: inherit;
}
#invite-output {
  display: grid;
  gap: 8px;
}
ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
