:root {
  color-scheme: light;
  --bg: #f7f1e8;
  --surface: #fffdf9;
  --text: #17212b;
  --muted: #607076;
  --teal: #007d78;
  --link: #007d78;
  --line: #dcded5;
  --tint: #e4eee7;
  --gold: #e9b44c;
  --shadow: 0 16px 48px #152b2520;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1519;
  --surface: #182127;
  --text: #f2ece3;
  --muted: #9aa8ad;
  --link: #4fc7bf;
  --line: #344047;
  --tint: #173632;
  --shadow: 0 16px 48px #0004;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --bg: #0f1519;
    --surface: #182127;
    --text: #f2ece3;
    --muted: #9aa8ad;
    --link: #4fc7bf;
    --line: #344047;
    --tint: #173632;
  }
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
.button {
  border: 0;
  border-radius: 16px;
  min-height: 50px;
  padding: 12px 20px;
  background: var(--teal);
  color: white;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:hover,
.button:hover {
  filter: brightness(0.95);
  text-decoration: none;
}
.secondary {
  background: var(--tint);
  color: var(--link);
}
.plain {
  background: transparent;
  color: var(--muted);
}
.danger {
  background: #a33d32;
  color: white;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  min-height: 50px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 6px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  min-height: 44px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 16px 0;
}
legend {
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -1.4px;
  margin-bottom: 12px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
p {
  margin-bottom: 16px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 750;
  color: var(--link);
  margin: 20px 0 12px;
}
.brand {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -1.7px;
  color: var(--text);
}
.brand i {
  color: var(--link);
  font-style: normal;
}
.topbar {
  max-width: 1100px;
  margin: auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.topbar small {
  letter-spacing: 1px;
  font-size: 11px;
  text-transform: uppercase;
}
.avatar {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--link);
  font-size: 18px;
  padding: 0;
}
.layout {
  max-width: 1100px;
  margin: auto;
  padding: 38px 28px 120px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 54px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar a {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  min-height: 50px;
}
.sidebar a.active {
  background: var(--tint);
  color: var(--link);
  font-weight: 700;
}
.sidebar .sidefoot {
  margin-top: 60px;
  padding: 18px;
  font-size: 13px;
  color: var(--muted);
}
main {
  width: 100%;
  max-width: 600px;
  min-width: 0;
}
.welcome {
  max-width: 1000px;
  margin: auto;
  padding: 64px 28px 80px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.welcome h1 {
  font-size: 64px;
  letter-spacing: -3px;
  line-height: 1.03;
}
.welcome h1 em {
  font-style: normal;
  color: var(--link);
}
.welcome .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 390px;
}
.welcome-card {
  padding: 30px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.steps {
  display: flex;
  gap: 20px;
  margin: 36px 0;
  color: var(--muted);
  font-size: 13px;
}
.steps b {
  color: var(--link);
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 20px;
  margin: 20px 0;
}
.qr-card {
  text-align: center;
  padding: 32px 24px;
}
.qr-wrap {
  background: white;
  padding: 6px;
  border-radius: 20px;
  width: min(100%, 290px);
  margin: 24px auto;
  box-shadow: 0 8px 28px #122d2510;
}
.qr-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}
.qr-card .name {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.actions > * {
  flex: 1;
}
.stack {
  display: grid;
  gap: 12px;
}
.full {
  width: 100%;
}
.tag {
  display: inline-block;
  background: var(--tint);
  color: var(--link);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 12px;
  margin: 4px 3px 0 0;
}
.status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 30px;
  background: var(--tint);
  color: var(--link);
  font-size: 12px;
  padding: 5px 11px;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.banner {
  display: block;
  background: var(--tint);
  color: var(--link);
  padding: 18px;
  border-radius: 16px;
  margin: 20px 0;
}
.empty {
  text-align: center;
  padding: 50px 20px;
}
.empty-mark {
  font-size: 40px;
  color: var(--link);
  margin-bottom: 20px;
}
.person {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.person:last-child {
  border-bottom: 0;
}
.person .details {
  flex: 1;
}
.person p {
  margin: 0;
}
.person small {
  display: block;
}
.big-avatar {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 36px;
  font-weight: 700;
  background: var(--tint);
  color: var(--link);
  margin: 0 auto 20px;
}
.center {
  text-align: center;
}
.error {
  background: #fbe3de;
  color: #8a2921;
  padding: 14px 18px;
  border-radius: 14px;
  margin: 16px 0;
}
.footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.bottomnav {
  display: none;
}
#toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: var(--text);
  color: var(--bg);
  border-radius: 14px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
  z-index: 20;
}
#toast:empty {
  display: none;
}
dialog {
  max-width: 440px;
  width: calc(100% - 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: var(--surface);
  color: var(--text);
}
dialog::backdrop {
  background: #081b2766;
  backdrop-filter: blur(4px);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.meta {
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
}
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 16px;
}
.fullscreen .qr-wrap {
  width: min(90vw, 480px);
}
.fullscreen {
  max-width: 600px;
  margin: 40px auto;
  padding: 18px;
  text-align: center;
}
progress {
  accent-color: var(--teal);
  width: 100%;
}
.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.interest-grid label {
  margin: 4px 0;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
.welcome-art {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  border-radius: 20px;
  margin-bottom: 24px;
  overflow: hidden;
}
.orbit {
  width: 150px;
  height: 150px;
  border: 1px solid var(--link);
  opacity: 0.3;
  border-radius: 50%;
  position: absolute;
  transform: rotate(-25deg) scaleX(1.8);
}
.welcome-art span {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
  margin: -5px;
  box-shadow: 0 0 0 8px var(--tint);
}
.welcome-art span:last-child {
  background: var(--gold);
  color: #17212b;
  transform: translateY(26px);
}
@media (max-width: 700px) {
  .topbar {
    padding: 18px;
    border-bottom: 0;
  }
  .topbar small {
    display: none;
  }
  .layout {
    display: block;
    padding: 20px 18px 120px;
  }
  .sidebar {
    display: none;
  }
  main {
    margin: auto;
  }
  h1 {
    font-size: 32px;
  }
  .bottomnav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    justify-content: space-evenly;
    background: var(--surface);
    border-top: 1px solid var(--line);
    z-index: 10;
  }
  .bottomnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
    min-width: 70px;
    min-height: 48px;
    padding: 4px;
  }
  .bottomnav a.active {
    color: var(--link);
    font-weight: 750;
  }
  .bottomnav b {
    font-size: 21px;
    font-weight: 400;
  }
  .welcome {
    display: block;
    padding: 32px 18px 60px;
  }
  .welcome h1 {
    font-size: 52px;
  }
  .welcome-card {
    margin-top: 36px;
    padding: 24px;
  }
  .welcome .lede {
    font-size: 17px;
  }
  .steps {
    margin: 28px 0;
    justify-content: space-between;
  }
  .qr-card {
    padding: 24px 18px;
  }
  .card {
    padding: 20px;
  }
  .actions {
    gap: 8px;
  }
  .row {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      filter 0.15s;
  }
  .card {
    animation: arrive 0.25s ease-out;
  }
  @keyframes arrive {
    from {
      opacity: 0.5;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
.avatar,
.big-avatar {
  overflow: hidden;
}
.avatar img,
.big-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar {
  display: grid;
  place-items: center;
}
