:root {
  --paper: #f3f4f4; --card: #ffffff; --ink: #1a1d1c; --soft: #585e5c;
  --dark: #262c2a; --deep: #1a1f1d; --wash: #e6e9e8;
  --red: #a81d22; --red-deep: #84141a; --line: #d3d7d6; --error: #a81d22;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.45;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.band { background: #171b1a; color: #fff; }
.band-in { max-width: 600px; margin: 0 auto; padding: 22px 20px 24px; display: flex; gap: 16px; align-items: center; }
.band-in img { width: 104px; height: 104px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
h1 {
  margin: 0; font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700;
  font-size: clamp(1.45rem, 6vw, 1.9rem); line-height: 1.08; letter-spacing: .005em; text-wrap: balance;
}
main { max-width: 600px; margin: 0 auto; padding: 20px 20px 48px; }
.when { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 3px solid var(--red); }
.when .date { font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--red); margin: 0 0 6px; }
.when .place { margin: 0; color: var(--soft); }
.when .place strong { color: var(--ink); font-weight: 700; }
h2, legend {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 1.25rem;
  color: var(--dark); margin: 0 0 10px; padding: 0;
}
fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.shift { position: relative; display: block; margin-bottom: 8px; }
.shift input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.shift input:disabled { cursor: not-allowed; }
.shift .row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center;
  background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.shift .task { font-weight: 500; line-height: 1.25; }
.shift .time { grid-column: 1; color: var(--soft); font-size: .93rem; }
.shift .left { grid-row: 1 / span 3; grid-column: 2; text-align: right; font-weight: 700; color: var(--red-deep); white-space: nowrap; font-size: .95rem; }
.shift input:checked + .row { border-color: var(--dark); background: var(--wash); box-shadow: inset 0 0 0 1px var(--dark); }
.shift input:focus-visible + .row { outline: 3px solid var(--red); outline-offset: 2px; }
.shift input:disabled + .row { background: transparent; border-style: dashed; color: var(--soft); }
.shift input:disabled + .row .left { color: var(--soft); font-weight: 500; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 500; margin-bottom: 5px; }
.field input {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 2px solid var(--line); border-radius: 10px; padding: 12px 13px;
}
.field input:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px rgba(38, 44, 42, .2); }
.consent-box { margin: 20px 0 0; padding: 16px 14px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; }
.consent-box h2 { margin-bottom: 6px; }
.consent-box .links { margin: 0 0 12px; font-size: .95rem; overflow-wrap: anywhere; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--dark); }
.consent .lead { display: block; font-weight: 500; }
.consent .fine { display: block; color: var(--ink); font-size: .93rem; margin-top: 0; }
.legal { margin: 14px 0 0; text-align: center; color: var(--soft); font-size: .93rem; }
fieldset.choice { margin: 0 0 14px; }
.hint { color: var(--soft); font-weight: 400; }
fieldset.choice legend { font-family: inherit; font-size: 1em; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 10px 15px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; font-weight: 500; }
.chip input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: block; width: 100%; margin-top: 20px; padding: 16px 20px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--red); color: #fff; text-align: center; text-decoration: none;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 1.45rem; line-height: 1.1;
}
.btn:hover { background: var(--red-deep); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.quiet { background: transparent; color: var(--dark); border: 2px solid var(--dark); font-size: 1.15rem; padding: 12px 20px; }
.btn.quiet:hover { background: var(--wash); }
.msg { margin: 14px 0 0; font-weight: 500; color: var(--error); }
.note { color: var(--soft); margin: 0; }
.done { background: var(--card); border: 2px solid var(--dark); border-radius: 14px; padding: 20px 18px; }
.done h2 { font-size: 1.6rem; color: var(--deep); margin-bottom: 12px; line-height: 1.1; }
.done dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.done dt { color: var(--soft); }
.done dd { margin: 0; font-weight: 500; }
.done p { margin: 0 0 4px; }
a { color: var(--red-deep); }
[hidden] { display: none !important; }
.welcome { font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--deep); margin: 0 0 12px; }
.match { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.match input { width: 24px; height: 24px; margin: 0; accent-color: var(--dark); }
.match .who { font-weight: 700; }
.match .what { color: var(--soft); font-size: .95rem; }
.match.in { border-style: dashed; background: transparent; }
.big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; margin: 0 0 14px; }
.big-check svg { width: 40px; height: 40px; }
.door { background: var(--wash); border-left: 5px solid var(--red); padding: 10px 14px; margin: 0 0 18px; font-weight: 500; }
#known { margin-top: 22px; }
#known .note { margin: 0 0 12px; }
#details { margin-top: 26px; }
#finish .btn { margin-top: 20px; }
.match .who { font-size: 1.05rem; }
.shift .group { grid-column: 1; font-weight: 500; font-size: .95rem; color: var(--ink); }
.shift input:disabled + .row .group { color: var(--ink); }
.hero-img { display: block; width: 100%; max-width: 600px; height: auto; margin: 0 auto; }
.band.hero .band-in { max-width: none; padding: 16px 20px 18px; background: var(--red); justify-content: center; text-align: center; }
