/* Round 3: follows Derek's preferred ChatGPT prototype closely (navy and white, one blue accent,
   mint highlight, heavy headlines, white icon cards, dark rounded CTA band), built by hand.
   BRAND TOKENS below; swap here for Derek's final brand. */
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* BRAND TOKENS (swap) */
  --navy: #0b1528; --navy-2: #13223f; --ink: #0f1a2e; --muted: #5a6478; --line: #e5eaf2;
  --blue: #2f5ddb; --blue-2: #2552c9; --mint: #9be7cf; --pale: #f1f6ff; --white: #ffffff;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --r: 22px; --shadow: 0 1px 2px rgba(15,26,46,.04), 0 12px 32px rgba(15,26,46,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.65 var(--font); }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 .45em; }
h1 { font-size: clamp(42px, 6.6vw, 88px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.mint { color: var(--mint); }
.ico { width: 24px; height: 24px; display: block; }

.mock-banner { background: #fff7d6; color: #5c4a00; font-size: 13px; text-align: center; padding: 7px 16px; }
.mock-banner a { color: inherit; font-weight: 700; }
.topstrip { background: var(--navy); color: #d9e1f2; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-align: center; padding: 10px 16px; text-transform: uppercase; }

header.site { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
/* Derek's logo (2026-11-16). On dark areas it sits on a white badge so its colors stay exactly as designed. */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { display: block; height: 64px; width: auto; }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
nav.main ul a { display: block; text-decoration: none; font-weight: 700; font-size: 15px; color: #3a4459; padding: 8px 14px; border-radius: 10px; }
nav.main ul a:hover { background: var(--pale); color: var(--ink); }
nav.main ul a[aria-current] { color: var(--blue); }
.nav-toggle { display: none; background: var(--pale); color: var(--ink); border: 0; border-radius: 12px; padding: 10px 16px; font: 700 14px var(--font); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 700 16px var(--font); padding: 15px 24px; border-radius: 14px; background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(59,110,242,.28); transition: transform .15s, background .15s; }
.btn:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn.white { background: #fff; color: var(--ink); box-shadow: none; }
.btn.white:hover { background: var(--pale); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.small { padding: 10px 16px; font-size: 14px; border-radius: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(60% 80% at 85% 40%, rgba(59,110,242,.35), transparent 70%), radial-gradient(40% 60% at 10% 100%, rgba(155,231,207,.12), transparent 70%), linear-gradient(135deg, var(--navy), #0e1f3d 60%, #102a4f); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { color: #fff; }
.hero .lead { color: #c5cfe2; margin: 0 0 34px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.perk-stage { position: relative; min-height: 470px; }
.perk-card { position: absolute; inset: 30px 10px 52px 40px; background: #fff; color: var(--ink); border-radius: 26px; padding: 26px; box-shadow: 0 40px 80px rgba(0,0,0,.35); transform: rotate(2.5deg); display: flex; flex-direction: column; }
.perk-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.perk-card .head strong { font-size: 20px; letter-spacing: -0.02em; }
.pill-mint { background: #e3f8f0; color: #1d6b52; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.perk-img { flex: 1; margin: 18px 0; border-radius: 18px; min-height: 180px; background: linear-gradient(135deg, #ffb48a, #f08a5d 55%, #c96a6a); display: grid; place-items: center; }
.perk-img svg { width: 120px; height: 120px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); }
.perk-card .foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.perk-card .foot strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.perk-card .foot div span { color: var(--muted); font-size: 14px; }
.chip { position: absolute; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 18px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; box-shadow: 0 20px 40px rgba(0,0,0,.25); white-space: nowrap; }
.chip .ico { color: var(--blue); }
.chip.c1 { top: 0; right: 0; }
.chip.c2 { bottom: 0; left: 0; }

/* Sections */
section { padding: 104px 0; }
.page-head { background: var(--pale); padding: 88px 0 80px; }
.page-head h1 { margin-bottom: 18px; }
.page-head .lead { margin: 0; }
.draft-note { background: #fff7d6; color: #5c4a00; border-radius: 12px; padding: 12px 16px; margin: 0; max-width: 760px; }
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p { margin: 0 0 14px; }
.pending-change del { color: #7a6a6a; }
.pending-change ins { background: #e3f8f0; text-decoration: none; }
.pending-tag { font-size: 13px; font-weight: 700; color: #5c4a00; }
.sec-head { max-width: 820px; margin-bottom: 44px; }
.sec-head .lead { margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.groups { grid-template-columns: repeat(2, 1fr); margin-top: 14px; }
/* Seven programs plus the ISO card: 4 columns on desktop, 2 on tablet, 1 on phone (Derek, 2026-11-16). */
.cards[data-with-iso] { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards[data-with-iso] .card { padding: 26px; }
.card.card-iso { background: var(--pale); border-style: dashed; box-shadow: none; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,26,46,.05), 0 22px 44px rgba(15,26,46,.1); }
.icon-tile { width: 60px; height: 60px; border-radius: 16px; background: var(--pale); color: var(--blue); display: grid; place-items: center; margin-bottom: 26px; }
.icon-tile .ico { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.card .more { font-weight: 800; color: var(--blue); text-decoration: none; }
.card .more::after { content: " →"; }
.card .aud { font-size: 13px; font-weight: 700; color: var(--muted); margin: -4px 0 10px; }

.how { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 800; color: var(--blue); font-size: 15px; margin-bottom: 10px; letter-spacing: .05em; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps.simple li { font-size: 16px; }

.code-card { background: var(--navy); color: #fff; border-radius: var(--r); padding: 34px; position: sticky; top: 110px; }
.code-card h3 { color: #fff; font-size: 26px; font-weight: 800; }
.code-card p { color: #c5cfe2; margin: 0 0 20px; font-size: 15px; }
.code-card form { display: grid; gap: 10px; }
.code-card label { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.code-card input { font: 800 26px var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--navy-2); border: 1px solid #2a3b5e; border-radius: 14px; padding: 14px 16px; min-width: 0; }
.code-card input::placeholder { color: #5f7090; }
.code-msg { min-height: 1.5em; margin: 4px 0 0; font-size: 14px; }
.code-msg.ok { color: var(--mint); } .code-msg.err { color: #ffb4b4; }
.light .code-msg.ok { color: #13795b; } .light .code-msg.err { color: #b3261e; }

.band { padding: 0 0 104px; }
.band .inner { background: radial-gradient(50% 120% at 100% 0, rgba(59,110,242,.35), transparent 60%), var(--navy); color: #fff; border-radius: 30px; padding: 72px 64px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.band .eyebrow { color: var(--mint); }
.band h2 { color: #fff; margin-bottom: 14px; }
.band p { color: #c5cfe2; margin: 0; max-width: 640px; }

/* Program page */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tabs a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.tabs a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.p-title { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.p-title .icon-tile { margin: 0; background: #fff; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Offers */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--font); padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filters button .ico { width: 18px; height: 18px; color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters button[aria-pressed="true"] .ico { color: var(--mint); }
.count { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.offer { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.offer[hidden] { display: none; }
.offer .art { height: 180px; display: grid; place-items: center; position: relative; }
.offer .art .ico { width: 64px; height: 64px; color: rgba(15,26,46,.7); stroke-width: 1.4; }
.offer .sample { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.9); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.offer .body { padding: 22px 24px 26px; }
.offer .cat { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.offer h3 { margin: 8px 0 4px; font-size: 20px; }
.offer .venue { font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.offer .terms { color: var(--muted); font-size: 15px; margin: 0; }
.tone-peach .art { background: linear-gradient(135deg, #ffe1cc, #ffc4a3); }
.tone-sky .art { background: linear-gradient(135deg, #dfeaff, #c3d6ff); }
.tone-lilac .art { background: linear-gradient(135deg, #ece3ff, #d9c9ff); }
.tone-mint .art { background: linear-gradient(135deg, #dcf7ee, #b8ecd9); }

/* Partners */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.partner { scroll-margin-top: 110px; }
#payroll-chambers { scroll-margin-top: 110px; }
#payroll-chambers .partners { margin-top: 26px; }
.partner-cta { margin-top: 26px; align-items: center; }
.partner ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.partner li { padding-left: 30px; position: relative; font-size: 15px; }
.partner li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #e3f8f0; box-shadow: inset 0 0 0 5px #9be7cf; }
.later { display: inline-block; align-self: flex-start; background: #fff4d9; color: #6b4e00; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

/* Forms */
.form-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 44px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { font: 400 16px var(--font); color: var(--ink); border: 1px solid #d6deea; border-radius: 14px; padding: 13px 14px; background: #fff; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); font-weight: 400; }
.check input { margin-top: 4px; }
.check .box-tag { white-space: nowrap; font-weight: 600; }
.form-msg { min-height: 1.5em; margin: 0; color: #13795b; font-weight: 700; }

/* Platform preview */
.preview-tag { display: inline-flex; align-items: center; gap: 8px; background: #fff4d9; color: #6b4e00; font-weight: 800; font-size: 13px; padding: 7px 12px; border-radius: 999px; margin-bottom: 18px; }
.app { display: grid; grid-template-columns: 240px 1fr; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px rgba(15,26,46,.12); background: #f7f9fc; }
.app aside { background: var(--navy); color: #c5cfe2; padding: 26px 18px; display: flex; flex-direction: column; gap: 4px; }
.app aside .logo { margin-bottom: 18px; }
.app aside .logo img, footer.site .logo img { height: 70px; background: #fff; border-radius: 12px; padding: 6px 10px; box-sizing: content-box; }
.app aside span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.app aside span .ico { width: 18px; height: 18px; }
.app aside span.on { background: var(--navy-2); color: #fff; }
.app aside span.on .ico { color: var(--mint); }
.app .app-main { padding: 30px; min-width: 0; }
.app h3 { font-size: 22px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.kpi b { display: block; font-size: 26px; font-weight: 800; }
.kpi span { color: var(--muted); font-size: 13px; }
.gen { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 22px; }
.gen .form-grid { grid-template-columns: 1fr 1fr 1.4fr 1.4fr auto; align-items: end; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: #fafbfd; }
td.code { font-weight: 800; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }

/* Footer */
footer.site { background: var(--navy); color: #aab6cc; padding: 64px 0 48px; font-size: 15px; }
footer.site .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
footer.site .logo { margin-bottom: 16px; }
footer.site h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
footer.site p { margin: 0 0 8px; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .links a + a::before { content: " · "; color: #6d7a93; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-block; }
  nav.main { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 12px; }
  nav.main.is-open { display: flex; }
  nav.main ul { flex-direction: column; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 28px; }
  .perk-stage { min-height: 420px; max-width: 480px; width: 100%; justify-self: center; }
  .perk-card { inset: 36px 0 20px 0; transform: rotate(1.5deg); }
  .chip.c1 { right: 6px; }
  .cards, .partners { grid-template-columns: 1fr 1fr; }
  .cards[data-with-iso] { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; }
  .code-card { position: static; }
  .band .inner { grid-template-columns: 1fr; padding: 40px 28px; }
  .app { grid-template-columns: 1fr; }
  .app aside { flex-direction: row; flex-wrap: wrap; }
  .app aside .logo { margin: 0 8px 0 0; }
  .app aside .logo img { height: 44px; padding: 4px 8px; }
  .gen .form-grid { grid-template-columns: 1fr 1fr; }
  .gen .form-grid .btn { grid-column: 1 / -1; }
  footer.site .wrap { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 72px 0; }
  .band { padding-bottom: 72px; }
  .page-head { padding: 56px 0; }
}
@media (max-width: 640px) {
  .cards, .partners, .steps, .kpis { grid-template-columns: 1fr; }
  .cards.groups { grid-template-columns: 1fr; }
  .cards[data-with-iso] { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .chip { font-size: 13px; padding: 10px 14px; }
  .perk-stage { min-height: 0; padding: 34px 0 40px; }
  .perk-card { position: relative; inset: auto; padding: 20px; }
  .perk-card .head { flex-wrap: wrap; }
  .perk-img { min-height: 150px; }
  .chip.c1 { top: 0; right: 0; }
  .app .app-main { padding: 18px; }
  .app aside span:not(.on) { display: none; }
}

/* Live app (S2): field errors, choices, offer list, demo message log */
.hint { font-weight: 500; font-size: 13px; color: var(--blue); min-height: 1.2em; }
.err { display: block; min-height: 1.1em; font-weight: 600; font-size: 13px; color: #b3261e; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
fieldset.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
fieldset.choices legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.offer-list { display: grid; gap: 14px; margin: 24px 0; }
.offer-row { background: var(--pale); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.offer-row .cat { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.offer-row h3 { font-size: 19px; margin: 6px 0 4px; }
.offer-row .venue { font-weight: 700; font-size: 14px; margin: 0 0 4px; }
.offer-row .terms { color: var(--muted); font-size: 14px; margin: 0; }
.msg-log { display: grid; gap: 14px; border-top: 1px dashed var(--line); padding-top: 20px; }
.msg { background: #fffbea; border: 1px solid #f1e3a6; border-radius: 16px; padding: 16px 18px; }
.msg .cat { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6b4e00; }
.msg h4 { margin: 8px 0 0; font-size: 15px; }
.msg pre { white-space: pre-wrap; font: 400 14px/1.55 var(--font); margin: 8px 0 0; }
#turnstile-box { font-size: 14px; color: var(--muted); }
.zip-sort { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.zip-sort .field { flex: 1 1 220px; }
.zip-sort .code-msg { flex-basis: 100%; margin: 0; }

/* Signed-in area (S4) */
.wrap.narrow { max-width: 720px; }
.admin .form-card { margin: 26px 0 0; }
.admin-form { max-width: none; margin: 0 0 26px; }
.admin-form h3 { margin-bottom: 14px; }
.admin-who { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.admin-tabs { margin: 32px 0 24px; }
.admin [data-panel] h1 { font-size: clamp(32px, 4vw, 48px); }
.admin [data-panel] > h3 { margin: 28px 0 12px; }
.secret { font: 800 22px/1.4 var(--font); letter-spacing: .08em; background: var(--pale); border-radius: 14px; padding: 14px 16px; word-break: break-all; }
.two-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two-forms .admin-form { display: grid; gap: 12px; align-content: start; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin .table-wrap { margin-bottom: 8px; }
.admin td a { color: var(--blue); font-weight: 700; }
@media (max-width: 760px) { .two-forms { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.admin main > section[data-view="app"] { padding-top: 8px; }
.admin-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
@media (max-width: 640px) { .admin-who span { display: none; } .admin header.site .wrap { height: 72px; } }
/* Check-in (S5) */
.checkin-done { text-align: center; }
.done-mark { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: #e3f8f0; color: #13795b; font-size: 44px; font-weight: 800; display: grid; place-items: center; }
.report-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.report-bar .field { min-width: 160px; }
.checkin-done h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; }

/* S7: program form editor */
.program-editor { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; margin-top: 18px; }
.program-editor h3 { margin-top: 18px; }
.q-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; background: #fff; }
.q-card .form-grid { margin-bottom: 8px; }
.q-card .q-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.config-errors { color: #b42318; font-size: 14px; padding-left: 18px; }
.config-errors:empty { display: none; }
.versions { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.versions li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.preview-card { position: sticky; top: 12px; }
@media (max-width: 1040px) { .program-editor { grid-template-columns: 1fr; } .preview-card { position: static; } }

/* S9: imports */
.import-card { margin-bottom: 16px; display: grid; gap: 10px; }
.import-card code { font-size: 13px; background: #f3f6fb; padding: 1px 5px; border-radius: 6px; word-break: break-word; }
.import-card .table-wrap { max-height: 360px; overflow: auto; }
.status-new { color: #067647; font-weight: 700; }
.status-update { color: var(--blue); font-weight: 700; }
.status-skip { color: var(--muted); }
.status-error { color: #b42318; font-weight: 700; }
.form-msg.is-error { color: #b42318; }
.config-errors li.warn { color: #93370d; }
.msg pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.form-msg.is-error, .light .form-msg.is-error { color: #b42318; }

/* Accessibility pass (WCAG 2.2 AA) */
/* 2.5.8 target size: footer links get a 24px+ tap height */
footer.site .links a { display: inline-block; min-height: 24px; padding: 4px 0; line-height: 16px; }
/* 2.4.1 bypass blocks: skip link, visible when focused */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
/* 2.4.7 / 2.4.13 focus visible: a clear ring on every focusable thing */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.code-card :focus-visible, footer.site :focus-visible, .topstrip :focus-visible { outline-color: var(--mint); }
.table-wrap:focus-visible { outline-offset: -3px; }
/* 2.4.11 focus not obscured: anything scrolled into view lands below the sticky header */
html { scroll-padding-top: 96px; }
/* 2.3.3 / reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}

/* Delete one person (decision 427) */
.btn.danger { background: #b42318; box-shadow: none; }
.btn.danger:hover { background: #912018; }
.danger-card { border-color: #f4c7c3; margin-top: 18px; }
.h3-like { font-size: 22px; margin: 32px 0 6px; }
