/* Layout only. Components come from hive.css (Cuemath design system). */
:root { --wrap-pad: var(--space-20); --f: var(--info-6, #5492F1); --u: var(--success-6, #42B36F); --a: var(--brand-6, #EC9A32); --r: var(--purple-accent-6, #C26FE2); }
body { background: var(--neutral-1); color: var(--text-primary); font-family: var(--font-body); margin: 0; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--wrap-pad); }
.narrow { max-width: 640px; }
.top { background: var(--neutral-13); color: var(--text-inverse-primary); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: var(--space-16); }
.top .brand { display: flex; align-items: center; gap: var(--space-12); text-decoration: none; color: inherit; }
.top .brand svg { height: 18px; width: auto; display: block; }
.top .brand .sep { opacity: .4; }
.top .brand .name { font-family: var(--font-display); font-size: 17px; }
.top nav { display: flex; gap: var(--space-16); font-size: 14px; }
.top nav a { color: var(--text-inverse-primary); text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; }
.hero { background: var(--neutral-13); color: var(--text-inverse-primary); padding: var(--space-48) 0 var(--space-40); border-bottom: 5px solid var(--brand-5); }
.hero .ov { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-5); font-weight: 700; }
.hero h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); line-height: 1.02; margin: var(--space-8) 0 var(--space-12); }
.hero h1 span { color: var(--brand-5); }
.hero p { max-width: 640px; opacity: .85; margin: 0; font-size: 16px; }
main { padding: var(--space-32) 0 var(--space-64); }
@media (max-width: 520px) { main { padding-top: var(--space-16); } }   /* phones: content starts near the header (6-Nov-2026) */
.stack > * + * { margin-top: var(--space-24); }
.stack > .sr-only:first-child + * { margin-top: 0; }   /* a page's hidden heading takes no room: the first thing seen starts at the top (6-Nov-2026) */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-20); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-16); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-12); }
.row { display: flex; gap: var(--space-12); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--text-secondary); }
.small { font-size: 13px; }
.panel { background: var(--neutral-2); border: 1px solid var(--border-secondary); padding: var(--space-24); }
.panel.tint { background: var(--brand-1, #FAF1E6); border-color: var(--brand-3, #FAD6AC); }
.panel h2, .panel h3 { font-family: var(--font-display); margin: 0 0 var(--space-8); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-8) var(--space-16); font-size: 14px; }
.kv dt { color: var(--text-secondary); }
.kv dd { margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.pillars div { border-top: 4px solid; padding-top: var(--space-8); font-size: 12.5px; color: var(--text-secondary); }
.pillars div b { display: block; font-family: var(--font-display); color: var(--text-primary); font-size: 15px; }
.pillars .f { border-color: var(--f); } .pillars .u { border-color: var(--u); } .pillars .a { border-color: var(--a); } .pillars .r { border-color: var(--r); }
.event-card { display: grid; grid-template-columns: 1fr auto; gap: var(--space-16); align-items: center; }
.event-card .when { font-family: var(--font-display); font-size: 20px; }
.event-card .meta { color: var(--text-secondary); font-size: 14px; margin-top: var(--space-4); }
/* forms */
.form-stack { gap: var(--space-12); }
.form-stack label { display: block; font-size: 13px; font-weight: 600; margin-bottom: var(--space-4); }
.form-stack .field { margin-bottom: var(--space-8); }
.form-stack input[type=text], .form-stack input[type=email], .form-stack input[type=tel], .form-stack input[type=date], .form-stack input[type=time], .form-stack input[type=number], .form-stack input[type=datetime-local],
.form-stack select, .form-stack textarea { width: 100%; box-sizing: border-box; padding: var(--space-8) var(--space-12); border: 1px solid var(--border-primary); background: var(--neutral-3); font: inherit; font-size: 15px; color: var(--text-primary); border-radius: 0; }
.form-stack input:focus, .form-stack select:focus { outline: 2px solid var(--brand-5); outline-offset: 0; }
.form-stack .hint { font-size: 12.5px; color: var(--text-secondary); margin-top: var(--space-4); }
.form-stack .err { font-size: 12.5px; color: var(--text-error, #C8444F); margin-top: var(--space-4); }
.form-stack .check { display: flex; gap: var(--space-8); align-items: flex-start; font-size: 14px; font-weight: 400; }
.form-stack .check input { margin-top: 3px; }
/* the consent list (templates/_consents.html) */
.consents { line-height: 1.45; border: 1px solid var(--border-primary); padding: var(--space-8) var(--space-12) var(--space-4); margin: 0 0 var(--space-8); min-width: 0; }
.consents legend { padding: 0 var(--space-4); }
.consents .consent-all { padding-bottom: var(--space-8); margin-bottom: var(--space-12); border-bottom: 1px solid var(--border-primary); }
.consent-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; margin-left: 4px; background: var(--brand-5); color: #fff; vertical-align: 1px; }
.consent-why { display: block; font-size: 12px; line-height: 1.4; color: var(--text-secondary); margin-top: 3px; }
.consents .field { margin-bottom: var(--space-12); }
.form-stack .consents label.check { margin-bottom: 0; line-height: 1.45; }
.consent-pitch { color: var(--text-primary); border-left: 3px solid var(--brand-5); padding-left: 8px; margin-top: 6px; }
.regdlg .consents { padding: 6px 10px 2px; }
.regdlg .consent-why { font-size: 11px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); }
.typeahead { position: relative; }
.typeahead ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 0; padding: 0; list-style: none; background: var(--neutral-2); border: 1px solid var(--border-primary); max-height: 240px; overflow: auto; }
.typeahead li { padding: var(--space-8) var(--space-12); cursor: pointer; font-size: 14px; }
.typeahead li:hover { background: var(--neutral-3); }
.state-line { font-family: var(--font-display); font-size: 22px; margin: 0 0 var(--space-4); }
.seatrow { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-12); align-items: center; padding: var(--space-12) 0; border-bottom: 1px solid var(--border-tertiary); font-size: 14px; }
.seatrow:last-child { border-bottom: 0; }
.share { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.linkbox { display: flex; gap: var(--space-8); }
.linkbox input { flex: 1; }
.fee { display: inline-block; background: var(--brand-1, #FAF1E6); color: var(--brand-8, #A45F00); padding: 2px 8px; font-size: 12.5px; font-weight: 700; }
.foot { border-top: 1px solid var(--border-tertiary); padding: var(--space-24) 0; font-size: 12.5px; color: var(--text-secondary); }
.mockbar { background: var(--warning-1, #FFEFE1); color: var(--warning-8, #964217); font-size: 12.5px; padding: 6px 0; text-align: center; }
input[type="file"] { max-width: 100%; }
table.roster { width: 100%; border-collapse: collapse; font-size: 13px; }
.panel:has(> table.roster) { overflow-x: auto; }
table.roster th, table.roster td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--border-tertiary); vertical-align: top; }
table.roster th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); }
.st { display: inline-block; padding: 1px 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; }
.st-open { background: var(--info-1, #EEF6FF); color: var(--info-8, #3464B1); }
.st-pending { background: var(--warning-1, #FFEFE1); color: var(--warning-8, #964217); }
.st-complete, .st-confirmed, .st-paid { background: var(--success-1, #ECF9EF); color: var(--success-8, #1C7C48); }
.st-draft, .st-unpaid, .st-waitlisted { background: var(--neutral-2, #F5F2EF); color: var(--neutral-10, #524B47); }
.st-withdrawn, .st-refunded, .st-forfeited, .st-expired, .st-cancelled, .st-noshow { background: var(--error-1, #FFE9E9); color: var(--error-8, #A73941); }
.st-checked_in, .st-played { background: var(--purple-accent-1, #FAEDFF); color: var(--purple-accent-8, #80408F); }
pre.msg { white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.45 var(--font-body); background: var(--neutral-3); padding: var(--space-12); margin: var(--space-8) 0 0; }
@media (max-width: 760px) { .grid2, .grid3, .grid4, .two, .heat-card { grid-template-columns: minmax(0, 1fr); } .seatrow { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } .top .wrap { height: auto; padding: 10px var(--wrap-pad); } .pillars { grid-template-columns: 1fr 1fr; } .top nav { display: none; } .kv { grid-template-columns: 90px 1fr; } }

/* ---- full site (Sep 11) ---- */
.hero-photo { position: relative; background: var(--neutral-13); color: var(--text-inverse-primary); min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 5px solid var(--brand-5); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,28,27,.25) 0%, rgba(29,28,27,.55) 45%, rgba(29,28,27,.96) 100%); }
.hero-photo-in { position: relative; z-index: 1; padding-top: 220px; padding-bottom: 40px; }
.hero-photo .ov { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-5); font-weight: 700; }
.hero-photo h1 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 72px); line-height: .98; margin: var(--space-8) 0 var(--space-12); }
.hero-photo h1 span { color: var(--brand-5); }
.hero-photo p { max-width: 620px; font-size: 18px; margin: 0; opacity: .92; }
.hero-ghost { color: var(--text-inverse-primary) !important; border-color: rgba(250,248,245,.5) !important; background: transparent !important; }
.keyfacts { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-12); margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(250,248,245,.22); }
.keyfacts div { font-size: 12px; color: rgba(250,248,245,.75); letter-spacing: .04em; }
.keyfacts div b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--text-inverse-primary); line-height: 1.05; margin-bottom: 4px; }
.livestrip { background: var(--neutral-13, #292827); color: var(--text-inverse-primary); border-bottom: 1px solid rgba(250,248,245,.12); }
.livestrip-in { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-12); padding-top: 14px; padding-bottom: 14px; font-size: 12.5px; color: rgba(250,248,245,.72); }
.livestrip-in div b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--brand-5); line-height: 1.05; }
.sec { margin-top: 72px; scroll-margin-top: 70px; }
.sec:first-child { margin-top: 0; }
.sec-head { margin-bottom: 24px; }
.sec-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-7, #CE7E12); font-weight: 700; }
.sec-head h2 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 32px); line-height: 1.08; margin: 0 0 10px; }
.sec-head h2 em { font-style: normal; }
.sec-head p { max-width: 760px; color: var(--text-secondary); font-size: 16px; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--border-primary); background: var(--neutral-2); padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--neutral-13); color: var(--text-inverse-primary); border-color: var(--neutral-13); }
.gradeline span { display: inline-block; margin-right: 12px; font-size: 13px; }
.gradeline span.full { color: var(--text-error, #C8444F); }
.round-block { background: var(--neutral-2); border: 1px solid var(--border-secondary); border-left: 8px solid; padding: 22px 26px; margin-top: 16px; }
.round-block.f { border-left-color: var(--f); } .round-block.u { border-left-color: var(--u); } .round-block.a { border-left-color: var(--a); } .round-block.r { border-left-color: var(--r); }
.rb-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rb-num { font-family: var(--font-display); font-size: 40px; color: var(--text-tertiary); line-height: 1; width: 40px; }
.rb-pillar { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); font-weight: 700; }
.rb-head h3 { font-family: var(--font-display); font-size: 30px; line-height: 1; margin: 2px 0 0; }
.rb-stats { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.rb-stats span { font-size: 12px; background: var(--neutral-3); padding: 4px 10px; border-radius: 999px; color: var(--text-secondary); }
.rb-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; margin-top: 16px; align-items: start; }
.rb-line { font-size: 16px; margin: 0 0 10px; }
.tryit { background: var(--neutral-3); padding: 18px 20px; border: 1px solid var(--border-tertiary); }
.ti-k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); font-weight: 700; margin-bottom: 8px; }
.ti-q { font-family: var(--font-display); font-size: 20px; line-height: 1.25; margin-bottom: 12px; }
.ti-row { display: flex; gap: 8px; }
.ti-row input { flex: 1 1 0; min-width: 0; padding: 10px 12px; border: 1px solid var(--border-primary); background: var(--neutral-2); font: inherit; font-size: 15px; }
.ti-opts { display: grid; gap: 6px; }
.ti-opts button { text-align: left; font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--border-primary); background: var(--neutral-2); cursor: pointer; }
.ti-opts button.sel { border-color: var(--neutral-13); }
.ti-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ti-cards span { background: var(--neutral-2); border: 1px solid var(--border-tertiary); padding: 8px 10px; font-size: 13px; }
.ti-cards span b { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 2px; }
.ti-fig { margin: 0 0 12px; color: var(--text-primary); }
.ti-fig svg { display: block; width: 100%; max-width: 244px; height: auto; }
.ti-out { margin-top: 10px; font-size: 14px; font-weight: 600; min-height: 20px; }
.ti-out.ok { color: var(--success-8, #1C7C48); } .ti-out.no { color: var(--warning-8, #964217); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--border-secondary); background: var(--neutral-2); }
.timeline div { padding: 18px 16px; border-right: 1px solid var(--border-tertiary); font-size: 13.5px; color: var(--text-secondary); }
.timeline div:last-child { border-right: 0; }
.timeline div b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--text-primary); margin-bottom: 6px; }
.timeline div.k { background: var(--neutral-13); color: rgba(250,248,245,.8); } .timeline div.k b { color: var(--brand-5); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border-tertiary); font-size: 15px; color: var(--text-secondary); }
.ticks li b { color: var(--text-primary); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-5); }
.phone { width: 300px; background: var(--neutral-14, #161412); border-radius: 34px; padding: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.phone .scr { background: var(--neutral-2); border-radius: 24px; overflow: hidden; }
.phone .top { background: var(--neutral-13); color: var(--text-inverse-primary); padding: 22px 18px 16px; }
.phone .top .ov { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-5); font-weight: 700; }
.phone .top h4 { font-family: var(--font-display); font-size: 24px; line-height: 1.05; margin: 6px 0 2px; }
.phone .top small { color: rgba(250,248,245,.7); font-size: 11.5px; }
.phone .ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-tertiary); }
.phone .ranks div { background: var(--neutral-2); padding: 14px 12px; text-align: center; }
.phone .ranks .n { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.phone .ranks .l { font-size: 10.5px; color: var(--text-secondary); margin-top: 4px; line-height: 1.3; }
.phone .pb { padding: 14px 16px 6px; }
.phone .pb .pr { display: flex; align-items: center; gap: 8px; font-size: 11.5px; margin-bottom: 8px; }
.phone .pb .pr span { width: 60px; color: var(--text-secondary); }
.phone .pb .pr i { flex: 1; height: 8px; background: var(--neutral-3); position: relative; display: block; }
.phone .pb .pr i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); }
.phone .pb .pr.f i::after { background: var(--f); } .phone .pb .pr.u i::after { background: var(--u); } .phone .pb .pr.a i::after { background: var(--a); } .phone .pb .pr.r i::after { background: var(--r); }
.phone .pb .pr b { width: 64px; text-align: right; font-size: 11px; white-space: nowrap; }
.phone .week { margin: 10px 16px 18px; background: var(--success-1, #ECF9EF); border-left: 3px solid var(--success-6, #42B36F); padding: 9px 11px; font-size: 12px; color: var(--text-secondary); }
.phone .week b { color: var(--text-primary); }
.tiers .tier { background: var(--neutral-2); border: 1px solid var(--border-secondary); padding: 22px; }
.tiers .tier.gold { background: var(--neutral-13); color: var(--text-inverse-primary); border-color: var(--neutral-13); }
.tier-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-7, #CE7E12); font-weight: 700; }
.tier.gold .tier-k, .stage.dark .tier-k { color: var(--brand-5); }
.tier h3, .stage h3 { font-family: var(--font-display); font-size: 24px; margin: 6px 0 10px; }
.tier ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-secondary); }
.tier.gold ul { color: rgba(250,248,245,.8); } .tier.gold ul b { color: var(--text-inverse-primary); }
.tier li { margin-bottom: 6px; }
.stage.dark { background: var(--neutral-13); color: var(--text-inverse-primary); border-color: var(--neutral-13); }
.stage.dark .kv dt { color: rgba(250,248,245,.6); }
.faq details { border-bottom: 1px solid var(--border-tertiary); padding: 14px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--text-tertiary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0; color: var(--text-secondary); font-size: 15px; max-width: 800px; }
.cta-band { background: var(--neutral-13); color: var(--text-inverse-primary); margin: 72px calc(-1 * var(--wrap-pad)) 0; padding: 44px var(--wrap-pad) 46px; text-align: center; border-top: 5px solid var(--brand-5); }
.cta-band .ov { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-5); font-weight: 700; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); line-height: 1.04; margin: 0 0 10px; }
.cta-band p { margin: 0 auto 22px; opacity: .85; max-width: 520px; font-size: 16px; }
.cta-fine { margin-top: 16px; font-size: 12.5px; letter-spacing: .04em; color: rgba(250,248,245,.62); }
main.home { padding-bottom: 0; }
@media (max-width: 760px) { .keyfacts { grid-template-columns: repeat(3, 1fr); } .livestrip-in { grid-template-columns: repeat(2, 1fr); } .rb-body { grid-template-columns: minmax(0, 1fr); } .timeline { grid-template-columns: 1fr; } .timeline div { border-right: 0; border-bottom: 1px solid var(--border-tertiary); } .hero-photo { min-height: 560px; } .hero-photo-in { padding-top: 160px; } .tiers { display: block; } .tiers .tier + .tier { margin-top: 12px; } .cta-band { margin: 48px calc(-1 * var(--wrap-pad)) 0; } }

.photoband .pb-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); }
.photoband figure { margin: 0; background: var(--neutral-13); }
.photoband img { width: 100%; height: 360px; object-fit: cover; display: block; }
.photoband figcaption { color: rgba(250,248,245,.85); font-size: 13px; padding: 10px 14px; }
@media (max-width: 760px) { .photoband .pb-grid { grid-template-columns: 1fr; } .photoband img { height: 240px; } }

/* rounds as tiles + one panel */
.rtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-12); }
.rtile { position: relative; border: 0; padding: 0; background: var(--neutral-13); color: var(--text-inverse-primary); text-align: left; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; font: inherit; border-bottom: 6px solid var(--border-primary); opacity: .58; transition: opacity .15s, transform .15s, border-bottom-color .15s; }
.rtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rtile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,28,27,.05) 30%, rgba(29,28,27,.9) 100%); }
.rtile::before { content: ''; position: absolute; z-index: 2; top: 12px; right: 13px; width: 9px; height: 9px; border-right: 2px solid var(--text-inverse-primary); border-bottom: 2px solid var(--text-inverse-primary); transform: rotate(45deg); opacity: .85; transition: opacity .15s; }
.rtile.on::before { opacity: 0; }
.rtile .rt-in { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.rtile .rt-num { display: block; font-family: var(--font-display); font-size: 13px; color: var(--brand-5); margin-bottom: 2px; }
.rtile b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1; }
.rtile small { display: block; font-size: 12px; color: rgba(250,248,245,.78); margin-top: 4px; }
.rtile:hover, .rtile:focus-visible { opacity: .88; transform: translateY(-3px); }
.rtile:focus-visible { outline: 3px solid var(--brand-5); outline-offset: 2px; }
.rtile.on { opacity: 1; }
.rtile.f:hover { border-bottom-color: var(--f); } .rtile.u:hover { border-bottom-color: var(--u); } .rtile.a:hover { border-bottom-color: var(--a); } .rtile.r:hover { border-bottom-color: var(--r); }
.rtile.f.on { border-bottom-color: var(--f); } .rtile.u.on { border-bottom-color: var(--u); } .rtile.a.on { border-bottom-color: var(--a); } .rtile.r.on { border-bottom-color: var(--r); }
.rpanel { background: var(--neutral-2); border: 1px solid var(--border-secondary); border-top: 6px solid; padding: 22px 26px; margin-top: var(--space-12); }
.rpanel.f { border-top-color: var(--f); } .rpanel.u { border-top-color: var(--u); } .rpanel.a { border-top-color: var(--a); } .rpanel.r { border-top-color: var(--r); }
.rpanel .rb-head { gap: 14px; }
.pb-grid3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-12); }
.pb-grid3 figure { margin: 0; background: var(--neutral-13); }
.pb-grid3 img { width: 100%; height: 300px; object-fit: cover; display: block; }
.pb-grid3 figcaption { color: rgba(250,248,245,.85); font-size: 13px; padding: 10px 14px; }
/* city page */
.city-hero h1 .st-abbr { color: rgba(250,248,245,.55); font-size: .6em; display: inline; }
.notice { background: var(--brand-1, #FAF1E6); color: var(--brand-8, #A45F00); font-size: 14px; }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; }
.notice.closed { background: var(--neutral-2, #F5F2EF); color: var(--text-secondary); }
@media (max-width: 760px) { .rtiles { grid-template-columns: 1fr 1fr; } .pb-grid3 { grid-template-columns: 1fr; } .pb-grid3 img { height: 220px; } }
/* guide: numbered steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-12); }
.steps > div { background: var(--neutral-2); border: 1px solid var(--border-secondary); padding: 14px 16px; font-size: 13.5px; color: var(--text-secondary); }
.steps > div .n { font-family: var(--font-display); font-size: 22px; color: var(--brand-7, #CE7E12); line-height: 1; margin-bottom: 6px; }
.steps > div b { display: block; color: var(--text-primary); margin-bottom: 3px; }
.sub { font-family: var(--font-display); font-size: 18px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }

/* the run of the day: a rail, a dot per step, time in its own column */
.runday > div { display: grid; grid-template-columns: 112px 18px 1fr; gap: 0 12px; }
.runday .t { text-align: right; font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); font-variant-numeric: tabular-nums; padding-top: 1px; }
.runday .r { position: relative; }
.runday .r::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border-secondary); transform: translateX(-50%); }
.runday > div:first-child .r::before { top: 8px; }
.runday > div:last-child .r::before { bottom: auto; height: 8px; }
.runday .r::after { content: ''; position: absolute; left: 50%; top: 5px; width: 7px; height: 7px; border-radius: var(--radius-full, 999px); transform: translateX(-50%); background: var(--neutral-1); border: 1.5px solid var(--border-primary); }
.runday > div.k .r::after { background: var(--brand-5); border-color: var(--brand-5); }
.runday .d { font-size: 15px; line-height: 1.45; color: var(--text-secondary); padding-bottom: 20px; }
.runday .d b { color: var(--text-primary); font-weight: 700; }
.runday > div:last-child .d { padding-bottom: 0; }
@media (max-width: 640px) { .runday > div { grid-template-columns: 84px 16px 1fr; gap: 0 10px; } .runday .t { font-size: 12.5px; } .runday .d { font-size: 14px; padding-bottom: 15px; } }

/* event page: image, the facts that matter, one action - detail comes after */
.ev-top { display: grid; grid-template-columns: 420px 1fr; gap: var(--space-32, 32px); align-items: start; margin: 28px 0 40px; }
.ev-media { background: var(--neutral-13); overflow: hidden; }
.ev-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ev-brand { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brand-8, #A45F00); }
.ev-title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); line-height: 1.02; margin: 6px 0 22px; }
.ev-title .ev-st { color: var(--text-secondary); }
.ev-fact { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border-tertiary); }
.ev-fact:first-of-type { border-top: 0; padding-top: 0; }
.ev-chip { width: 46px; height: 46px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--border-secondary); background: var(--neutral-2); line-height: 1; }
.ev-chip em { font-style: normal; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-8, #A45F00); font-weight: 700; }
.ev-chip b { font-family: var(--font-display); font-size: 20px; margin-top: 2px; }
.ev-ico { width: 46px; height: 46px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-secondary); background: var(--neutral-2); color: var(--text-secondary); }
.ev-ico svg { width: 22px; height: 22px; }
.ev-fact-t b { display: block; font-size: 16px; line-height: 1.25; }
.ev-fact-t small { display: block; font-size: 13.5px; color: var(--text-secondary); margin-top: 2px; }
.ev-reg { margin-top: 22px; border: 1px solid var(--border-secondary); background: var(--neutral-2); padding: 16px; }
.ev-reg-k { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.ev-reg-n { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 10px; }
.ev-about, .ev-flow { max-width: 720px; }
.ev-about { margin: 0 0 34px; }
.ev-flow { margin: 0 0 8px; }
.ev-h { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 32px); line-height: 1.08; margin: 0 0 12px; }

.ev-about > p { margin: 0 0 12px; color: var(--text-primary); font-size: 16.5px; line-height: 1.55; }
.ev-about > p:last-child { margin-bottom: 0; color: var(--text-secondary); font-size: 15.5px; }
.ev-about > p b { font-weight: 700; }
@media (max-width: 860px) {
  .ev-top { grid-template-columns: 1fr; gap: 20px; margin: 18px 0 30px; }
  .ev-media img { aspect-ratio: 16 / 10; }
  .ev-title { margin-bottom: 16px; }
}

/* one season, two stages */
.stages { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); }
.stg { background: var(--neutral-2); border: 1px solid var(--border-secondary); border-top: 5px solid var(--brand-5); padding: 20px 22px 10px; }
.stg.dark { background: var(--neutral-13); color: var(--text-inverse-primary); border-color: var(--neutral-13); border-top-color: var(--brand-5); }
.stg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.stg-n { font-family: var(--font-display); font-size: 17px; line-height: 1; background: var(--brand-5); color: var(--neutral-13, #1D1C1B); width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.stg h3 { font-family: var(--font-display); font-size: 24px; line-height: 1.05; margin: 0; }
.stg dl { margin: 0; }
.stg dl > div { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 9px 0; border-top: 1px solid var(--border-tertiary); font-size: 14px; }
.stg.dark dl > div { border-top-color: rgba(250,248,245,.16); }
.stg dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); padding-top: 3px; }
.stg.dark dt { color: rgba(250,248,245,.58); }
.stg dd { margin: 0; }
@media (max-width: 760px) { .stages { grid-template-columns: 1fr; gap: 12px; } .stg { padding: 16px 16px 8px; } .stg h3 { font-size: 20px; } }

/* what you take home - three colour-coded cards, one idea each */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-16); }
.perk { background: var(--neutral-2); border: 1px solid var(--border-secondary); border-top: 5px solid var(--pc); padding: 20px 20px 22px; }
.perk h3 { font-family: var(--font-display); font-size: 23px; line-height: 1.08; margin: 0 0 8px; }
.perk .pk-lead { font-size: 15px; line-height: 1.4; color: var(--text-primary); margin: 0 0 14px; }
.perk .pk-lead b { font-weight: 700; }
.perk ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-secondary); }
.perk li { position: relative; padding-left: 17px; margin-bottom: 6px; line-height: 1.45; }
.perk li::before { content: ''; position: absolute; left: 0; top: .52em; width: 7px; height: 7px; background: var(--pc); }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr; gap: 12px; } .perk { padding: 16px 16px 18px; } .perk h3 { font-size: 20px; } }

/* manifesto band */
.manifesto { background: var(--neutral-13); color: var(--text-inverse-primary); margin-left: calc(-1 * var(--wrap-pad)); margin-right: calc(-1 * var(--wrap-pad)); padding: 64px var(--wrap-pad); border-top: 5px solid var(--brand-5); }
.manifesto .mf-in { max-width: 1040px; margin: 0 auto; }
.manifesto h2 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; margin: 8px 0 18px; }
.manifesto .mf-lead { font-size: 19px; max-width: 820px; opacity: .9; margin: 0 0 34px; line-height: 1.5; }
.mf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid rgba(250,248,245,.2); padding-top: 26px; }
.mf-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-5); font-weight: 700; margin-bottom: 8px; }
.mf-grid p { margin: 0; font-size: 15.5px; line-height: 1.55; color: rgba(250,248,245,.88); }
.mf-grid em { color: var(--brand-5); font-style: italic; }
.mf-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(250,248,245,.2); font-family: var(--font-display); font-size: 18px; }
.mf-foot span:last-child { color: var(--brand-5); }
@media (max-width: 760px) { .mf-grid { grid-template-columns: 1fr; } .manifesto { padding: 44px var(--wrap-pad); } }

/* events as vertical cards */
.evgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-16); }
.evcard { background: var(--brand-1, #FAF1E6); border: 1px solid var(--neutral-13); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.evcard.closed { opacity: .72; }
.ec-head { position: relative; background: var(--brand-5); color: var(--neutral-13, #1D1C1B); padding: 13px 16px 12px; }
.ec-badge { position: absolute; top: 0; right: 0; background: var(--brand-1, #FAF1E6); color: var(--neutral-13, #1D1C1B); font-family: var(--font-display); font-size: 13px; line-height: 1; padding: 6px 11px; }
.ec-kicker { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.ec-city { font-family: var(--font-display); font-size: 27px; line-height: 1.02; margin: 2px 0 0; display: flex; align-items: baseline; gap: 9px; }
.ec-st { font-size: .42em; letter-spacing: .1em; opacity: .6; }
.ec-closes { font-size: 11.5px; font-weight: 700; letter-spacing: .01em; margin-top: 5px; opacity: .78; }
.ec-closes.soon { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.ec-rows { color: var(--neutral-13, #1D1C1B); }
.ec-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-top: 1px solid rgba(29,28,27,.14); }
.ec-row:first-child { border-top: 0; }
.ec-row svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.ec-row b { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.15; }
.ec-row small { display: block; font-size: 11.5px; opacity: .68; margin-top: 1px; }
.ec-notes { display: grid; gap: 2px; padding: 8px 16px 0; color: var(--neutral-13, #1D1C1B); font-size: 12px; }
.ec-notes .ec-close { font-weight: 700; }
.ec-notes .ec-close.soon { color: var(--text-error, #C8444F); }
.ec-notes .muted { opacity: .62; }
.ec-cta { display: block; width: 100%; margin-top: auto; background: var(--neutral-13); color: var(--text-inverse-primary); border: 0; font: inherit; font-family: var(--font-display); font-size: 16px; padding: 11px 14px; text-align: center; text-decoration: none; cursor: pointer; }
.ec-cta:hover { background: var(--neutral-13, #1D1C1B); }
.ec-cta.alt { background: transparent; color: var(--neutral-13, #1D1C1B); border-top: 1px solid rgba(29,28,27,.2); }
.ev-grades { list-style: none; margin: 10px 0 12px; padding: 0; border-top: 1px solid var(--border-tertiary); }
.ev-grades li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border-tertiary); font-size: 13.5px; }
.ev-grades li span { color: var(--text-secondary); }
.ev-grades li.full b { color: var(--text-error, #C8444F); }
.evcard .btn { margin-top: auto; }
/* round panel: balanced two columns */
.rpanel .rb-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 0; }
.rb-text .rb-pillar { margin-bottom: 2px; }
.rb-text h3 { font-family: var(--font-display); font-size: 34px; line-height: 1; margin: 0 0 12px; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; padding: 0; }
.spec div { background: var(--neutral-3); padding: 10px 12px; }
.spec dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }
.spec dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 20px; }
.rpanel .tryit { height: 100%; }
/* per-event timeline (vertical) */
.tl { display: grid; gap: 0; border-left: 3px solid var(--brand-5); margin-left: 6px; }
.tl div { padding: 8px 0 10px 16px; font-size: 13.5px; color: var(--text-secondary); position: relative; }
.tl div::before { content: ''; position: absolute; left: -8px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-5); border: 2px solid var(--neutral-2); }
.tl div b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--text-primary); }
.tl div.k b { color: var(--brand-7, #CE7E12); }
/* competition page */
.hype { background: var(--neutral-13); color: var(--text-inverse-primary); margin: 0 calc(-1 * var(--wrap-pad)); padding: 56px var(--wrap-pad) 48px; border-bottom: 5px solid var(--brand-5); }
.hype > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.hype-k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-5); font-weight: 700; }
.hype h2 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 64px); line-height: 1; margin: 10px 0 30px; }
.hype h2 span { color: var(--brand-5); display: block; font-size: .62em; margin-top: .25em; }
.hype-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border-top: 1px solid rgba(250,248,245,.22); padding-top: 22px; }
.hype-grid div { font-size: 14.5px; line-height: 1.5; color: rgba(250,248,245,.85); }
.hype-grid div b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--text-inverse-primary); margin-bottom: 6px; }
.blocks .block { background: var(--neutral-2); border: 1px solid var(--border-secondary); border-top: 5px solid var(--brand-5); padding: 26px 28px; }
.blocks .block h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.1; margin: 6px 0 12px; }
.blocks .block p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-secondary); }
.blocks .mf-k { color: var(--brand-7, #CE7E12); }
.comp-hero { min-height: 520px; }
.comp-hero .hero-photo-in { padding-top: 160px; }
/* footer matched to cuemath.com */
.site-foot { background: var(--neutral-13); color: var(--text-inverse-primary); margin-top: 0; padding: 44px 0 28px; }
.sf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.sf-brand .wm { height: 22px; width: auto; color: var(--text-inverse-primary); display: block; }
.sf-tag { font-size: 13px; color: rgba(250,248,245,.7); margin-top: 12px; max-width: 280px; }
.sf-h { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-5); font-weight: 700; margin-bottom: 10px; }
.sf-grid a { display: block; color: rgba(250,248,245,.85); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.sf-grid a:hover { color: var(--text-inverse-primary); }
.sf-offices { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(250,248,245,.18); font-size: 12px; color: rgba(250,248,245,.6); }
.cta-band { margin-bottom: 0; }
@media (max-width: 760px) { .evgrid { grid-template-columns: 1fr; } .spec { grid-template-columns: repeat(3, 1fr); } .hype-grid { grid-template-columns: 1fr 1fr; } .sf-grid { grid-template-columns: 1fr 1fr; } .rb-text h3 { font-size: 28px; } }
@media (max-width: 480px) { .hype-grid, .sf-grid { grid-template-columns: 1fr; } .keyfacts { grid-template-columns: repeat(2, 1fr); } .livestrip-in { grid-template-columns: 1fr 1fr; } }

/* guide: flow chart */
.flow { display: grid; gap: 10px; }
.fl-row { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.fl-node { background: var(--neutral-2); border: 1px solid var(--border-primary); padding: 10px 12px; font-size: 13px; line-height: 1.3; min-width: 150px; max-width: 220px; flex: 1; }
.fl-node small { display: block; color: var(--text-secondary); font-size: 11.5px; margin-top: 3px; overflow-wrap: anywhere; }
.fl-node.ext { background: var(--brand-1, #FAF1E6); border-color: var(--brand-5); }
.fl-node.st { background: var(--neutral-13); color: var(--text-inverse-primary); border-color: var(--neutral-13); }
.fl-node.st small { color: rgba(250,248,245,.7); }
.fl-node.alt { border-style: dashed; }
.fl-arrow { align-self: center; color: var(--text-tertiary); font-size: 18px; }
.fl-arrow.fl-gap { width: 24px; }
.fl-branch { display: grid; gap: 6px; flex: 2; }
.fl-branch .fl-node { max-width: none; }
.roster code { background: var(--neutral-3); padding: 1px 5px; font-size: 12px; }
@media (max-width: 760px) { .fl-arrow { display: none; } .fl-node { max-width: none; } }

/* city page: two columns, sticky register card */
.reg { display: grid; grid-template-columns: 1.3fr .9fr; gap: 24px; align-items: start; }
.reg .stack > * + * { margin-top: 20px; }
.sticky { position: sticky; top: 16px; }
.regcard .state-line { margin-bottom: 10px; }
.regcard .ev-grades { margin: 6px 0 14px; }
.hr { border: 0; border-top: 1px solid var(--border-tertiary); margin: 14px 0; }
.kv-wide { grid-template-columns: 90px 1fr; font-size: 15px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps3 > div { background: var(--neutral-2); border: 1px solid var(--border-secondary); padding: 16px 16px 14px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.45; }
.steps3 .n { display: inline-block; font-family: var(--font-display); font-size: 22px; color: var(--brand-7, #CE7E12); line-height: 1; margin-bottom: 8px; }
.steps3 b { display: block; color: var(--text-primary); font-family: var(--font-display); font-size: 16px; margin-bottom: 4px; }
.timeline div b { font-size: 20px; }
.timeline div { font-size: 13px; padding: 14px 12px; }
/* hero facts: one line each */
.keyfacts.four { grid-template-columns: repeat(4, 1fr); }
.keyfacts div { white-space: nowrap; }
.keyfacts div b { font-size: 24px; white-space: nowrap; }
.livestrip-in div { white-space: nowrap; }
/* form section headings */
.fs-h { font-family: var(--font-display); font-size: 18px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-tertiary); }
.form-stack select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; height: 40px; }
.form-stack input[type=text], .form-stack input[type=email], .form-stack input[type=tel] { height: 40px; }
.form-stack select:disabled { color: var(--text-secondary); }
@media (max-width: 760px) { .reg { grid-template-columns: 1fr; } .sticky { position: static; } .steps3 { grid-template-columns: 1fr; } .keyfacts.four { grid-template-columns: 1fr 1fr; } .keyfacts div, .keyfacts div b, .livestrip-in div { white-space: normal; } }

/* one fact line under the hero: big value, small label, five across */
.factline { background: var(--neutral-13, #292827); color: var(--text-inverse-primary); border-bottom: 1px solid rgba(250,248,245,.12); }
.factline-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.factline-in div { border-left: 1px solid rgba(250,248,245,.2); padding-left: 16px; }
.factline-in div:first-child { border-left: 0; padding-left: 0; }
.factline-in b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.05; color: var(--brand-5); white-space: nowrap; }
.factline-in small { display: block; font-size: 12.5px; color: rgba(250,248,245,.78); margin-top: 4px; white-space: nowrap; letter-spacing: .02em; }
@media (max-width: 1100px) { .factline-in b { font-size: 22px; } .factline-in small { font-size: 11.5px; white-space: normal; } }
@media (max-width: 760px) { .factline-in { grid-template-columns: 1fr 1fr; gap: 14px; } .factline-in div { border-left: 0; padding-left: 0; } .factline-in b, .factline-in small { white-space: normal; } }

/* nav: register button + sign-in line */
.top nav { align-items: center; }
.top nav .nav-cta { background: var(--brand-5); color: var(--neutral-14, #161412) !important; opacity: 1; font-weight: 700; padding: 8px 14px; margin-left: 6px; }
.top nav .nav-cta:hover { background: var(--brand-6, #EC9A32); }
.top nav .nav-signin { font-size: 13px; color: rgba(250,248,245,.7); }
.top nav .nav-signin a { display: inline; color: var(--text-inverse-primary); text-decoration: underline; opacity: 1; margin-left: 4px; }
@media (max-width: 760px) { .top nav { display: flex; gap: 10px; } .top nav a:not(.nav-cta), .top nav .nav-signin { display: none; } }

/* hero flows into the fact strip; the gold rule sits under the strip */
.hero-photo { border-bottom: 0; }
.comp-hero { border-bottom: 5px solid var(--brand-5); }
.factline { border-bottom: 5px solid var(--brand-5); }
.top .brand svg { height: 20px; }

/* share templates + solo proposition */
.tpl { background: var(--neutral-3); border: 1px solid var(--border-tertiary); padding: 12px 14px; margin-top: 8px; }
.tpl-h { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); font-weight: 700; margin-bottom: 6px; }
.tpl p { margin: 0; font-size: 14px; line-height: 1.45; }
.solo-band { display: block; background: var(--brand-1, #FAF1E6); border-left: 5px solid var(--brand-5); padding: 14px 18px; margin-top: 18px; font-size: 14.5px; color: var(--text-secondary); }
.solo-band b { color: var(--text-primary); }
.field.solo { background: var(--brand-1, #FAF1E6); border-left: 4px solid var(--brand-5); padding: 12px 14px; }

.st-merged { background: var(--purple-accent-1, #FAEDFF); color: var(--purple-accent-8, #80408F); }

/* ---------- phone pass (HG Sep 12: fewer folds, less text, blocks side by side) ---------- */
.ph { display: none !important; }
@media (max-width: 760px) {
  .ph { display: revert !important; }
  .dk { display: none !important; }
  :root { --wrap-pad: var(--space-16); }
  .sec { margin-top: 40px; scroll-margin-top: 60px; }
  .sec-head { margin-bottom: 14px; }
  .sec-head h2 { font-size: 24px; }
  .sec-head p { font-size: 14.5px; }
  /* hero: title at the top, short */
  .hero-photo { min-height: 0; align-items: flex-start; }
  .hero-photo img { object-position: center 60%; }
  .hero-photo-shade { background: linear-gradient(180deg, rgba(29,28,27,.92) 0%, rgba(29,28,27,.72) 55%, rgba(29,28,27,.35) 100%); }
  .hero-photo-in { padding-top: 26px; padding-bottom: 150px; }
  .hero-photo .ov { font-size: 10.5px; letter-spacing: .12em; }
  .hero-photo h1 { font-size: 34px; margin: 6px 0 10px; }
  .hero-photo p { font-size: 15px; max-width: 320px; }
  .hero-btns { margin-top: 16px !important; gap: 10px; }
  .hero-btns .hero-ghost { display: none; }
  .factline-in { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding-top: 14px; padding-bottom: 14px; }
  .factline-in b { font-size: 19px; }
  .factline-in small { font-size: 11px; margin-top: 2px; }
  /* events: compact blocks, two across */
  .evgrid { grid-template-columns: 1fr; gap: 12px; }
  .evcard { padding: 12px 12px 12px; gap: 3px; border-top-width: 4px; }
  .evcard .ev-state { font-size: 9.5px; letter-spacing: .1em; }
  .evcard .ev-city { font-size: 21px; }
  .evcard .ev-date { font-size: 13.5px; }
  .evcard .ev-meta { font-size: 12px; }
  .evcard .btn { padding: 8px 8px; font-size: 13px; }
  .chips { gap: 6px; margin-bottom: 12px; }
  .chip { padding: 5px 11px; font-size: 12.5px; }
  .solo-band { padding: 12px 14px; font-size: 13.5px; gap: 10px; margin-top: 12px; }
  /* rounds: tiles stay 2x2, panel stacks and never overflows */
  .rtile b { font-size: 20px; }
  .rtile small { font-size: 11px; }
  .rpanel { padding: 14px 14px 16px; border-top-width: 5px; }
  .rpanel .rb-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rb-text h3 { font-size: 26px; margin-bottom: 8px; }
  .rb-line { font-size: 14.5px; }
  .spec { grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 10px 0 0; }
  .spec div { padding: 7px 8px; }
  .spec dt { font-size: 9px; }
  .spec dd { font-size: 16px; }
  .rpanel .tryit { height: auto; padding: 14px; }
  .ti-q { font-size: 18px; }
  /* photos: two across */
  .pb-grid3 { grid-template-columns: 1fr 1fr; gap: 6px; }
  .pb-grid3 img { height: 120px; }
  .pb-grid3 figcaption { display: none; }
  /* prizes: three blocks side by side */
  .tiers { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .tiers .tier + .tier { margin-top: 0 !important; }
  .tiers .tier { padding: 12px 10px 14px; }
  .tier-k { font-size: 9px; letter-spacing: .08em; }
  .tier h3 { font-size: 15px; line-height: 1.15; margin: 4px 0 6px; }
  .tier-line { font-size: 11.5px; line-height: 1.35; color: var(--text-secondary); margin: 0; }
  .tier.gold .tier-line { color: rgba(250,248,245,.82); }
  /* season, cta, footer */
  .stage { padding: 14px; }
  .stage h3 { font-size: 20px; }
  .kv { font-size: 13.5px; }
  .cta-band { margin: 40px -16px 0; padding: 36px 16px; }
  .sf-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .sf-brand { grid-column: 1 / -1; }
  .site-foot { padding: 30px 0 22px; }
  .comp-hero { min-height: 0; }
  .comp-hero .hero-photo-in { padding-top: 26px; padding-bottom: 150px; }
  /* city page: the register card comes first */
  .reg > .sticky { order: -1; }
  .reg { gap: 14px; }
}

/* ---------- ticket + invite options (HG Sep 12) ---------- */
.ticket { background: var(--neutral-13); color: var(--text-inverse-primary); border-top: 5px solid var(--brand-5); }
.tk-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px dashed rgba(250,248,245,.25); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.tk-brand { color: var(--brand-5); } .tk-season { color: rgba(250,248,245,.65); }
.tk-body { display: grid; grid-template-columns: 1fr 150px; grid-template-areas: "who door" "meta door"; gap: 16px 20px; padding: 18px 20px 16px; }
.tk-who { grid-area: who; min-width: 0; }
.tk-door { grid-area: door; }
.tk-show { margin: 8px 0 0; font-size: 12.5px; line-height: 1.35; color: rgba(250,248,245,.75); }
.tk-wide { grid-column: 1 / -1; }
.tk-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,248,245,.6); font-weight: 700; }
.tk-team { font-family: var(--font-display); font-size: 30px; line-height: 1.05; margin: 2px 0 4px; }
.tk-players { font-size: 15px; color: rgba(250,248,245,.9); margin-bottom: 14px; }
.tk-players .muted { color: rgba(250,248,245,.55); }
.tk-meta { grid-area: meta; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 0; }
.tk-meta dt { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,248,245,.55); }
.tk-meta dd { margin: 2px 0 0; font-size: 14px; }
.tk-meta dd a { color: var(--brand-5); }
.tk-meta .muted { color: rgba(250,248,245,.6); font-size: 12.5px; }
.tk-qr { background: #fff; padding: 8px; border-radius: 4px; text-align: center; color: #1D1C1B; align-self: start; }
.tk-qr svg { width: 134px; height: 134px; display: block; margin: 0 auto; }
.tk-code { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-top: 6px; line-height: 1.3; }
.tk-foot { border-top: 1px dashed rgba(250,248,245,.25); font-size: 14px; }
.tk-actions { display: grid; grid-template-columns: 1fr 1fr; }
.tk-actions a { color: var(--brand-5); padding: 14px 8px; text-align: center; font-weight: 600; }
.opts .opt { border: 1px solid var(--border-secondary); background: var(--neutral-1); margin-top: 10px; }
.opts .opt.on { border-color: var(--brand-5); }
.opt-h, .opt > summary { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: default; list-style: none; }
.opt > summary { cursor: pointer; }
.opt > summary::-webkit-details-marker { display: none; }
.opt-n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--neutral-13); color: var(--text-inverse-primary); font-family: var(--font-display); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.opt.on .opt-n { background: var(--brand-5); color: #1D1C1B; }
.opt-h b, .opt > summary b { display: block; font-size: 15.5px; }
.opt-h span:not(.opt-n), .opt > summary span:not(.opt-n) { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.opt-b { padding: 0 16px 16px 54px; }
.iconbtns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ib { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border-primary); background: var(--neutral-2); color: var(--text-primary); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 4px; }
.ib svg { width: 18px; height: 18px; fill: currentColor; }
.ib:hover { border-color: var(--neutral-13); }
details.sub { margin-top: 12px; }
details.sub > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; }
@media (max-width: 760px) {
  /* a phone: who it is, then the code at a size a scanner reads from arm's length, then the details */
  .tk-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "door" "meta"; padding: 16px; }
  .tk-qr { width: fit-content; margin: 0 auto; padding: 10px; }
  .tk-qr svg { width: min(230px, 62vw); height: min(230px, 62vw); }
  .tk-show { text-align: center; }
  .tk-meta { padding-top: 16px; border-top: 1px dashed rgba(250,248,245,.25); }
  .opt-b { padding-left: 16px; }
  .iconbtns .ib { flex: 1 1 30%; justify-content: center; }
}
@media print {
  .top, .site-foot, .mockbar, .panel, .stack > p, .stack > div:not(:first-child) { display: none !important; }
  .ticket { display: block !important; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* +1 phone field */
.tel { display: flex; align-items: stretch; }
.tel .cc { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-primary); border-right: 0; background: var(--neutral-3); color: var(--text-secondary); font-weight: 600; }
.tel input { flex: 1; min-width: 0; }
/* join page hero */
.join-hero { min-height: 520px; border-bottom: 5px solid var(--brand-5); }
.join-hero .hero-photo-in { padding-top: 150px; }
@media (max-width: 760px) { .join-hero { min-height: 0; } .join-hero .hero-photo-in { padding-top: 26px; padding-bottom: 120px; } }
.opt-b .hint { font-size: 12.5px; color: var(--text-secondary); }
@media (max-width: 760px) { .tk-head { font-size: 10px; letter-spacing: .1em; gap: 10px; } .tk-brand { white-space: nowrap; } .tk-season { text-align: right; } }

.field input[type=url], .field input[type=datetime-local] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border-primary); background: var(--neutral-2); font: inherit; font-size: 15px; }

/* one ticket per student */
.ticket + .ticket { margin-top: 10px; }
.tk-name { font-family: var(--font-display); font-size: 30px; line-height: 1.05; margin: 2px 0 4px; }
.tk-sub { font-size: 14.5px; color: rgba(250,248,245,.85); }

.ev-left { font-size: 14px; color: var(--text-secondary); margin: 10px 0 12px; padding-top: 10px; border-top: 1px solid var(--border-tertiary); }
.ev-left b { color: var(--text-primary); font-size: 16px; }
@media (max-width: 760px) { .ev-left { font-size: 12.5px; margin: 6px 0 8px; padding-top: 6px; } .ev-left b { font-size: 14px; } }

.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-16); }
.wallet-strip { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.wallet-strip b { color: var(--text-primary); }
@media (max-width: 900px) { .grid5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .grid5 { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* the offer in big terms, at the top of a city page */
.bigfacts { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-16); margin: 32px 0 8px; padding-bottom: 26px; border-bottom: 1px solid var(--border-tertiary); }
.bigfacts div { border-top: 5px solid var(--brand-5); padding-top: 12px; }
.bigfacts b { display: block; font-family: var(--font-display); font-size: 27px; line-height: 1.05; color: var(--text-primary); }
.bigfacts small { display: block; font-size: 13.5px; color: var(--text-secondary); margin-top: 7px; line-height: 1.4; }
@media (max-width: 900px) { .bigfacts { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; } .bigfacts b { font-size: 22px; } .bigfacts small { font-size: 12.5px; } }

/* the afternoon as a readable list, not five cramped columns */
.runsheet { border-top: 1px solid var(--border-tertiary); }
.runsheet > div { display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-tertiary); font-size: 15px; color: var(--text-secondary); line-height: 1.45; }
.runsheet > div b { font-family: var(--font-display); font-size: 17px; color: var(--text-primary); }
.runsheet > div.k b { color: var(--brand-7, #CE7E12); }
@media (max-width: 640px) { .runsheet > div { grid-template-columns: 92px 1fr; gap: 12px; font-size: 14px; } .runsheet > div b { font-size: 15px; } }

/* register without leaving the events list */
.ev-more { display: block; text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
/* a centred dialog at a desk; on a phone a bottom sheet that rises from the edge. The button that finishes the job stays in reach on both (3-Nov-2026) */
.regdlg { margin: auto; width: min(560px, 94vw); max-height: 90vh; max-height: 90dvh; padding: 0; border: 0; border-radius: 6px; background: var(--neutral-2); color: var(--text-primary); overflow: auto; overscroll-behavior: contain; transition: transform .18s ease; }
@keyframes rd-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (max-width: 760px) {
  .regdlg { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; }
  .regdlg[open] { animation: rd-rise .24s ease-out; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .regdlg[open] { animation: none; } .regdlg { transition: none; } }
.regdlg .rd-top { position: sticky; top: 0; height: 40px; z-index: 3; background: var(--neutral-2); }
.regdlg .rd-grab { position: absolute; top: 0; left: 56px; right: 56px; height: 40px; display: flex; justify-content: center; padding-top: 10px; touch-action: none; cursor: grab; }
.regdlg .rd-grab span { width: 40px; height: 4px; border-radius: 2px; background: var(--border-secondary); }
@media (min-width: 761px) { .regdlg .rd-grab { display: none; } }
.regdlg .form-cta { position: sticky; bottom: 0; z-index: 2; margin: 8px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--neutral-2); border-top: 1px solid var(--border-secondary); }
.regdlg::backdrop { background: rgba(29,28,27,.72); }
.regdlg .rd-close { position: absolute; top: 3px; right: 8px; border: 0; background: transparent; color: var(--text-primary); font-size: 24px; line-height: 1; width: 34px; height: 34px; border-radius: 17px; cursor: pointer; }
.regdlg .rd-body { padding: 0; }
/* while the form is fetched: the shape of what is coming, not a word about it.
   .skeleton / .skeleton-heading come from hive.css. */
.regdlg .rd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.rd-skel-photo { height: 158px; background: var(--neutral-13); }
.rd-skel-form { padding: 16px 20px 4px; display: grid; gap: var(--space-12); }
.rd-skel-form .skeleton-heading { margin-top: var(--space-4); }
.rd-skel-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rd-skel-field { height: 38px; }
.rd-skel-check { display: grid; gap: 6px; }
/* hive.css does not guard .skeleton's pulse; do it for our own use of it */
@media (prefers-reduced-motion: reduce) { .rd-skel .skeleton { animation: none; } }
.rd-skel-btn { height: 46px; margin-top: var(--space-4); }

.rd-photo { position: relative; display: block; width: 100%; height: 158px; overflow: hidden; background: var(--neutral-13); }
.rd-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,28,27,.20) 0%, rgba(29,28,27,.42) 40%, rgba(29,28,27,.90) 100%); }
.rd-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.rd-photo-in { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 12px 20px 13px; color: var(--text-inverse-primary); text-shadow: 0 1px 3px rgba(29,28,27,.55); }
.rd-ov { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-5); font-weight: 700; }
.rd-city { font-family: var(--font-display); font-size: 23px; line-height: 1.05; margin: 3px 0 0; }
.rd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.rd-venue { font-size: 13px; color: rgba(250,248,245,.92); margin-top: 4px; }
.rd-more { color: var(--brand-5); font-size: 13px; white-space: nowrap; text-underline-offset: 3px; flex: none; }

/* a compact form inside the dialog: it must not read as a wall */
.regdlg form.panel { border: 0; background: transparent; padding: 12px 20px 0; gap: 8px; }
.regdlg .fs-h { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); margin: 4px 0 6px; padding-bottom: 4px; }
.regdlg .field { margin-bottom: 6px; }
.regdlg .field > label { font-size: 12px; margin-bottom: 2px; }
.regdlg input[type=text], .regdlg input[type=tel], .regdlg input[type=email], .regdlg select { padding: 7px 10px; font-size: 15px; height: 38px; }
.regdlg .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.regdlg .hint { font-size: 11px; margin-top: 2px; }
.regdlg .field.check, .regdlg label.check { font-size: 12.5px; line-height: 1.45; }
.regdlg label.check span { font-size: 12.5px; }
.regdlg .btn-lg { padding: 11px 18px; font-size: 16px; }
.regdlg .field.check { margin-bottom: 5px; }
.regdlg form.panel > .hint { margin-top: 6px !important; }
.regdlg label.check { line-height: 1.35; }
@media (max-width: 640px) {
  .regdlg { width: 100vw; }
  .regdlg .form-cta { margin: 8px -16px 0; padding-left: 16px; padding-right: 16px; }
  .rd-photo, .rd-skel-photo { height: 132px; }
  .rd-skel-form { padding: 14px 16px 4px; }
  .rd-city { font-size: 21px; }
  .regdlg form.panel { padding: 10px 16px 0; }
  .regdlg .rd-photo-in { padding: 12px 16px; }
  .regdlg .two { gap: 10px; }
}

/* the hero says what it is, in words a parent knows */
.hero-photo h1 span { display: block; color: var(--brand-5); font-size: .52em; line-height: 1.12; margin-top: .28em; }
@media (max-width: 760px) { .hero-photo h1 span { font-size: .62em; } }

/* the hero's text block is a flex child: without this it shrink-wraps and sits
   further in than every other section on the page */
.hero-photo > .wrap { width: 100%; flex: 1 1 auto; }

/* a real deadline, said plainly */
.ev-close { font-size: 13px; font-weight: 700; color: var(--brand-7, #CE7E12); margin-top: 6px; }
.ev-close.soon { color: var(--text-error, #C8444F); }
.ev-interest { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; }
.closing { font-size: 15px; font-weight: 700; color: var(--brand-7, #CE7E12); margin: 0 0 12px; }
.closing.soon { color: var(--text-error, #C8444F); }
.notice.urgent { background: var(--error-1, #FCEDED); border-color: var(--error-3, #F1B9BC); }
.grid6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-12); }
/* Six across, so the Hive KPI card's 64px display number is far too big: it dwarfs the page and pushes
   every label onto two lines. Scoped down here, nothing else using .kpi-card is touched. */
.grid6 .kpi-card { padding: 12px 14px; gap: 2px; }
.grid6 .kpi-card-label { font-size: 11px; line-height: 1.35; letter-spacing: .04em; }
.grid6 .kpi-card-value { font-size: 32px; line-height: 1.15; }
@media (max-width: 1100px) { .grid6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .grid6 { grid-template-columns: 1fr 1fr; gap: 8px; } .grid6 .kpi-card-value { font-size: 26px; } }

/* ---- the door: event-day check-in. Built for a phone held at arm's length in a noisy hall. ---- */
.door { gap: 0; }
.door > * + * { margin-top: var(--space-12); }
.door-bar { position: sticky; top: 0; z-index: 5; background: var(--neutral-13); color: var(--text-inverse-primary);
  padding: 10px var(--space-16) var(--space-12); margin: 0 calc(-1 * var(--wrap-pad)); }
.door-bar-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-12); margin-top: 2px; }
.door-room { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-5); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.door-count { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.door-count span { font-size: 14px; font-family: var(--font-body); opacity: .75; }

.door-search { width: 100%; padding: 14px 16px; font: inherit; font-size: 17px;
  border: 1px solid var(--border-primary); background: var(--neutral-2); color: var(--text-primary); }
.door-none { display: none; padding: var(--space-24); text-align: center; color: var(--text-secondary); background: var(--neutral-2); border: 1px solid var(--border-tertiary); margin: 0; }
.door-none.is-on { display: block; }

.door-team { border: 1px solid var(--border-secondary); background: var(--neutral-2); }
.door-team-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 10px var(--space-16); border-bottom: 1px solid var(--border-tertiary); background: var(--neutral-3); font-size: 14px; }
.door-gr { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--text-secondary); }

.dr { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12);
  padding: 10px var(--space-16); border-top: 1px solid var(--border-tertiary); }
.door-team .dr:first-of-type { border-top: 0; }
.dr-who { min-width: 0; }
.dr-who b { display: block; font-size: 17px; line-height: 1.2; }
.dr-sub { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-act { display: flex; gap: 6px; flex: none; }
.dr-act form { margin: 0; }
.dr-act button { font: inherit; font-weight: 700; cursor: pointer; border: 1px solid var(--border-primary);
  background: var(--neutral-2); color: var(--text-primary); min-width: 60px; min-height: 44px; padding: 0 12px; }

/* the two settled states: legible at a glance, from across a desk */
.dr.is-present { background: var(--success-1, #E4F6EC); }
.dr.is-present .dr-in { background: var(--success-8, #1C7C48); border-color: var(--success-8, #1C7C48); color: var(--neutral-0, #FFF); }
.dr.is-absent { background: var(--neutral-3); }
.dr.is-absent .dr-who b { text-decoration: line-through; color: var(--text-secondary); }
.dr.is-saving { opacity: .55; }
.dr.is-failed { background: var(--error-1, #FFE9E9); }
.dr.is-failed .dr-who b::after { content: ' — not saved, tap again'; font-size: 12px; font-weight: 400; color: var(--text-error, #C8444F); }
.dr.is-lockedmsg .dr-who b::after { content: ' — checked in, ask admin to change'; font-size: 12px; font-weight: 400; color: var(--text-secondary); }

@media (max-width: 420px) {
  .door-count { font-size: 22px; }
  .dr-act button { min-width: 54px; padding: 0 8px; }
}

/* ---- door: Scan ticket. The camera opens in the page; the list is where you land after. ---- */
.door-scan-btn { font-size: 18px; }
.door-start[hidden], .door-manual[hidden] { display: none; }
.door-start { margin-top: var(--space-16); }
.door > .door-manual { margin-top: 0; }   /* the count strip meets the event strip */
.dg { margin-top: var(--space-16); padding: var(--space-16); }
/* tap a team in the check-in grid: who is on it (15-Nov-2026). The sheet is the register sheet's .regdlg; the rows are the list's .dr */
.door .dg-team { cursor: pointer; }
.door .dg-team:focus-visible { outline: 3px solid var(--brand-5); outline-offset: 1px; }
@media (min-width: 761px) { .teamdlg { width: min(440px, 94vw); } }
.teamdlg .td-head { padding: 0 var(--space-20, 20px) var(--space-12); }
.teamdlg .td-gr { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--text-secondary); }
.teamdlg .td-title { font-family: var(--font-display); font-size: 24px; line-height: 1.1; margin: 2px 0 0; overflow-wrap: anywhere; }
.teamdlg .td-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }
.teamdlg .td-list { border-top: 1px solid var(--border-tertiary); padding-bottom: env(safe-area-inset-bottom); }
.teamdlg .td-list .dr { padding-left: var(--space-20, 20px); padding-right: var(--space-20, 20px); }
.teamdlg .td-list .dr:first-child { border-top: 0; }
.teamdlg .td-empty { padding: 14px var(--space-20, 20px) 18px; border-top: 1px dashed var(--border-secondary); font-size: 13px; color: var(--text-secondary); }
.dg-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8) var(--space-16); }
.dg-total { font-size: 15px; }
.dg-total b { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.dg-key { display: flex; flex-wrap: wrap; gap: 4px var(--space-12); font-size: 12px; color: var(--text-secondary); }
.dg-key span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dg-key .dg-seat { width: 14px; height: 14px; }
.dg-band { margin-top: var(--space-16); }
.dg-h { margin: 0 0 var(--space-8); font-family: var(--font-body); font-size: 13px; font-weight: 700; }
.dg-h .muted { margin-left: 4px; font-weight: 400; }
.dg-h .muted b { font-weight: 400; }
.dg-grid { display: grid; gap: 6px; }
.dg-grid.is-pair { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); }
.dg-grid.is-solo { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.dg-team { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
.is-pair .dg-team { padding: 4px; background: var(--neutral-3); }
.dg-no { font-size: 10.5px; line-height: 14px; color: var(--text-secondary); }
.dg-seats { display: flex; gap: 2px; }
.dg-seat { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; box-sizing: border-box; border: 1px solid var(--border-primary); background: var(--neutral-0, #FFF); color: var(--text-secondary); font-size: 10.5px; font-style: normal; font-weight: 600; }
.dg-seat.is-in { background: var(--success-8, #1C7C48); border-color: var(--success-8, #1C7C48); color: var(--neutral-0, #FFF); }
.dg-seat.is-empty { border-style: dashed; background: none; }
.dg-seat.is-part { background: #FFE3A1; border-color: #E0B44F; color: #1D1C1B; }
.dg-team.is-last { outline: 3px solid var(--brand-5); outline-offset: 1px; position: relative; z-index: 1; }   /* the team the door just checked in */
.dg-team.is-last .dg-no { color: var(--text-primary, #1D1C1B); font-weight: 700; font-size: 12px; }
/* The Sheets tab: one job on screen at a time. While a sheet is being checked, everything else steps aside */
.scores:has(> #review:not([hidden])) > .sc-hide { display: none; }   /* opened inside the tracker, the tracker stays */
.scores > .sr-only + * { margin-top: 0; }
.rv-photo canvas[hidden] { display: none; }
.sc-start { display: grid; gap: var(--space-12); }
.sc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
/* Pinned under the event strip (6-Nov-2026), so the round stays in view down the grid */
.scores > .sc-tabs { position: sticky; top: var(--ev-strip-h, 0px); z-index: 5; margin: calc(-1 * var(--space-8)) 0 0; padding: var(--space-8) 0; background: var(--neutral-1, #FAF8F5); }
body:not(:has(.ev-strip)) .scores > .sc-tabs { top: 0; }
.sc-tab { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 5px 4px; line-height: 1.25; border: 1px solid var(--border-primary); color: var(--text-primary); text-decoration: none; font-size: 14px; }
.sc-tab small { font-size: 12px; color: var(--text-secondary); }
.sc-tab b { line-height: 1.15; text-align: center; }
.sc-tab-n { font-size: 10.5px; color: var(--text-secondary); }
.sc-tab.on .sc-tab-n { color: inherit; opacity: .75; }
.sc-tab.done small { color: var(--success-8, #1C7C48); font-weight: 700; }
.sc-tab.on { background: var(--neutral-13); border-color: var(--neutral-13); color: var(--text-inverse-primary); }
.sc-tab.on small { color: inherit; }
.sc-sums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--space-16); font-size: 14px; }
.sc-sum { display: flex; justify-content: space-between; gap: var(--space-8); }
.sc-sum b { font-weight: 500; }
.sc-sum small { font-size: 13px; color: var(--text-secondary); }
.sc-sum.done small { color: var(--success-8, #1C7C48); font-weight: 700; }
.dg-grid.is-sheet { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.dg-grid.is-sheet .dg-seat { width: 100%; height: 34px; font-size: 12px; }
.dg-grid.is-sheet .dg-seat.is-empty { color: var(--text-secondary); }
/* Who scans what (16-Nov-2026, templates/_scan_piles.html): one block a person, their name over their own boxes, moved
   there from the grade bands; yours outlined. A band keeps only teams in nobody's pile (not checked in). */
.sp { margin-top: var(--space-16); }
.sp-h { margin: 0 0 var(--space-8); font-size: 13px; font-weight: 700; }
.sp-pile { padding: 10px; background: var(--neutral-3); }
.sp-pile + .sp-pile { margin-top: 8px; }
.sp-pile.is-me { background: none; outline: 2px solid var(--brand-5); outline-offset: -2px; }
.sp-head { display: flex; align-items: baseline; gap: var(--space-12); margin-bottom: 8px; font-size: 14px; }
.sp-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-name small { font-weight: 400; color: var(--text-secondary); font-size: 12px; }
.sp-runs { font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.sp-left { margin-left: auto; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.sp-pile.is-done .sp-left { color: var(--success-8, #1C7C48); font-weight: 700; }
.sp-pile .dg-grid:empty { display: none; }
.sp-more { margin-top: var(--space-12); }
.sp-note { margin: var(--space-8) 0 0; }
.sp-took { color: var(--success-8, #1C7C48); font-weight: 600; }
.sp-foot { margin: var(--space-12) 0 0; color: var(--text-secondary); }
.sp-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.sp-join { margin-top: var(--space-12); }
.dg-band.sp-rest .dg-h::after { content: " · not in a pile"; font-weight: 400; color: var(--text-secondary); }
.dg-grid.is-sheet .dg-seat.is-new { outline: 2px solid var(--brand-5); outline-offset: 1px; position: relative; z-index: 1; }
/* The Junior: a mark for each page of the round under the child's number, filled once that page is in (6-Nov-2026) */
.dg-grid.is-sheet .dg-seat:has(.dg-pages) { flex-direction: column; gap: 3px; height: 40px; }
.dg-pages { display: flex; gap: 3px; }
.dg-pages i { width: 9px; height: 4px; border: 1px solid currentColor; opacity: .55; }
.dg-pages i.on { background: currentColor; opacity: 1; }
.dg-grid.is-rounds { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.dg-kid { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; background: var(--neutral-3); }
.dg-kid.is-away { background: none; outline: 1px dashed var(--border-primary); outline-offset: -1px; }
.dg-dots { display: flex; gap: 2px; }
.dg-dots .dg-seat { width: 11px; height: 11px; }
.rv-acts { position: sticky; bottom: 76px; z-index: 5; padding: var(--space-8) 0; background: var(--neutral-2); }
.door-act { flex-direction: column; gap: 4px; height: auto; min-height: 0; padding: 14px var(--space-16); white-space: normal; text-align: center; }
.door-start > .door-act + .door-act { margin-top: var(--space-12); }
.door-act-t { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.door-act-t svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.door-act-sub { font-size: 13px; font-weight: 400; line-height: 1.35; }
/* The sheet to photograph (6-Nov-2026): the top of the printed sheet, fading out where the page goes on */
.sc-guide { margin: 0; }
/* The Junior: the sheet's top sharp, the questions below it blurred (served at 12 dpi, so they can't be read even unblurred) */
.sc-guide.is-junior > img { -webkit-mask-image: none; mask-image: none; }
.sc-guide-rest { overflow: hidden; border: 1px solid var(--border-primary); border-top: 0; border-bottom: 0; background: #fff;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.sc-guide-rest { aspect-ratio: 1275 / 385; }   /* with the 1275 x 305 top: as tall as the grades 6-8 strip (1275 x 690) */
.sc-guide-rest img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: blur(3px); transform: scale(1.04); }
.sc-guide img { display: block; width: 100%; height: auto; border: 1px solid var(--border-primary); border-bottom: 0; background: #fff;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.door-scan-btn[hidden], .scan[hidden], .scan-result[hidden] { display: none; }   /* .btn and these set display, which beats [hidden] */
body.scan-open { overflow: hidden; }
.scan { position: fixed; inset: 0; z-index: 50; background: var(--neutral-13);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: relative; width: min(70vw, 300px); aspect-ratio: 1; border: 3px solid var(--brand-5);
  box-shadow: 0 0 0 100vmax rgba(29,28,27,.45); }
.scan-hint { position: relative; margin: var(--space-24) var(--space-16) 0; color: var(--text-inverse-primary);
  font-size: 17px; text-align: center; }
.scan-cancel { position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--space-24) + env(safe-area-inset-bottom)); }
.scan-result { position: fixed; left: var(--space-12); right: var(--space-12); z-index: 41;
  bottom: calc(76px + env(safe-area-inset-bottom));   /* above the bottom tabs */
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12);
  padding: var(--space-12) var(--space-16); background: var(--neutral-2);
  border: 1px solid var(--border-primary); border-left: 6px solid var(--border-primary); box-shadow: var(--shadow-lg); }
.scan-result-msg { min-width: 0; }
.scan-result-msg b { display: block; font-size: 17px; line-height: 1.2; }
.scan-result-msg span { display: block; font-size: 13.5px; color: var(--text-secondary); margin-top: 2px; }
.scan-result .btn { flex: none; }
.scan-result.is-ok { border-left-color: var(--success-8, #1C7C48); }
.scan-result.is-warn { border-left-color: var(--brand-6, #EC9A32); }
.scan-result.is-bad { border-left-color: var(--text-error, #C8444F); }
.dr.is-scanned { outline: 3px solid var(--brand-5); outline-offset: -3px; }
@media (min-width: 761px) { .scan-result { left: 50%; right: auto; width: 520px; transform: translateX(-50%); } }
.door-cell { white-space: nowrap; }
.door-cell code { font-size: 14px; letter-spacing: .04em; }

/* ---- admin shell: its own header, and tables that become cards on a phone (templates/admin_base.html) ---- */
.adm-brand { gap: var(--space-8); }
.adm-tag { font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-5); padding: 3px 9px; border: 1px solid rgba(250,248,245,.28); border-radius: var(--radius-full); }
.top.adm-top .adm-nav { display: flex; align-items: stretch; gap: var(--space-4); align-self: stretch; }
.top.adm-top .adm-nav a { display: inline-flex; align-items: center; padding: 0 var(--space-12); font-size: 14.5px;
  color: rgba(250,248,245,.72); text-decoration: none; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.top.adm-top .adm-nav a:hover { color: var(--text-inverse-primary); }
.top.adm-top .adm-nav a.on { color: var(--text-inverse-primary); border-bottom-color: var(--brand-5); }
body.adm main span.st { white-space: nowrap; }   /* the status badges; the guide's flow boxes also use .st */
.td-v { display: contents; }
body.adm main code { overflow-wrap: anywhere; }   /* door links and slugs have no spaces to break at */

@media (max-width: 760px) {
  .top.adm-top .wrap { flex-wrap: wrap; gap: var(--space-8) var(--space-12); padding-bottom: 0; }
  .top.adm-top .adm-nav { display: flex; width: 100%; justify-content: space-between; gap: 0; }
  .top.adm-top .adm-nav a { display: inline-flex; padding: var(--space-8) 2px var(--space-12); font-size: 14px; border-top: 0; }

  /* one card per row. Each cell carries its column name as a small label above the value; short
     values sit two across, long ones (and forms) take the full width. Labels come from the header. */
  body.adm main table.adm-stack, body.adm main table.adm-stack tbody { display: block; }
  body.adm main table.adm-stack thead { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }       /* block, or overflow:hidden is ignored and the page widens */
  body.adm main table.adm-stack tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-16);
    padding: var(--space-16); border-bottom: 1px solid var(--border-tertiary); }
  body.adm main table.adm-stack tr:last-child { border-bottom: 0; }
  body.adm main table.adm-stack tr[hidden] { display: none; }
  body.adm main table.adm-stack td { display: block; min-width: 0; padding: 0; border: 0; font-size: 14px;
    overflow-wrap: anywhere; white-space: normal; }
  body.adm main table.adm-stack td::before { content: attr(data-label); display: block; font-size: 10.5px; line-height: 1.5;
    letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1px; }
  body.adm main table.adm-stack .td-v { display: block; }
  body.adm main table.adm-stack td.td-title { order: -1; grid-column: 1 / -1; font-size: 16px; }
  body.adm main table.adm-stack td.td-wide, body.adm main table.adm-stack td.td-full,
  body.adm main table.adm-stack td[data-label=""] { grid-column: 1 / -1; }
  body.adm main table.adm-stack td.td-title::before,
  body.adm main table.adm-stack td[data-label=""]::before,
  body.adm main table.adm-stack td.td-full::before { content: none; }
  body.adm main table.adm-stack td.td-empty { display: none; }
  body.adm main .panel:has(> table.adm-stack) { overflow-x: visible; }

  /* number cards two across, not one huge figure per row */
  body.adm main .grid4:has(> .kpi-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  body.adm main .grid4 > .kpi-card { padding: 12px 14px; }
  body.adm main .grid4 .kpi-card-value { font-size: 32px; line-height: 1.15; }
}

.door-room { margin: 0; font-family: var(--font-body); line-height: 1.4; }   /* the door list's h1: styled as the bar's overline */
.door-top ~ main:has(.door-bar) { padding-top: 0; }   /* the count bar sits right under the header */

/* room page: team numbers panel and the team filters */
.team-list-h { margin-bottom: 0; }                     /* a section of its own: the page's normal gap above it */
.stack > .team-chips { margin: var(--space-12) 0 0; }   /* then tight: heading, chips, list read as one block */
.stack > .team-chips + .panel { margin-top: var(--space-12); }
.team-chips .chip b { font-weight: 700; margin-left: 2px; }
.team-chips .chip.on b { color: var(--brand-5); }

/* ---- scores page: scan a sheet, check what was read, save ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.scores .chip { text-decoration: none; color: var(--text-primary); display: inline-flex; align-items: center; }
.scores .chip.on { color: var(--text-inverse-primary); }
.scores .chip-off { opacity: .5; cursor: default; }
.scores label.btn { cursor: pointer; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); }
.keygrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-8); }
.keygrid label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-secondary); }
.keygrid select { padding: 6px 8px; font: inherit; font-size: 15px; color: var(--text-primary); background: var(--neutral-3); border: 1px solid var(--border-primary); }
.rv-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-24); align-items: start; }
.rv-photo canvas { width: 100%; height: auto; display: block; border: 1px solid var(--border-tertiary); }
.rv-team input { display: block; width: 7.5rem; margin-top: 4px; padding: 8px 10px; font-family: var(--font-display); font-size: 24px; letter-spacing: .04em;
  border: 1px solid var(--border-primary); background: var(--neutral-3); color: var(--text-primary); }
.rv-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--space-16); }
.rv-q { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 3px 4px; border-left: 3px solid transparent; }
.rv-q b { width: 1.6em; text-align: right; margin-right: 4px; }
.rv-q button { min-width: 36px; min-height: 36px; font: inherit; font-weight: 700; border: 1px solid var(--border-primary); background: var(--neutral-2); color: var(--text-primary); cursor: pointer; }
.rv-q button.on { background: var(--neutral-13); color: var(--text-inverse-primary); border-color: var(--neutral-13); }
.rv-q.unsure { border-left-color: var(--brand-5); background: var(--brand-1, #FAF1E6); }
.rv-q .small { flex-basis: 100%; padding-left: calc(1.6em + 8px); color: var(--text-warning, #964217); }
.rv-score { font-size: 16px; margin: var(--space-16) 0; }
.warn { color: var(--text-warning, #964217); }
.ans { display: inline-block; min-width: 1.35em; text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.ans.ok { color: var(--success-8, #1C7C48); }
.ans.no { color: var(--text-error, #C8444F); text-decoration: line-through; }
.ans.unsure { color: var(--text-secondary); }
@media (max-width: 760px) {
  .sc-grid, .rv-grid { grid-template-columns: minmax(0, 1fr); }
  .keygrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rv-answers { grid-template-columns: minmax(0, 1fr); }
}
/* answer key: four toggles per question; a select-all question is simply one with several ticked */
.keygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--space-16); }
.kq { display: flex; align-items: center; gap: 4px; padding: 2px 4px; border-left: 3px solid transparent; }
.kq > span { width: 2.4em; font-weight: 700; color: var(--text-primary); font-size: 14px; }
.kq.multi { border-left-color: var(--brand-5); background: var(--brand-1, #FAF1E6); }
.kopt { position: relative; }
.kopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kopt span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--border-primary); background: var(--neutral-2); color: var(--text-primary); cursor: pointer; }
.kopt input:checked + span { background: var(--neutral-13); color: var(--text-inverse-primary); border-color: var(--neutral-13); }
.kopt input:focus-visible + span { outline: 2px solid var(--brand-5); outline-offset: 1px; }
.rv-q.multi b::after { content: ' all'; font-size: 10px; font-weight: 700; color: var(--brand-7, #CE7E12); }
.ans.multi { min-width: 2.2em; }
@media (max-width: 760px) { .keygrid { grid-template-columns: minmax(0, 1fr); } }

/* ---- public leaderboards ---- */
/* Leaderboards: a slim bar, a dark title band with room + grade, then the board. Each round keeps its colour from the
   round tiles (Sprint blue, Jury green, Case gold, Summit purple); Overall is ink, and gold is kept for the medals. */
.k-o { --rc: var(--text-primary); } .k-f { --rc: var(--f); } .k-u { --rc: var(--u); } .k-a { --rc: var(--a); } .k-r { --rc: var(--r); }
.lb-top { background: var(--neutral-13); color: var(--text-inverse-primary); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lb-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 48px; gap: var(--space-16); }
.lb-top .brand { color: inherit; display: flex; } .lb-top .brand svg { height: 15px; width: auto; display: block; }
.lb-top-link { font-size: 13px; text-decoration: none; opacity: .75; } .lb-top-link:hover { opacity: 1; }
.lb-hero { background: var(--neutral-13); color: var(--text-inverse-primary); padding: var(--space-32) 0 var(--space-24); border-bottom: 4px solid var(--brand-5); }
.lb-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 5.4vw, 52px); line-height: 1.02; margin: 0 0 var(--space-24); }
.lb-hero h1 span { color: var(--brand-5); }
.lb-pick { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }
.lb-where { min-width: 0; flex: 0 1 280px; }
.lb-where select { width: 100%; font: inherit; font-size: 15px; color: var(--text-inverse-primary); background-color: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius-full); height: 42px; padding: 0 40px 0 18px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.lb-where select option { color: var(--text-primary); background: var(--neutral-2); }
.lb-seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius-full); padding: 3px; }
.lb-seg a { text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: var(--radius-full); opacity: .8; white-space: nowrap; }
.lb-seg a.on { background: var(--brand-5); color: var(--neutral-13); opacity: 1; font-weight: 600; }
.lbd { padding-top: 0; display: grid; gap: var(--space-32); }
.lb-board { background: var(--neutral-2); border: 1px solid var(--border-tertiary); border-top: 4px solid var(--rc); }
.lb-tabs { display: flex; border-bottom: 1px solid var(--border-tertiary); }
.lb-tabs a { flex: 1 1 0; min-width: 0; text-align: center; text-decoration: none; font-size: 15px; padding: 14px 4px 12px; color: var(--text-secondary);
  border-bottom: 3px solid transparent; margin-bottom: -1px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.lb-tabs a::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--rc); flex: none; }
.lb-tabs a:hover { color: var(--text-primary); }
.lb-tabs a.on { color: var(--text-primary); font-weight: 600; border-bottom-color: var(--rc); background: var(--neutral-1); }
.lb-meta { margin: 0; padding: var(--space-16) var(--space-24) 0; font-size: 13.5px; color: var(--text-secondary); }
.lb-kids { display: block; font-size: 14px; color: var(--text-primary); margin-top: 2px; overflow-wrap: anywhere; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lb-num, .lb-city { font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: var(--radius-full); white-space: nowrap; text-decoration: none; }
.lb-num { background: var(--neutral-13); color: var(--text-inverse-primary); font-weight: 600; letter-spacing: .02em; }
.lb-city { border: 1px solid var(--border-primary); color: var(--text-primary); }
.lb-city::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--brand-5); margin-right: 5px; vertical-align: 1px; }
.lb-city:hover { border-color: var(--text-primary); }
.lb { list-style: none; margin: 0; padding: var(--space-12) var(--space-24) var(--space-16); }
.lb-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-12); padding: var(--space-12) 0; border-top: 1px solid var(--border-tertiary); }
.lb-row:first-child { border-top: 0; }
.lb-rank { font-family: var(--font-display); font-size: 20px; color: var(--text-secondary); }
.lb-row.m1 { background: var(--brand-1); margin: 0 calc(-1 * var(--space-12)); padding-left: var(--space-12); padding-right: var(--space-12); }
.lb-row.m1, .lb-row.m2, .lb-row.m3 { --mc: var(--brand-5); } .lb-row.m2 { --mc: var(--neutral-5); } .lb-row.m3 { --mc: var(--brand-8); }
.lb-row[class*=" m"] .lb-rank { width: 34px; height: 34px; border-radius: var(--radius-full); background: var(--mc); color: var(--neutral-13); display: grid; place-items: center; font-size: 15px; }
.lb-row.m3 .lb-rank { color: var(--neutral-1); }
.lb-team { min-width: 0; }
.lb-team b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.lb-team small { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 2px; } .lb-team small a { color: inherit; }
.lb-team .lb-bar { max-width: 240px; margin-top: 6px; }
.lb-pts { text-align: right; } .lb-pts b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1; } .lb-pts small { font-size: 12px; color: var(--text-secondary); }
.lb-row[hidden] { display: none; }
.lb-more { padding: 0 var(--space-24) var(--space-24); text-align: center; }
.lb-more .btn { width: 100%; max-width: 320px; }
.lb-bar { display: flex; height: 6px; background: var(--border-tertiary); gap: 2px; }
.lb-bar i { background: var(--rc); } .lb-bar i.rest { background: transparent; }
.lb-split { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; font-size: 12px; color: var(--text-secondary); }
.lb-split span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--rc); margin-right: 4px; }
.lb-empty { padding: var(--space-40) var(--space-24); text-align: center; }
.lb-empty h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 8px; overflow-wrap: anywhere; }
.lb-empty p { margin: 0 auto; max-width: 480px; color: var(--text-secondary); }
.lb-rooms h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 var(--space-8); font-weight: 600; }
.lb-rooms ul { list-style: none; margin: 0; padding: 0; }
.lb-rooms li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: 10px 0; border-bottom: 1px solid var(--border-tertiary); }
.lb-rooms a { text-decoration: none; min-width: 0; } .lb-rooms small { color: var(--text-secondary); font-size: 13px; margin-left: 6px; }
.lb-dots { display: flex; gap: 5px; flex: none; }
.lb-dots i { width: 10px; height: 10px; border-radius: var(--radius-full); border: 2px solid var(--rc); opacity: .45; }
.lb-dots i.on { background: var(--rc); opacity: 1; }
@media (max-width: 640px) {
  .lb-hero { padding: var(--space-24) 0 var(--space-20); } .lb-hero h1 { margin-bottom: var(--space-16); }
  .lb-where { flex: 1 1 100%; }
  .lb-seg { width: 100%; } .lb-seg a { flex: 1; text-align: center; padding: 8px 6px; }
  .lb-tabs a { font-size: 13px; gap: 5px; padding: 12px 2px 10px; } .lb-tabs a::before { width: 6px; height: 6px; }
  .lb-meta { padding: var(--space-12) var(--space-16) 0; }
  .lb { padding: var(--space-8) var(--space-16) var(--space-8); }
  .lb-row { grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: var(--space-8); }
}
.lb-status { margin-top: var(--space-12); padding: var(--space-12); background: var(--neutral-3); display: grid; gap: 8px; }
.lb-status.live { background: var(--success-1, #E4F6EC); }
.lb-status form { margin: 0; }
/* Sprint: number answer keys, and typing each written answer from its crop */
.kgrades { margin: 0 0 10px; }
.numkey { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(8, auto); }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--text-primary); text-decoration: underline; cursor: pointer; }   /* A down the left, B down the right, like the card */
.keygrid.numkey label.kq { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
.numkey input { width: 5.2rem; min-width: 0; padding: 7px 9px; font-family: var(--font-display); font-size: 18px; letter-spacing: .06em;
  border: 1px solid var(--border-primary); background: var(--neutral-3); color: var(--text-primary); }
.numkey small { color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.kgrades .chip span { margin-left: 4px; }
.rv-nums { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.rv-w { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) 5.6rem 2rem; align-items: center; gap: 8px; padding: 4px 6px; border-left: 3px solid transparent; }
.rv-w.nocrop { grid-template-columns: 2.2rem 5.6rem 2rem; }
.rv-w b { font-size: 14px; }
.rv-w img { display: block; width: 100%; max-width: 280px; height: auto; border: 1px solid var(--border-tertiary); background: var(--neutral-1); }
.rv-w input { width: 100%; min-width: 0; padding: 8px 9px; font-family: var(--font-display); font-size: 20px; letter-spacing: .06em;
  border: 1px solid var(--border-primary); background: var(--neutral-3); color: var(--text-primary); }
.rv-w input::placeholder { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; color: var(--text-secondary); }
.rv-w small { font-size: 12px; color: var(--text-secondary); text-align: right; }
.rv-w small::after { content: " pts"; }
.rv-w.todo { border-left-color: var(--brand-5); background: var(--brand-1, #FAF1E6); }
.ans.num { min-width: 0; padding: 0 3px; }
@media (max-width: 760px) {
  .numkey { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; }
  .keygrid.numkey label.kq { gap: 6px; } .numkey input { width: 4.4rem; font-size: 16px; }
  .rv-w { grid-template-columns: 2rem minmax(0, 1fr) 4.8rem; }
  .rv-w small { display: none; }
  .rv-w.nocrop { grid-template-columns: 2rem 6rem; }
}

/* Scores page, phone first: one scan panel, keys folded away */
.stack > .sc-rounds { margin: var(--space-12) 0 0; }
.sc-scan { display: grid; gap: var(--space-12); }
.sc-links { display: flex; align-items: center; gap: var(--space-16); flex-wrap: wrap; }
.sc-state { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap;
  padding-top: var(--space-12); border-top: 1px solid var(--border-tertiary); }
.sc-state form { margin: 0; }
.sc-key { padding: 0; }
.sc-key summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: var(--space-16); cursor: pointer; font-weight: 600; list-style: none; }
.sc-key summary::-webkit-details-marker { display: none; }
.sc-key summary::after { content: "Show"; font-weight: 400; font-size: 13px; color: var(--text-secondary); margin-left: var(--space-8); }
.sc-key[open] summary::after { content: "Hide"; }
.sc-key summary > span:first-child { flex: 1; }
.sc-keystate { display: flex; gap: 8px; font-size: 13px; font-weight: 400; }
.sc-keystate .ok { color: var(--success-8, #1C7C48); }
.sc-key form { padding: 0 var(--space-16) var(--space-16); display: grid; gap: var(--space-12); }
.sc-key .keygrid { margin: 0; }
.sc-key .btn { justify-self: start; }
.sc-all { display: flex; gap: 8px; align-items: center; }
.sc-list { list-style: none; margin: 0; padding: 0 var(--space-16) var(--space-8); border-top: 1px solid var(--border-tertiary); }
.sc-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto 2rem; align-items: center; gap: var(--space-8); padding: 10px 0; border-top: 1px solid var(--border-tertiary); }
.sc-list li:first-child { border-top: 0; }
.sc-list li.sc-empty { display: block; }   /* "No team has a number yet": the whole row, not the number column */
.sc-list .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-list li:not(.done) .nm, .sc-list li:not(.done) .n { color: var(--text-secondary); }
.sc-list .pt { text-align: right; white-space: nowrap; } .sc-list .pt b { font-size: 16px; } .sc-list .pt small { color: var(--text-secondary); }
.sc-list form { margin: 0; }
.sc-x { width: 2rem; height: 2rem; border: 0; background: none; color: var(--text-secondary); font-size: 20px; cursor: pointer; }
.sc-x:hover { color: var(--text-error, #C8444F); }
.sc-list .ans-cell { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 2px 6px; line-height: 1.5; }
/* scanned numbers the reader is not sure of: the scorer looks at these first */
.rv-w.unsure { border-left-color: var(--brand-5); background: var(--brand-1, #FAF1E6); }
.rv-w.unsure input { border-color: var(--brand-5); }
/* One sheet, full screen (6-Nov-2026): over everything (no tabs, no bars), drawn like the printed sheet so the paper on
   the table and the phone beside it match line for line, with the pad always open at the bottom (static/keypad.js) */
.rvx { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0; padding: 0; border: 0;
  background: #EFECE7; color: var(--text-primary); }
.rvx[hidden] { display: none; }
body:has(> .rvx:not([hidden])) { overflow: hidden; }
.rvx-top { flex: none; display: flex; align-items: center; gap: 6px; padding: calc(4px + env(safe-area-inset-top)) 8px 4px 4px; background: var(--neutral-0, #FFF); border-bottom: 1px solid var(--border-secondary); }
.rvx-x { flex: none; width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--text-primary); cursor: pointer; }
.rvx-title { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvx-top .btn { flex: none; }
.rvx-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px; }
.rvx-photo { display: flex; gap: 10px; align-items: flex-start; max-width: 560px; margin: 0 auto 10px; }
.rvx-photo[hidden] { display: none; }
.rvx-photo canvas { flex: none; width: 64px; height: auto; border: 1px solid var(--border-primary); cursor: zoom-in; }
.rvx-photo p { margin: 0; font-size: 12px; line-height: 1.4; }
.rvx-photo.big { flex-direction: column; }
.rvx-photo.big canvas { width: 100%; cursor: zoom-out; }
.rvx-pick { display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: 560px; margin: 0 auto 10px; font-size: 13px; }
.rvx-pick[hidden] { display: none; }
.pp-page { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 14px 0 2px; font-size: 13px; color: var(--text-secondary); }   /* a page's heading, when the whole round shows */
.pp-shot { flex: none; width: 72px; padding: 0; border: 1px solid var(--border-secondary); background: #fff; cursor: zoom-in; line-height: 0; }
.pp-shot img { width: 100%; height: auto; display: block; }
.pp-shot.is-none { display: flex; align-items: center; justify-content: center; height: 94px; font-size: 11px; line-height: 1.2; text-align: center; color: var(--text-secondary); cursor: default; border-style: dashed; }
.pp-page.is-big .pp-shot { width: 100%; order: 2; cursor: zoom-out; }   /* tapped: the page full width, under its heading */   /* the pickers are for a page typed by hand: a photo already says which page it is */

/* the paper */
.pp { max-width: 560px; margin: 0 auto; padding: 12px 12px 16px; background: #FFF; border-top: 4px solid var(--band, #1D1C1B); box-shadow: 0 1px 4px rgba(28, 25, 23, .1); }
.pp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 2px 0 10px; }
.pp-round { font-family: var(--font-display); font-size: 21px; color: var(--band); }
.pp-round b { color: #1D1C1B; }
.pp-meta { font-size: 11px; line-height: 1.45; text-align: right; color: var(--text-secondary); }
.pp-cap { display: block; margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #3B3936; }
.pp-teambox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin: 0 0 10px; padding: 10px 12px; background: var(--tint); }
.pp-teamname p, .pp-jr-name p { margin: 0; min-height: 1.5em; padding-bottom: 3px; border-bottom: 1px solid #6B6762; font-size: 14px; }
.pp-instr { margin: 0 0 10px; padding-bottom: 8px; font-size: 12px; line-height: 1.45; border-bottom: 1px solid var(--border-tertiary); }
/* digit boxes, one digit a box; the box being typed in is laid over them, its own text hidden */
.pp-digits { position: relative; display: inline-flex; gap: 3px; }
.pp-digits i { display: flex; align-items: center; justify-content: center; width: 26px; height: 32px; box-sizing: border-box; border: 1px solid #3B3936; background: #FFF;
  font-style: normal; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #1D1C1B; }
.pp-digits.is-3 i { width: 34px; height: 44px; font-size: 26px; }
.pp .pp-digits input, .pp .pp-digits input.kp-on { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); box-sizing: border-box; margin: 0; padding: 0;
  border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; cursor: pointer; }
.pp .pp-digits input.kp-on { outline: 3px solid var(--brand-5, #E09A2E); outline-offset: 0; }
.pp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.pp-col { display: grid; gap: 4px; align-content: start; min-width: 0; }
.pp-row { position: relative; display: grid; grid-template-columns: 26px auto minmax(0, 1fr); align-items: center; gap: 4px 6px; padding: 3px 2px; scroll-margin: 12px; }
.pp-l { font-size: 14px; font-weight: 700; }
.pp-crop { grid-column: 1 / -1; display: block; width: 100%; height: auto; border: 1px solid var(--border-tertiary); }
.pp-row.unsure, .pp-row.todo { background: var(--brand-1, #FAF1E6); box-shadow: inset 3px 0 var(--brand-5, #E09A2E); }
.pp-w.is-blank .pp-digits i { background: #F1EEEA; border-style: dashed; }
.pp-w.is-blank .pp-digits::before { content: "blank"; position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--text-secondary); pointer-events: none; }
/* bubbles, as on the paper; the dash after D is a blank on purpose */
.pp-bub { grid-template-columns: 26px minmax(0, 1fr); }
.pp-bub > input { position: absolute; left: 0; top: 0; width: 28px; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.pp-bub:has(input.kp-on), .pp-q:has(input.kp-on) { outline: 3px solid var(--brand-5, #E09A2E); outline-offset: 1px; }
.pp-pills { display: flex; gap: 3px; min-width: 0; }
.pp-pills button { flex: 1 1 0; min-width: 0; height: 36px; padding: 0; border: 1px solid #6B6762; border-radius: 999px; background: #FFF;
  font-size: 13px; color: #6B6762; cursor: pointer; touch-action: manipulation; }
.pp-pills button.on { background: #1D1C1B; border-color: #1D1C1B; color: #FFF; font-weight: 700; }
.pp-pills .pp-none { flex-grow: .8; border-style: dashed; }
.pp-pills .pp-none.on { border-style: solid; }
.pp-bub.multi .pp-l::after { content: "all"; position: absolute; left: 3px; bottom: 0; font-size: 9px; color: var(--brand-7, #CE7E12); }
/* the Junior's page: the name line, the number sticker, then a box a question with its rings where the page has them */
.pp-jr { border-top: 4px solid; border-image: linear-gradient(90deg, #E8483F, #F2A33A, #F7D046, #42B36F, #5492F1, #8E5BD6) 1; }
.pp-jr-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.pp-jr-name { flex: 1; min-width: 0; }
.pp-jr-sticker { padding: 6px 8px; border: 1px dashed #8A8580; text-align: center; }
.pp-jr-title { margin: 8px 0 0; font-family: var(--font-display); font-size: 21px; text-align: center; }
.pp-jr-sub { margin: 2px 0 10px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; text-align: center; color: var(--text-secondary); }
.pp-qs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pp-q { position: relative; min-width: 0; padding: 8px 8px 10px; border: 1px solid rgba(28, 25, 23, .1); scroll-margin: 12px; }
.pp-q.is-wide { grid-column: 1 / -1; }
.in-scanner-app #rvRetake { display: none; }   /* "Retake photo" / "Photograph" is the phone camera's: in the scanner app, scan it again */
.sc-clear { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; background: #FDE2E0; border-bottom: 1px solid #D9534F; font-size: 14px; }
.sc-clear p { margin: 0; flex: 1 1 260px; }
.sc-clear .sc-clear-yes { background: #D9534F; border-color: #D9534F; color: #fff; }
.sc-clear-btn[hidden] { display: none; }
.pp-qimg { display: block; width: calc(100% - 70px); max-height: 240px; object-fit: contain; object-position: left top; margin: 2px 0 6px 34px; border-radius: 4px; background: #fff; }   /* the question as scanned, above its rings */
.pp-q.unsure { box-shadow: inset 0 0 0 2px var(--brand-5, #E09A2E); }
.pp-qn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #1D1C1B; color: #FFF; font-size: 12px; font-weight: 700; }
.pp-q > input { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.pp-rings { display: grid; justify-content: center; gap: 8px 16px; margin-top: 6px; }
.pp-ring { width: 52px; height: 52px; padding: 0; border: 2px solid #1D1C1B; border-radius: 50%; background: #FFF; font-size: 13px; font-weight: 600; color: #6B6762; cursor: pointer; touch-action: manipulation; }
.pp-ring.on { background: #1D1C1B; color: #FFF; }
.pp-q .pp-none { position: absolute; top: 7px; right: 7px; height: 28px; padding: 0 10px; border: 1px dashed #8A8580; border-radius: 999px; background: rgba(255, 255, 255, .75);
  font-size: 12px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.pp-q .pp-none + .pp-none { right: 72px; }
.pp-q .pp-none.on { background: #1D1C1B; border-style: solid; color: #FFF; }
/* the pad, under the sheet: how far along, Save, and the keys */
.kp-dock { flex: none; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: #E2DDD6; border-top: 1px solid var(--border-secondary); }
.kp-dock > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.kp-msg { margin-bottom: 6px; }
.kp-msg:empty { display: none; }
.kp-bar { display: flex; align-items: center; gap: 8px; }
.kp-prog { flex: 1; padding-left: 4px; font-size: 14px; color: var(--text-secondary); }
.kp-prog b { color: var(--text-primary); font-size: 16px; }
.kp-prog.all, .kp-prog.all b { color: var(--success-8, #1C7C48); }
.kp-dock.kp-closed .kp-keys { display: none; }   /* the pad opens when a box is tapped */
.kp-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }
.kp-keys button { min-height: 46px; padding: 0; border: 0; border-radius: 6px; background: #FFF; box-shadow: 0 1px 0 rgba(28, 25, 23, .25);
  font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text-primary); cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.kp-keys button:active { background: var(--neutral-4, #D8D2CA); }
.kp-keys .kp-word { font-family: var(--font-body); font-size: 14px; background: #C9C3BA; }
.kp-keys .kp-zero { grid-column: span 2; }
.kp-keys .kp-next { grid-column: span 2; font-family: var(--font-body); font-size: 16px; background: var(--neutral-13); color: var(--text-inverse-primary); }
.kp-keys button:disabled { opacity: .35; cursor: default; }
.kp-keys.is-letters { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.kp-keys.is-letters .kp-word { grid-column: span 3; }
.kp-keys.is-letters .kp-next { grid-column: span 3; }
.kp-keys.is-4 .kp-let { grid-column: span 3; }
.kp-keys.is-3 .kp-let { grid-column: span 4; }
.kp-keys .kp-let { min-height: 54px; font-size: 22px; }
.kp-keys .kp-let.on { background: #1D1C1B; color: #FFF; }
input.kp.kp-no { animation: kp-no .22s; }
@keyframes kp-no { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* after a save: a note near the bottom, and the sheet's box on the tracker pulses once (6-Nov-2026) */
.kp-toast { position: fixed; z-index: 10002; left: 50%; bottom: calc(var(--tabs-h, 67px) + 84px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 12px 18px; border-radius: 999px; background: var(--success-8, #1C7C48); color: #FFF; font-size: 16px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(28, 25, 23, .25); animation: kp-toast-in .25s ease-out; transition: opacity .4s, transform .4s; }
.kp-toast.out { opacity: 0; transform: translate(-50%, 8px); }
@keyframes kp-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.dg-seat.kp-pulse { animation: kp-pulse 1.1s ease-out; position: relative; z-index: 1; }
@keyframes kp-pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(28, 124, 72, .7); } 30% { transform: scale(1.25); } 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(28, 124, 72, 0); } }
/* Leaderboards, three grades side by side (Karan, 23-Oct): a wider page, one column a grade; stacked on a phone */
body:has(.lbd) .wrap { max-width: 1280px; }
.lb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); padding: var(--space-16) var(--space-16) var(--space-20); }
.lb-col { min-width: 0; background: var(--neutral-1); border: 1px solid var(--border-tertiary); display: flex; flex-direction: column; }
.lb-colhead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid var(--border-tertiary); }
.lb-colhead h3 { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.lb-colhead span { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.lb-col .lb { padding: var(--space-4) var(--space-16) var(--space-8); }
.lb-col .lb-row { grid-template-columns: 2.3rem minmax(0, 1fr) auto; gap: var(--space-8); padding: 10px 0; }
.lb-col .lb-row.m1 { margin: 0 calc(-1 * var(--space-16)); padding-left: var(--space-16); padding-right: var(--space-16); }
.lb-col .lb-row[class*=" m"] .lb-rank { width: 30px; height: 30px; font-size: 14px; }
.lb-col .lb-rank { font-size: 17px; }
.lb-col .lb-team b { font-size: 15.5px; line-height: 1.25; }
.lb-col .lb-kids { font-size: 13px; color: var(--text-secondary); }
.lb-col .lb-tags { margin-top: 5px; gap: 5px; }
.lb-col .lb-num, .lb-col .lb-city { font-size: 11px; padding: 4px 8px; }
.lb-col .lb-team .lb-bar { max-width: none; margin-top: 6px; height: 5px; }
.lb-col .lb-split { font-size: 11px; gap: 2px 8px; }
.lb-col .lb-pts b { font-size: 21px; } .lb-col .lb-pts small { font-size: 11px; }
.lb-col .lb-more { padding: 0 var(--space-16) var(--space-16); margin-top: auto; }
.lb-col .lb-more .btn { width: 100%; }
.lb-none { margin: 0; padding: var(--space-24) var(--space-16); color: var(--text-secondary); font-size: 14px; text-align: center; }
@media (max-width: 900px) {
  .lb-cols { grid-template-columns: minmax(0, 1fr); padding: var(--space-12); gap: var(--space-12); }
}
/* Leaderboard page, focus on the board (Karan, 23-Oct): room chooser in the top bar, headline centred, no footer */
.lb-top .wrap { height: auto; min-height: 52px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.lb-top-l { display: flex; align-items: center; gap: var(--space-16); min-width: 0; }
.lb-top .lb-where { flex: 0 1 260px; }
.lb-top .lb-where select { height: 36px; font-size: 14px; }
.lb-hero { text-align: center; padding: var(--space-40) 0 var(--space-32); }
.lb-hero h1 { margin: 0; }
.lb-where-line { margin: var(--space-12) 0 0; font-size: 17px; color: var(--text-inverse-primary); opacity: .8; }
.lbd { padding-bottom: var(--space-32); }
@media (max-width: 640px) {
  .lb-top .lb-where { flex: 1 1 100%; }
  .lb-hero { padding: var(--space-24) 0 var(--space-20); }
  .lb-where-line { font-size: 15px; }
}

/* ---- The MathFit Report (/t/<token>/report; redesigned 1-Nov-2026): a parent's phone first. Its own header, a dark
   opening card with the total in a ring and the two ranks, the team's shape across the four pillars, each pillar, the
   strongest pillar and the next step. Round colours come from scoring.COLOURS as --c / --t / --d. ---- */
body.rpp { background: var(--neutral-1); }
.rpp main > .wrap { max-width: 600px; padding-top: var(--space-20); }
.rp-top { background: var(--neutral-13, #1C1917); }
.rp-top-in { max-width: 600px; margin: 0 auto; padding: 12px var(--wrap-pad); display: flex; align-items: center; justify-content: space-between; }
.rp-logo { height: 34px; width: auto; display: block; }
.rp-pill { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--neutral-13, #1C1917);
  background: var(--brand-5, #ECA548); padding: 7px 12px; border-radius: var(--radius-full); }
.rp-foot { text-align: center; font-size: 12px; color: var(--text-secondary); padding: var(--space-24) 0 var(--space-32); }
.rp2 > * + * { margin-top: var(--space-16); }
.rp-hero { background: var(--neutral-13, #1C1917); color: var(--text-inverse-primary, #FAF8F5); padding: 26px 24px 24px;
  border-top: 6px solid; border-image: linear-gradient(90deg, var(--f) 0 25%, var(--u) 25% 50%, var(--a) 50% 75%, var(--r) 75%) 1; }
.rp-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.05; letter-spacing: -.015em; margin: 0; }
.rp-kids { font-family: var(--font-display); font-size: 19px; margin-top: 6px; color: var(--brand-5, #ECA548); }
.rp-where { font-size: 13.5px; color: var(--neutral-5, #A8A29E); margin-top: 4px; }
.rp-score { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.rp-ring { position: relative; flex: none; width: 128px; height: 128px; }
.rp-ring svg { width: 100%; height: 100%; display: block; }
.rp-ring-bg { fill: none; stroke: rgba(250,248,245,.12); stroke-width: 10; }
.rp-ring-fg { fill: none; stroke: var(--brand-5, #ECA548); stroke-width: 10; stroke-linecap: round; }
.rp-ring-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rp-ring-n b { font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1; }
.rp-ring-n span { font-size: 12px; color: var(--neutral-5, #A8A29E); margin-top: 2px; }
.rp-ranks { display: grid; gap: 12px; flex: 1; min-width: 0; }
.rp-rank b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.05; }
.rp-rank span { display: block; font-size: 13px; color: var(--neutral-5, #A8A29E); line-height: 1.35; }
.rp-wait { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(250,248,245,.14); }
.rp-wait b { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.rp-wait p { color: var(--neutral-5, #A8A29E); font-size: 14px; margin: 6px 0 0; line-height: 1.45; }
.rp-wait-go { display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: #FAF8F5; color: #1C1917; font-weight: 600; font-size: 14px; text-decoration: none; }
#round-scores { scroll-margin-top: 72px; }
.rp-dots { display: flex; gap: 6px; margin-top: 14px; }
.rp-dot { width: 30px; height: 6px; background: rgba(250,248,245,.14); }
.rp-dot-sprint.on { background: var(--f); } .rp-dot-jury.on { background: var(--u); } .rp-dot-case.on { background: var(--a); } .rp-dot-summit.on { background: var(--r); }
.rp-card { background: var(--neutral-2); border: 1px solid var(--border-secondary); padding: 20px; }
.rp-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0; }
.rp-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }
.rp-radar { display: block; width: 100%; max-width: 380px; margin: 6px auto 0; }
.rp-grid { fill: none; stroke: var(--border-secondary); stroke-width: 1; }
.rp-axis { stroke: var(--border-secondary); stroke-width: 1; }
.rp-area { fill: color-mix(in srgb, var(--brand-5, #ECA548) 30%, transparent); stroke: var(--brand-6, #D98E2B); stroke-width: 2; stroke-linejoin: round; }
.rp-pt { stroke: #fff; stroke-width: 2; }
.rp-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 10px; font-size: 13.5px; }
.rp-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--c); margin-right: 7px; vertical-align: 1px; }
.rp-p { padding: 14px 0; border-top: 1px solid var(--border-tertiary); }
.rp-card h2 + .rp-p { margin-top: 10px; }
.rp-p-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.rp-p-top b { font-family: var(--font-display); font-weight: 500; font-size: 20px; display: block; }
.rp-p-top span { font-size: 12.5px; color: var(--d); font-weight: 600; }
.rp-p-pts { color: var(--text-secondary); white-space: nowrap; }
.rp-p-pts b { display: inline; font-size: 24px; color: var(--text-primary); }
.rp-p-bar { height: 8px; background: var(--t); margin: 9px 0 8px; border-radius: var(--radius-full); overflow: hidden; }
.rp-p-bar i { display: block; height: 100%; background: var(--c); border-radius: var(--radius-full); }
.rp-p p { margin: 0; font-size: 13.5px; color: var(--text-secondary); }
/* 15-Nov-2026: each question a tile, its number over its points; filled = right, dashed = missed */
.rp-qs { display: grid; gap: 3px; margin: 10px 0 6px; }
.rp-q { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 30px; min-width: 0; border-radius: 5px;
  background: var(--c); color: #fff; font-weight: 600; font-size: 12px; line-height: 1.05; }
.rp-q i { font-style: normal; }
.rp-q small { font-size: 9.5px; font-weight: 500; opacity: .9; }
.rp-q.rp-qmiss { background: var(--neutral-2); border: 1.3px dashed var(--c); color: var(--d); }
.rp-p p.rp-qsum { font-size: 12.5px; margin: 0 0 4px; }
.rp-qsum b { color: var(--d); font-weight: 600; }
.rp-qkey { display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; font-size: 12px; color: var(--text-secondary); --c: #8a8a8a; --d: #555; }
.rp-qkey .rp-q { width: 26px; height: 26px; flex: none; }
.rp-qdot { width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; background: var(--c); box-sizing: border-box; }
.rp-p-lb { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--d); text-decoration: none; }
.rp-p-lb:hover { text-decoration: underline; }
.rp-qdot.rp-qmiss { background: none; border: 1.3px dashed var(--c); }
.rp-pair { display: grid; grid-template-columns: 1fr; gap: 12px; }
.rp-best, .rp-next { padding: 18px 20px; }
.rp-best { background: var(--t); border-left: 6px solid var(--c); color: #1C1917; }
.rp-next { background: var(--neutral-2); border: 1px solid var(--border-secondary); border-left: 6px solid var(--text-primary); }
.rp-best > span, .rp-next > span { font-size: 12.5px; font-weight: 700; color: var(--d, var(--text-secondary)); }
.rp-best b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 28px; margin-top: 2px; }
.rp-best p, .rp-next p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.rp-links { display: flex; gap: 18px; justify-content: center; font-size: 14px; }
.rp-links a { color: var(--text-primary); }
.rp-private { text-align: center; font-size: 12px; color: var(--text-secondary); margin-top: 10px !important; }
@media (max-width: 400px) {
  .rp-hero { padding: 22px 18px 20px; }
  .rp-hero h1 { font-size: 30px; }
  .rp-score { gap: 16px; }
  .rp-ring { width: 112px; height: 112px; }
  .rp-ring-n b { font-size: 30px; }
  .rp-rank b { font-size: 24px; }
}

/* Room admin: the door and scan codes, side by side (1-Nov-2026). The link copied carries the code. */
.codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-16); }
.codes > .panel { margin: 0; }
.code-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.code-v code { font-size: 28px; letter-spacing: .06em; }
.code-link { font-size: 13px; margin: 4px 0 10px; overflow-wrap: anywhere; }
.code-link a { color: var(--text-secondary); }

/* The host's screen (/host/<slug>, 1-Nov-2026): the deck's look, readable from the back of a room on a projector */
body.hs { background: var(--neutral-1); }
.hs main > .wrap { max-width: 1280px; padding-top: var(--space-32); padding-bottom: var(--space-48); }
.hs-top { background: var(--neutral-13, #1C1917); color: var(--text-inverse-primary, #FAF8F5); }
.hs-wrap { max-width: 1280px; margin: 0 auto; padding: var(--space-20) var(--wrap-pad); display: flex; align-items: center; gap: var(--space-24); }
.hs-logo { height: 56px; width: auto; display: block; }
.hs-where { text-align: left; font-family: var(--font-display); line-height: 1.2; }
.hs-where b { display: block; font-weight: 500; font-size: 24px; }
.hs-where span { color: var(--neutral-5, #A8A29E); font-size: 16px; }
.hs-admin { color: var(--neutral-5, #A8A29E); font-size: 13px; }
.hs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-20); }
.hs-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--space-32); min-height: 200px;
  background: var(--neutral-2); border: 1px solid var(--border-secondary); color: var(--text-primary); text-decoration: none; }
.hs-tile::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--c, var(--border-secondary)); }
a.hs-tile:hover { border-color: var(--text-primary); }
.hs-k { font-family: var(--font-label, inherit); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); }
.hs-tile > b, .hs-tile > div > b { font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1.05; letter-spacing: -.01em; }
.hs-sub { color: var(--text-secondary); font-size: 16px; line-height: 1.4; margin-top: auto; max-width: 36ch; }
.hs-deck { --c: var(--brand-5, #ECA548); background: var(--neutral-13, #1C1917); color: var(--text-inverse-primary, #FAF8F5); border-color: transparent; }
.hs-deck .hs-k, .hs-deck .hs-sub { color: var(--neutral-5, #A8A29E); }
.hs-deck > b { color: var(--brand-5, #ECA548); }
a.hs-deck:hover { border-color: var(--brand-5, #ECA548); }
.hs-board { --c: linear-gradient(90deg, var(--f) 0 25%, var(--u) 25% 50%, var(--a) 50% 75%, var(--r) 75%); }
.hs-board::before { background: var(--c); }
.hs-cover { position: absolute; inset: 0; z-index: 1; }
.hs-board:hover { border-color: var(--text-primary); }
.hs-reveal { position: absolute; top: var(--space-24); right: var(--space-24); z-index: 2; margin: 0; }
.hs-report { --c: var(--u); flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-24); }
.hs-report > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hs-report > div:first-child > b { font-size: 36px; }
.hs-url { font-family: var(--font-display); font-size: 18px; margin-top: var(--space-8); overflow-wrap: anywhere; }
.hs-qr { flex: 0 0 170px; background: #fff; padding: 10px; }
.hs-qr svg { display: block; width: 100%; height: auto; }
.hs-status { --c: var(--r); gap: 0; }
/* start the show, on the deck's opening slide (Karan, 14-Nov-2026): the logo's four rings, huge and soft, the logo, the place */
.hs-show { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-16); min-height: 420px; margin-bottom: var(--space-20); overflow: hidden; background: var(--neutral-1, #FAF8F5); border: 1px solid var(--border-secondary); text-decoration: none; color: var(--text-primary); }
.hs-show:hover { border-color: var(--text-primary); }
.hs-rings { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; margin: -320px 0 0 -320px; pointer-events: none; animation: hs-spin 90s linear infinite; }
.hs-rings i { position: absolute; width: 62%; height: 62%; border-radius: var(--radius-full); opacity: .13; mix-blend-mode: multiply; animation: hs-breathe 9s ease-in-out infinite alternate; }
.hs-rings .r-f { left: 0; top: 0; background: #5492F1; } .hs-rings .r-u { right: 0; top: 0; background: #42B36F; animation-delay: -2.2s; }
.hs-rings .r-a { left: 0; bottom: 0; background: #EC9A32; animation-delay: -4.5s; } .hs-rings .r-r { right: 0; bottom: 0; background: #C26FE2; animation-delay: -6.7s; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
@keyframes hs-breathe { from { transform: scale(.94); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hs-rings, .hs-rings i { animation: none; } }
.hs-show-logo { position: relative; width: min(440px, 80%); height: auto; }
.hs-show-when { position: relative; text-align: center; padding: 0 var(--space-16); font-family: var(--font-display); font-size: 22px; color: var(--text-secondary); }
.hs-show-go { position: relative; margin-top: var(--space-16); padding: var(--space-16) var(--space-40, 40px); border-radius: var(--radius-full); background: var(--neutral-13, #1C1917); color: var(--brand-5, #ECA548); font-family: var(--font-display); font-size: 32px; font-weight: 500; }
.hs-show:hover .hs-show-go { background: var(--brand-5, #ECA548); color: var(--neutral-13, #1C1917); }
.hs-more { margin-top: var(--space-20); }
.hs-more summary { cursor: pointer; color: var(--text-secondary); font-size: 14px; }
.hs-more .hx-row { margin-top: var(--space-12); }
.hs-tools { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-20); }
.hs-status .hs-k { margin-bottom: var(--space-8); }
.hs-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--border-tertiary); font-size: 18px; }
.hs-row b { font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.hs-row small { font-size: 15px; color: var(--text-secondary); font-family: var(--font-body, inherit); }
.hs-row em { font-style: normal; font-size: 17px; color: var(--success-7, #1C7C48); }
.hs-row i { display: inline-block; width: 10px; height: 10px; border-radius: var(--radius-full); margin-right: 10px; vertical-align: 1px; background: var(--text-secondary); }
.hs-r-sprint i { background: var(--f); } .hs-r-jury i { background: var(--u); } .hs-r-case i { background: var(--a); } .hs-r-summit i { background: var(--r); }
@media (max-width: 760px) {
  .hs-grid { grid-template-columns: 1fr; }
  .hs-logo { height: 40px; }
  .hs-where b { font-size: 18px; }
  .hs-tile { padding: var(--space-24); min-height: 0; }
  .hs-tile > b, .hs-tile > div > b { font-size: 32px; }
  .hs-report { flex-direction: column; align-items: flex-start; }
  .hs-qr { flex-basis: auto; width: 160px; }
}

/* The parents' quiz (5-Nov-2026): the card on /me, the quiz, the host's row and the projector screen */
.hs-r-sprint { --rc: var(--f); } .hs-r-jury { --rc: var(--u); } .hs-r-case { --rc: var(--a); } .hs-r-summit { --rc: var(--r); }
.pq-card { display: flex; flex-direction: column; gap: var(--space-12); margin: 12px 0; padding: var(--space-16) var(--space-20);
  background: var(--neutral-13, #1C1917); color: var(--text-inverse-primary, #FAF8F5); text-decoration: none; border-left: 6px solid var(--brand-5, #ECA548); }
.pq-card-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }
.pq-card-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pq-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pq-step { display: flex; align-items: center; justify-content: center; gap: 3px; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 6px 2px;
  border-radius: var(--radius-full); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-step.k1 { --k: var(--f); } .pq-step.k2 { --k: var(--u); } .pq-step.k3 { --k: var(--a); } .pq-step.k4 { --k: var(--r); }
.pq-step.s-closed { background: var(--k); color: #fff; } .pq-step.s-closed::before { content: "✓"; }
.pq-step.s-open { background: #fff; color: var(--neutral-13, #1C1917); box-shadow: inset 0 0 0 2px var(--k); }
.pq-step.s-waiting { color: var(--neutral-6, #78716C); box-shadow: inset 0 0 0 1px rgba(250,248,245,.18); }
.pq-step svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
@media (max-width: 420px) { .pq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pq-step { font-size: 12.5px; padding: 7px 4px; } }
.pq-card-t b { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.pq-card-t span { color: var(--neutral-5, #A8A29E); font-size: 14px; }
.pq-card.live { border-left-color: var(--u); }
.pq-card.live .pq-card-t b::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: var(--radius-full);
  background: var(--u); animation: pq-pulse 1.4s ease-in-out infinite; }
@keyframes pq-pulse { 50% { opacity: .3; } }
.pq-me { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); }
.pq-me div { background: var(--neutral-13, #1C1917); color: var(--text-inverse-primary, #FAF8F5); padding: var(--space-16); display: flex; flex-direction: column; }
.pq-me b { font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1; color: var(--brand-5, #ECA548); }
.pq-me span { color: var(--neutral-5, #A8A29E); font-size: 14px; margin-top: 4px; }
.pq-round h2 { display: flex; align-items: center; gap: 10px; }
.pq-round summary b, .pq-round.waiting b { display: inline-flex; align-items: center; gap: 10px; }
.pq-round summary { cursor: pointer; }
.pq-round i { display: inline-block; width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--rc, var(--text-secondary)); }
.pq-round.open h2 { margin: var(--space-8) 0 4px; }
.pq-round.waiting { padding: var(--space-12) 0; border-top: 1px solid var(--border-secondary); }
.pq-q { margin-top: var(--space-12); }
.pq-q.done { padding-top: var(--space-16); margin-top: var(--space-16); border-top: 1px solid var(--border-tertiary); }
.pq-n { margin: 0 0 4px; }
.pq-text { font-family: var(--font-display); font-size: 20px; line-height: 1.3; margin: 0 0 var(--space-12); }
.pq-opts { display: grid; gap: var(--space-8); }
.pq-opt { text-align: left; padding: 14px var(--space-16); font: inherit; font-size: 16px; background: var(--bg-primary, #fff); color: var(--text-primary);
  border: 1px solid var(--border-secondary); cursor: pointer; }
.pq-opt.on { border-color: var(--text-primary); box-shadow: inset 4px 0 0 var(--rc, var(--brand-5, #ECA548)); font-weight: 600; }
.pq-num { display: flex; gap: var(--space-8); }
.pq-num input { flex: 1; min-width: 0; font-size: 18px; }
.pq-saved { margin: 6px 0 0; color: var(--success-7, #1C7C48); min-height: 1em; }
.pq-pts { margin: 4px 0; color: var(--success-7, #1C7C48); }
.pq-bars { margin-top: var(--space-8); display: grid; gap: 6px; }
.pq-bar { position: relative; display: flex; justify-content: space-between; gap: var(--space-12); padding: 8px 12px; font-size: 14px; background: var(--neutral-3, #EEEAE4); overflow: hidden; }
.pq-bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--rc, var(--brand-3, #FAD6AC)); opacity: .28; }
.pq-bar > span:not(.pq-bar-fill) { position: relative; }
.pq-bar.mine { box-shadow: inset 0 0 0 1px var(--text-primary); }
.pq-bar.right { font-weight: 700; } .pq-bar.right .pq-bar-l::after { content: "  ✓"; color: var(--success-7, #1C7C48); }
.pq-top ol { margin: var(--space-8) 0 0; padding: 0; list-style: none; counter-reset: pq; }
.pq-top li { counter-increment: pq; display: flex; justify-content: space-between; gap: var(--space-12); padding: 8px 0; border-top: 1px solid var(--border-tertiary); }
.pq-top li span::before { content: counter(pq) ".  "; color: var(--text-secondary); }
.pq-top li.mine { font-weight: 700; }
.hx { margin-top: var(--space-20); display: grid; gap: var(--space-8); }
.hx-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); padding: var(--space-12) var(--space-16); background: var(--neutral-2); border: 1px solid var(--border-secondary); }
.hx-row > b { min-width: 150px; font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.hx-row form { margin: 0; }
.hx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-pill { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-full); border: 1px solid var(--border-secondary);
  background: var(--bg-primary, #fff); color: var(--text-secondary); cursor: pointer; }
.hx-pill:hover { border-color: var(--text-primary); color: var(--text-primary); }
.hx-pill.on { background: var(--success-7, #1C7C48); border-color: var(--success-7, #1C7C48); color: #fff; }
.hx-pill.k1 { --k: var(--f); } .hx-pill.k2 { --k: var(--u); } .hx-pill.k3 { --k: var(--a); } .hx-pill.k4 { --k: var(--r); }
.hx-pill.s-open { color: var(--text-primary); box-shadow: inset 0 0 0 2px var(--k); border-color: transparent; }
.hx-pill.s-closed { background: var(--k); border-color: var(--k); color: #fff; }
.hx-pill:disabled { opacity: .45; cursor: default; }
.hx-reset { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 0; background: none; color: var(--text-secondary); text-decoration: underline; cursor: pointer; }
.hx-reset:hover { color: var(--error-7, #B42318); }
.hx-link { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text-primary); }
/* The parents' screen (Karan, 7-Nov-2026): white, like the deck. One question a slide: what the room said, then the comment */
body.pqs { background: var(--bg-primary, #FAF8F5); color: var(--text-primary); }
body.pqs main .wrap { max-width: none; padding: 0; }
/* the parents' screen (Karan, 9-Nov-2026): premium and inviting. The logo, big type, no eyebrow labels; the answers as thick
   bars that grow while their shares count up; the room's favourite in the round's colour, the right answer ticked on reveal.
   Every size is in --pu, a hundredth of the biggest 16:9 stage that fits the screen, so a tall or narrow projector reads the
   same as a wide one (Karan: questions must be well readable) */
body.pqs { overflow: hidden; }
body.pqs main { height: 100vh; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
/* one 16:9 stage, as big as the window allows and centred in it: the logo, the count and the dots sit inside it, so a tall
   or wide window only adds plain margin (Karan, 9-Nov-2026) */
.pqs-deck { --pu: min(1vw, 1.7778vh); position: relative; width: calc(var(--pu) * 100); height: calc(var(--pu) * 56.25); cursor: pointer; overflow: hidden;
  background: radial-gradient(45% 55% at 82% 22%, color-mix(in srgb, var(--rc) 9%, transparent), transparent); }
.pqs-logo { position: absolute; top: calc(var(--pu) * 3); left: calc(var(--pu) * 6); height: calc(var(--pu) * 4.4); width: auto; z-index: 2; }
/* the slide stops above the footer strip (the count and the dots), so nothing in it can reach them */
.pqs-slide { position: absolute; inset: 0 0 calc(var(--pu) * 7.5) 0; display: flex; flex-direction: column; justify-content: safe center; gap: calc(var(--pu) * 2.2);
  padding: calc(var(--pu) * 10) calc(var(--pu) * 6) calc(var(--pu) * 1);
  opacity: 0; transform: translateY(calc(var(--pu) * 1.2)); pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
.pqs-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.pqs-h { font-family: var(--font-display); font-weight: 500; font-size: calc(var(--pu) * 8); line-height: .98; letter-spacing: -.03em; margin: 0; max-width: 12ch; }
.pqs-h em { font-style: normal; color: var(--rc); }
.pqs-round { display: inline-flex; align-items: center; gap: var(--pu); margin: 0; font-family: var(--font-display); font-size: calc(var(--pu) * 2.4); color: var(--text-secondary); }
.pqs-round i { width: calc(var(--pu) * 1.2); height: calc(var(--pu) * 1.2); border-radius: var(--radius-full); background: var(--rc); }
.pqs-sub { font-size: calc(var(--pu) * 2.2); line-height: 1.35; color: var(--text-secondary); margin: 0; max-width: 40ch; }
.pqs-q { font-family: var(--font-display); font-weight: 500; font-size: calc(var(--pu) * 4.4); line-height: 1.08; letter-spacing: -.02em; margin: 0; max-width: 24ch; text-wrap: balance; }
.pqs-lead { font-size: calc(var(--pu) * 2); line-height: 1.35; color: var(--text-secondary); margin: 0 0 calc(var(--pu) * -1); max-width: 64ch; }
/* the answers: a thick rounded bar each, the label above, the share big at the right */
.pqs-bars { display: grid; gap: calc(var(--pu) * 1.6); }
.pqs-bar { display: grid; grid-template-columns: minmax(0, 40%) 1fr calc(var(--pu) * 8.5); align-items: center; column-gap: calc(var(--pu) * 2); }
.pqs-l { font-size: calc(var(--pu) * 2.5); line-height: 1.2; color: var(--text-primary); display: flex; align-items: center; gap: var(--pu); }
.pqs-n { font-family: var(--font-display); font-weight: 500; font-size: calc(var(--pu) * 3.6); line-height: .9; color: var(--text-tertiary, #A8A29E); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
.pqs-track { grid-column: 2; grid-row: 1; height: calc(var(--pu) * 1.6); border-radius: var(--radius-full); background: var(--neutral-2, #F0EDE8); overflow: hidden; }
.pqs-fill { display: block; height: 100%; width: 0; border-radius: var(--radius-full); background: var(--neutral-4, #D6D3D1);
  transition: width 1.1s cubic-bezier(.2,.8,.2,1) calc(.2s + var(--i, 0) * .12s); }
.pqs-slide.on .pqs-fill { width: max(var(--w), 1.2%); }
.pqs-bar.fav .pqs-l { font-weight: 600; }
.pqs-bar.fav .pqs-n { color: var(--rc); }
.pqs-bar.fav .pqs-fill { background: var(--rc); }
.pqs-ok { display: none; flex: none; width: calc(var(--pu) * 2.6); height: calc(var(--pu) * 2.6); border-radius: var(--radius-full); background: #28995A; color: #fff;
  font-style: normal; font-weight: 700; font-size: calc(var(--pu) * 1.5); align-items: center; justify-content: center; }
.pqs-slide.revealed .pqs-bar.right .pqs-ok { display: inline-flex; }
.pqs-slide.revealed .pqs-bar.right .pqs-l { font-weight: 600; }
/* a picture beside the question, where one helps (Karan, 9-Nov-2026) */
.pqs-head { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--pu) * 4); }
.pqs-head .pq-art { flex: none; height: calc(var(--pu) * 15); width: auto; max-width: calc(var(--pu) * 34); color: var(--text-primary); }
.pqs-card .pq-art { grid-column: 1 / -1; height: calc(var(--pu) * 6); width: auto; max-width: 100%; justify-self: start; color: var(--text-primary); }
/* three sample questions: a card each, the math big, its share and bar at the foot */
.pqs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: calc(var(--pu) * 2); }
.pqs-card { grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr auto; align-items: start; row-gap: calc(var(--pu) * 1.2);
  padding: calc(var(--pu) * 2) calc(var(--pu) * 2.2); background: var(--bg-secondary, #F3F0EB); }
.pqs-card.fav { background: color-mix(in srgb, var(--rc) 12%, var(--bg-primary, #FAF8F5)); }
.pqs-num { font-style: normal; font-family: var(--font-display); font-weight: 500; font-size: calc(var(--pu) * 1.6); width: calc(var(--pu) * 3.2); height: calc(var(--pu) * 3.2);
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); background: var(--bg-primary, #FAF8F5); color: var(--text-secondary); }
.pqs-card.fav .pqs-num { background: var(--rc); color: #fff; }
.pqs-cq { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 500; font-size: calc(var(--pu) * 2.7); line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.pqs-card .pqs-n { grid-row: 1; grid-column: 2; justify-self: end; font-size: calc(var(--pu) * 4); }
.pqs-slide:has(.pqs-cards) .pqs-q { font-size: calc(var(--pu) * 4); }
.pqs-card .pqs-track { grid-column: 1 / -1; grid-row: auto; background: var(--bg-primary, #FAF8F5); }
/* a number: the room's guess against what happened, as two big cards */
.pqs-vs { display: flex; gap: calc(var(--pu) * 2); }
.pqs-vs > div { display: flex; flex-direction: column; gap: var(--pu); padding: calc(var(--pu) * 2.6) calc(var(--pu) * 3.2); min-width: calc(var(--pu) * 24); background: var(--bg-secondary, #F3F0EB); }
.pqs-vs > div.kid { background: color-mix(in srgb, var(--rc) 14%, var(--bg-primary, #FAF8F5)); }
.pqs-vs span { font-size: calc(var(--pu) * 2); color: var(--text-secondary); }
.pqs-vs b { font-family: var(--font-display); font-weight: 500; font-size: calc(var(--pu) * 9); line-height: .85; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pqs-vs .kid b { color: var(--rc); }
.pqs-spot { font-size: calc(var(--pu) * 2.2); margin: 0; } .pqs-spot b { font-family: var(--font-display); font-weight: 500; color: var(--rc); font-size: calc(var(--pu) * 3); }
.pqs-count { position: absolute; bottom: calc(min(1vw, 1.7778vh) * -5); left: calc(var(--pu) * 6); font-size: calc(var(--pu) * 1.4); color: var(--text-secondary); margin: 0; }
.pqs-count b { font-family: var(--font-display); font-weight: 500; color: var(--text-primary); font-size: calc(var(--pu) * 1.9); }
/* a prediction: the spread of the parents' guesses as columns; the children's average, one press later, a line across them */
.pqs-pred { display: grid; grid-template-columns: 1fr auto; gap: calc(var(--pu) * 4); align-items: end; }
.pqs-slide:has(.pqs-pred) .pqs-q { font-size: calc(var(--pu) * 3.8); max-width: 34ch; }
.pqs-hist { position: relative; display: grid; grid-template-columns: repeat(var(--k), 1fr); gap: calc(var(--pu) * .8); height: calc(var(--pu) * 17); padding-bottom: calc(var(--pu) * 2.4); }
.pqs-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: calc(var(--pu) * .5); height: 100%; }
.pqs-cn { position: relative; z-index: 1; padding: 0 calc(var(--pu) * .3); background: var(--bg-primary, #FAF8F5); font-family: var(--font-display); font-weight: 500; font-size: calc(var(--pu) * 1.8); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.pqs-cb { width: 100%; height: calc(var(--h) * .66); min-height: 2px; background: var(--neutral-4, #D6D3D1);
  transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.8,.2,1) calc(.15s + var(--i, 0) * .06s); }
.pqs-slide.on .pqs-cb { transform: none; }
.pqs-cx { font-size: calc(var(--pu) * 1.7); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pqs-axis { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; margin: 0; font-size: calc(var(--pu) * 1.4); color: var(--text-secondary); }
.pqs-mark { position: absolute; top: 0; bottom: calc(var(--pu) * 4.6); width: calc(var(--pu) * .4); margin-left: calc(var(--pu) * -.2); background: var(--rc);
  opacity: 0; transition: opacity .5s ease; }
.pqs-slide.revealed .pqs-mark { opacity: 1; }
.pqs-side { display: flex; gap: calc(var(--pu) * 1.4); }
.pqs-side > div { display: flex; flex-direction: column; gap: calc(var(--pu) * .5); padding: calc(var(--pu) * 1.6) calc(var(--pu) * 2); min-width: calc(var(--pu) * 15); background: var(--bg-secondary, #F3F0EB); }
.pqs-side > div.kid { background: var(--rc); color: #fff; }
.pqs-side span { font-size: calc(var(--pu) * 1.6); }
.pqs-side b { font-family: var(--font-display); font-weight: 500; font-size: calc(var(--pu) * 5.2); line-height: .9; font-variant-numeric: tabular-nums; }
.pqs-side small { font-size: calc(var(--pu) * 1.4); opacity: .7; }
/* the comment, one press later: a soft card in the round's colour */
.pqs-step { opacity: 0; transform: translateY(calc(var(--pu) * .8)); transition: opacity .5s ease, transform .5s ease; }
.pqs-step.shown { opacity: 1; transform: none; }
.pqs-reveal { display: grid; gap: calc(var(--pu) * .8); padding: calc(var(--pu) * 1.8) calc(var(--pu) * 2.6); background: color-mix(in srgb, var(--rc) 9%, var(--bg-primary, #FAF8F5));
  border-left: calc(var(--pu) * .5) solid var(--rc); }
.pqs-say { font-size: calc(var(--pu) * 2.3); line-height: 1.3; font-weight: 600; margin: 0; color: var(--text-primary); }
.pqs-why { font-size: calc(var(--pu) * 2); line-height: 1.4; margin: 0; color: var(--text-secondary); }
.pqs-kids { font-family: var(--font-display); font-weight: 500; font-size: calc(var(--pu) * 2.6); line-height: 1.25; margin: 0; color: var(--text-primary); }
.pqs-dots { position: absolute; bottom: calc(var(--pu) * 3); right: calc(var(--pu) * 6); display: flex; gap: calc(var(--pu) * .5); }
.pqs-dots i { width: calc(var(--pu) * .7); height: calc(var(--pu) * .7); border-radius: var(--radius-full); background: var(--neutral-3, #E7E5E4); transition: background .3s, width .3s; }
.pqs-dots i.on { width: calc(var(--pu) * 2); background: var(--rc); }
.pqs-hint { position: fixed; bottom: .6vw; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--text-tertiary, #A8A29E); margin: 0; opacity: 0; transition: opacity .3s; }
body.pqs:hover .pqs-hint { opacity: 1; }
.pqs-hint a { color: inherit; }
@media (max-width: 760px) {
  .pq-card-row { flex-direction: column; align-items: stretch; }
}

/* Event managers (/manage/<slug>, 1-Nov-2026) */
.mg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-12); }
.mg-kpis .kpi-card-value { font-size: 28px; }
.mg-live { font-size: 16px; color: var(--success-7, #1C7C48); }
.mg-k-sprint { border-top: 4px solid var(--f); } .mg-k-jury { border-top: 4px solid var(--u); }
.mg-k-case { border-top: 4px solid var(--a); } .mg-k-summit { border-top: 4px solid var(--r); }
.mg-table-wrap { padding: 0; overflow-x: auto; }
.mg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mg-table th, .mg-table td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--border-tertiary); vertical-align: top; }
.mg-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); border-top: 0; }
.mg-table .num { text-align: right; white-space: nowrap; }
.mg-table tr:target { background: var(--neutral-3, #F1ECE4); }
.mg-kid { white-space: nowrap; } .mg-kid small { color: var(--text-secondary); }
.mg-kid.in small { color: var(--success-7, #1C7C48); } .mg-kid.no small { color: var(--text-warning, #964217); }
.mg-cam { color: var(--text-secondary); font-size: 11px; }
.mg-sheet { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-20); align-items: start; }
.mg-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--border-secondary); }
.mg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.mg-grid label { display: flex; align-items: center; gap: 8px; }
.mg-grid span { width: 2.6em; font-weight: 700; }
.mg-grid input { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid var(--border-secondary); background: var(--neutral-1); font: inherit; }
@media (max-width: 760px) { .mg-sheet { grid-template-columns: 1fr; } }
.mgr-in { padding: 8px 10px; border: 1px solid var(--border-secondary); background: var(--neutral-1); font: inherit; min-width: 0; }

/* ---- Event-day roles (1-Nov-2026): check-in, scanning, manager, host and their code screens share one branded header
   (the MathFit Open logo, the role, the event) and a colour for the role, from the round colours. Lightweight: no images
   beyond a 9 KB logo. ---- */
body.role { background: var(--neutral-1); }
.role-door { --role: var(--f); } .role-scan { --role: var(--u); } .role-manager { --role: var(--a); } .role-host { --role: var(--r); }
.rh { background: var(--neutral-13, #1C1917); color: var(--text-inverse-primary, #FAF8F5); border-bottom: 4px solid var(--role, var(--brand-5)); }
.rh-in { max-width: 1120px; margin: 0 auto; padding: 12px var(--wrap-pad); display: flex; align-items: center; gap: var(--space-12); min-height: 60px; }
.rh-logo { height: 36px; width: auto; display: block; }
.rh-where { text-align: left; line-height: 1.25; min-width: 0; }
.rh-where b { font-family: var(--font-display); font-weight: 500; font-size: 17px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-where span { font-size: 13px; color: var(--neutral-5, #A8A29E); }
.rh-admin { color: var(--neutral-5, #A8A29E); font-size: 12.5px; white-space: nowrap; }
.role main { padding-top: 0; }   /* staff pages: the page starts just under the header, not 56px down (6-Nov-2026) */
.role main > .wrap { padding-top: var(--space-16); }
.rh ~ main:has(.door-bar), .role main:has(.door-bar) > .wrap { padding-top: 0; }   /* the count bar meets the header */
@media (max-width: 520px) {
  .rh-in { gap: 10px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
  .rh-logo { height: 30px; }
  .rh-where b { font-size: 14px; } .rh-where span { font-size: 11.5px; }
  .rh-admin { display: none; }
}
/* Which event this is: sticks on every staff page, so two events in one city on one day can't be mixed up. --ev-strip-h is what the count bar sits under. */
:root { --ev-strip-h: 52px; }
.ev-strip { position: sticky; top: 0; z-index: 6; height: var(--ev-strip-h); box-sizing: border-box; display: flex; align-items: center; background: var(--neutral-13, #1C1917); color: var(--text-inverse-primary, #FAF8F5); border-bottom: 1px solid rgba(250,248,245,.14); }
.ev-strip-in { position: relative; display: flex; align-items: center; gap: var(--space-12); width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--wrap-pad); min-width: 0; line-height: 1.3; }
/* Event Staff outside the event's hours: a note under the strip; the actions' buttons are disabled by _view_only.html. */
.view-only { max-width: 1120px; margin: var(--space-8, 8px) auto 0; padding: var(--space-8, 8px) var(--wrap-pad); box-sizing: border-box; background: #FEF3C7; color: #78350F; border-radius: 8px; font-size: 14px; line-height: 1.4; }
.is-view-only form button:disabled, .is-view-only button:disabled { opacity: .45; cursor: not-allowed; }
.ev-strip-id { flex: 1 1 auto; min-width: 0; }
.ev-switch { flex: none; }
.ev-switch summary { list-style: none; cursor: pointer; padding: 6px 10px; border: 1px solid rgba(250,248,245,.4); border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ev-switch summary::-webkit-details-marker { display: none; }
.ev-switch[open] summary { background: var(--text-inverse-primary, #FAF8F5); color: var(--neutral-13, #1C1917); }
.ev-switch-list { position: absolute; top: calc(100% + 8px); left: var(--wrap-pad); right: var(--wrap-pad); background: var(--neutral-13, #1C1917); border: 1px solid rgba(250,248,245,.24); max-height: 60vh; overflow-y: auto; }
.ev-switch-list a { display: block; padding: var(--space-12) var(--space-16); color: var(--text-inverse-primary, #FAF8F5); font-size: 14px; text-decoration: none; }
.ev-switch-list a + a { border-top: 1px solid rgba(250,248,245,.14); }
.ev-switch-list small { display: block; font-size: 12.5px; color: var(--neutral-5, #A8A29E); }
.ev-strip-name, .ev-strip-when { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-strip-name { font-size: 14px; }
.ev-strip-name b { font-weight: 600; }
.ev-band { margin-left: 4px; font-weight: 700; color: var(--brand-5); }
.ev-strip-when { font-size: 12.5px; color: var(--neutral-5, #A8A29E); }
.ev-strip ~ main .door-bar { top: var(--ev-strip-h); }
/* the one-bar staff header (14-Nov-2026): the event sits in the middle, Switch beside it */
.ev-one { --ev-strip-h: 64px; border-bottom: 4px solid var(--role, var(--brand-5)); }
body:has(.ev-one) { --ev-strip-h: 64px; }
.ev-one .ev-strip-in { justify-content: space-between; }
.ev-mid { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; align-items: center; gap: var(--space-12); }
.ev-mid .ev-strip-id { flex: 0 1 auto; text-align: center; }
.ev-mid .ev-switch summary { padding: 3px 9px; font-size: 12px; }
@media (max-width: 560px) { .ev-one .rh-logo { height: 28px; } .ev-mid { justify-content: flex-start; } .ev-mid .ev-strip-id { text-align: left; } .ev-mid .ev-strip-name b { display: none; } .ev-mid .ev-band { margin-left: 0; } }
.ev-stage { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 16px; vertical-align: 1px; color: #1D1C1B; background: #B9D8FF; }
.ev-stage.is-today { background: #FFE3A1; }
.ev-stage.is-running { background: #C2F5D6; }
.ev-stage.is-concluded { background: #D8D3CC; }
.ev-stage.is-cancelled { background: #FFB4B4; }
.ev-wiki { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-8) var(--space-16); margin: 0; font-size: 14px; }
.ev-wiki dt { font-weight: 600; }
.ev-wiki dd { margin: 0; }
.ev-regs { width: 100%; border: 0; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ev-regs th, .ev-regs td { padding: var(--space-8) 0; text-align: right; background: none; border: 0; border-bottom: 1px solid var(--border-secondary); }
.ev-regs th:first-child { text-align: left; }
.ev-regs thead th { font-weight: 400; color: var(--text-secondary); }
.ev-regs tbody th, .ev-regs tfoot th, .ev-regs tfoot td { font-weight: 600; }
.ev-regs tfoot th, .ev-regs tfoot td { border-bottom: 0; }
.ev-steps { margin: 0; padding: 0; list-style: none; counter-reset: ev-step; display: grid; gap: var(--space-12); font-size: 14px; }
.ev-steps li { counter-increment: ev-step; position: relative; padding-left: calc(var(--space-24) + var(--space-12)); }
.ev-steps li::before { content: counter(ev-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: var(--space-24); height: var(--space-24); border-radius: var(--radius-full); background: var(--brand-1, #FAF1E6); border: 1px solid var(--brand-3, #FAD6AC); font-weight: 600; font-size: 12px; }
.ev-steps b { display: block; }
.ev-checks { display: grid; gap: var(--space-8); font-size: 14px; }
.ev-checks label { display: flex; align-items: flex-start; gap: var(--space-12); cursor: pointer; }
.ev-checks input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand-5); }
.ev-checks label:has(input:checked) { color: var(--text-secondary); text-decoration: line-through; }
@media print { .rh, .ev-strip { display: none !important; } }

/* a page's own heading under the header: the role's colour above the title */
.rh-intro .rh-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); }
.rh-intro .rh-k::before { content: ""; display: inline-block; width: 18px; height: 4px; margin-right: 8px; vertical-align: 3px; background: var(--role, var(--brand-5)); }
.rh-intro h1 { font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; margin: 6px 0 0; }
.rh-intro p { margin: 6px 0 0; color: var(--text-secondary); font-size: 14px; }
@media (max-width: 520px) { .rh-intro h1 { font-size: 28px; } }

/* the code screens: one card, a big code field */
.rh-card { max-width: 440px; margin: var(--space-16) auto 0; background: var(--neutral-2); border: 1px solid var(--border-secondary);
  border-top: 6px solid var(--role, var(--brand-5)); padding: var(--space-32) var(--space-24); }
.rh-card .rh-intro { margin-bottom: var(--space-20); }
.rh-card label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.rh-code { width: 100%; font-family: var(--font-display); font-size: 28px; letter-spacing: .18em; text-align: center; padding: 12px;
  border: 1px solid var(--border-primary); background: var(--neutral-1); color: var(--text-primary); }
.rh-card input[type=email] { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--border-primary); background: var(--neutral-1); }
.rh-card .err { color: var(--text-error, #C8444F); font-size: 14px; margin-top: 8px; }
.rh-card .hint { color: var(--text-secondary); font-size: 13px; margin-top: 8px; line-height: 1.45; }
.rh-card .btn { margin-top: var(--space-16); }

/* how the room stands, by grade: host screen and manager page */
.rs { width: 100%; border-collapse: collapse; font-size: 15px; }
.rs th, .rs td { padding: 9px 8px; border-top: 1px solid var(--border-tertiary); text-align: right; white-space: nowrap; }
.rs thead th { border-top: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }
.rs tbody th { text-align: left; font-weight: 500; white-space: normal; }
.rs tbody th small { color: var(--text-secondary); font-weight: 400; font-size: 12px; margin-left: 4px; }
.rs-c b { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.rs-c small { color: var(--text-secondary); font-size: 13px; }
.rs-c i { font-style: normal; color: var(--success-7, #1C7C48); margin-left: 4px; font-size: 13px; }
.rs-full b { color: var(--success-7, #1C7C48); }
.rs td:last-child { background: var(--neutral-3, #F1ECE4); }
.rs-dot { display: inline-block; width: 9px; height: 9px; border-radius: var(--radius-full); margin-right: 8px; vertical-align: 1px; background: var(--text-secondary); }
.rs-sprint .rs-dot { background: var(--f); } .rs-jury .rs-dot { background: var(--u); } .rs-case .rs-dot { background: var(--a); } .rs-summit .rs-dot { background: var(--r); }
.rs-live { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--success-7, #1C7C48); background: var(--success-1, #E4F6EC); padding: 3px 7px; border-radius: var(--radius-full); }
.hs-status .rs { margin-top: var(--space-8); font-size: 17px; }
.hs-status .rs-c b { font-size: 24px; }
.mg-status { padding: var(--space-12) var(--space-16); overflow-x: auto; }
@media (max-width: 520px) {
  .rs { font-size: 13.5px; } .rs th, .rs td { padding: 8px 5px; }
  .rs-c b { font-size: 17px; } .rs tbody th small { display: none; }
  .rs-live { display: block; width: max-content; margin: 4px 0 0 17px; }
}
.rs-note { margin: 8px 0 0; font-size: 12.5px; color: var(--text-secondary); }
.rs-teams th, .rs-teams td { border-bottom: 2px solid var(--border-secondary); }   /* the rounds below count against this row */

/* ---- Admin, in the brand (1-Nov-2026): the MathFit Open logo in the header, and a compact room page ---- */
.adm-logo { height: 32px; width: auto; display: block; }
.adm-top .adm-tag { color: var(--text-inverse-primary, #FAF8F5); border-color: var(--brand-5); background: color-mix(in srgb, var(--brand-5) 28%, transparent); }
.top.adm-top .adm-nav a { font-size: 13.5px; }
.ah { gap: 0; }
.ah > * + * { margin-top: var(--space-16); }
.ah-head h1 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.15; margin: 4px 0 2px; }
.ah-head h1 > span:not(.st) { color: var(--text-secondary); font-size: 22px; margin-left: 4px; }
.ah-head h1 .st { font-size: 11px; vertical-align: 5px; margin-left: 6px; }
.ah-meta { font-size: 13px; color: var(--text-secondary); }
.ah-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ah-bar .btn { margin: 0; }
.ah-more { font-size: 13px; color: var(--text-secondary); margin-left: 6px; }
.ah-more a { color: var(--text-secondary); }
.ah-flash { border-color: var(--error-3, #C8444F); padding: 10px 14px; font-size: 14px; }
.ah-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border-secondary); background: var(--neutral-2); }
.ah-stats > div { padding: 10px 14px; border-left: 1px solid var(--border-tertiary); }
.ah-stats > div:first-child { border-left: 0; }
.ah-stats span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.ah-stats b { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.2; }
.ah-stats small { font-size: 13px; color: var(--text-secondary); font-family: var(--font-body, inherit); }
.ah-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.ah-code { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--neutral-2); border: 1px solid var(--border-secondary); border-left: 4px solid var(--c); }
.ah-code-door { --c: var(--f); } .ah-code-scan { --c: var(--u); } .ah-code-host { --c: var(--r); }
.ah-code > span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); width: 3.2em; }
.ah-code code { font-size: 19px; letter-spacing: .06em; flex: 1; }
.ah-link { font-size: 13px; color: var(--text-secondary); }
.ah-copy { font: inherit; font-size: 13px; font-weight: 600; padding: 5px 10px; border: 1px solid var(--border-primary); background: var(--neutral-1); cursor: pointer; }
.ah-mgr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
.ah-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-right: 4px; }
.ah-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 6px 4px 10px; border: 1px solid var(--border-secondary); border-radius: var(--radius-full); font-size: 13px; background: var(--neutral-1); }
.ah-chip button { border: 0; background: none; font-size: 16px; line-height: 1; cursor: pointer; color: var(--text-secondary); padding: 0 4px; }
.ah-add { display: flex; gap: 6px; flex: 1 1 360px; margin: 0; }
.ah-add .mgr-in { padding: 6px 10px; font-size: 14px; flex: 2 1 160px; }
.ah-add .mgr-in[name=name] { flex: 1 1 100px; }
.ah-hint { flex-basis: 100%; font-size: 12px; color: var(--text-secondary); }
.ah-side { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; font-size: 14px; }
.ah-fold { padding: 0; }
.ah-fold > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style-position: inside; }
.ah-fold[open] > summary { border-bottom: 1px solid var(--border-tertiary); }
.ah-fold > form, .ah-fold > table { margin: 0; }
.ah-fold > form { padding: 12px 14px; }
@media (max-width: 760px) {
  .ah-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ah-stats > div:nth-child(4) { border-left: 0; }
  .ah-stats > div:nth-child(n+4) { border-top: 1px solid var(--border-tertiary); }
  .ah-head h1 { font-size: 24px; } .ah-head h1 > span:not(.st) { font-size: 18px; }
  .adm-logo { height: 26px; }
}
.top.adm-top .adm-nav { overflow-x: auto; scrollbar-width: none; }
.top.adm-top .adm-nav::-webkit-scrollbar { display: none; }
.top.adm-top .adm-nav a { white-space: nowrap; }
@media (max-width: 760px) {
  .top.adm-top .adm-nav { justify-content: flex-start; gap: 2px; }
  .top.adm-top .adm-nav a { padding: var(--space-8) 10px var(--space-12); font-size: 13.5px; }
}
.adm-home h1 { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin: 0; }
body.adm main .ah-code code { white-space: nowrap; overflow-wrap: normal; }
.ah-codes { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.ah-teams .team-chips { padding: 12px 14px 4px; margin: 0; gap: 6px; }
.ah-teams .team-chips .chip { padding: 5px 12px; font-size: 13px; }
.ah-teams #teamList { font-size: 13.5px; }
.ah-teams #teamList .st { font-size: 10.5px; }
.ah-fold > summary .muted { font-weight: 400; margin-left: 6px; }

/* the room page's top card (1-Nov-2026): the event, three numbers, three buttons, everything else under More */
.ah-menu { position: relative; }
.ah-menu > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--border-primary); color: var(--text-primary); }
.ah-menu > summary::-webkit-details-marker { display: none; }
.ah-menu > summary::after { content: " ▾"; font-size: 11px; }
.ah-menu[open] > summary { background: var(--neutral-2); }
.ah-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px; background: var(--neutral-1); color: var(--text-primary);
  border: 1px solid var(--border-secondary); box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px 0; }
.ah-menu-list a { display: block; padding: 9px 16px; color: var(--text-primary); text-decoration: none; font-size: 14px; }
.ah-menu-list a:hover { background: var(--neutral-2); }
.ah-menu-list form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--border-tertiary); }   /* a post action at the foot */
.ah-menu-list form button { display: block; width: 100%; padding: 9px 16px; font: inherit; font-size: 14px; text-align: left; color: var(--text-primary); background: none; border: 0; cursor: pointer; }
.ah-menu-list form button:hover { background: var(--neutral-2); }
.ah-menu-list p { margin: 6px 0 0; padding: 8px 16px 4px; border-top: 1px solid var(--border-tertiary); font-size: 12px; color: var(--text-secondary); }
@media (max-width: 520px) {
}
.sc-sheet { display: block; font-size: 12px; margin-top: 2px; } .sc-sheet a { color: var(--text-secondary); }

/* the room page's managers (1-Nov-2026): a card in the manager colour, people as rows, the add form folded */
.ah-mgr { background: var(--neutral-2); border: 1px solid var(--border-secondary); padding: 10px 12px; }
.ah-mgr-h { display: flex; align-items: center; gap: 8px; }
.ah-mgr-h > b { font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.ah-mgr-h .ah-copy { margin-left: auto; }
.ah-mgr-note { font-size: 12px; color: var(--text-secondary); }
.ah-person { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 6px 0 0; border-top: 1px solid var(--border-tertiary); }
.ah-person > i { flex: none; width: 28px; height: 28px; border-radius: var(--radius-full); display: grid; place-items: center; font-style: normal;
  font-weight: 700; font-size: 13px; background: color-mix(in srgb, var(--a) 25%, transparent); color: var(--brand-8, #A45F00); }
.ah-person > span { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-person em { font-style: normal; color: var(--text-secondary); }
.ah-person button { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--text-secondary); padding: 2px 6px; }
.ah-person button:hover { color: var(--text-error, #C8444F); }
.ah-mgr-add { margin-top: 8px; }
.ah-mgr-add > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-primary); list-style: none; display: inline-block; }
.ah-mgr-add > summary::-webkit-details-marker { display: none; }
.ah-mgr-add[open] > summary { margin-bottom: 8px; }
.ah-mgr-add .ah-add { flex: none; }
.ah-mgr-add .ah-mgr-note { margin: 6px 0 0; }
.ah-mgr { display: block; }
.dr.is-paidmsg .dr-who b::after { content: ' — already paid to their leader, ask admin'; font-size: 12px; font-weight: 400; color: var(--text-warning, #964217); }
.ah-code > .ah-code-k { width: auto; flex: 0 1 15em; min-width: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.ah-code-k b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-primary); }
.ah-code-k small { display: block; font-size: 12px; color: var(--text-secondary); line-height: 1.3; }
.ah-codes { grid-template-columns: 1fr; }

/* ---- The teams board (/host/<slug>/teams, 1-Nov-2026): every team, who is in, which rounds are scored; on a projector ---- */
.tbp main > .wrap { max-width: 1280px; }
.tb-live { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--success-7, #1C7C48); margin-bottom: 12px; }
.tb-live span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-secondary); }
.tb-live i { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--u); animation: tbpulse 2s infinite; }
@keyframes tbpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.tb-stale .tb-live { color: var(--text-warning, #964217); } .tb-stale .tb-live i { background: var(--a); animation: none; }
.tb-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tb-sum > div { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; background: var(--neutral-2); border: 1px solid var(--border-secondary); }
.tb-sum b { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1; }
.tb-sum span { font-size: 13px; color: var(--text-secondary); }
.tb-big { background: var(--neutral-13, #1C1917) !important; color: var(--text-inverse-primary, #FAF8F5); border-color: transparent !important; }
.tb-big span { color: var(--neutral-5, #A8A29E) !important; }
.tb-k i { width: 10px; height: 10px; border-radius: var(--radius-full); align-self: center; }
.tb-green i { background: #2E9E5B; } .tb-yellow i { background: #E3B23C; } .tb-red i { background: #D9534F; }
.tb-k.tb-r-sprint i { background: var(--f); } .tb-k.tb-r-jury i { background: var(--u); } .tb-k.tb-r-case i { background: var(--a); } .tb-k.tb-r-summit i { background: var(--r); }
.tb-grade { margin-bottom: 22px; }
.tb-grade h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0 0 8px; }
.tb-grade h2 span { font-family: var(--font-body, inherit); font-size: 13px; color: var(--text-secondary); margin-left: 6px; }
.tb-at, .tb-empty { font-size: 12px; color: var(--text-secondary); }
/* 15-Nov-2026: tiles as on the check-in grid, sized to fill the screen (--tbs, set by host_teams.html); a name on hover */
.tbp main > .wrap { max-width: 1880px; }
.tb-fs .hs-top, .tb-fs .ev-strip, .tb-fs .vo-bar { display: none; }
.tb-embed .hs-top, .tb-embed .ev-strip, .tb-embed .vo-bar, .tb-embed .tb-views, .tb-embed .tb-full, .tb-embed .tb-at { display: none; }
.tb-embed main { padding-top: 16px; }
.tb-embed .tb-key-in .muted { display: none; }
.tb-embed.tb-tabs .tb-views { display: flex; }
.tb-embed.tb-tabs main { padding-bottom: 56px; }   /* room for the deck's Close button */
.tb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.tb-bar .tb-live { margin: 0; }
.tb-views { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.tb-views button, .tb-full { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-full); border: 1px solid var(--border-secondary); background: var(--neutral-0, #FFF); color: var(--text-primary); cursor: pointer; }
.tb-views button.on { background: var(--neutral-13, #1C1917); border-color: var(--neutral-13, #1C1917); color: var(--neutral-0, #FFF); }
.tb-views .tbv-sprint.on { background: var(--f); border-color: var(--f); } .tb-views .tbv-jury.on { background: var(--u); border-color: var(--u); }
.tb-views .tbv-case.on { background: var(--a); border-color: var(--a); } .tb-views .tbv-summit.on { background: var(--r); border-color: var(--r); }
.tb-full { background: none; }
.tb-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: 14px; font-size: 14px; }
.tb-key span { display: inline-flex; align-items: center; gap: 6px; }
.tb-key .tbs { --tbs: 18px; border-width: 1px; }
.tb-key .tbr { width: 22px; flex: none; height: 8px; }
body[data-tb-view="in"] .tb-key-r, body:not([data-tb-view="in"]) .tb-key-in, body[data-tb-view="num"] .tb-key { display: none; }
/* the numbers view (15-Nov-2026): one table, big numbers, a bar a cell; only in that view */
.tbn { display: none; }
#board[data-view="num"] .tbn { display: block; }
#board[data-view="num"] .tb-sum, #board[data-view="num"] .tb-grade { display: none; }
.tbn-t { width: 100%; border-collapse: separate; border-spacing: calc(var(--tbs) * .12); table-layout: fixed; }
.tbn-t th, .tbn-t td { text-align: left; padding: calc(var(--tbs) * .2) calc(var(--tbs) * .28); }
.tbn-t thead th { font-family: var(--font-display); font-weight: 500; font-size: calc(var(--tbs) * .42); }
.tbn-t tbody th { font-size: calc(var(--tbs) * .36); font-weight: 700; white-space: nowrap; width: 22%; overflow: hidden; }
.tbn-t tbody th i { display: inline-block; width: .7em; height: .7em; border-radius: var(--radius-full); margin-right: .45em; vertical-align: .05em; }
.tbn-t td { background: var(--neutral-2); border: 1px solid var(--border-secondary); vertical-align: middle; white-space: nowrap; overflow: hidden; }
.tbn-t td b { font-family: var(--font-display); font-weight: 500; font-size: calc(var(--tbs) * .9); line-height: 1; }
.tbn-t td span { margin-left: .4em; font-size: calc(var(--tbs) * .34); color: var(--text-secondary); }
.tbn-t td em { display: block; height: calc(var(--tbs) * .12); margin-top: calc(var(--tbs) * .14); background: linear-gradient(90deg, var(--c, var(--u)) var(--p), var(--neutral-4, #E7E5E4) var(--p)); }
.tbn-t .tbn-all { background: var(--neutral-13, #1C1917); color: var(--neutral-0, #FFF); }
.tbn-t thead .tbn-all { background: none; color: inherit; }
.tbn-t td.tbn-all span { color: var(--neutral-5, #A8A29E); }
.tbn-in td { background: var(--neutral-0, #FFF); }
.tbn-sprint { --c: var(--f); } .tbn-jury { --c: var(--u); } .tbn-case { --c: var(--a); } .tbn-summit { --c: var(--r); }
.tbn-r th i { background: var(--c); }
.tbn-t td.tbn-done:not(.tbn-all) { background: color-mix(in srgb, var(--c) 14%, var(--neutral-0, #FFF)); border-color: var(--c); }
.tbn-t td.tbn-done b::after { content: " ✓"; font-size: .5em; color: var(--c); vertical-align: .4em; }
.tbn-note { margin: 4px 0 0; font-size: 14px; color: var(--text-secondary); }
body[data-tb-view="sprint"] .tb-key-r > [class^="tbk-"]:not(.tbk-sprint), body[data-tb-view="jury"] .tb-key-r > [class^="tbk-"]:not(.tbk-jury),
body[data-tb-view="case"] .tb-key-r > [class^="tbk-"]:not(.tbk-case), body[data-tb-view="summit"] .tb-key-r > [class^="tbk-"]:not(.tbk-summit) { display: none; }
#board[data-view="in"] .tb-sum > [class*="tb-r-"], #board:not([data-view="in"]) .tb-sum > :is(.tb-green, .tb-yellow, .tb-red) { display: none; }
#board[data-view="sprint"] .tb-sum > [class*="tb-r-"]:not(.tb-r-sprint), #board[data-view="jury"] .tb-sum > [class*="tb-r-"]:not(.tb-r-jury),
#board[data-view="case"] .tb-sum > [class*="tb-r-"]:not(.tb-r-case), #board[data-view="summit"] .tb-sum > [class*="tb-r-"]:not(.tb-r-summit) { display: none; }
#board { --tbs: 48px; }
.tb-grade h2 .tb-v { display: none; }
#board[data-view="in"] .tb-v-in, #board[data-view="all"] .tb-v-all, #board[data-view="sprint"] .tb-v-sprint, #board[data-view="jury"] .tb-v-jury,
#board[data-view="case"] .tb-v-case, #board[data-view="summit"] .tb-v-summit { display: inline; }
.tbg { display: grid; gap: calc(var(--tbs) * .16); }
#board[data-view="in"] .tbg-rounds, #board:not([data-view="in"]) .tbg-in { display: none; }
.tbg-in.is-solo { grid-template-columns: repeat(auto-fill, minmax(calc(var(--tbs) * 2.6), 1fr)); }
.tbg-in.is-pair { grid-template-columns: repeat(auto-fill, minmax(calc(var(--tbs) * 4.6), 1fr)); }
.tbg-rounds.is-solo { grid-template-columns: repeat(auto-fill, minmax(calc(var(--tbs) * 2.6), 1fr)); }
.tbg-rounds.is-pair { grid-template-columns: repeat(auto-fill, minmax(calc(var(--tbs) * 4.6), 1fr)); }
.tbt { display: flex; flex-direction: column; align-items: center; gap: calc(var(--tbs) * .08); padding: calc(var(--tbs) * .1); background: var(--neutral-2); border: 1px solid var(--border-secondary); min-width: 0; }
.tbt-n { font-family: var(--font-display); font-size: calc(var(--tbs) * .34); line-height: 1.1; color: var(--text-secondary); }
.tbt-seats { display: flex; gap: calc(var(--tbs) * .06); max-width: 100%; }
.tbs { display: inline-grid; place-items: center; min-width: var(--tbs); height: var(--tbs); padding: 0 .45em; box-sizing: border-box; border: 2px solid var(--border-primary); background: var(--neutral-0, #FFF); color: var(--text-secondary); font-size: calc(var(--tbs) * .32); font-style: normal; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* a first name (15-Nov-2026) */
.tbs-in { background: var(--success-8, #1C7C48); border-color: var(--success-8, #1C7C48); color: var(--neutral-0, #FFF); }
.tbs-absent { background: #FBE3E1; border-color: #D9534F; color: #B03A36; text-decoration: line-through; }
.tbs-none { border-style: dashed; background: none; width: calc(var(--tbs) * 1.6); }
.tbt-ini { font-size: calc(var(--tbs) * .32); font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tbt-rs { display: flex; gap: 3px; width: 100%; }
.tbr { flex: 1; height: calc(var(--tbs) * .2); background: var(--neutral-4, #E7E5E4); }
.tbr-sprint.on { background: var(--f); } .tbr-jury.on { background: var(--u); } .tbr-case.on { background: var(--a); } .tbr-summit.on { background: var(--r); }
/* one round alone: the tile fills in the round's colour once its sheet is scored */
#board:is([data-view="sprint"], [data-view="jury"], [data-view="case"], [data-view="summit"]) .tbt-rs { display: none; }
#board:is([data-view="sprint"], [data-view="jury"], [data-view="case"], [data-view="summit"]) .tbg-rounds .tbt { background: var(--neutral-0, #FFF); border: 2px dashed var(--border-primary); }
#board[data-view="sprint"] .tbt.s-sprint { --c: var(--f); } #board[data-view="jury"] .tbt.s-jury { --c: var(--u); }
#board[data-view="case"] .tbt.s-case { --c: var(--a); } #board[data-view="summit"] .tbt.s-summit { --c: var(--r); }
#board[data-view="sprint"] .tbt.s-sprint, #board[data-view="jury"] .tbt.s-jury, #board[data-view="case"] .tbt.s-case, #board[data-view="summit"] .tbt.s-summit {
  background: var(--c); border: 2px solid var(--c); color: var(--neutral-0, #FFF); }
#board[data-view="sprint"] .tbt.s-sprint .tbt-n, #board[data-view="jury"] .tbt.s-jury .tbt-n, #board[data-view="case"] .tbt.s-case .tbt-n, #board[data-view="summit"] .tbt.s-summit .tbt-n { color: inherit; }
/* the teams board's own hover words; admin pages use static/tips.js, so this stays inside #board (15-Nov-2026) */
#board [data-tip] { position: relative; cursor: default; }
#board [data-tip]:not([data-tip=""]):is(:hover, :focus)::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5; pointer-events: none;
  padding: 6px 10px; background: var(--neutral-13, #1C1917); color: var(--neutral-0, #FFF); font-family: var(--font-body); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; letter-spacing: 0; }
@media (max-width: 760px) {
  .tb-sum b { font-size: 20px; }
  .tb-views { margin-left: 0; }
}
.hs-board { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); margin-bottom: var(--space-20); padding: var(--space-20) var(--space-24); background: var(--neutral-13, #1C1917); color: var(--neutral-0, #FFF); text-decoration: none; border-left: 6px solid var(--u); }
.hs-board-t { display: flex; flex-direction: column; gap: 4px; }
.hs-board-t b { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.hs-board-t span { font-size: 14px; color: var(--neutral-5, #A8A29E); }
.hs-board-go { flex: none; padding: 10px 22px; border-radius: var(--radius-full); background: var(--brand-5, #ECA548); color: var(--neutral-13, #1C1917); font-weight: 700; }
.hs-board:hover .hs-board-go { background: var(--neutral-0, #FFF); }
.hs-status-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hs-teams { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.hs-status .rs-note { display: none; }   /* the host screen may be on the projector: no technical footnote there */
.rp-lab { font-size: 12.5px; font-weight: 700; } .rp-pc { font-size: 13px; fill: var(--text-primary); font-family: var(--font-display); }

/* the report's last pair (1-Nov-2026): strongest pillar and the one to grow, side by side, one short line each */
.rp-pair { grid-template-columns: 1fr 1fr; }
.rp-pc2 { background: var(--t, var(--neutral-2)); border-top: 5px solid var(--c, var(--text-primary)); padding: 16px 16px 18px; color: #1C1917; }
.rp-pc2 > span { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--d, var(--text-secondary)); }
.rp-pc2 > b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.1; margin: 4px 0 6px; }
.rp-pc2 > p { margin: 0; font-size: 14px; line-height: 1.4; color: #44403C; }
.rp-grow { background: var(--neutral-2); border: 1px solid var(--border-secondary); border-top: 5px solid var(--c, var(--text-primary)); }
.rp-grow > p { color: var(--text-primary); }
@media (max-width: 340px) { .rp-pair { grid-template-columns: 1fr; } }
.rp-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rp-pc2 > b { font-size: clamp(19px, 5.4vw, 24px); overflow-wrap: anywhere; }
.rp-pc2 { padding: 14px 14px 16px; }
.rp-pc2 > b { font-size: clamp(17px, 4.6vw, 24px); overflow-wrap: normal; white-space: nowrap; }
/* the report's evaluation call to action (1-Nov-2026) */
.rp-eval { background: var(--neutral-13, #1C1917); color: var(--text-inverse-primary, #FAF8F5); padding: 20px; text-align: center; }
.rp-eval b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; }
.rp-eval p { margin: 6px 0 14px; font-size: 14px; color: var(--neutral-5, #A8A29E); }
.rp-eval-btn { display: inline-block; padding: 12px 22px; font-weight: 700; font-size: 15px; text-decoration: none;
  background: var(--brand-5, #ECA548); color: var(--neutral-13, #1C1917); }
.rp-eval-btn:hover { background: var(--brand-4, #F2BC6E); }
.rp-eval { padding: 24px 20px 20px; border-top: 5px solid var(--brand-5, #ECA548); }
.rp-eval b { font-size: 24px; }
.rp-eval p { color: #D6D3D1; line-height: 1.5; max-width: 36ch; margin-left: auto; margin-right: auto; }
.rp-eval-pair { display: flex; justify-content: center; margin-bottom: 12px; }
.rp-eval-pair i { width: 38px; height: 38px; border-radius: var(--radius-full); display: grid; place-items: center; font-style: normal; font-weight: 700;
  background: var(--brand-5, #ECA548); color: var(--neutral-13, #1C1917); border: 3px solid var(--neutral-13, #1C1917); }
.rp-eval-pair i + i { margin-left: -10px; background: #C9A0F0; }
.rp-eval small { display: block; margin-top: 10px; font-size: 12px; color: var(--neutral-5, #A8A29E); }
.rp-rank em { display: block; font-style: normal; font-weight: 600; font-size: 14px; color: var(--text-inverse-primary, #FAF8F5); margin-top: 2px; }
.rp-rank span { font-size: 12.5px; }
.rp-eval-btn { font-size: 16px; padding: 13px 24px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-5, #ECA548) 25%, transparent); }
.rp-eval small { color: var(--brand-5, #ECA548); font-weight: 600; font-size: 12.5px; }

/* ---- The event report (/manage/<slug>/report, 1-Nov-2026): admin and managers, after the event; prints cleanly ---- */
.er main > .wrap, .er { max-width: 1100px; }
.er-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.er-final { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #2E9E5B; padding: 6px 12px; border-radius: var(--radius-full); }
.er-prog { font-size: 13px; color: var(--text-warning, #964217); }
.er-actions { display: flex; gap: 8px; margin: 14px 0 18px; flex-wrap: wrap; }
.er-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.er-nums > div { background: var(--neutral-2); border: 1px solid var(--border-secondary); padding: 12px 14px; }
.er-nums b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.1; }
.er-nums small { font-size: 14px; color: var(--text-secondary); font-family: var(--font-body, inherit); }
.er-nums span { font-size: 12.5px; color: var(--text-secondary); }
.er-sec { margin-top: 26px; }
.er-sec h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0 0 10px; }
.er-sub { font-size: 15px; margin: 18px 0 8px; }
.er-win { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.er-wcol { background: var(--neutral-2); border: 1px solid var(--border-secondary); padding: 12px 14px; }
.er-wcol h3 { margin: 0 0 8px; font-size: 15px; }
.er-w { padding: 6px 0; border-top: 1px solid var(--border-tertiary); }
.er-w span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.er-w b { font-size: 15px; } .er-w em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-secondary); }
.er-p1 span { color: var(--brand-8, #A45F00); } .er-r-sprint span { color: var(--f); } .er-r-jury span { color: var(--u); } .er-r-case span { color: var(--a); } .er-r-summit span { color: var(--r); }
.er-t { width: 100%; border-collapse: collapse; background: var(--neutral-2); border: 1px solid var(--border-secondary); font-size: 14px; }
.er-t th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); padding: 8px 10px; border-bottom: 1px solid var(--border-secondary); }
.er-t td { padding: 8px 10px; border-top: 1px solid var(--border-tertiary); vertical-align: top; }
.er-t .n { text-align: right; white-space: nowrap; }
.er-rank { font-family: var(--font-display); font-size: 16px; white-space: nowrap; }
.er-p { display: block; } .er-p-absent, .er-p-notmarked { color: var(--text-secondary); text-decoration: line-through; }
.er-p-notmarked { text-decoration: none; font-style: italic; }
.er-st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); white-space: nowrap; }
.er-st-attended { background: #E4F6EC; color: #1C7C48; } .er-st-absent { background: #FDECEC; color: #B03A36; } .er-st-notmarked { background: var(--neutral-3, #F1ECE4); color: var(--text-secondary); }
@media (max-width: 760px) { .er-t { font-size: 12.5px; } .er-t td, .er-t th { padding: 6px 5px; } }
@media print {
  .er-actions, .rh, .mockbar { display: none !important; }
  .er-t, .er-wcol, .er-nums > div { background: #fff; }
  .er-grade { break-before: page; }
  .er-t tr { break-inside: avoid; }
}

/* one account menu, top right on every signed-in page (2-Nov-2026) */
.acct { position: relative; margin-left: auto; flex: none; }
.acct summary { list-style: none; cursor: pointer; display: block; }
.acct summary::-webkit-details-marker { display: none; }
.acct-av { width: 32px; height: 32px; border-radius: 50%; background: #F4AB52; color: #1C1917; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.acct-pop { position: absolute; right: 0; top: 40px; z-index: 60; width: 240px; background: #fff; color: #1C1917; border: 1px solid var(--border-secondary); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.14); text-align: left; font-size: 14px; }
.acct .acct-pop a { display: block; color: #1C1917; opacity: 1; padding: 6px 0; text-decoration: none; white-space: normal; }
.acct .acct-pop a:hover { text-decoration: underline; }
.acct-nm { font-weight: 700; overflow-wrap: anywhere; }
.acct-rl { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.acct-grp { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.acct-pop hr { border: 0; border-top: 1px solid var(--border-secondary); margin: 6px 0; }
.acct-theme { display: flex; justify-content: space-between; padding: 6px 0; }
/* Dark theme (3-Nov-2026): staff pages only (the toggle is in _workspace.html). Hive's tokens flip on their own; these are the colours written by hand. */
[data-theme="dark"] { color-scheme: dark; }   /* native inputs, date pickers and scrollbars */
[data-theme="dark"] .acct-pop { background: var(--neutral-2); color: var(--text-primary); }
[data-theme="dark"] .acct .acct-pop a { color: var(--text-primary); }
[data-theme="dark"] .tm-deskbar { background: var(--neutral-1); }
[data-theme="dark"] .tm-side { border-right: 1px solid var(--border-secondary); }
[data-theme="dark"] .tm-side .top { background: none; }
[data-theme="dark"] .ag, [data-theme="dark"] .ag thead, [data-theme="dark"] .ag thead th, [data-theme="dark"] .ag td.l, [data-theme="dark"] .ag th.g { background: var(--neutral-2); }
[data-theme="dark"] .an-seg .on, [data-theme="dark"] .ej-tabs a.on { color: var(--raw-stone-1000); }
[data-theme="dark"] .dash-filters input, [data-theme="dark"] .dash-filters select { background: var(--neutral-2); color: var(--text-primary); }
[data-theme="dark"] .po .sum > div, [data-theme="dark"] .po .ldr { background: var(--neutral-2); border-color: var(--border-secondary); }
[data-theme="dark"] .po .sum .l, [data-theme="dark"] .po .note, [data-theme="dark"] .po .ldr .meta { color: var(--text-secondary); }
[data-theme="dark"] .po .warn, [data-theme="dark"] .po .st.payable { background: rgba(240,180,90,.16); border-color: transparent; }
[data-theme="dark"] .po .err, [data-theme="dark"] .po .st.excluded { background: rgba(245,138,128,.16); border-color: transparent; }
[data-theme="dark"] .po .ok, [data-theme="dark"] .po .st.paid { background: rgba(92,201,138,.16); border-color: transparent; }
[data-theme="dark"] .po .st { background: var(--neutral-3); }
[data-theme="dark"] .po summary { color: var(--brand-5); }
[data-theme="dark"] .po table.lines td, [data-theme="dark"] .po table.lines th { border-color: var(--border-secondary); }
.tm-deskbar { display: flex; justify-content: flex-end; padding: 8px 20px; border-bottom: 1px solid var(--border-secondary); background: var(--bg-primary, #fff); }
@media (max-width: 899px) { .tm-deskbar { display: none; } }
.fld-tabs { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--border-secondary); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
.fld-tabs .in { max-width: 560px; margin: 0 auto; display: grid; }
.fld-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11px; color: var(--text-secondary); text-decoration: none; }
.fld-tabs button { appearance: none; background: none; border: 0; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11px; color: var(--text-secondary); }
.fld-tabs button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fld-tabs a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fld-tabs a.on { color: #1C1917; font-weight: 700; }
.fld-tabs a.on svg { stroke-width: 2.2; }
body:has(.fld-tabs) { padding-bottom: 72px; }
/* The page's main actions, pinned above the tabs (6-Nov-2026): check-in and sheets. Side by side, the first one wider */
.act-dock { position: fixed; z-index: 39; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; max-width: 560px; margin: 0 auto;
  padding: 10px var(--space-16); background: var(--bg-primary, #FAF8F5); border-top: 1px solid var(--border-secondary); }
body:has(.fld-tabs) .act-dock { bottom: calc(var(--tabs-h, 67px) + env(safe-area-inset-bottom)); }
.act-dock > .door-act { flex: 1 1 0; min-width: 0; margin: 0 !important; min-height: 52px; padding: 8px 10px; }
.act-dock > .btn-primary { order: 2; flex: 1 1 auto; width: auto; }   /* the main action on the right, under the thumb (6-Nov-2026) */
.act-dock > .btn-secondary { flex: none; width: auto; padding-left: 16px; padding-right: 16px; }
.act-dock > .door-act[hidden] { display: none; }
.act-dock .door-act-t { gap: 6px; font-size: 15px; line-height: 1.2; white-space: normal; text-align: left; }
.act-dock .door-act-t svg { flex: none; width: 18px; height: 18px; }
.act-dock .door-act-sub { display: none; }
body:has(.act-dock) { padding-bottom: calc(72px + 74px); }
@media (min-width: 561px) { .act-dock { border-left: 1px solid var(--border-secondary); border-right: 1px solid var(--border-secondary); } }
@media print { .fld-tabs, .acct { display: none; } }
@media (max-width: 520px) {   /* the lit tab says which job this is; the bar keeps the event and the account */
  .rh-where span { white-space: nowrap; }
  .hs-wrap { gap: 10px; padding: 10px var(--wrap-pad); }
  .hs-logo { height: 30px; width: auto; }
  .hs-where b { font-size: 14px; white-space: nowrap; }
  .hs-where span { font-size: 11.5px; white-space: nowrap; }
  .hs-grid > * { min-width: 0; overflow-wrap: anywhere; }
  .lh-top .lh-tag { display: none; }
}
.top nav .acct .acct-pop a { display: block; }   /* the phone header hides its other links, never the account menu's */

/* The footer sits at the bottom of the window on a short page, not halfway up it */
@media screen {
  body:has(> .site-foot) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
  body:has(> .site-foot) > main { flex: 1 0 auto; }
}

/* Sign in (templates/signin.html): the event photo on the left, the form alone on the right, no site header, one line of footer */
body.auth-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.auth-page main { flex: 1 0 auto; display: flex; padding: 0; }
.auth-split { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); max-width: none; width: 100%; padding: 0; margin: 0; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-32) var(--space-40); background: var(--neutral-13); color: var(--text-inverse-primary); }
.auth-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,20,18,.55) 0%, rgba(22,20,18,.05) 35%, rgba(22,20,18,.85) 100%); }
.auth-brand, .auth-pitch { position: relative; z-index: 1; }
.auth-brand { align-self: flex-start; color: inherit; }
.auth-pitch-h { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; margin: 0; max-width: 14em; }
.auth-pitch-h span { display: block; color: var(--brand-5); }
.auth-pitch-sub { margin: var(--space-12) 0 0; font-size: 15px; opacity: .85; }
.auth-pane { display: flex; align-items: center; justify-content: center; padding: var(--space-48) var(--space-24); }
.auth { box-sizing: border-box; width: 100%; max-width: 380px; }
.auth-h { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.15; margin: 0; }
.auth-sub { margin: var(--space-8) 0 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); overflow-wrap: anywhere; }
.auth-sub b { color: var(--text-primary); }
.auth-err { margin-top: var(--space-16); padding: 10px 12px; font-size: 14px; color: var(--error-8); background: var(--error-1); border-left: 4px solid var(--text-error); }
.auth-form { display: flex; flex-direction: column; margin-top: var(--space-24); }
.auth-form label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.auth-input { box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px; margin-bottom: var(--space-16); font: inherit; font-size: 16px; color: var(--text-primary); background: var(--neutral-0); border: 1px solid var(--border-primary); border-radius: 0; }
.auth-input::placeholder { color: var(--neutral-7); }
.auth-input:focus { outline: 2px solid var(--brand-5); outline-offset: 0; border-color: var(--neutral-13); }
.auth-code { height: 64px; font-size: 30px; font-weight: 600; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-code::placeholder { color: var(--neutral-4); }
.auth-note { margin: var(--space-12) 0 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); text-align: center; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8) var(--space-16); margin-top: var(--space-24); padding-top: var(--space-16); border-top: 1px solid var(--border-tertiary); font-size: 14px; }
.auth-foot-c { justify-content: center; gap: 6px; }
.auth-foot a { font-weight: 600; }
.auth-foot .linklike { font-weight: 600; }
.auth-foot .linklike:disabled { color: var(--text-secondary); font-weight: 400; text-decoration: none; cursor: default; }
.auth-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8) var(--space-24); padding: var(--space-16) var(--space-20); font-size: 13px; color: var(--text-secondary); border-top: 1px solid var(--border-tertiary); }
.auth-legal a { text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .auth-split { display: block; }
  .auth-art { height: 112px; box-sizing: border-box; padding: var(--space-20); }
  .auth-art::after { background: rgba(22,20,18,.45); }
  .auth-pitch { display: none; }
  .auth-pane { padding: var(--space-32) var(--space-20); }
  .auth-h { font-size: 28px; }
}

.evgrid > .panel { grid-column: 1 / -1; }   /* no events yet: the note runs the full width */

/* Header logo, the same one the admin header uses */
.site-logo { display: block; height: 32px; width: auto; }
/* grade switch and header buttons share one height; the chosen grade fills the switch edge to edge */
.site-top .series-switch { box-sizing: border-box; height: 40px; padding: 0; gap: 0; border: 0; box-shadow: inset 0 0 0 1px rgba(250,248,245,.22); }
.site-top .series-switch a { min-height: 0; }
.site-top nav { margin-left: auto; }   /* without the grade selector the nav still sits on the right */
.site-top nav .nav-cta { box-sizing: border-box; display: inline-flex; align-items: center; height: 40px; padding-top: 0; padding-bottom: 0; }

/* Phone header (templates/base.html): one row of logo, grade switch and sign in. Register lives in the hero. */
@media (max-width: 760px) {
  .top.site-top .wrap { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; height: 56px; gap: var(--space-8); }
  .site-top nav .nav-cta { display: none; }
  /* signed in: My team and Sign out take a second row, they do not fit beside the switch */
  .top.site-top .wrap:has(nav > a:not(.nav-cta)) { flex-wrap: wrap; height: auto; padding-top: var(--space-12); padding-bottom: var(--space-4); }
  .site-top nav:has(> a:not(.nav-cta)) { order: 1; width: 100%; justify-content: flex-end; }
  .site-top nav > a:not(.nav-cta) { padding: 8px 0; }
  .site-top .series-switch { order: 0; flex: none; width: auto; margin: 0 0 0 auto; }
  /* short: the chosen side reads in full, the other only its grades: [Grades 6-8] K-5 */
  .site-top .series-switch a:not(.on) .long { display: none; }
  .site-top .series-switch a { flex: none; padding: 0 9px; }
  .site-top .series-switch a b { font-size: 12px; white-space: nowrap; }
  .site-top nav { gap: var(--space-16); align-items: center; }
  .site-top nav a:not(.nav-cta) { display: inline; white-space: nowrap; }
  .site-top nav .nav-signin { display: inline; font-size: 14px; }
  .site-top nav .nav-signin .long { display: none; }
  .site-top nav .nav-signin a { box-sizing: border-box; display: inline-flex; align-items: center; height: 40px; margin-left: 0; padding: 0 14px; text-decoration: none; font-weight: 600; border: 1px solid rgba(250,248,245,.45); }

  /* Landing hero: the photo clear of text, then one headline, one line, one full-width button */
  .lp-hero { display: block; }
  .lp-hero > img { position: static; display: block; height: 52vw; max-height: 300px; object-position: center 40%; }
  .hero-photo.lp-hero .hero-photo-shade, .hero-photo.lp-hero .ov { display: none; }
  .lp-hero .hero-photo-in { padding-top: var(--space-20); padding-bottom: var(--space-24); }
  .lp-hero h1 { font-size: 32px; line-height: 1.05; margin: 0 0 var(--space-12); }
  .lp-hero h1 br { display: none; }
  .lp-hero h1 span { font-size: 19px; line-height: 1.25; margin-top: var(--space-8); }
  .lp-hero p { max-width: none; }
  .lp-hero .hero-btns { margin-top: var(--space-20) !important; }
  .lp-hero .hero-btns .btn { width: 100%; }
  /* round tiles: every tile readable, not only the chosen one */
  .rtile:not(.on) { opacity: 1; }
  .rtile::after { background: linear-gradient(180deg, rgba(29,28,27,.1) 0%, rgba(29,28,27,.92) 72%); }
  /* the facts as a short list: number left, what it means right */
  .lp-hero + .factline .factline-in { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: var(--space-4); padding-bottom: var(--space-4); }
  .lp-hero + .factline .factline-in > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-12); padding: 10px 0; border-bottom: 1px solid rgba(250,248,245,.14); }
  .lp-hero + .factline .factline-in > div:last-child { border-bottom: 0; }
  .lp-hero + .factline .factline-in b { font-size: 16px; white-space: nowrap; }
  .lp-hero + .factline .factline-in small { font-size: 12px; margin: 0; text-align: right; }
}
@media (max-width: 360px) {
  .site-top .site-logo { height: 26px; }
  .site-top nav .nav-signin a { padding: 0 8px; }
}


/* hover explanations on admin pages (3-Nov-2026): static/tips.js shows the one box */
[data-tip] { cursor: help; }
th[data-tip] button, [data-tip] a { cursor: pointer; }
.tip-box { position: fixed; z-index: 120; max-width: 300px; padding: 8px 10px; background: var(--neutral-13); color: var(--neutral-1); font-family: var(--font-body); font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; pointer-events: none; }
.kpi-card[data-tip] .kpi-card-label, .ch-title[data-tip], th[data-tip], th[data-tip] button, .cal-sum-l[data-tip] { text-decoration: underline dotted var(--border-secondary); text-underline-offset: 3px; }
/* The people page (3-Nov-2026): a card per person, with an avatar. */
.pp-head a { display: inline-block; margin-bottom: 4px; }
.pp-search { display: flex; gap: var(--space-8); }
.pp-search input { flex: 1; min-width: 0; padding: var(--space-8) var(--space-12); border: 1px solid var(--border-primary); background: var(--neutral-0, #fff); font: inherit; font-size: 15px; color: var(--text-primary); border-radius: 0; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: var(--space-12); margin-top: var(--space-12); }
.pp-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-12); align-items: start; padding: var(--space-16); background: var(--neutral-0, #fff); border: 1px solid var(--border-secondary); }
.cm-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }   /* a photo sits over the face, which shows if it won't load */
.pp-who { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pp-role { margin-top: 6px; padding: 2px 10px; background: var(--neutral-3); border-radius: 999px; font-size: 12px; color: var(--text-secondary); }
.pp-card .pp-change { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; margin-top: 6px; }
.pp-change select { max-width: 100%; box-sizing: border-box; padding: 6px var(--space-8); border: 1px solid var(--border-primary); background: var(--neutral-3); font: inherit; font-size: 14px; color: var(--text-primary); border-radius: 0; }
.pp-card .btn-ghost { color: var(--text-secondary); }
.pp-ev { margin-top: var(--space-16); }
.pp-empty { margin-top: var(--space-12); padding: var(--space-24); border: 1px dashed var(--border-primary); text-align: center; }
.pp-found { display: flex; gap: var(--space-12); align-items: flex-start; }
.pp-found .pp-who { flex: 1; }
.pp-found table { margin-top: var(--space-8); }
.pp-add summary { cursor: pointer; }
.pp-open { display: flex; gap: var(--space-8); align-items: flex-end; margin-top: var(--space-20); padding-top: var(--space-20); border-top: 1px solid var(--border-tertiary); }
.pp-open .field { flex: 1; min-width: 0; }
.pp-open select { width: 100%; box-sizing: border-box; padding: var(--space-8) var(--space-12); border: 1px solid var(--border-primary); background: var(--neutral-3); font: inherit; font-size: 15px; color: var(--text-primary); border-radius: 0; }
.pp-open label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
@media (max-width: 760px) {
  .pp-card { grid-template-columns: auto minmax(0, 1fr); padding: var(--space-12); }
  .pp-card form { grid-column: 2; margin-top: calc(-1 * var(--space-8)); }
  .pp-card .btn-ghost { padding-left: 0; }
}

/* Cmd+K (3-Nov-2026): the Hive modal and search field, held near the top so the box doesn't move as the list shrinks */
.pal { align-items: flex-start; padding-top: 12vh; }
.pal.is-open { transition: opacity var(--duration-slow) var(--ease-in-out); }   /* visible at once, so the box can take focus */
.pal .modal { max-height: 70vh; padding: var(--space-12); gap: var(--space-8); }
.pal .cm-field-helper { display: none; }
.pal-list { overflow-y: auto; min-height: 0; }
.pal-list .dropdown-item { justify-content: space-between; text-decoration: none; }
.pal input::-webkit-search-cancel-button { display: none; }   /* the field has its own clear button */
.pal-list .dropdown-item:hover { background: none; }   /* one row lit at a time: moving the mouse moves pal-on */
.pal-list .dropdown-item.pal-on { background: var(--neutral-2); }
.pal-sec { color: var(--text-tertiary); font-size: var(--type-body-sm-size); }
.pal-none { padding: var(--space-12); }
@media (max-width: 767px) { .pal { align-items: flex-end; padding-top: 0; } .pal .modal { max-height: 80vh; } }

/* the open team link: what signing in unlocks */

/* self-controls */
.sc-scroll { overflow-x: auto; }
.sc-table { width: 100%; border-collapse: collapse; }
.sc-table th { white-space: nowrap; text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); padding: 0 var(--space-12) var(--space-8) 0; }
.sc-table td { padding: 3px var(--space-12) 3px 0; border-top: 1px solid var(--border-secondary); vertical-align: middle; white-space: nowrap; }
.sc-table td.sc-status { white-space: normal; width: 100%; min-width: 220px; }
.sc-table th + th, .sc-table td + td { padding-left: var(--space-24); }
.sc-table tbody tr:hover { background: var(--neutral-3); }
.sc-acts { display: flex; gap: var(--space-16); white-space: nowrap; }
.sc-act { padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sc-act:hover { color: var(--text-secondary); }
.sc-toggle { margin-top: var(--space-8); }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-12); align-items: start; }
.sc-grid .panel { margin: 0; }

/* the report with its numbers left blank */
.rp-ghost { opacity: .55; }
.rp-ghost-cards > * + * { margin-top: var(--space-16); }
.rp-bone { display: block; width: 72px; height: 14px; margin: 6px 0; background: var(--border-secondary); border-radius: var(--radius-full); }
.rp-bone-dark { background: rgba(250,248,245,.18); height: 22px; }
.rp-ghost .rp-p-bar { background: var(--t); }
.rp-ghost .rp-pc2 { background: var(--neutral-2); border-top-color: var(--border-secondary); }

/* Your home: the one thing to do now, the rest folded away */
/* The status card: how far along, what is true now, what to do */
.me-sum small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.me-mate { display: inline-flex; align-items: center; gap: 6px; margin: 6px 12px 0 0; }
.tk-face { display: flex; align-items: center; gap: var(--space-8); }
.me-person > .cm-avatar { flex: none; margin-right: calc(var(--space-12) * -1 + var(--space-8)); }
.me-person > div { flex: 1; }
.me-status { padding: var(--space-16); }
.me-line { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.2; margin: var(--space-16) 0 0; text-wrap: balance; }
.me-steps + .me-line { margin-top: var(--space-16); }
.me-now > .me-line:first-child { margin-top: 0; }
.me-note { margin: 6px 0 0; font-size: 14.5px; line-height: 1.4; }
.me-ctas { margin-top: var(--space-16); }
.me-steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0; padding: 0; font-size: 12px; color: var(--text-secondary); }
.me-steps li { padding-top: 6px; border-top: 4px solid var(--border-secondary); white-space: nowrap; }
.me-steps li.done, .me-steps li.on { border-top-color: var(--brand-5); }
.me-steps li.done::before { content: '\2713\00a0'; }
.me-steps li.on { color: var(--text-primary); font-weight: 700; }
.me-team { display: grid; gap: var(--space-12); }
/* each fold is its own box; opening one closes its neighbours (the name attribute on <details>) */
.me-team > .stack > * + * { margin-top: var(--space-12); }
.me-more { background: var(--neutral-2); border: 1px solid var(--border-secondary); }
.me-more > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); min-height: 52px; padding: var(--space-12) var(--space-16); cursor: pointer; font-weight: 600; list-style: none; }
.me-more > summary::-webkit-details-marker { display: none; }
.me-more > summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-right: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.me-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.me-locked { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); min-height: 52px; padding: var(--space-8) var(--space-16); background: none; border-style: dashed; color: var(--text-secondary); text-decoration: none; }
.me-locked b, .me-locked .small { display: block; }
.me-locked b { font-weight: 600; }
.me-unlock { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.me-unlock svg { flex: none; width: 15px; height: 15px; }
.me-more-b { padding: 0 var(--space-16) var(--space-16); display: grid; gap: var(--space-12); }

/* View as: the family every status button builds */
.sc-family { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-16); margin: var(--space-8) 0; }
.sc-family label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sc-note { margin: 0 0 var(--space-12); }

/* A parent's children: on every tab, and in reach as the page scrolls */
.me-kids-bar { position: sticky; top: 0; z-index: 35; padding: var(--space-8) 0; background: var(--neutral-1); border-bottom: 1px solid var(--border-tertiary); }
/* Under the View-as bar (68px) or its minimised pill (40px): the strip above the chips is filled, so the page doesn't show through */
body:has(> form[role=status]) .me-kids-bar { --va-top: 68px; top: var(--va-top); }
html.va-min body:has(> form[role=status]) .me-kids-bar { --va-top: 40px; }
body:has(> form[role=status]) .top { position: relative; z-index: 36; }   /* at the page top, the header stays over that fill */
body:has(> form[role=status]) .me-kids-bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--va-top); background: var(--neutral-1); }
.me-kids { display: flex; gap: var(--space-8); overflow-x: auto; scrollbar-width: none; }
.me-kids a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-16); border: 1px solid var(--border-secondary); border-radius: var(--radius-full); color: var(--text-primary); font-weight: 600; text-decoration: none; }
.me-kids a.on { background: var(--neutral-13); border-color: var(--neutral-13); color: var(--text-inverse-primary); }
.me-kids a.add { border-style: dashed; color: var(--text-secondary); font-weight: 500; }
.me-kids .cm-avatar { margin-left: -8px; }
.me-kids i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-5); }
.me-sib { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); margin: 0; }
.me-sib b, .me-sib .small { display: block; }
/* the ways to find a teammate: one list of plain choices, one open at a time */
.ways { display: grid; }
.way { border-top: 1px solid var(--border-tertiary); }
.way-now { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); margin: 0; padding: var(--space-12) 0; }
.way-t b, .way-t small { display: block; }
.way-t b { font-weight: 600; }
.way-t small { margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--text-secondary); }
.way-h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: var(--space-12) 0; cursor: pointer; list-style: none; }
.way-h::-webkit-details-marker { display: none; }
.way-h::after { content: ''; flex: none; width: 8px; height: 8px; margin-right: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.way[open] > .way-h::after { transform: translateY(2px) rotate(-135deg); }
.way-now .cm-toggle { flex: none; }
/* the switch saves by reloading the page: say so, and take no second tap */
.way-saving { display: none !important; }
.way-now.is-saving .way-t small:not(.way-saving) { display: none; }
.way-now.is-saving .way-saving { display: flex !important; align-items: center; gap: var(--space-8); color: var(--text-primary); font-weight: 600; }
.way-now.is-saving .way-saving::before { content: ''; flex: none; width: 14px; height: 14px; border: 2px solid var(--border-secondary); border-top-color: var(--brand-5); border-radius: 50%; animation: me-spin .8s linear infinite; }
.way-now.is-saving .cm-toggle { opacity: .55; pointer-events: none; }
@keyframes me-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .way-now.is-saving .way-saving::before { animation: none; } }
.way-b { padding-bottom: var(--space-16); }
.way-b .hint { font-size: 12.5px; color: var(--text-secondary); }

.me-chips { display: flex; flex-wrap: nowrap; gap: var(--space-8); margin: 0; overflow-x: auto; scrollbar-width: none; }
.me-chips .chip { flex: none; white-space: nowrap; cursor: pointer; font: inherit; font-size: 14px; }
.me-sib[hidden] { display: none; }
.stack > .me-chips, .stack > .me-sib, .stack > [data-rooms-pick] { margin-top: var(--space-12); }
.me-more-b > .panel.me-sib { padding: var(--space-12) 0; background: none; border: 0; border-top: 1px solid var(--border-tertiary); }
.me-more-b > .me-sib { padding-bottom: var(--space-12); border-bottom: 1px solid var(--border-tertiary); }
/* the feedback box, on a parent's pages too; above the bottom tabs */
.nb-fb-open { position: fixed; right: 20px; bottom: 20px; z-index: 40; min-height: 44px; padding: 0 18px; background: var(--neutral-13); color: #FAF8F5; border: 1.5px solid #FAF8F5; border-radius: 4px; font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; }
.nb-fb-open:hover { background: var(--neutral-13); }
.nb-fb { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; width: min(360px, calc(100vw - 32px)); background: #fff; border: 1.5px solid var(--neutral-13); border-radius: 8px; box-shadow: 0 8px 24px rgba(22,20,18,.22); color: var(--neutral-13); }
.nb-fb[hidden] { display: none; }
.nb-fb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; background: var(--neutral-13); color: #FAF8F5; border-radius: 6px 6px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.nb-fb-close { width: 44px; height: 44px; background: none; border: 0; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.nb-fb-log { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; padding: 14px 14px 4px; }
.nb-fb-msg { max-width: 86%; padding: 9px 12px; border-radius: 8px; font-size: 15px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.nb-fb-msg.us { align-self: flex-start; background: var(--brand-3, #FAD6AC); }
.nb-fb-msg.you { align-self: flex-end; background: var(--neutral-13); color: #FAF8F5; }
.nb-fb form { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 14px; }
.nb-fb textarea { width: 100%; min-height: 84px; padding: 10px; box-sizing: border-box; background: #fff; border: 1.5px solid var(--neutral-13); border-radius: 4px; font: inherit; font-size: 16px; resize: vertical; }
.nb-fb-trap { position: absolute; left: -9999px; }
.nb-fb .btn { width: 100%; background: var(--brand-5); }
body:has(.fld-tabs) .nb-fb-open, body:has(.fld-tabs) .nb-fb { bottom: 84px; }
body:has(#fb-tab) .nb-fb-open { display: none; }   /* with the bottom nav, the button is in it */

/* Icons on a parent's pages: data-i names one. They inherit the text colour (button spec: 1.5 stroke, round, no fill) */
[data-i="ticket"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9V6a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v3a3 3 0 0 0 0 6v3a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-3a3 3 0 0 0 0-6Z'/%3E%3Cpath d='M14 5v2M14 11v2M14 17v2'/%3E%3C/svg%3E"); }
[data-i="calendar"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='1'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
[data-i="info"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
[data-i="sliders"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h2M10 17h10'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='8' cy='17' r='2'/%3E%3C/svg%3E"); }
[data-i="gift"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4'/%3E%3Cpath d='M5 12v9h14v-9M12 8v13M12 8S10.5 3 8 3a2.5 2.5 0 0 0 0 5h8a2.5 2.5 0 0 0 0-5c-2.5 0-4 5-4 5Z'/%3E%3C/svg%3E"); }
[data-i="users"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.6 3.4-5.5 6.5-5.500s5.7 1.9 6.5 5.500M16 4.600a3.5 3.5 0 0 1 0 6.800M21.5 20c-.5-2.6-2-4.4-4-5.1'/%3E%3C/svg%3E"); }
[data-i="link"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 6 .4l3-3a4 4 0 0 0-5.7-5.700l-1.5 1.5'/%3E%3Cpath d='M14 10a4 4 0 0 0-6-.4l-3 3a4 4 0 0 0 5.7 5.700l1.5-1.5'/%3E%3C/svg%3E"); }
[data-i="user-plus"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='8' r='3.5'/%3E%3Cpath d='M3 20c.8-3.6 3.7-5.5 7-5.5 1.5 0 2.9.4 4 1.100M18 14v6M15 17h6'/%3E%3C/svg%3E"); }
[data-i="mail"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
[data-i="search"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }
[data-i="clock"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
[data-i="pencil"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16v4ZM13 7l4 4'/%3E%3C/svg%3E"); }
[data-i="plus"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
[data-i="leave"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9 9 6 6M15 9l-6 6'/%3E%3C/svg%3E"); }
[data-i="card"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E"); }
[data-i="chart"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20V11M12 20V4M19 20v-6'/%3E%3C/svg%3E"); }
[data-i="pin"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.3 7-11.500A7 7 0 0 0 5 9.500C5 14.7 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
[data-i="check"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
[data-i="quiz"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.500 9.500a2.500 2.500 0 1 1 3.700 2.200c-.8.4-1.200 1-1.200 1.800M12 17h.01'/%3E%3C/svg%3E"); }
[data-i="clipboard"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='1'/%3E%3Cpath d='M9 4V3h6v1M9 10h6M9 14h6M9 18h3'/%3E%3C/svg%3E"); }
[data-i="lock"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='1'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.locked-field { display: flex; align-items: center; gap: var(--space-8); min-height: 44px; padding: var(--space-8) var(--space-12); background: var(--neutral-3); border: 1px solid var(--border-secondary); color: var(--text-secondary); }
.locked-field::before { content: ''; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.locked-field span { color: var(--text-primary); font-weight: 600; }
.locked-field small { margin-left: auto; font-size: 13px; }
.me-more[data-i] > summary::before, .way[data-i] > .way-h::before, .way-now[data-i]::before, .btn[data-i]::before, .me-row[data-i]::before, .me-name[data-i] > summary::before,
.me-danger[data-i]::before, .me-sib[data-i]::before, .me-locked[data-i]::before, .ed-row[data-i]::before {
  content: ''; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.me-more[data-i] > summary { justify-content: flex-start; }
.me-more[data-i] > summary::after, .way-h::after { margin-left: auto; }
.way-h, .way-now { justify-content: flex-start; }
.way-h .way-t, .way-now .way-t, .me-sib > div, .me-locked > span { flex: 1; min-width: 0; }
.way-now .btn, .me-sib .btn { flex: none; }
.me-sib[data-i] { justify-content: flex-start; }
.me-locked[data-i] { justify-content: flex-start; }
.btn[data-i] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn[data-i]::before { background: currentColor; }
.me-go[data-i] { justify-content: flex-start; } .me-go[data-i]::after { margin-left: auto; }
.me-danger[data-i] { display: inline-flex; align-items: center; gap: 6px; }
.me-name[data-i] > summary { justify-content: flex-start; }
.me-name[data-i] > summary > div { flex: 1; }

/* A team's tickets as a deck (static/tickets.js): the front card flat and whole, the next one tilted out from behind it */
.me-more-b { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.tk-deck { width: 80%; margin: var(--space-8) auto var(--space-16); overflow: visible; }
.tk-deck:not(.swiper-initialized) { width: 100%; }
.tk-deck:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: var(--space-8); overflow-x: auto; scroll-snap-type: x mandatory; }
.tk-deck:not(.swiper-initialized) .swiper-slide { flex: 0 0 86%; scroll-snap-align: center; }
.tk-deck .swiper-slide { height: auto; display: flex; }
.tk-deck .ticket { flex: 1; min-width: 0; margin: 0; }
.tk-deck .tk-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "door" "meta"; padding: var(--space-12); }
.tk-deck .tk-head { padding: 10px var(--space-12); }
.tk-deck .tk-name { font-size: 22px; }
.tk-deck .tk-door { min-width: 0; }
.tk-deck .tk-qr { width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 auto; padding: 8px; }   /* the white box hugs the code */
.tk-deck .tk-qr svg { display: block; width: 200px; max-width: 100%; height: auto; }
.tk-deck .tk-show { text-align: center; }
.tk-deck .tk-actions a { padding: 12px 4px; font-size: 13px; }
.tk-dots { display: flex; justify-content: center; gap: 4px; position: static; }
.tk-dots .swiper-pagination-bullet { width: 8px; height: 8px; margin: 8px 3px; border-radius: 50%; background: var(--border-secondary); opacity: 1; transition: width .2s; }
.tk-dots .swiper-pagination-bullet-active { width: 20px; border-radius: 999px; background: var(--neutral-13); }
@media print {
  .me-more-b { overflow: visible; }
  .tk-deck { width: 100%; margin: 0; }
  .tk-deck .swiper-wrapper { display: block !important; transform: none !important; }
  .tk-deck .swiper-slide { display: block !important; width: 100% !important; transform: none !important; opacity: 1 !important; visibility: visible !important; position: static !important; margin: 0 0 10px; }
  .tk-dots { display: none; }
}

/* The parents' quiz among a family's boxes: a box like the others */
.me-team .pq-card { margin: 0; padding: var(--space-16); border: 1px solid var(--border-secondary); background: var(--neutral-2); color: var(--text-primary); }
.me-team .pq-card-t b { color: var(--text-primary); }
.me-team .pq-card-t span { color: var(--text-secondary); }
.me-team .pq-card[data-i] .pq-card-t { position: relative; padding-left: 32px; }
.me-team .pq-card[data-i] .pq-card-t::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.pq-card[hidden] { display: none; }     /* before the first bell: nothing to open yet */
/* All rounds over: one small row, because the child's results are why a parent comes back */
.me-team .pq-card.done { padding: 0 var(--space-16); min-height: 52px; justify-content: center; }
.me-team .pq-card.done .pq-card-row { flex-direction: row; align-items: center; }
.me-team .pq-card.done .pq-card-t b { font-family: inherit; font-size: inherit; font-weight: 600; }
.me-team .pq-card.done .pq-card-t span { display: none; }
.me-team .pq-card.done .pq-card-row .btn { all: unset; display: inline-flex; align-items: center; gap: var(--space-8); flex: none; font-size: 14px; color: var(--text-secondary); }
.me-team .pq-card.done .pq-card-row .btn::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }

/* Event feedback (13-Nov-2026): five stars and a few words on the card. A star fills the ones before it (:has), and the
   words box opens once a star is picked */
[data-i="star"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.800 5.700 6.200.9-4.500 4.400 1.100 6.200L12 17.300 6.400 20.200l1.100-6.200L3 9.600l6.200-.9z'/%3E%3C/svg%3E"); }
.fb-card { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.500 2.900 5.900 6.500.9-4.700 4.600 1.100 6.500L12 17.300l-5.800 3.100 1.100-6.500-4.700-4.600 6.500-.9z'/%3E%3C/svg%3E"); }
.fb-form { display: flex; flex-direction: column; gap: var(--space-12); }
.fb-stars { display: flex; gap: 4px; margin: 0; padding: 0; border: 0; }
.fb-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-stars label { width: 48px; height: 48px; cursor: pointer; background: var(--border-secondary, #D6D3D1); -webkit-mask: var(--star) center / 40px no-repeat; mask: var(--star) center / 40px no-repeat; transition: transform .12s; }
.fb-stars label:active { transform: scale(.88); }
.fb-stars input:focus-visible + label { outline: 2px solid var(--brand-5, #ECA548); outline-offset: 2px; }
.fb-stars:has(input:nth-of-type(1):checked) label:nth-of-type(-n+1),
.fb-stars:has(input:nth-of-type(2):checked) label:nth-of-type(-n+2),
.fb-stars:has(input:nth-of-type(3):checked) label:nth-of-type(-n+3),
.fb-stars:has(input:nth-of-type(4):checked) label:nth-of-type(-n+4),
.fb-stars:has(input:nth-of-type(5):checked) label:nth-of-type(-n+5) { background: var(--brand-5, #ECA548); }
@media (hover: hover) { .fb-stars:hover label { background: var(--brand-5, #ECA548); } .fb-stars label:hover ~ label { background: var(--border-secondary, #D6D3D1); } }
.fb-more { display: none; flex-direction: column; gap: var(--space-8); }
.fb-form:has(.fb-stars input:checked) .fb-more { display: flex; }
.fb-q { font-weight: 600; font-size: 15px; } .fb-q span { font-weight: 400; color: var(--text-secondary); font-size: 13px; }
.fb-more textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border-secondary); border-radius: var(--radius-8, 8px); background: var(--surface-primary, #fff); color: var(--text-primary); resize: vertical; }
.fb-more .btn { align-self: flex-start; }
/* Sent: one small row like the quiz's, Edit opens the form again */
.me-team .fb-card.done summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; }
.fb-card.done .pq-card-t b { white-space: nowrap; }
.me-team .fb-card.done:not([open]) { gap: 0; }
.me-team .fb-card.done summary::-webkit-details-marker { display: none; }
.me-team .fb-card.done[open] { padding-bottom: var(--space-16); }
.me-team .fb-card.done[open] summary .btn { visibility: hidden; }
.fb-shown { display: inline-flex; gap: 2px; margin-left: 8px; vertical-align: -2px; font-style: normal; }
.fb-shown em { width: 15px; height: 15px; background: var(--border-secondary, #D6D3D1); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.fb-shown em.on { background: var(--brand-5, #ECA548); }

.me-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0 var(--space-4) -14px; color: var(--text-primary); text-decoration: none; }
.me-back::before { content: ''; width: 10px; height: 10px; margin-left: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }

/* Manage: one list. Who is on the team, then what can be changed, and leaving last and apart */
.me-rows { display: block; }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); min-height: 48px; padding: var(--space-12) 0; border-top: 1px solid var(--border-tertiary); }
.me-row > div { min-width: 0; }
.me-rows > .me-row:first-child { border-top: 0; padding-top: 0; }
.me-row .st { flex: none; }
.me-act { flex: none; font-size: 14px; font-weight: 600; text-decoration: underline; }
.me-go { color: inherit; font-weight: 600; text-decoration: none; }
.me-go::after { content: ''; flex: none; width: 8px; height: 8px; margin-right: 3px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.me-name > summary { cursor: pointer; list-style: none; }
.me-name > summary::-webkit-details-marker { display: none; }
.me-name > form { padding-bottom: var(--space-12); }
.me-leave { margin-top: var(--space-12); padding-top: var(--space-16); border-top: 1px solid var(--border-secondary); }
.me-leave p { margin: var(--space-8) 0 0; }
.me-danger { appearance: none; background: none; border: 0; padding: var(--space-8) 0; font: inherit; font-weight: 600; color: var(--text-error); cursor: pointer; text-decoration: underline; }

/* inside a fold: rows, not more boxes */
.me-more .panel:not(.tint) { background: none; border: 0; padding: 0; margin: 0; }
.me-more .fshare > .type-heading-sm { display: none; }

/* Event details (5-Nov-2026): the team first, each field named, then the day as an icon list */
.ed-team { display: grid; gap: var(--space-12); padding-bottom: var(--space-12); border-bottom: 1px solid var(--border-tertiary); }
.ed-fields { display: flex; gap: var(--space-16); margin: 0; }
.ed-fields > div { flex: none; min-width: 0; }
.ed-fields > .ed-grow { flex: 1; }
.ed-fields dt { font-size: 12px; color: var(--text-secondary); }
.ed-fields dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.2; }
.ed-mates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.ed-mates.ed-solo { grid-template-columns: minmax(0, 1fr); }
.ed-mate { display: flex; align-items: center; gap: var(--space-8); padding: 10px; min-width: 0; background: var(--neutral-1, #fff); border: 1px solid var(--border-secondary); color: inherit; text-decoration: none; }
.ed-t { flex: 1; min-width: 0; }
.ed-t b { display: block; font-weight: 600; }
.ed-t small { display: block; margin-top: 1px; font-size: 13px; color: var(--text-secondary); }
.ed-mate .ed-t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-add { border: 1.5px dashed var(--brand-7, #B3741E); background: none; }
.ed-add { padding: 8px; }
.ed-add .ed-t b { white-space: normal; line-height: 1.25; color: var(--brand-8, #8F5C14); }
.ed-slot { position: relative; flex: none; width: 36px; height: 36px; box-sizing: border-box; border: 1.5px dashed var(--brand-7, #B3741E); border-radius: var(--radius-full); background: var(--neutral-1, #fff); color: var(--brand-7, #B3741E); }
.ed-slot::before, .ed-slot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; }
.ed-slot::after { transform: rotate(90deg); }
.ed-rows { display: grid; }
.ed-row { display: flex; align-items: center; gap: var(--space-12); padding: 10px 0; border-bottom: 1px solid var(--border-tertiary); }
.ed-row:first-child { padding-top: 0; }
.ed-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ed-row .btn { flex: none; }
.me-ctas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-8); }
.me-ctas .btn:nth-last-child(2), .me-ctas .btn:nth-last-child(2) + .btn { padding-inline: 8px; font-size: 14px; gap: 6px; }

/* Being paired (5-Nov-2026): find one now, or only if the family can't by the team's date */
.way-pair { display: grid; gap: var(--space-12); padding: var(--space-12) 0; }
.pair-opts { display: grid; gap: var(--space-8); }
.pair-opts .cm-radio-card { min-width: 0; padding: var(--space-12); gap: var(--space-12); border-radius: 0; align-items: flex-start; }
.way-pair.is-saving .pair-opts { opacity: .55; pointer-events: none; }
.way-pair.is-saving > .way-t small:not(.way-saving) { display: none; }
.way-pair.is-saving .way-saving { display: flex !important; align-items: center; gap: var(--space-8); color: var(--text-primary); font-weight: 600; }
.way-pair.is-saving .way-saving::before { content: ''; flex: none; width: 14px; height: 14px; border: 2px solid var(--border-secondary); border-top-color: var(--brand-5); border-radius: 50%; animation: me-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .way-pair.is-saving .way-saving::before { animation: none; } }

/* ---- Live sheet scanning (6-Nov-2026): the camera full screen, everything else floating over it */
body.ls-on { overflow: hidden; }
.ls { position: fixed; inset: 0; z-index: 10001; background: #0d0d0c; color: #fff; font-size: 14px; }
.ls[hidden] { display: none; }
.ls-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }   /* the whole screen, as the ticket scanner (6-Nov-2026) */
.ls-top { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(13,13,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ls-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-count { margin-left: auto; font-size: 13px; opacity: .85; white-space: nowrap; }
.ls-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.ls-pill { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 40px);
  padding: 12px 20px; border-radius: 999px; background: rgba(13,13,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 17px; font-weight: 700; text-align: center; white-space: nowrap; transition: background .2s; }
.ls-pill i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #A8A29E; }
.ls-pill.is-hold { background: rgba(176,112,0,.9); } .ls-pill.is-hold i { background: #FFE3A1; animation: ls-blink .8s infinite; }
.ls-pill.is-read i { background: #fff; animation: ls-blink .5s infinite; }
.ls-pill.is-ok { background: rgba(28,124,72,.92); } .ls-pill.is-ok i { background: #fff; }
.ls-pill.is-warn { background: rgba(176,112,0,.92); } .ls-pill.is-warn i { background: #FFE3A1; }
.ls-pill.is-bad { background: rgba(160,40,30,.92); font-size: 15px; white-space: normal; }
@keyframes ls-blink { 50% { opacity: .25; } }
/* feed mode (13-Nov-2026): a sheet scanner instead of the camera. The last page read fills the screen; no frame to aim at */
.ls-feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 64px 12px 150px; box-sizing: border-box; opacity: .55; }
.ls-feed[hidden], .ls.is-feed .ls-video, .ls.is-feed .ls-frame-box { display: none; }
.ls-ask-skip { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 1px solid var(--border-primary, #ccc); background: transparent; color: inherit;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ls-dev { position: absolute; left: 50%; transform: translateX(-50%); top: calc(76px + env(safe-area-inset-top)); width: min(520px, calc(100% - 24px)); box-sizing: border-box;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.12); }
.ls-dev[hidden] { display: none; }
.ls-dev > i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #3fbf75; }
.ls-dev span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ls-dev b { font-size: 16px; } .ls-dev small { font-size: 13px; opacity: .85; }
.ls-dev.is-busy > i { background: #fff; animation: ls-blink .8s infinite; }
.ls-dev.is-warn { background: rgba(176,112,0,.92); } .ls-dev.is-warn > i { background: #FFE3A1; }
.ls-dev.is-bad { background: rgba(160,40,30,.95); } .ls-dev.is-bad > i { background: #fff; }
.ls-more { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); min-width: 220px; padding: 14px 24px;
  border: 0; border-radius: 999px; background: #F0A93A; color: #1D1C1B; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.ls-more[hidden] { display: none; }
.ls-more:disabled { opacity: .45; cursor: default; }
.ls-last { position: absolute; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255,255,255,.95); color: #1D1C1B; cursor: pointer; }
.ls-last[hidden] { display: none; }
.ls-last img { width: 44px; height: 56px; object-fit: cover; border-radius: 4px; background: #eee; }
.ls-last span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ls-last b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-last small { font-size: 12.5px; color: #57534E; }
.ls-last.is-ok { box-shadow: inset 5px 0 0 #1C7C48; } .ls-last.is-warn { box-shadow: inset 5px 0 0 #E0B44F; }
.ls-last em { font-style: normal; font-weight: 700; font-size: 13px; color: #1C7C48; }
.ls-tray { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); padding: 12px 22px; border: 0; border-radius: 999px;
  background: rgba(13,13,12,.78); color: #fff; font: inherit; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ls-tray[hidden] { display: none; }
.ls-tray.is-warn { background: #E0B44F; color: #1D1C1B; }
.ls-log, .ls-one { position: absolute; inset: 0; overflow-y: auto; background: var(--neutral-1, #FAF8F5); color: var(--text-primary, #1D1C1B); padding: 0 var(--space-16) var(--space-32); }
.ls-log[hidden], .ls-one[hidden] { display: none; }
.ls-log-h { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 calc(-1 * var(--space-16)) var(--space-12);
  padding: max(14px, env(safe-area-inset-top)) var(--space-16) 12px; background: var(--neutral-1, #FAF8F5); border-bottom: 1px solid var(--border-secondary); font-size: 17px; }
.ls-log-h button { border: 1px solid var(--border-primary); background: #fff; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ls-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ls-row { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border-secondary); background: #fff; cursor: pointer; }
.ls-row img { width: 40px; height: 52px; object-fit: cover; background: #eee; }
.ls-row span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ls-row small { font-size: 12.5px; color: var(--text-secondary); }
.ls-row time { font-size: 12px; color: var(--text-secondary); }
.ls-row.is-check { border-color: #E0B44F; box-shadow: inset 4px 0 0 #E0B44F; }
/* the scanner's state, in its button (13-Nov-2026): the action, or the problem, and one short line with a coloured dot.
   The dock hides other buttons' sub-lines; this one shows it */
.act-dock > #sxBtn { flex: 3 1 0; }
.act-dock #sxBtn .door-act-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.25; text-align: left; }
.sx-hint > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1C7C48; }
#sxBtn.is-busy .sx-hint > i { background: #57534E; animation: ls-blink .8s infinite; }
#sxBtn.is-warn .sx-hint > i { background: #B07000; }
#sxBtn.is-bad { background: #FDE2E0; border-color: #D9534F; color: #7A1D17; }
#sxBtn.is-bad .sx-hint > i { background: #D9534F; }
#sxBtn:disabled { opacity: 1; filter: saturate(.4); cursor: default; }
@media (prefers-reduced-motion: reduce) { #sxBtn.is-busy .sx-hint > i { animation: none; } }
.sx-demo { margin: var(--space-12) 0 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ls-row.is-saved, .ls-row.is-fixed { box-shadow: inset 4px 0 0 #1C7C48; }
.ls-st { margin: 0 0 var(--space-12); font-weight: 600; }
.ls-st.is-check { color: #8A5A00; } .ls-st.is-saved, .ls-st.is-fixed { color: #1C7C48; }
.ls-shot { display: block; width: 100%; height: auto; border: 1px solid var(--border-primary); background: #fff; }
.ls-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-12) 0; }
.ls-chips span { display: inline-flex; gap: 6px; padding: 4px 8px; border: 1px solid var(--border-secondary); background: #fff; font-size: 13px; }
.ls-chips span.warn, .ls-crops div.warn { background: #FFE3A1; border-color: #E0B44F; }
.ls-crops { display: grid; gap: 6px; margin: var(--space-12) 0; }
.ls-crops div { display: grid; grid-template-columns: 34px 1fr 56px; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--border-secondary); background: #fff; font-size: 14px; }
.ls-crops img { width: 100%; height: 34px; object-fit: contain; object-position: left; }
.ls-crops i { color: var(--text-secondary); font-size: 12px; }
.ls-crops span { font-weight: 700; text-align: right; }
/* document-scanner style (6-Nov-2026): the sheet outlined live, a fill ring while it holds steady, a flash on capture */
.ls-quad { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ls-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ls-flash.go { animation: ls-flash .35s ease-out; }
@keyframes ls-flash { 0% { opacity: .75; } 100% { opacity: 0; } }
.ls-pill { top: auto; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); }
.ls-pill i { --p: 0; }
.ls-pill.is-hold i { width: 18px; height: 18px; animation: none; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.3) 0); }
.ls-x { width: auto; padding: 0 14px; font-size: 14px; font-weight: 700; background: #fff; color: #1D1C1B; }
.ls-count .w { color: #FFD27A; }
.ls-last { border: 0; font: inherit; text-align: left; }
.ls-last em { font-style: normal; min-width: 26px; height: 26px; border-radius: 999px; background: #1D1C1B; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.ls-queue[hidden] { display: none; }
.ls-queue { border-color: #E0B44F; }
.ls-q-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--space-12); }
.ls-q-h small { color: var(--text-secondary); }
.ls-q-go { font-style: normal; font-weight: 700; font-size: 13px; padding: 6px 10px; border: 1px solid var(--border-primary); }
.ls-queue, .sc-review { scroll-margin-top: 140px; }   /* clear of the pinned round tabs */
/* camera screen, two numbers only (6-Nov-2026): scanned this time, and still left in the round */
.ls-pill, .ls-last { display: none !important; }
.ls-top { justify-content: space-between; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 22px; }
.ls-n { display: flex; align-items: baseline; gap: 6px; }
.ls-n b { font-size: 34px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.ls-n small { font-size: 14px; opacity: .8; }
.ls-n.is-left b { color: #FFD27A; }
.ls-n.is-left.is-zero b { color: #6fdc9b; }
.ls-top .ls-x { margin-left: 0; }
/* the room by number on the camera screen (6-Nov-2026): a thin strip at the bottom edge, a square a team, grouped by grade.
   Green in, amber set aside or pages missing, outline still to come, faint not checked in. The last one scanned shows its number */
.ls-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; padding: 0; border-radius: 999px;
  background: rgba(13,13,12,.6); color: #fff; font-size: 26px; line-height: 1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ls-top { display: none; }
.ls-grid { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,.55) 40%); }
.ls-grid[hidden] { display: none; }
.ls-g { display: flex; align-items: center; gap: 6px; }
.ls-g > b { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.8); white-space: nowrap; }
.ls-gc { display: flex; flex-wrap: wrap; gap: 3px; max-width: 100%; }
.ls-gc i { position: relative; width: 10px; height: 10px; border: 1.5px solid rgba(255,255,255,.75); box-sizing: border-box; }
.ls-gc i.is-in { background: #3fbf75; border-color: #3fbf75; }
.ls-gc i.is-part { background: #FFE3A1; border-color: #FFE3A1; }
.ls-gc i.is-check { background: #F0A93A; border-color: #F0A93A; }
.ls-gc i.is-away { border-color: rgba(255,255,255,.25); border-style: dashed; }
.ls-gc i.just { outline: 2px solid #fff; outline-offset: 1px; }
.ls-tag { position: absolute; left: 12px; bottom: calc(var(--ls-strip, 52px) + env(safe-area-inset-bottom)); padding: 4px 10px; border-radius: 8px;
  font-size: 15px; font-weight: 800; background: #3fbf75; color: #0d0d0c; }
.ls-tag[hidden] { display: none; }
.ls-tag.is-check, .ls-tag.is-part { background: #F0A93A; }

/* the tracker after live scanning (6-Nov-2026): a sheet set aside is an amber box; tapping it opens the check screen under its row */
.dg-seat.is-todo { background: #F0A93A; border-color: #E0B44F; color: #1D1C1B; cursor: pointer; box-shadow: 0 0 0 2px rgba(240,169,58,.35); }
.dg-key .ls-key-todo { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 700; color: #8A5A00; }
.sc-review.is-inline { margin: var(--space-12) 0 var(--space-16); border: 2px solid #E0B44F; }
body:has(#review:not([hidden])) .act-dock { display: none; }   /* checking a sheet: its own Save bar takes the bottom */
.panel.dg .dg-seat.is-in, .panel.dg .dg-seat.is-part { cursor: pointer; }   /* tap to see the sheet as saved */

/* answers the reader was unsure of (6-Nov-2026): hard to miss, with a "Check" tag; looked at, they turn plain with a tick */
.pp-row.unsure, .pp-row.todo { position: relative; background: #FFE9B8 !important; box-shadow: inset 0 0 0 2px #E0A43A, inset 5px 0 #E0A43A !important; }
.pp-row.unsure::after, .pp-row.todo::after { content: "Check"; position: absolute; top: 4px; right: 6px; padding: 1px 6px; border-radius: 4px;
  background: #E0A43A; color: #1D1C1B; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; pointer-events: none; }
.pp-row.checked::after { content: "✓"; position: absolute; top: 4px; right: 8px; color: #1C7C48; font-weight: 800; font-size: 13px; pointer-events: none; }
.pp-row.checked { position: relative; }
.pp-q.unsure { box-shadow: inset 0 0 0 3px #E0A43A !important; background: #FFE9B8; }
.kp-prog.warn, .kp-prog.warn b { color: #8A5A00; }
.pp-q.unsure, .pp-q.checked { position: relative; }
.pp-q.unsure::after { content: "Check"; position: absolute; top: 4px; right: 6px; padding: 1px 6px; border-radius: 4px; background: #E0A43A; color: #1D1C1B;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; pointer-events: none; }
.pp-q.checked::after { content: "✓"; position: absolute; top: 4px; right: 8px; color: #1C7C48; font-weight: 800; pointer-events: none; }

/* ---- The check (8-Nov-2026): one field of one sheet at a time, full screen. Photo of the field on top, what the app read
   below it, two big buttons at the bottom within thumb reach. ✓ fills while it waits, so it can't be tapped blind. */
.ck { position: fixed; inset: 0; z-index: 10001; display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--neutral-1, #F7F4F0); }
.ck[hidden] { display: none; }
body.ck-on { overflow: hidden; }
.ck-top { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(6px + env(safe-area-inset-top)) 8px 6px; background: #FFF; border-bottom: 1px solid var(--border-secondary); }
.ck-x, .ck-back { flex: none; min-width: 44px; height: 44px; border: 0; background: none; font-size: 18px; color: var(--text-primary); cursor: pointer; }
.ck-back { font-size: 15px; font-weight: 600; }
.ck-back:disabled { opacity: .3; }
.ck-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ck-who b { font-size: 16px; }
.ck-who small { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-bar { flex: none; height: 6px; background: var(--neutral-4, #E4DED6); }
.ck-bar i { display: block; height: 100%; width: 0; background: var(--success-8, #1C7C48); transition: width .2s; }
.ck-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 16px 8px; text-align: center; }
.ck-q { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.ck-q b { font-family: var(--font-display); font-size: 30px; }
.ck-q span { font-size: 14px; color: var(--text-secondary); }
.ck-crop { width: 100%; max-width: 520px; min-height: 64px; display: flex; align-items: center; justify-content: center; background: #FFF; border: 1px solid var(--border-primary); border-radius: 8px; padding: 6px; box-sizing: border-box; }
.ck-crop img { display: block; width: 100%; height: auto; max-height: 34vh; object-fit: contain; image-rendering: auto; }
.ck-crop img[hidden] { display: none; }
.ck-cap { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.ck-val { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 64px; }
.ck-digits { display: inline-flex; gap: 6px; }
.ck-digits i { width: 48px; height: 58px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--font-display); font-size: 36px; font-weight: 700; background: #FFF; border: 2px solid var(--neutral-13, #1D1C1B); border-radius: 6px; }
.ck-name { font-size: 16px; font-weight: 600; }
.ck-big { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 58px; }
.ck-big.ck-blank { font-size: 26px; color: var(--text-secondary); }
.ck-big.warn { color: #B26A00; }
.ck-bubs { display: inline-flex; gap: 8px; }
.ck-bubs i { width: 56px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; border: 2px solid var(--neutral-13, #1D1C1B); font-style: normal; font-weight: 700; font-size: 18px; background: #FFF; }
.ck-bubs i.on { background: var(--neutral-13, #1D1C1B); color: #FFF; }
.ck-note { margin: 0; min-height: 22px; font-size: 15px; font-weight: 600; }
.ck-note .warn, .ck-val .warn { color: #B26A00; }
.ck-acts { flex: none; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: #FFF; border-top: 1px solid var(--border-secondary); }
.ck-acts[hidden] { display: none; }
.ck-acts .btn { min-height: 64px; font-size: 19px; }
.ck-acts .btn[hidden] { display: none; }
.ck-acts .btn:only-child, .ck-acts .ck-ok[hidden] + .btn, .ck-acts .btn:has(+ .ck-ok[hidden]) { grid-column: 1 / -1; }
.ck-ok { position: relative; overflow: hidden; background: var(--success-8, #1C7C48); border-color: var(--success-8, #1C7C48); }
.ck-ok span { position: relative; }
.ck-ok::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.28); transform-origin: left; transform: scaleX(0); }
.ck-ok.arming::before { animation: ck-arm .4s linear forwards; }
.ck-ok.armed::before { display: none; }
.ck-ok:disabled { opacity: .55; }
@keyframes ck-arm { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ck-pad { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: #D6D0C7; }
.ck-pad[hidden] { display: none; }
.ck-pad.is-letters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ck-pad.is-letters .kp-word { grid-column: span 2; }
.ck-pad button { min-height: 52px; border: 0; border-radius: 6px; background: #FFF; box-shadow: 0 1px 0 rgba(28,25,23,.25); font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text-primary); cursor: pointer; touch-action: manipulation; user-select: none; }
.ck-pad button.on { background: #1D1C1B; color: #FFF; }
.ck-pad .kp-word { font-family: var(--font-body); font-size: 15px; background: #C9C3BA; }
.ck-pad .ck-done { grid-column: 1 / -1; font-family: var(--font-body); font-size: 18px; background: var(--neutral-13, #1D1C1B); color: #FFF; }
.ck-pad .ck-done:disabled { opacity: .35; }
.ck-end { flex: none; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); text-align: center; background: #FFF; }
.ck-end[hidden] { display: none; }
.ck-done-big { margin: 0; font-size: 48px; color: var(--success-8, #1C7C48); }
.ck-go { background: #F0A93A; border-color: #E0B44F; color: #1D1C1B; }
.ck-go[hidden] { display: none; }
.sc-tab-todo { font-style: normal; color: #B26A00; font-weight: 700; }
.dg-todo { color: #B26A00; }
/* sheets waiting for a check: "Check N sheets" across the top of the dock, scanning and typing below it */
.act-dock:has(> .ck-go:not([hidden])) { flex-wrap: wrap; }
.act-dock > .ck-go { order: 0; flex: 1 1 100%; }
.act-dock > .ck-go .door-act-t { font-size: 17px; }
body:has(.ck-go:not([hidden])) { padding-bottom: calc(72px + 74px + 62px); }
.ck-ok:hover, .ck-ok:focus, .ck-ok:active { background: var(--success-8, #1C7C48); border-color: var(--success-8, #1C7C48); }
.ck-body[hidden] { display: none; }
.ck-end { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ck-end .btn { margin-top: 16px; }
.ck-end.is-ask { flex: none; justify-content: flex-start; }
.ck-ask { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ck-ask .btn { min-height: 56px; margin: 0; }
/* the Sheets tutorial on Event Staff's home (8-Nov-2026): a phone-shaped video, never taller than the screen */
.ev-video { display: block; width: auto; max-width: 100%; height: auto; max-height: 72vh; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 12px; background: #1D1C1B; }

/* Your prizes (9-Nov-2026): one award card (templates/_prizes.html), the same look as "Unlocked for" on Your home. Ink, a gold
   hairline and glow, the medallion seal; the evaluation leads with the gold button, the app is the quieter part under it. */
.pz { position: relative; color: #FAF8F5; padding: 22px 20px 18px; background: radial-gradient(120% 70% at 100% 0%, rgba(236, 165, 72, .22), transparent 55%), #1C1917;
  border: 1px solid rgba(236, 165, 72, .55); box-shadow: inset 0 0 0 5px #1C1917, inset 0 0 0 6px rgba(236, 165, 72, .25); }
.pz.won { background: radial-gradient(120% 80% at 100% 0%, rgba(236, 165, 72, .38), transparent 60%), #1C1917; }
.pz-h { display: flex; align-items: center; gap: 14px; }
.pz-seal { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 0 12px rgba(236, 165, 72, .35)); }
.pz-h small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-5, #ECA548); }
.pz-h h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.15; margin: 2px 0 0; color: #FAF8F5; }
/* 12-Nov-2026: two offer boxes, each a checklist and one full-width button; a pill with the days left on what has a deadline */
.pz-offer { margin-top: 16px; padding: 16px; border: 1px solid rgba(250, 248, 245, .16); background: rgba(250, 248, 245, .04); }
.pz-lead { border-color: rgba(236, 165, 72, .6); background: rgba(236, 165, 72, .08); }
.pz-oh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.pz-oh h3 { font-size: 17px; line-height: 1.3; margin: 0; color: #FAF8F5; }
.pz-left { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(236, 165, 72, .18); color: var(--brand-5, #ECA548); white-space: nowrap; }
.pz-left.off { background: rgba(250, 248, 245, .08); color: #A8A29E; }
.pz-list { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 8px; }
.pz-list li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.4; color: #E7E5E4; }
.pz-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-5, #ECA548);
  color: #1C1917; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.pz-list b { color: #FAF8F5; }
.pz-list small { display: block; font-size: 12px; color: #A8A29E; }
.pz-btn, .pz-claim { display: block; width: 100%; box-sizing: border-box; text-align: center; font-family: inherit; text-decoration: none; cursor: pointer; }
.pz-btn { padding: 13px 16px; font-weight: 700; font-size: 16px; border: 0; background: var(--brand-5, #ECA548); color: #1C1917; }
.pz-btn:hover { background: var(--brand-4, #F2BC6E); }
.pz-claim { padding: 11px 16px; font-weight: 700; font-size: 15px; background: none; border: 1px solid rgba(250, 248, 245, .45); color: #FAF8F5; }
.pz-claim:hover { border-color: #FAF8F5; }
.pz-btn:disabled, .pz-claim:disabled { opacity: .4; cursor: not-allowed; }
.pz-btn:disabled:hover { background: var(--brand-5, #ECA548); }
.pz-claim:disabled:hover { border-color: rgba(250, 248, 245, .45); }
.pz-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 -4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A8A29E; }
.pz-or::before, .pz-or::after { content: ""; flex: 1; border-top: 1px solid rgba(250, 248, 245, .14); }
.pz-reel { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
.pz-reel::-webkit-scrollbar { display: none; }
.pz-reel figure { flex: 0 0 34%; margin: 0; scroll-snap-align: start; }
.pz-reel figure > div { overflow: hidden; border-radius: 6px; }
.pz-reel video { display: block; width: 100%; height: auto; aspect-ratio: 360 / 338; object-fit: cover; object-position: top; background: #FAF8F5; opacity: .92; transform: scale(1.06); transform-origin: top; }
.pz-reel figcaption { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: #D6D3D1; }
.pz-mini-t small.pz-mini-by { color: var(--brand-5, #ECA548); font-weight: 600; }
.pz-mini-main.off { color: #A8A29E; }
.pz-mini-main.off small { color: #A8A29E; }
.pz-mini-main.off em { opacity: .45; cursor: not-allowed; }
.pz-soon { font-weight: 700; font-size: 13.5px; color: #FAF8F5; }
.rp-rank-lb { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand-5, #ECA548); text-decoration: none; }
.rp-rank-lb:hover { text-decoration: underline; }
/* 15-Nov-2026: level on points with a medal place, placed below it on the tie-break: one quiet line under the ranks */
.rp-tie { margin: 14px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--neutral-5, #A8A29E); }
.rp-tie a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* the round that broke a tie, on both rows; and, from the report's tie line, a note above the board and both rows marked */
.lb-split .lb-dec { font-weight: 700; color: var(--text-primary); }
.lb-row.lb-focus { background: var(--brand-1, #FDF3E4); }
.lb-tie { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); }
.lb-col .lb-tie { font-size: 12px; }
.lb-split .lb-dec em { font-style: normal; font-weight: 500; color: var(--text-secondary); }
.lb-bar i.lb-dec { box-shadow: 0 0 0 1.5px var(--neutral-13, #1C1917); position: relative; z-index: 1; }
/* from the report's link: the two rows lit, every other round faded so the one that broke the tie reads first */
.lb-focus .lb-split > span:not(.lb-dec), .lb-focus .lb-bar i:not(.lb-dec):not(.rest) { opacity: .4; }
/* the leaderboard inside the app (9-Nov-2026): Back on the left of its bar */
.lb-back { color: inherit; text-decoration: none; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.lb-back:hover { text-decoration: underline; }
/* Unlocked for <child> on Your home (9-Nov-2026): the short version of Your prizes (templates/_team_card.html). An award: ink with a
   gold hairline and a soft glow, the MathFit medallion as its seal. The evaluation leads (gold button); the app is a quiet line under it. */
.pz-mini { position: relative; overflow: hidden; color: #FAF8F5; background: radial-gradient(120% 90% at 100% 0%, rgba(236, 165, 72, .22), transparent 55%), #1C1917;
  border: 1px solid rgba(236, 165, 72, .55); box-shadow: inset 0 0 0 4px #1C1917, inset 0 0 0 5px rgba(236, 165, 72, .25); }
.pz-mini.won { background: radial-gradient(120% 100% at 100% 0%, rgba(236, 165, 72, .38), transparent 60%), #1C1917; }
.pz-mini-h { display: flex; align-items: center; gap: 12px; padding: 16px 16px 4px; }
.pz-mini-seal { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 10px rgba(236, 165, 72, .35)); }
.pz-mini-ht { flex: 1; min-width: 0; }
.pz-mini-ht small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-5, #ECA548); }
.pz-mini-ht b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.15; margin-top: 2px; }
.pz-mini-h > a { font-size: 13px; font-weight: 600; color: #D6D3D1; align-self: flex-start; }
.pz-mini-main { display: flex; align-items: center; gap: 14px; margin: 12px 16px 0; padding: 14px 0; border-top: 1px solid rgba(250, 248, 245, .14);
  text-decoration: none; color: inherit; }
.pz-mini-t { flex: 1; min-width: 0; }
.pz-mini-t b { display: block; font-size: 16px; line-height: 1.3; }
.pz-mini-t small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: #D6D3D1; }
.pz-mini-main em { flex: none; font-style: normal; font-weight: 700; font-size: 15px; padding: 10px 18px; background: var(--brand-5, #ECA548); color: #1C1917;
  box-shadow: 0 0 0 3px rgba(236, 165, 72, .25); }
.pz-mini-app { display: flex; align-items: center; gap: 10px; margin: 0 16px; padding: 10px 0 14px; border-top: 1px dashed rgba(250, 248, 245, .18);
  text-decoration: none; color: #D6D3D1; font-size: 13.5px; }
.pz-mini-app img { width: 32px; height: 30px; object-fit: cover; object-position: top; border-radius: 5px; flex: none; opacity: .9; }
.pz-mini-app span { flex: 1; }
.pz-mini-app b { color: #FAF8F5; }
.pz-mini-app em { flex: none; font-style: normal; font-weight: 700; font-size: 13px; padding: 6px 12px; border: 1px solid rgba(250, 248, 245, .4); color: #FAF8F5; }
.pz-mini-app small { display: block; margin-top: 2px; font-size: 12px; color: var(--brand-5, #ECA548); }
.pz-mini-app.off { color: #A8A29E; }
.pz-mini-app.off small { color: #A8A29E; }
.pz-mini-app.off img, .pz-mini-app.off em { opacity: .45; }
.pz-mini-app.off em { cursor: not-allowed; }

/* the hosts' practice rooms on the Event Staff home (9-Nov-2026) */
.practice-rooms { display: grid; gap: var(--space-12); }
.practice-room { display: flex; align-items: center; gap: var(--space-12); }
.practice-room form { margin: 0; }
/* the team number not read (10-Nov-2026): typed on the camera screen from the paper in hand, then saved like any sheet */
.ls-ask { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; background: var(--neutral-1, #FAF8F5); color: var(--text-primary, #1D1C1B);
  padding: max(16px, env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
.ls-ask[hidden] { display: none; }
.ls-ask > * { width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; }
.ls-ask-h { display: flex; flex-direction: column; gap: 2px; }
.ls-ask-h b { font-size: 20px; }
.ls-ask-h small { font-size: 14px; color: #8A5A00; }
.ls-ask-img { display: block; height: auto; border: 1px solid var(--border-primary); background: #fff; }
/* a sheet the scanner could not read (14-Nov-2026): the whole page, to match against the tray */
.ls-ask > .ls-nr-img { width: auto; max-width: 100%; max-height: 60vh; object-fit: contain; }
.ls-ask-noimg { margin: 0; padding: 24px; text-align: center; border: 1px dashed var(--border-primary); color: var(--text-secondary); }
.ls-ask-val { display: flex; align-items: center; gap: 14px; }
.ls-ask-d { display: inline-flex; gap: 6px; }
.ls-ask-d i { width: 44px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #1D1C1B; background: #fff; font-style: normal; font-size: 30px; font-weight: 700; }
.ls-ask-msg { font-size: 15px; font-weight: 600; color: #1C7C48; }
.ls-ask-msg.warn { color: #A0281E; }
.ls-ask-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ls-ask-keys button { min-height: 54px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 rgba(28,25,23,.25); font: inherit; font-size: 24px; font-weight: 600; color: #1D1C1B; cursor: pointer; }
.ls-ask-keys button:active { background: #D8D2CA; }
.ls-ask-keys .w { background: #C9C3BA; font-size: 20px; }
.ls-ask-keys .ok { background: #1C7C48; color: #fff; font-size: 18px; }
.ls-ask-keys .ok:disabled { opacity: .35; cursor: default; }
/* the check: the whole sheet, the field being checked boxed (10-Nov-2026) */
.ck-whole { border: 0; background: none; padding: 8px 4px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; color: var(--text-primary); cursor: pointer; }
.ck-whole[hidden] { display: none; }
.ck-crop img { cursor: zoom-in; }
.ck-sheet { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: #3B3936; }
.ck-sheet[hidden] { display: none; }
.ck-sheet-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; background: var(--neutral-1, #F7F4F0); font-size: 17px; }
.ck-sheet-scroll { flex: 1; overflow: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
.ck-sheet-pg { position: relative; width: 100%; max-width: 760px; margin: 0 auto; background: #fff; }
.ck-sheet-pg img { display: block; width: 100%; height: auto; }
.ck-sheet-hl { position: absolute; border: 3px solid #E0B44F; box-shadow: 0 0 0 9999px rgba(29,28,27,.28); pointer-events: none; }
.ck-sheet-hl[hidden] { display: none; }
/* after each sheet, on the camera (10-Nov-2026): what happened, and the round it went to */
.ls-msg { position: absolute; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 2; display: flex; flex-direction: column; gap: 3px;
  max-width: 480px; margin: 0 auto; padding: 12px 16px; border-radius: 14px; background: #1C7C48; color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.ls-msg[hidden] { display: none; }
.ls-msg.is-warn { background: #F0A93A; color: #1D1C1B; }
.ls-msg b { font-size: 19px; line-height: 1.25; }
.ls-msg small { font-size: 14.5px; line-height: 1.35; opacity: .95; }
.ls-msg small[hidden] { display: none; }
.ls-ask.ls-rep > * { max-width: 900px; }   /* two whole sheets need the room; the buttons stay a column */
.ls-ask.ls-rep > .ls-rep-b { max-width: 560px; }
.ls-rep-pics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 0; }
.ls-rep-pics figure { margin: 0; }
.ls-rep-pics figcaption { font-size: 13px; font-weight: 700; margin: 0 0 4px; color: #524B47; }
.ls-rep-pics img { display: block; width: 100%; border: 1px solid #C9C4BE; border-radius: 6px; background: #fff; }
.ls-rep-pics img { width: auto; max-width: 100%; height: auto; max-height: 56vh; margin: 0 auto; }   /* whole sheets, buttons still in view */
.ls-rep-pics figcaption { text-align: center; }
.ls-rep-b { display: grid; gap: 10px; }
.ls-rep-b button { min-height: 54px; border-radius: 10px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.ls-rep-yes { border: 0; background: #1D1C1B; color: #fff; }
.ls-rep-no, .ls-rep-other { border: 2px solid #1D1C1B; background: #fff; color: #1D1C1B; }
/* one colour for "to check" (10-Nov-2026): the grid's amber box, on the round tabs as a count badge, and on the Check button. Scan is the plain dark button: it fills white boxes, and amber means a person's turn. */
.sc-tab { position: relative; }
.sc-tab-badge { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #E0B44F; background: #FFE3A1; color: #1D1C1B; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; }
.ck-go, .act-dock > .ck-go { background: #FFE3A1; border: 1px solid #E0B44F; color: #1D1C1B; }
.ck-go:hover, .ck-go:active { background: #FFD97F; }
.act-dock > #liveBtn { background: #1D1C1B; border-color: #1D1C1B; color: #fff; }
/* the Junior's "some pages in" (10-Nov-2026): a green outline, its page bars showing how far, so amber only ever means "to check" */
.dg-seat.is-some { background: var(--neutral-0, #FFF); border: 2px solid var(--success-8, #1C7C48); color: var(--success-8, #1C7C48); }
.ls-gc i.is-some { border-color: #3fbf75; background: linear-gradient(90deg, #3fbf75 50%, transparent 50%); }
/* each round's tab is a little copy of its printed sheet (10-Nov-2026): the coloured rule across the top, the black corner
   squares, the round's tint, its name in the round's dark colour, so the paper in hand matches a tab at a glance. The
   Junior's sheets share one rainbow rule and differ by their title. The open tab is outlined. */
.sc-tab.is-paper { --c1: #1D1C1B; --c2: #FFF; --c3: #1D1C1B; padding: 12px 4px 7px; border: 1px solid rgba(29,28,27,.16); border-top: 5px solid var(--c1);
  background: linear-gradient(#1D1C1B, #1D1C1B) left 4px top 4px / 6px 6px no-repeat, linear-gradient(#1D1C1B, #1D1C1B) right 4px top 4px / 6px 6px no-repeat, var(--c2);
  color: var(--text-primary); }
.sc-tab.is-paper b { color: var(--c3); font-size: 15px; }
.sc-tab.is-paper .sc-tab-n, .sc-tab.is-paper small { color: var(--text-secondary); }
.sc-tab.is-paper.done small { color: var(--success-8, #1C7C48); }
.sc-tab.is-paper.on { background: linear-gradient(#1D1C1B, #1D1C1B) left 4px top 4px / 6px 6px no-repeat, linear-gradient(#1D1C1B, #1D1C1B) right 4px top 4px / 6px 6px no-repeat, var(--c2);
  border-color: var(--c3); border-width: 2px; border-top-width: 6px; border-top-color: var(--c1); color: var(--text-primary);
  }
.sc-tab.is-paper.on .sc-tab-n { color: var(--c3); opacity: 1; font-weight: 700; }
.sc-tab.is-paper.on small { color: var(--text-primary); }
.sc-tab.is-paper.on.done small { color: var(--success-8, #1C7C48); }
.sc-tab.is-paper.is-junior { --c3: #1D1C1B; border-top: 0; padding-top: 16px;
  background: linear-gradient(90deg, #F0A93A, #42B36F, #5492F1, #C26FE2) top / 100% 5px no-repeat,
    linear-gradient(#1D1C1B, #1D1C1B) left 4px top 9px / 6px 6px no-repeat, linear-gradient(#1D1C1B, #1D1C1B) right 4px top 9px / 6px 6px no-repeat, #FFF; }
.sc-tab.is-paper.is-junior.on { border: 2px solid #1D1C1B; padding-top: 15px; }
.sc-start:has(> .act-dock:only-child) { display: contents; }   /* only the pinned buttons left in it: no empty gap above the grid */
/* the round being scanned for, top left of the camera (11-Nov-2026), in the round's colour */
.ls-round { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; z-index: 1; display: flex; flex-direction: column; gap: 1px;
  padding: 7px 14px 8px; border-radius: 12px; border-left: 6px solid var(--rc, #fff); background: rgba(13,13,12,.78); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ls-round[hidden] { display: none; }
.ls-round small { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.ls-round b { font-size: 19px; line-height: 1.15; }
/* the frame on the camera (11-Nov-2026): a US Letter sheet's shape to fill, its corner squares marked */
.ls-frame-box { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 64px); bottom: calc(var(--ls-strip, 64px) + 12px); left: 16px; right: 16px;
  display: flex; align-items: center; justify-content: center; container-type: size; pointer-events: none; transition: opacity .25s; }
.ls-frame-box.is-off { opacity: 0; }
.ls-frame { position: relative; width: min(100cqw, 100cqh * 8.5 / 11); aspect-ratio: 8.5 / 11; border: 2px dashed rgba(255,255,255,.7); border-radius: 6px; box-sizing: border-box;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.28); }
.ls-frame i { position: absolute; width: 18px; height: 18px; border: 3px solid #fff; box-sizing: border-box; }
.ls-frame i:nth-child(1) { top: 10px; left: 10px; } .ls-frame i:nth-child(2) { top: 10px; right: 10px; }
.ls-frame i:nth-child(3) { bottom: 10px; left: 10px; } .ls-frame i:nth-child(4) { bottom: 10px; right: 10px; }
.ls-frame span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; border-radius: 999px; background: rgba(13,13,12,.72);
  color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }
.ls-frame-box.is-near .ls-frame { border-color: #FFE3A1; animation: ls-near 1s ease-in-out infinite; }
.ls-frame-box.is-near .ls-frame i { border-color: #FFE3A1; }
.ls-frame-box.is-near .ls-frame span { background: #F0A93A; color: #1D1C1B; }
@keyframes ls-near { 50% { transform: scale(1.03); } }

/* the leads' sheet on the Event tab, on the day (14-Nov-2026) */
.ah-owners { display: flex; flex-direction: column; gap: 2px; padding: var(--space-16) var(--space-20); border: 1px solid var(--border-secondary); border-left: 4px solid var(--brand-5); background: var(--brand-1, #FAF1E6); color: var(--text-primary); text-decoration: none; }
.ah-owners b { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.ah-owners span { font-size: 13px; color: var(--text-secondary); }
.ah-owners:hover { border-color: var(--text-primary); }

/* Series tag (15-Nov-2026, _series_tag.html): 6-8 or K-5 beside an event's name on staff pages, gold and blue as in the
   charts, so a same-city 6-8 and Junior never read alike. Rows and calendar chips carry the same colour on their left edge. */
.sx { display: inline-block; font: 600 11px/1 var(--font-body); letter-spacing: .02em; padding: 3px 6px; border-radius: 4px; vertical-align: 2px; margin-left: 6px; white-space: nowrap; }
.sx-o { background: var(--raw-gold-200); color: var(--raw-gold-1000); }
.sx-j { background: #DCEBFF; color: var(--raw-blue-1000); }
[data-theme="dark"] .sx-o { background: rgba(236, 154, 50, .22); color: var(--raw-gold-300); }   /* dark: tinted, light text */
[data-theme="dark"] .sx-j { background: rgba(84, 146, 241, .25); color: var(--raw-blue-300); }
.ev-table tbody tr[data-series] > td:first-child { box-shadow: inset 4px 0 0 var(--raw-gold-700); }
.ev-table tbody tr[data-series="junior"] > td:first-child { box-shadow: inset 4px 0 0 var(--raw-blue-700); }
.ev-table tbody tr[data-series="junior"] { background: rgba(84, 146, 241, .045); }
@media (max-width: 760px) {   /* a row is a card on a phone: the edge runs down the whole card */
  body.adm main table.ev-table.adm-stack tbody tr[data-series] > td:first-child { box-shadow: none; }
  body.adm main table.ev-table.adm-stack tbody tr[data-series] { box-shadow: inset 4px 0 0 var(--raw-gold-700); }
  body.adm main table.ev-table.adm-stack tbody tr[data-series="junior"] { box-shadow: inset 4px 0 0 var(--raw-blue-700); }
}
.cal-ev { box-shadow: inset 3px 0 0 var(--raw-gold-700); }
.cal-ev.jr { box-shadow: inset 3px 0 0 var(--raw-blue-700); }

/* The room on now (or next) heads the events list (15-Nov-2026, now_event.pick): a light tint in its series' colour
   (the same edge as every row), and a Now / Next badge: the status badge's shape, outlined, with a green dot */
.ev-table tbody tr.ev-now { --nc: var(--raw-gold-700); background: rgba(236, 154, 50, .22); }   /* see-through: right in light and dark */
.ev-table tbody tr.ev-now[data-series="junior"] { --nc: var(--raw-blue-700); background: rgba(84, 146, 241, .2); }
.ev-table tbody tr.ev-now .sx { background: var(--neutral-1); }   /* the tag stays readable on the tint */
.st.st-now { display: inline-flex; align-items: center; gap: 5px; background: var(--neutral-1); color: var(--success-8, #1C7C48); box-shadow: inset 0 0 0 1px var(--success-6, #42B36F); }
.st-now i { width: 6px; height: 6px; border-radius: 50%; background: var(--success-6, #42B36F); }
/* The events list on a phone (15-Nov-2026): a compact card per event for quick scanning, not every column. Line 1: name,
   tag and status; line 2: date, seats and check-in. Paid, per day, revenue, leaders, opens, complete and closes stay on
   the desktop table and each event's page. Columns: 1 event, 2 date, 3 status, 4 paid, 5 per day, 6 seats, 7 revenue,
   8 leaders, 9 opens, 10 complete, 11 closes, 12 check-in. */
@media (max-width: 760px) {
  body.adm main table.ev-table.adm-stack tr { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; padding: 12px 14px; align-items: center; }
  body.adm main table.ev-table.adm-stack td::before { content: none; }
  body.adm main table.ev-table.adm-stack td:nth-child(n+4):not(:nth-child(6)):not(:nth-child(12)) { display: none; }
  body.adm main table.ev-table.adm-stack td.td-title { order: 0; grid-column: 1 / 3; grid-row: 1; font-size: 15px; }
  body.adm main table.ev-table.adm-stack td:nth-child(3) { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
  body.adm main table.ev-table.adm-stack td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 13px; }
  body.adm main table.ev-table.adm-stack td:nth-child(2) br { display: none; }
  body.adm main table.ev-table.adm-stack td:nth-child(2) .muted::before { content: " · "; }
  body.adm main table.ev-table.adm-stack td:nth-child(6) { grid-column: 2; grid-row: 2; font-size: 12px; }
  body.adm main table.ev-table.adm-stack td:nth-child(6) .fl-t { height: 4px; margin-bottom: 3px; }
  body.adm main table.ev-table.adm-stack td:nth-child(6) small > span + span { display: none; }   /* "60 left": the 0/60 says it */
  body.adm main table.ev-table.adm-stack td:nth-child(12) { display: block; grid-column: 3; grid-row: 2; justify-self: end; text-align: right; font-size: 12.5px; }
  body.adm main table.ev-table.adm-stack td:nth-child(12) br { display: none; }
  body.adm main table.ev-table.adm-stack td:nth-child(12) .muted::before { content: " · "; }
  body.adm main table.ev-table.adm-stack .ev-line2 { font-size: 12.5px; }
}

/* Re-pair (15-Nov-2026, grades 6-8): the check-in grid's boxes and squares (.dg-*), bigger, to tap. A box is a team; the
   square of the child here says where they are, the dashed one is the partner who isn't. */
.rpq-locked { background: #FEF3C7; border-color: #FCD34D; color: #78350F; }
.rpq-err { background: var(--error-1, #FFE9E9); border-color: var(--error-3, #F5B5BA); color: var(--text-error, #C8444F); }
.rpq-band + .rpq-band { border-top: 1px solid var(--border-tertiary); padding-top: var(--space-16, 16px); }
.rpq-sub { margin: var(--space-12, 12px) 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.rpq-sub .muted { margin-left: 6px; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; }
.rpq-grid.is-pair { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rpq-grid.is-queue { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.rpq-grid .dg-team { font: inherit; border: 1px solid transparent; cursor: pointer; padding: 6px 4px; background: var(--neutral-3); appearance: none; color: inherit; }
.rpq-grid .dg-seats { max-width: 100%; }
.rpq-grid .dg-seat { width: auto; min-width: 38px; max-width: 100%; height: 38px; padding: 0 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 36px; text-align: center; }   /* a first name (15-Nov-2026) */
.rpq-grid .dg-no { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.rpq-grid .dg-team.is-us { background: var(--brand-1, #FAF1E6); border-color: var(--brand-4, #F6BE77); }
.rpq-us-key, .rpq-own-key { display: inline-block; width: 14px; height: 14px; background: var(--brand-1, #FAF1E6); border: 1px solid var(--brand-4, #F6BE77); }
.rpq-own-key { background: var(--neutral-3); border-color: var(--border-tertiary); }
/* Who made the team, written in the box itself so nobody has to open the sheet to know. */
.rpq-by { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; line-height: 13px; font-weight: 700; }
.rpq-by.is-us { color: var(--brand-8, #A45F00); }
.rpq-by.is-own { color: var(--text-secondary); font-weight: 500; }
.dg-seat.is-q { background: var(--neutral-13, #1C1917); border-color: var(--neutral-13, #1C1917); color: var(--neutral-0, #FFF); }
.dg-seat.is-no { background: var(--neutral-4, #DDD); border-color: var(--neutral-4, #DDD); color: var(--text-secondary); text-decoration: line-through; }
.rpq-grid .dg-seat.is-empty { color: var(--text-tertiary, #999); font-weight: 500; }
.rpq-q .rpq-ago { font-size: 10.5px; color: var(--text-secondary); line-height: 13px; }
.rpq-grid .rpq-q.is-picked { outline: 3px solid var(--info-6, #5492F1); outline-offset: 1px; position: relative; z-index: 1; background: var(--info-1, #EEF6FF); }
.rpq-q.is-picked .dg-seat { background: var(--info-8, #3464B1); border-color: var(--info-8, #3464B1); }   /* blue: amber already means "to ask" */
.rpq-grid .dg-team:disabled { cursor: default; opacity: .7; }
.rpq-empty { margin: var(--space-16, 16px) 0 4px; text-align: center; line-height: 1.5; }
.rpq-sheet { border: 0; padding: var(--space-20, 20px); width: min(520px, 100vw); max-width: 100vw; margin: auto auto 0; box-sizing: border-box; }
.rpq-sheet::backdrop { background: rgba(28, 25, 23, .45); }
.rpq-sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rpq-sheet-h b { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.rpq-sheet-h .muted { display: block; font-size: 13px; margin-top: 2px; }
.rpq-sheet-p { margin: var(--space-12, 12px) 0 var(--space-16, 16px); line-height: 1.45; }
.rpq-sheet-kids { margin: var(--space-12, 12px) 0 var(--space-16, 16px); padding: 0; list-style: none; line-height: 1.8; }
.rpq-sheet-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rpq-sheet-act form { margin: 0; }
.rpq-sheet-act form:only-of-type, .rpq-sheet-act [data-close] { grid-column: 1 / -1; }
.rpq-tag { flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.rpq-tag.is-us { background: var(--brand-1, #FAF1E6); color: var(--brand-8, #A45F00); border: 1px solid var(--brand-3, #FAD6AC); }
.rpq-tag.is-own { background: var(--neutral-3, #EEE); color: var(--text-secondary); border: 1px solid var(--border-tertiary); }
.door-repaired { font-size: 11.5px; font-weight: 700; color: var(--brand-8, #A45F00); }

/* a round board before its room's reveal (15-Nov-2026): ranks only, the points wait */
.lb-pts-later small { font-size: 11px; color: var(--text-tertiary, #888); white-space: nowrap; }
.lb-later { margin: 0; padding: 12px 16px 0; font-size: 13.5px; color: var(--text-secondary); }

/* 15-Nov-2026: the Scores page, both series (templates/admin_standings.html): the top three, then every entry's rounds and total */
.sb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sb-groups { margin-bottom: 0; }
.sb-groups .chip, .sb-table th a { text-decoration: none; }
.sb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sb-place { background: var(--neutral-2); border: 1px solid var(--border-secondary); padding: 10px 12px; min-width: 0; }
.sb-place.p1 { border-color: var(--brand-4, #F6BE7C); background: var(--brand-1, #FAF1E6); }
.sb-place small { display: block; font-size: 12px; color: var(--text-secondary); }
.sb-place b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-place span { font-size: 20px; font-variant-numeric: tabular-nums; }
.sb-table { padding: 0; overflow-x: auto; }
.sb-table > p { padding: 14px 16px; }
.sb-table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.sb-table th, .sb-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--border-tertiary); white-space: nowrap; }
.sb-table th { font-size: 12px; font-weight: 500; color: var(--text-secondary); vertical-align: bottom; }
.sb-table th a { color: inherit; }
.sb-table th small { display: block; font-weight: 400; }
.sb-table .sb-rank { width: 32px; text-align: left; color: var(--text-secondary); }
.sb-table .sb-name { text-align: left; white-space: normal; min-width: 120px; }
.sb-table .sb-total { font-weight: 600; }
.sb-table tr.sb-top td { background: var(--brand-1, #FAF1E6); }
[data-theme="dark"] .sb-table tr.sb-top td, [data-theme="dark"] .sb-place.p1 { background: rgba(240,180,90,.12); }
.sb-waiting { margin: 0; }
.sb-tools { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; }
.sb-short { display: none; }
@media (max-width: 560px) {   /* a phone: R1 to R4 and a wrapping name, so the Total stays on screen */
  .sb-table th, .sb-table td { padding: 8px 5px; font-size: 13px; }
  .sb-table .sb-name { min-width: 0; }
  .sb-table .sb-rank { width: 24px; }
  .sb-long { display: none; } .sb-short { display: inline; }
  .sb-place { padding: 8px; } .sb-place span { font-size: 17px; }
}
/* Played solo (15-Nov-2026): a quiet praise chip after the one child on a 6-8 team who played alone */
.lb-solo { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 3px 8px; border-radius: var(--radius-full); background: var(--brand-1, #FAF1E6); color: var(--brand-8, #A45F00); font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; vertical-align: 1px; }
