:root {
  --bg: #f7f6f2; --card: #ffffff; --ink: #1f2933; --muted: #5b6670; --line: #d8d4ca;
  --brand: #1f5f8b; --brand-ink: #ffffff; --ok: #1d6b3a; --warn: #8a5a00; --bad: #a32020;
  --notice: #fff6dd; --focus: #f2b705; --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14181c; --card: #1e242a; --ink: #e8ecef; --muted: #a3adb6; --line: #36404a;
          --brand: #6fb3e6; --brand-ink: #0d1a24; --ok: #6fd39a; --warn: #f0c060; --bad: #ff8a8a; --notice: #2c2614; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 18px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
a { color: var(--brand); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 1.2rem 0 .6rem; }
h2 { font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: .8rem 0 .2rem; }
.lead { font-size: 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px; z-index: 10; }

.top { background: var(--brand); color: var(--brand-ink); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 8px; }
.brand { color: var(--brand-ink); text-decoration: none; font-weight: 700; }
.top .btn.link { color: var(--brand-ink); white-space: nowrap; }
.devbar { background: #6b2fa3; color: #fff; text-align: center; font-size: .85rem; padding: 4px 16px; }
.testbar { background: #b45309; color: #fff; text-align: center; font-size: .95rem; padding: 6px 16px; }
.devbar a { color: #fff; font-weight: 600; text-decoration: underline; }
/* Dev mailbox (test copies only) */
.devbox { border: 2px dashed #b45309; background: #fff7ed; padding: .75rem 1rem; border-radius: 8px; margin: 1rem 0; }
.devbox .devgo { display: inline-block; margin: .5rem 0; padding: .55rem 1.1rem; background: #b45309; color: #fff;
                 border-radius: 6px; font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.devbox .devsmall { font-size: .85rem; }
.devmail { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
.devmail .devwhen { color: var(--muted); }
.devmail .devbody { white-space: pre-wrap; margin-top: .5rem; overflow-wrap: anywhere; }
.foot { margin: 2.5rem auto 1.5rem; color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap;
        gap: 4px 16px; justify-content: space-between; }
.build { font-variant-numeric: tabular-nums; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 16px; margin: 0 0 16px; }
fieldset.card { min-width: 0; }
legend { font-weight: 700; font-size: 1.1rem; padding: 0 4px; }
.notice, .flash { background: var(--notice); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.errbox { border: 2px solid var(--bad); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; background: var(--card); }
.errbox a { color: var(--bad); }

.field { margin: 0 0 18px; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { font-weight: 400; font-size: .8rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--card);
  min-height: 48px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 8px; }
textarea { min-height: 96px; }
.has-error input, .has-error select, .has-error textarea { border: 2px solid var(--bad); }
.err { color: var(--bad); font-weight: 600; margin: 6px 0 0; }
.help { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.readonly { margin: 0; padding: 10px 0; }
.checkline { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; font-weight: 400; }
.checkline input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; }
.checks { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .checks { grid-template-columns: 1fr 1fr; } }
.inline-check { display: inline-flex; min-height: 0; padding: 0; }
.onfile { background: var(--notice); padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
.lock { font-size: .75rem; border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.consent-text { white-space: pre-line; }
.big-check { font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px;
       font: inherit; font-weight: 600; border-radius: 8px; border: 1px solid var(--brand); background: var(--card);
       color: var(--brand); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.link { border: 0; background: none; text-decoration: underline; padding: 10px 4px; }
.btn.big { width: 100%; }
@media (min-width: 560px) { .btn.big { width: auto; min-width: 220px; } }
form.inline { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.people { list-style: none; padding: 0; margin: 0; }
.person-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.pname { font-size: 1.1rem; }
.tag { font-size: .8rem; border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; margin: 0 4px; }
.status { font-size: .9rem; font-weight: 700; }
.s-pending { color: var(--warn); }
.s-confirmed, .s-paid { color: var(--ok); }
.s-none, .s-withdrawn { color: var(--muted); font-weight: 400; }
.s-waiver-out { color: var(--bad); margin-left: 8px; }
.s-waiver-ok { color: var(--ok); margin-left: 8px; font-weight: 400; }
.draft-banner { border: 2px dashed var(--bad); color: var(--bad); background: var(--card); border-radius: var(--radius);
                padding: 10px 14px; margin: 16px 0 0; }
.waiver-text p { margin: 0 0 .8rem; }
.covers { margin: 0 0 1rem; }
.refbox .ref { font-size: 2rem; font-weight: 800; letter-spacing: .08em; margin: .2rem 0 .6rem; font-variant-numeric: tabular-nums; }
.method { border-top: 1px solid var(--line); padding-top: 4px; }
.summary { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0; }
.summary dt { font-weight: 600; margin-top: 8px; }
.summary dd { margin: 0; }
@media (min-width: 560px) { .summary { grid-template-columns: 2fr 3fr; } .summary dt { margin-top: 0; } }
.changes { padding-left: 18px; }
.steps li { margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

/* (i) info: a tap target next to the label; the text opens inline below */
.info-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-width: 32px;
            margin: 0 0 0 6px; padding: 0; border: 1px solid var(--brand); border-radius: 50%; background: var(--card);
            color: var(--brand); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; vertical-align: middle; }
.info-btn[aria-expanded=true] { background: var(--brand); color: var(--brand-ink); }
.info-text { display: block; flex-basis: 100%; background: var(--notice); border-radius: 8px; padding: 8px 12px;
             margin: 6px 0; font-size: .95rem; font-weight: 400; }
.optrow { display: flex; flex-wrap: wrap; align-items: center; }
.optrow .checkline { flex: 1 1 auto; }
.opt-info { list-style: none; padding: 0; margin: 8px 0 0; }
.opt-info li { margin: 4px 0; }
.field > .label { display: inline-block; }
.sub-label { display: block; font-weight: 400; margin: 8px 0 4px; }
.readonly-input { background: var(--bg) !important; }
.s-draft { color: var(--brand); font-weight: 600; }
.ok { color: var(--ok); }
.problems { margin: 4px 0 0; padding-left: 20px; color: var(--bad); }
.has-problem { border-color: var(--bad); }
.hh-steps { padding-left: 36px; }
.hh-steps li { margin: 4px 0; }
.hh-steps li.done a { color: var(--ok); }
.stay-people { list-style: none; padding: 0; margin: 0; }
.stay-people > li { border-top: 1px solid var(--line); padding: 10px 0 0; }
.stay-people > li:first-child { border-top: 0; }
.next-people, .waiver-links { padding-left: 20px; }
.next-people li, .waiver-links li { margin: 6px 0; overflow-wrap: anywhere; }
.person-head .checkline { min-height: 0; padding: 0; }

/* Guided flow (2026-11-16): progress bar across the top of every step, the hub's Continue */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.progress { margin: 16px 0 8px; }
.progress ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.pstep { flex: 1 1 0; min-width: 0; position: relative; }
.pstep a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px 6px; text-decoration: none;
           color: var(--muted); border-bottom: 4px solid var(--line); min-height: 48px; }
.pnum { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
        border: 2px solid var(--line); background: var(--card); font-weight: 700; font-size: .95rem; }
.plabel { font-size: .8rem; line-height: 1.2; text-align: center; display: none; }
.pstep.done a { color: var(--ok); border-bottom-color: var(--ok); }
.pstep.done .pnum { border-color: var(--ok); background: var(--ok); color: var(--card); }
.pstep.current a { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.pstep.current .pnum { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.pnow { margin: 8px 0 0; font-size: .95rem; color: var(--muted); }
@media (min-width: 560px) { .plabel { display: block; } .pnow { display: none; } }
.continue { text-align: left; }
.continue .lead { margin-top: 0; }
.seq { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.card-title { margin-top: 0; }
h2.sub { font-size: 1.1rem; margin: 1.2rem 0 .2rem; }
h2.sub + .help { margin: 0 0 14px; }
.next-bar { margin: 8px 0 16px; }
.next-bar .muted { margin: 8px 0 0; }

/* honeypot: off-screen, not display:none (some bots skip hidden inputs) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
