/* ColorType Teams: organiser and participant screens.
   Same paper system as the homepage (templates/partials/paper_styles.css):
   paper, ink, Familjen Grotesk, the four brand inks used only where they mean
   a colour. The one loud element is the question card: four answers, each on
   its own colour tab, with the check's notes in the margin like a proofread. */
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/familjen-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/familjen-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #FBF6EC; --paper-2: #F3EBDC; --sheet: #FFFDF8;
  --ink: #1E1D1B; --ink-2: #57534B; --ink-3: #8A857A; --rule: #E3D9C7;
  --red: #E5233D; --yellow: #FFD200; --green: #00A651; --blue: #0066CC;
  --link: #0057AD;
  /* Proofreading marks: kept apart from the four test colours on purpose. */
  --mark-fail: #9C2A6B; --mark-warn: #8A5A00; --mark-ok: #2F5D3A;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Familjen Grotesk", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; margin: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }
.narrow { max-width: 38rem; }
.mute { color: var(--ink-2); }
.small { font-size: 0.92rem; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Top bar */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 3.75rem; }
.mark { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.mark small { font-weight: 500; color: var(--ink-2); font-size: 0.95rem; }
.inks { display: inline-grid; grid-template-columns: 7px 7px; gap: 2px; }
.inks i { width: 7px; height: 7px; display: block; }
.top nav { display: flex; align-items: center; gap: 1rem; font-size: 0.95rem; }
.top nav a, .top nav .linkbtn { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); text-decoration: underline; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.linkbtn:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) { .top nav .opt { display: none; } }

main { padding-block: 2rem 4rem; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.55rem 1.15rem;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; font: inherit; font-weight: 600;
  font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: #000; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--paper-2); }
.btn.sm { min-height: 2.75rem; padding: 0.35rem 0.9rem; font-size: 0.92rem; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--link); padding-inline: 0.4rem; text-decoration: underline; }
label { display: block; font-weight: 600; font-size: 0.95rem; }
.hint { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.9rem; margin-top: 0.15rem; }
input[type=text], input[type=email], input[type=number], input[type=date], textarea, select {
  width: 100%; margin-top: 0.35rem; padding: 0.6rem 0.7rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--sheet); border: 1.5px solid var(--ink-3); border-radius: 6px; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(0,102,204,.25); }
textarea { resize: vertical; min-height: 5rem; line-height: 1.45; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 0.4rem; }
.choice { display: grid; gap: 0.5rem; }
.choice label { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.75rem 0.9rem; border: 1.5px solid var(--rule); border-radius: 6px;
  background: var(--sheet); font-weight: 400; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--ink); }
.choice input { margin-top: 0.3rem; accent-color: var(--ink); }
.choice b { display: block; }

.sheet { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 8px; padding: 1.25rem; }
@media (min-width: 600px) { .sheet { padding: 1.75rem; } }
.note { border-left: 3px solid var(--ink); padding: 0.35rem 0 0.35rem 0.9rem; color: var(--ink-2); }
.flash { padding: 0.75rem 1rem; border-radius: 6px; background: var(--paper-2); }
.flash.err { background: #F7E3EC; color: #5E1A41; }

/* Lists of sets and rounds: ruled like a ledger */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.ledger li { border-bottom: 1px solid var(--rule); }
.ledger a.rowlink { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: 0.9rem 0.25rem; color: var(--ink); text-decoration: none; }
.ledger a.rowlink:hover { background: var(--paper-2); }
.ledger .meta { color: var(--ink-2); font-size: 0.92rem; }
.ledger .empty { padding: 1rem 0.25rem; color: var(--ink-2); }
.tag { display: inline-block; font-size: 0.8rem; padding: 0.05rem 0.45rem; border: 1px solid currentColor; border-radius: 4px; color: var(--ink-2); white-space: nowrap; }
.tag.ok { color: var(--mark-ok); } .tag.warn { color: var(--mark-warn); } .tag.fail { color: var(--mark-fail); }
.grid2 { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* Colour chips */
.chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; }
.chip i { width: 0.8rem; height: 0.8rem; display: inline-block; border-radius: 2px; }
.c-red { background: var(--red); } .c-yellow { background: var(--yellow); } .c-green { background: var(--green); } .c-blue { background: var(--blue); }

/* ── Builder ───────────────────────────────────────────
   Top to bottom: what is happening (status), the questions (cards), the rest
   (add or change). On a phone the cards sit side by side and are swiped. */
.b-title { display: flex; gap: 0.75rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.b-title h1 { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.2rem); }

.status, .b-pager, .b-more { scroll-margin-top: 5rem; }
.status { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 8px; padding: 1.1rem 1.1rem 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 600px) { .status { padding: 1.4rem 1.6rem 1.6rem; } }
.status h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); margin-top: 1rem; max-width: 30ch; }
.status p { margin-top: 0.5rem; max-width: 60ch; }
.status .status-p { color: var(--ink-2); }
.status-act { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 1.1rem; }
.status-act .btn:not(.quiet) { min-height: 3.1rem; padding-inline: 1.5rem; font-size: 1.08rem; }
@media (max-width: 520px) { .status-act .btn:not(.quiet) { width: 100%; } .status-act .btn.quiet { margin-inline: auto; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: var(--ink-3); }
.steps li { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.steps li + li::before { content: ""; width: clamp(0.75rem, 6vw, 2.5rem); height: 1.5px; background: var(--rule); margin-inline-end: 0.1rem; }
.steps .sn { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 1.5px solid currentColor;
  font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps .done { color: var(--ink-2); } .steps .done + li::before { background: var(--ink-2); }
.steps .now { color: var(--ink); font-weight: 700; }
.steps .now .sn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.progress { height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ink); width: 0; transition: width 1.5s linear; }
.progress.big { height: 8px; border-radius: 4px; margin-top: 1rem; }
.status.busy .progress span { background-image: linear-gradient(90deg, transparent 0 40%, rgba(255,255,255,.35) 50%, transparent 60% 100%); background-size: 12rem 100%; animation: sheen 1.6s linear infinite; }
@keyframes sheen { from { background-position: -12rem 0; } to { background-position: 12rem 0; } }
.spin { display: inline-block; width: 0.85rem; height: 0.85rem; margin-inline-end: 0.5rem; border: 2px solid var(--ink-3); border-top-color: var(--ink); border-radius: 50%;
  vertical-align: -0.08rem; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.working { position: relative; color: transparent !important; }
.btn.working::after { content: ""; position: absolute; inset: 0; margin: auto; width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink-3); border-top-color: var(--paper);
  border-radius: 50%; animation: spin 0.9s linear infinite; }
.btn.line.working::after, .btn.quiet.working::after { border-top-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .progress span { transition: none; animation: none !important; } .spin, .btn.working::after { animation-duration: 3s; } }

.builder { display: grid; gap: 1.5rem; min-width: 0; }
.b-deck { min-width: 0; }
@media (min-width: 980px) { .builder { grid-template-columns: 19rem minmax(0, 1fr); align-items: start; } }
.b-counts { color: var(--ink-2); font-size: 0.95rem; }
.b-list { position: sticky; top: 4.5rem; max-height: calc(100vh - 6rem); overflow: auto; border-top: 1.5px solid var(--ink); }
@media (max-width: 979px) { .b-list { display: none; } }
.b-list ol { list-style: none; margin: 0; padding: 0; }
.b-list li button { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.1rem 0.5rem; align-items: start; width: 100%; padding: 0.6rem 0.3rem;
  background: none; border: 0; border-bottom: 1px solid var(--rule); font: inherit; font-size: 0.92rem; text-align: start; color: var(--ink); cursor: pointer; }
.b-list li button:hover { background: var(--paper-2); }
.b-list li button[aria-current="true"] { background: var(--sheet); box-shadow: inset 3px 0 0 var(--ink); }
.b-list .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.b-list .twin { color: var(--ink-2); font-size: 0.82rem; display: block; }

/* Pager: where you are, and the way to the next card */
.b-pager { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; }
.b-pos { text-align: center; font-variant-numeric: tabular-nums; }
.b-pos b { font-size: 1.05rem; }
.b-pos span { display: block; font-size: 0.8rem; min-height: 1.1em; }
.pg { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); cursor: pointer; }
.pg:hover { background: var(--paper-2); }
.pg[disabled] { opacity: 0.3; cursor: default; }
/* Strip: one mark per question. Ink = passed, ring = has a note, plum = needs a change, pale = not checked yet. */
.b-strip { display: flex; gap: 3px; margin: 0.6rem 0 0.9rem; }
.seg { flex: 1 1 0; min-width: 0; height: 1.6rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.seg::before { content: ""; position: absolute; inset: 0.55rem 0; border-radius: 2px; background: var(--rule); }
.seg-pass::before, .seg-acked::before { background: var(--ink); }
.seg-warning::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.seg-fail::before { background: var(--mark-fail); }
.seg[aria-selected="true"]::before { inset: 0.15rem 0; }
.seg[aria-selected="true"].seg-unchecked::before, .seg[aria-selected="true"].seg-stale::before { background: var(--ink-3); }
.b-swipe { text-align: center; margin-top: 0.6rem; }
@media (min-width: 980px) { .b-strip, .b-swipe { display: none; } }

.b-cards .card:not(.is-sel) { display: none; }
@media (max-width: 979px) {
  .b-cards { display: flex; align-items: flex-start; gap: 1.25rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain; touch-action: pan-x pan-y; transition: height 0.2s ease; }
  .b-cards::-webkit-scrollbar { display: none; }
  .b-cards .card, .b-cards .card:not(.is-sel) { display: block; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  @media (prefers-reduced-motion: reduce) { .b-cards { transition: none; } }
}
.card { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 8px; }
.card.ghost { border-style: dashed; border-color: var(--ink-3); padding: 2.5rem 1.25rem; text-align: center; }
.card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 0.8rem 1rem 0; position: relative; }
.card-body { padding: 0.6rem 1rem 1.1rem; }
@media (min-width: 600px) { .card-top { padding: 1rem 1.25rem 0; } .card-body { padding: 0.75rem 1.25rem 1.25rem; } }
.card-menu summary { list-style: none; cursor: pointer; font-size: 0.92rem; color: var(--link); text-decoration: underline; text-underline-offset: 3px; padding: 0.2rem 0.3rem; }
.card-menu summary::-webkit-details-marker { display: none; }
.card-menu-list { position: absolute; z-index: 5; inset-inline-end: 0.75rem; top: 2.6rem; width: min(19rem, calc(100% - 1.5rem)); display: grid;
  background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.card-menu-list > button { text-align: start; padding: 0.8rem 1rem; background: none; border: 0; border-bottom: 1px solid var(--rule); font: inherit; color: var(--ink); cursor: pointer; }
.card-menu-list > button:hover { background: var(--paper-2); }
.card-menu-list > button[disabled] { color: var(--ink-3); cursor: default; }
.card-menu-list > button.danger { border-bottom: 0; color: var(--mark-fail); }
.card-menu-list > label { padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); }
.qtext { width: 100%; font-size: 1.2rem; font-weight: 600; line-height: 1.35; border: 1.5px dashed transparent; background: transparent; resize: none; min-height: 0; padding: 0.3rem 0.4rem; margin: 0 -0.4rem; width: calc(100% + 0.8rem); overflow: hidden; }
.qtext:hover { border-color: var(--rule); }
.qtext:focus { border-style: solid; border-color: var(--ink); background: #fff; }
.qtext[readonly], .ans textarea[readonly] { cursor: default; }
.qtext[readonly]:hover { border-color: transparent; } .qtext[readonly]:focus, .ans textarea[readonly]:focus { border-color: transparent; background: transparent; box-shadow: none; }
.answers { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.ans { display: grid; grid-template-columns: 0.55rem 1fr; gap: 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fff; }
.ans .tab { background: var(--ink-3); }
.ans[data-c=red] .tab { background: var(--red); } .ans[data-c=yellow] .tab { background: var(--yellow); }
.ans[data-c=green] .tab { background: var(--green); } .ans[data-c=blue] .tab { background: var(--blue); }
.ans-main { padding: 0.55rem 0.75rem 0.65rem; min-width: 0; }
.ans-row { display: flex; gap: 0.25rem 0.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ans-row select { width: auto; margin: 0; padding: 0.15rem 0.3rem; font-size: 0.85rem; border: 1px solid transparent; background-color: transparent; color: var(--ink-2); }
.ans-row select:hover, .ans-row select:focus { border-color: var(--ink-3); background-color: var(--sheet); color: var(--ink); }
.ans-row select[disabled] { border-color: transparent; background: transparent; color: var(--ink-2); padding-inline: 0; appearance: none; opacity: 1; }
.ans textarea { border: 0; padding: 0.25rem 0; margin-top: 0.15rem; min-height: 0; background: transparent; font-size: 1rem; resize: none; overflow: hidden; }
.ans textarea:focus { box-shadow: none; background: var(--paper); }
.votes { font-size: 0.82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.margin { margin-top: 0.4rem; display: grid; gap: 0.35rem; }
.mnote { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; font-size: 0.92rem; line-height: 1.4; padding: 0.55rem 0.7rem; border-radius: 4px; }
.mnote::before { font-weight: 700; }
.mnote.fail { background: var(--paper-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--mark-fail); } .mnote.fail::before { content: "\2715"; color: var(--mark-fail); }
.mnote.warning { background: transparent; color: var(--ink); border: 1px dashed var(--ink-3); } .mnote.warning::before { content: "!"; padding-inline: 0.2rem; }
.mnote .act { grid-column: 2; display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.2rem; }
.itemnotes { margin-top: 1rem; display: grid; gap: 0.4rem; }
.card-foot { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-top: 1px solid var(--rule); }
.statusline { font-size: 0.95rem; color: var(--ink-2); }
.statusline.fail { color: var(--mark-fail); font-weight: 700; } .statusline.pass { color: var(--ink); }
.statusline.fail::before { content: "\2715  "; } .statusline.warning::before { content: "!  "; font-weight: 700; } .statusline.pass::before { content: "\2713  "; }
.statusline.unchecked::before, .statusline.stale::before { content: "\25CB  "; }
/* Question list status: icon + words, ink only (the four colours mean colours, nothing else). */
.b-list .st { grid-column: 2; font-size: 0.8rem; color: var(--ink-2); }
.b-list .st::before { display: inline-block; width: 1.1em; font-weight: 700; color: var(--ink); }
.b-list .st-fail { color: var(--mark-fail); font-weight: 600; } .b-list .st-fail::before { content: "\2715"; color: var(--mark-fail); }
.b-list .st-warning::before { content: "!"; } .b-list .st-acked::before, .b-list .st-pass::before { content: "\2713"; }
.b-list .st-unchecked::before, .b-list .st-stale::before { content: "\25CB"; font-weight: 400; }
.proposal { margin-top: 1rem; border: 1.5px dashed var(--ink); border-radius: 6px; padding: 0.9rem; background: var(--paper); }
.proposal h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.proposal ul { margin: 0.4rem 0 0.8rem; padding-left: 1.1rem; }

/* Everything that is not the next step lives in one fold */
.b-more { margin-top: 2rem; border-top: 1.5px solid var(--ink); }
.b-more > summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 0.9rem 0.25rem; }
.b-more-body { display: grid; gap: 1rem; padding: 0.25rem 0.25rem 1rem; }
.b-tools { display: grid; gap: 0.5rem; }
@media (min-width: 700px) { .b-tools { grid-template-columns: 1fr 1fr; } }
.b-tools .btn { justify-content: flex-start; text-align: start; }
.b-settings > summary { cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* The next step, always within reach */
.dock { position: sticky; bottom: 0; z-index: 15; margin: 1.5rem -1.25rem -4rem; background: var(--paper); border-top: 1.5px solid var(--ink); }
.dock-in { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; padding: 0.7rem 1.25rem calc(0.7rem + env(safe-area-inset-bottom, 0px)); }
.dock-text { font-weight: 700; line-height: 1.25; min-width: 0; }
.dock .btn { flex-shrink: 0; }
.dock .progress { border-radius: 0; position: absolute; top: -1.5px; left: 0; right: 0; height: 3px; }
@media (min-width: 768px) { .dock { margin-inline: -2rem; } .dock-in { padding-inline: 2rem; } }

/* New set: two questions and one button; the rest is optional */
.newset { display: grid; gap: 1.25rem; }
.newset h1 { margin-top: 0.25rem; }
.newset-intro { font-size: 1.1rem; margin-top: -0.5rem; }
.opt-tag { font-weight: 400; color: var(--ink-2); font-size: 0.88rem; margin-inline-start: 0.3rem; }
.newset-go { min-height: 3.25rem; font-size: 1.1rem; width: 100%; margin-top: 0.25rem; }
@media (min-width: 600px) { .newset-go { width: auto; justify-self: start; padding-inline: 2rem; } }
.newset-after { margin-top: -0.6rem; }
.newset-more { border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.newset-more > summary { cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.newset-more > .stack { margin-top: 1rem; }

/* ── Dashboard ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-top: 1.5px solid var(--ink); }
table.people { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.people th, table.people td { text-align: start; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.people th { font-weight: 600; color: var(--ink-2); font-size: 0.88rem; }
.shares { display: flex; height: 0.7rem; width: 9rem; border-radius: 2px; overflow: hidden; background: var(--rule); }
.shares span { display: block; height: 100%; }
.team-pic { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .team-pic { grid-template-columns: 1fr 1fr; } }
.bars { display: grid; gap: 0.55rem; }
.bar { display: grid; grid-template-columns: 6.5rem 1fr 3.5rem; gap: 0.6rem; align-items: center; font-size: 0.95rem; }
.bar .track { height: 1.1rem; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.bar .track, .bar .fill { display: block; }
.bar .fill { height: 100%; }
.bar .v { font-variant-numeric: tabular-nums; text-align: end; }
.codebox { display: flex; gap: 0.5rem; align-items: stretch; }
.codebox input { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 0.92rem; }
.health li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }

/* ── Participant ─────────────────────────────────────── */
.p-notice dl { display: grid; gap: 0.6rem; margin: 0; }
.p-notice dt { font-weight: 600; }
.p-notice dd { margin: 0; color: var(--ink-2); }
.result-head { display: grid; gap: 1rem; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 2.2rem; height: 2.2rem; display: block; border-radius: 3px; }
.report { margin-top: 2rem; }
.report h3 { margin-top: 2.25rem; margin-bottom: 0.25rem; font-size: 1.25rem; }
.report h4 { margin-top: 1.25rem; font-size: 1.05rem; }
.report ul, .report ol { padding-left: 1.2rem; }
.report p, .report li { margin-top: 0.6rem; }
footer.foot { border-top: 1px solid var(--rule); padding-block: 1.5rem 2.5rem; color: var(--ink-2); font-size: 0.9rem; }

/* Sign-in page: the form, and a five-slide walkthrough with real screenshots */
.login-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .login-grid { grid-template-columns: minmax(18rem, 25rem) 1fr; gap: 4.5rem; align-items: start; } }
.walk { min-width: 0; }
.walk h2 { margin-bottom: 1rem; }
.walk-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; }
.walk-track::-webkit-scrollbar { display: none; }
.walk-track:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.walk-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; display: grid; gap: 1rem; align-content: start; }
.walk-pic { position: relative; background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 8px;
  aspect-ratio: 4 / 3; overflow: hidden; }
.walk-pic img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.walk-slide figcaption { display: grid; gap: 0.3rem; max-width: 40rem; }
.walk-slide figcaption b { font-size: 1.25rem; line-height: 1.2; }
.walk-slide figcaption > span:last-child { color: var(--ink-2); }
.walk-step { font-size: 0.9rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.walk-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.25rem 0 1.5rem; }
.walk-dots { display: flex; gap: 0; }
/* The dot is drawn inside a 28 x 44 tap area. */
.walk-dots button { width: 1.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.walk-dots button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 0.75rem; height: 0.75rem; margin: -0.375rem 0 0 -0.375rem; border-radius: 50%; border: 1.5px solid var(--ink); box-sizing: border-box; }
.walk-dots button[aria-current="step"]::before { background: var(--ink); }
/* Phones: a squarer frame and a thin margin, so every slide is the same height. */
@media (max-width: 620px) {
  .walk-pic { aspect-ratio: 5 / 4; }
  .walk-pic img { inset: 0.4rem; width: calc(100% - 0.8rem); height: calc(100% - 0.8rem); }
}

/* First-run block on the overview */
.first-run h2 { font-size: 1.35rem; }
/* Profile: secondary colour as a smaller full-colour swatch, not a tint */
.swatches { align-items: flex-end; }
.swatches i.secondary { width: 1.5rem; height: 1.5rem; }
.bar .k { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 0.85rem; }
.bar.with-k { grid-template-columns: 6.5rem 1fr 3.4rem 3.2rem; }
.person-name { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
/* The AI report (markup from report_layout.render_web) on Teams pages */
.report .rpt .sec { margin-top: 2.25rem; }
.report .rpt .sec:first-child { margin-top: 1rem; }
.report .rpt .sec-title { font-size: 1.25rem; margin-bottom: 0.6rem; }
.report .rpt p, .report .rpt .statement-text { margin-top: 0.6rem; line-height: 1.6; }
.report .rpt .statement { border-left: 3px solid var(--ink); padding-left: 1rem; }
.report .rpt .lead { font-size: 1.08rem; }
.report .rpt .numcards { list-style: none; display: grid; gap: 0.9rem; margin-top: 0.75rem; padding: 0; counter-reset: none; }
.report .rpt .numcard { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start; }
.report .rpt .numcard-n { width: 1.9rem; height: 1.9rem; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.report .rpt .numcard-b { line-height: 1.55; }
.sees-line { font-size: 0.95rem; color: var(--ink-2); }
.sees-preview { margin-top: 0.5rem; }

/* Public Teams page (/teams for signed-out visitors) */
.lp-hero { display: grid; gap: 2rem; padding-top: 1rem; }
@media (min-width: 960px) { .lp-hero { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; } }
.lp-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); max-width: 16ch; }
.lp-lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36rem; }
.lp-hero-pic { margin: 0; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper-2); padding: 1rem; }
.lp-hero-pic img { display: block; width: 100%; height: auto; }
.lp-facts li { display: grid; gap: 0.3rem; padding: 1rem 0.25rem; }
@media (min-width: 760px) { .lp-facts li { grid-template-columns: 16rem 1fr; gap: 2rem; } }
.lp-facts span { color: var(--ink-2); }
.lp-packs li { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 0.9rem 0.25rem; }
.lp-packs .meta { display: block; color: var(--ink-2); font-size: 0.92rem; }
.lp-price { font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .lp-packs li { grid-template-columns: 1fr auto; } .lp-packs li .btn { grid-column: 1 / -1; } }
.lp-faq details { border-bottom: 1px solid var(--rule); padding: 0 0.25rem; }
.lp-faq summary { cursor: pointer; font-weight: 600; min-height: 3.25rem; padding-block: 0.9rem; display: list-item; }
.lp-faq p { margin: 0 0 1rem; color: var(--ink-2); max-width: 44rem; }
.lp-end h2 { font-size: 1.4rem; }
.lp .walk { max-width: 46rem; }
.lp-hero-pic { padding: 0.5rem; }
