:root {
  color-scheme: light;
  --ink: #0b2a45;
  --brand: #13609b;
  --line: #d5e0ea;
  --bg: #f4f8fb;
  --bad: #b42318;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
body {
  margin: 0;
}
/* Classes below set display, which would otherwise override the hidden attribute. */
[hidden] {
  display: none !important;
}
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
}
h1 {
  margin: 8px 0;
}
.lead {
  margin: 0 0 16px;
  line-height: 1.5;
}
form {
  display: grid;
  gap: 14px;
  max-width: 420px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
input:not([type="checkbox"], [type="radio"]),
select {
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
legend {
  padding: 0 4px;
  font-weight: 600;
}
button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
}
button[aria-pressed="false"] {
  color: var(--ink);
  background: #e4ebf1;
}
.leave {
  background: var(--bad);
}
.error {
  margin: 0;
  color: var(--bad);
  font-weight: 600;
}
.status {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: var(--ink);
}
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile .label {
  position: absolute;
  inset: auto 0 0;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.7));
}
.tile .initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 800;
  color: #8ec5e8;
}
.controls {
  position: fixed;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}
