/* Alegreya Sans SC — the whole site, self-hosted.
   🔴 Self-hosted deliberately: a site that fetches its fonts from another
   company's server stops working when that server does, and tells that
   company who is reading the page.
   ⚠️ "SC" is small caps — there is no lowercase in this family, so every
   word on every page renders in capital forms, including the questions
   respondents read. See docs/fonts.md for what this replaced, how to revert,
   and the two middle paths if the full effect is too much.
   📌 font-display:swap so text is readable immediately in the system font
   and reflows when the file arrives, rather than showing nothing. */
@font-face{
  font-family:"Alegreya Sans SC"; font-style:normal; font-weight:400;
  font-display:swap;
  src:url("fonts/alegreya-sans-sc-400-latin.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans SC"; font-style:normal; font-weight:400;
  font-display:swap;
  src:url("fonts/alegreya-sans-sc-400-ext.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans SC"; font-style:normal; font-weight:500;
  font-display:swap;
  src:url("fonts/alegreya-sans-sc-500-latin.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans SC"; font-style:normal; font-weight:500;
  font-display:swap;
  src:url("fonts/alegreya-sans-sc-500-ext.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans SC"; font-style:normal; font-weight:700;
  font-display:swap;
  src:url("fonts/alegreya-sans-sc-700-latin.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans SC"; font-style:normal; font-weight:700;
  font-display:swap;
  src:url("fonts/alegreya-sans-sc-700-ext.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans SC"; font-style:italic; font-weight:400;
  font-display:swap;
  src:url("fonts/alegreya-sans-sc-400-italic-latin.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans SC"; font-style:italic; font-weight:400;
  font-display:swap;
  src:url("fonts/alegreya-sans-sc-400-italic-ext.woff2") format("woff2");
}

:root{--ink:#1a1d21;--dim:#5b6470;--line:#d8dde3;--bg:#fff;--soft:#f5f7f9;
  --accent:#1f5fbf;--bad:#b3261e;--good:#1a6f3c;--warn:#8a5a00}
/* Dark comes from the OS preference, and from an explicit data-theme stamp.
   Both are needed: the chart tokens below honour data-theme, and if the base
   palette did not, an explicit theme would flip the charts while the page
   stayed light. */
@media (prefers-color-scheme:dark){
  :root:where(:not([data-theme="light"])){--ink:#e6e9ee;--dim:#9aa4b1;--line:#333a44;
  --bg:#14171b;--soft:#1c2026;--accent:#7aa8f0;--bad:#f2857c;--good:#7fd8a0;--warn:#e0b25c}}
:root[data-theme="dark"]{--ink:#e6e9ee;--dim:#9aa4b1;--line:#333a44;
  --bg:#14171b;--soft:#1c2026;--accent:#7aa8f0;--bad:#f2857c;--good:#7fd8a0;--warn:#e0b25c}

/* Dark-mode solid buttons take dark text, not white — the fills are light
   there. Both scopes named so the theme toggle wins in either direction. */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) button.primary{color:#14171b}
}
:root[data-theme="dark"] button.primary{color:#14171b}
*{box-sizing:border-box}
@font-face{
  font-family:"Alegreya Sans"; font-style:normal; font-weight:400;
  font-display:swap;
  src:url("fonts/alegreya-sans-400-latin.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans"; font-style:normal; font-weight:400;
  font-display:swap;
  src:url("fonts/alegreya-sans-400-ext.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans"; font-style:normal; font-weight:500;
  font-display:swap;
  src:url("fonts/alegreya-sans-500-latin.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans"; font-style:normal; font-weight:500;
  font-display:swap;
  src:url("fonts/alegreya-sans-500-ext.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans"; font-style:normal; font-weight:700;
  font-display:swap;
  src:url("fonts/alegreya-sans-700-latin.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans"; font-style:normal; font-weight:700;
  font-display:swap;
  src:url("fonts/alegreya-sans-700-ext.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans"; font-style:italic; font-weight:400;
  font-display:swap;
  src:url("fonts/alegreya-sans-400-italic-latin.woff2") format("woff2");
}
@font-face{
  font-family:"Alegreya Sans"; font-style:italic; font-weight:400;
  font-display:swap;
  src:url("fonts/alegreya-sans-400-italic-ext.woff2") format("woff2");
}


body{margin:0;font:16px/1.55 "Alegreya Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:var(--ink);background:var(--bg)}
main{max-width:56rem;margin:0 auto;padding:1.5rem 1rem 5rem}
/* 🔴 Hidden by clipping, never by `left:-9999px` — in a right-to-left page
   (Arabic, Hebrew) a box parked far to the left is scrollable space, and the
   whole page scrolled 9,000px sideways until a walk found it, 23 Oct 2026. */
.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip:focus{width:auto;height:auto;overflow:visible;clip:auto;inset-inline-start:1rem;top:.5rem;position:fixed;background:var(--bg);padding:.5rem;z-index:9}
.top{display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:.75rem 1rem;border-bottom:1px solid var(--line)}
.brand{font-weight:700;text-decoration:none;color:var(--ink)}
h1{font-size:1.6rem;margin:.4em 0} h2{font-size:1.2rem;margin:1.2em 0 .4em}
h3{font-size:1rem;margin:0}
a{color:var(--accent)}
.help{color:var(--dim);font-size:.875rem;margin:.25rem 0}
/* Statistics 3d: a figure that matters less, still readable (--dim is the
   help text's colour, measured with it) — a non-significant correlation, a
   small loading. Never colour alone: each also carries a mark or a word. */
.ns,.faint{color:var(--dim)}
.lede{color:var(--dim)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* ⚠️ Stated rather than left to the browser's default: a later rule that
   gives an element a display value would otherwise un-hide it. */
[hidden]{display:none!important}
.panel{border:1px solid var(--line);border-radius:10px;padding:1rem;margin:1rem 0;background:var(--soft)}
/* A box that is a <fieldset> keeps its heading INSIDE, like every other
   box's — the browser draws a legend on the top border (found by the
   owner on Crosstabs, 30 Oct 2026). Floated, the one way to move it in. */
fieldset.panel > legend{float:left;width:100%;padding:0;margin:0 0 .6rem;
  font-size:1rem}
/* 🔴 EVERY sibling, not only the next: when the next is a hidden tip
   (Show tips off, 18 Nov 2026), a grid after it sat BESIDE the float and the
   page scrolled sideways on a phone (the release check, 19 Nov 2026). */
fieldset.panel > legend ~ *{clear:both}
.panel .head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap}
.crumbs{font-size:.875rem;color:var(--dim);margin-bottom:.5rem}
.q{margin:.9rem 0}
.q>label,fieldset legend{display:block;font-weight:600;margin-bottom:.3rem}
/* 🔴 #B096 — `min-width:0`. A fieldset's default minimum width is its
   CONTENT, so a six-point matrix stretched its question past a phone's edge
   and the whole respondent's page scrolled sideways — the `.scroll-x` box
   inside it, meant to scroll on its own, never got the chance. Found by the
   release check measuring at 375px, 19 Oct 2026. */
fieldset{border:0;padding:0;margin:.9rem 0;min-width:0}
input,textarea,select{width:100%;padding:.5rem;border:1px solid var(--line);
  border-radius:6px;background:var(--bg);color:var(--ink);font:inherit}
input[type=radio],input[type=checkbox]{width:auto;min-width:1.1rem;min-height:1.1rem}
.option{display:flex;align-items:baseline;gap:.5rem;padding:.2rem 0}
.option label{font-weight:400}
.options.inline{display:flex;gap:1.25rem;flex-wrap:wrap}
.options.inline .option{flex-direction:column;align-items:center}
.q.check{display:flex;align-items:center;gap:.5rem}
.q.check label{font-weight:400;margin:0}
/* A time and the clock it is on, kept as one phrase (#B012). The box sizes
   to its own contents so the three letters sit against it rather than
   stranded at the far side of the panel. */
.when{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.45rem;max-width:100%}
.when input{width:auto;flex:none;min-width:15rem;max-width:100%}
.when select{width:auto;flex:none;max-width:100%}
.zone{font-weight:600;letter-spacing:.04em;white-space:nowrap}
/* Greys with the box it names — switched off is still a state worth
   reading, so it dims rather than disappearing. */
.zone.dim{opacity:.45}
button{font:inherit;padding:.5rem .9rem;border:1px solid var(--line);border-radius:6px;
  background:var(--bg);color:var(--ink);cursor:pointer}
button:hover{border-color:var(--accent)}
/* 🔴 The fill is light in dark mode, so white text on it measured 2.42:1 —
   well under the 4.5 minimum, and the main action button on the page. The
   text colour has to follow the theme, not be hard-coded white. */
button.primary{background:var(--accent);border-color:var(--accent);color:#fff}

/* Saved. Green from the same palette as the blue, so they belong together:
   light #1a6f3c on white text is 6.21:1, dark #7fd8a0 on dark ink 10.47:1.
   ⚠️ Never colour alone — app.js changes the label to "Saved ✓" as well,
   because green and blue are the same button to somebody who cannot tell
   them apart, and identical to a screen reader. */
button.primary.saved{background:var(--good);border-color:var(--good)}
/* ⚠️ `:not(.primary)` matters. Without it this rule's green text landed on
   the green fill above — equal specificity, later wins, so the saved button
   was green on green and unreadable. Caught by reading the computed colour
   in a real browser, not by looking at a screenshot. */
button.saved:not(.primary){border-color:var(--good);color:var(--good)}
button.danger{color:var(--bad);border-color:var(--bad)}
button.link{border:0;background:none;color:var(--accent);padding:0;text-decoration:underline}
button[disabled]{opacity:.45;cursor:default}
.actions{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-top:1rem}
.actions form{display:inline}
/* R-236 — Show sits on the line of the question it puts back */
.show-again{display:inline;margin-left:.5rem}
.row-actions{display:flex;gap:.4rem;flex-wrap:wrap}
.row-actions form{display:flex;gap:.4rem}
.inline-form{display:flex;gap:.5rem;align-items:flex-end;flex-wrap:wrap;margin:1rem 0}
.inline-form label{font-weight:600;display:block}
.narrow{max-width:24rem}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.75rem}
.grid-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.75rem}
.notice{padding:.6rem .8rem;border-radius:8px;border:1px solid var(--line);margin:.6rem 0}
.notice.ok{border-color:var(--good)} .notice.error{border-color:var(--bad)}
.notice.warn{border-color:var(--warn)}
.problem{color:var(--bad);font-size:.875rem;margin:.25rem 0}
.has-problem{border-left:3px solid var(--bad);padding-left:.75rem}
.req{color:var(--bad)}
.rule{background:var(--bg);border-left:3px solid var(--accent);padding:.4rem .7rem;
  font-size:.9rem;border-radius:0 6px 6px 0}
.badge{display:inline-block;font-size:.75rem;padding:.1rem .5rem;border-radius:999px;
  border:1px solid var(--line);text-transform:uppercase;letter-spacing:.03em}
/* #B290 — which plan has this; shown only when the account's plan lacks it. */
.badge.plan-label{font-size:.65rem;padding:0 .4rem;font-weight:normal;
  border-color:var(--accent);color:var(--accent);white-space:nowrap}
@media print{.badge.plan-label{display:none}}
.badge.open,.badge.live{border-color:var(--good);color:var(--good)}
.badge.draft{border-color:var(--warn);color:var(--warn)}
.badge.closed{border-color:var(--dim);color:var(--dim)}
/* 🔴 A pill sitting in a line of text sits on the BASELINE, so its bottom
   padding and the font's descender hang below that line and its visual
   centre lands low. Measured at +1.20px off the centre of the survey-link
   box, which is what the owner saw and reported (5 Oct 2026).
   ⚠️ Scoped to `.notice` deliberately — the same pill is used in the cards
   list and on the home page, and nobody asked for those to move.
   📌 `tests/browser/badge_alignment.py` measures it; do not adjust this by
   eye. */
.notice .badge{vertical-align:middle}
.cards{list-style:none;padding:0}
.cards li{border:1px solid var(--line);border-radius:8px;padding:.7rem;margin:.5rem 0;
  display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}
table{border-collapse:collapse;width:100%}
th,td{text-align:left;padding:.4rem .6rem;border-bottom:1px solid var(--line);vertical-align:middle}
.matrix td{text-align:center}
.matrix th[scope=col]{text-align:center;font-size:.875rem}
/* 🔴 position:relative — hidden screen-reader words (.sr-only, absolutely
   positioned) inside a wide table were placed against the PAGE when no
   ancestor was positioned, escaping this box and making a phone's page
   scroll 400px sideways. Found walking the crosstab at 375px, 22 Oct 2026. */
.scroll-x{overflow-x:auto;position:relative}
/* ✅ Group B of the audit, 6 Nov 2026 — a wide table scrolled with nothing
   to say so. A soft shadow now sits at whichever edge has more of the table
   behind it, and goes when you reach that end (the covers scroll WITH the
   table; the shadows stay put). Pure CSS, so it works with scripting off.
   `--cover` is the colour behind the box. */
.scroll-x,.home .scroller{--cover:var(--bg);
  background:
    linear-gradient(to right,var(--cover) 30%,transparent) left/2.5rem 100% no-repeat local,
    linear-gradient(to left,var(--cover) 30%,transparent) right/2.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.2),transparent) left/.9rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.2),transparent) right/.9rem 100% no-repeat scroll;
  background-color:var(--cover)}
.panel .scroll-x{--cover:var(--soft)}
/* A table of WORDS wraps its cells, so it fits a desktop's column instead of
   running past it (Users, Activity, /admin, API docs, Security). */
.results.fits td,.results.fits th{white-space:normal}
/* Only the long unbroken things break anywhere — an email address, a typed
   title — never a button ("Remo / ve") or an ordinary word. */
.results.fits th[scope="row"],.results.fits .typed{overflow-wrap:anywhere}
.results.fits button{white-space:nowrap}
/* A menu keeps its full width — its words cannot wrap, and a cut-off role
   ("…reads results, manag") was the fault. The words around it wrap. */
.results.fits select{width:auto}
/* The matrix's "(70 ratings)" under its mean, so the column stays narrow. */
.results .help.under{display:block}
/* R-200 — a crosstab cell holds several figures; each gets its own line, or
   a count of 7 above 20.0% reads as "720.0%". */
.crosstab .line{display:block;white-space:nowrap}
.crosstab td{font-variant-numeric:tabular-nums}
.crosstab .sig{font-weight:700}
/* Walked 22 Oct 2026: a nested table's long answer labels wrapped into
   towers one word wide. The table scrolls in its own box, so give each
   heading room instead. */
.crosstab thead th{min-width:7rem}
.results .bar{width:40%}
.results .bar span{display:block;height:.7rem;background:var(--accent);border-radius:3px;min-width:1px}
.answers{padding-left:1.1rem}
.answers li{margin:.3rem 0}
/* R-216 — a word cloud: sizes only, never colour alone; the table beside it
   carries every number. Words flow and wrap, so it fits 375px. */
.cloud{list-style:none;padding:0;margin:.5rem 0 1rem;line-height:1.6;
  display:flex;flex-wrap:wrap;gap:.2rem .8rem;align-items:baseline}
.cloud li{margin:0}
.cloud .s1{font-size:.9rem}.cloud .s2{font-size:1.1rem}
.cloud .s3{font-size:1.35rem}.cloud .s4{font-size:1.65rem}
.cloud .s5{font-size:2rem;font-weight:600}
/* R-102 — the customer's logo: SurveyMonkey's three sizes as the widest it
   may be drawn, never wider than the page, never stretched. */
.survey-logo{margin:0 0 1rem}
/* #B113 — the form's default button: present, so Enter uses it, but drawn
   nowhere. Not display:none, which some engines skip for implicit
   submission. */
.default-next{position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);border:0;padding:0;margin:-1px}
/* #B305 — the hidden box (honeypot): drawn nowhere, never display:none,
   which some robots read as "skip this one". 🔴 Clipped, never parked far
   to the left — a right-to-left page scrolls into that space (the gate's
   test_nothing_is_hidden_by_parking_it_far_to_the_left caught it). */
.hp-box{position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;margin:-1px}
/* R-110 — Move up / Move down on a ranking bar (WCAG 2.2, 2.5.7). */
.rank-moves{margin-left:auto;display:inline-flex;gap:.6rem;white-space:nowrap}
.rank-move{min-height:24px;min-width:24px}
.survey-logo img{height:auto;max-width:100%}
.survey-logo.logo-center{text-align:center}.survey-logo.logo-right{text-align:right}
.survey-logo img.logo-small{width:100px}.survey-logo img.logo-medium{width:200px}
.survey-logo img.logo-large{width:300px}
.take .q{margin:1.6rem 0}
code{background:var(--bg);padding:.1rem .35rem;border-radius:4px;word-break:break-all}
/* R-193. `break-all` above exists so a long survey link wraps instead of
   overflowing its box — but it also lets the browser break a SHORT example
   anywhere, and `?store_id=14` was splitting after the `?`, leaving the
   question mark stranded on the line above the word it belongs to. */
code.whole{word-break:normal;white-space:nowrap}
*:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.pager{margin:.5rem 0 1.25rem}
.pager label{display:block;font-size:.875rem;color:var(--dim);margin-bottom:.25rem}
.pager progress{width:100%;height:.5rem}
.block-title{margin-top:0;font-size:1.15rem}
.block{border:1px solid var(--line);border-radius:10px;padding:.75rem 1rem;margin:1rem 0}
.block>.head{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;align-items:flex-start}
.block-questions{margin-left:.25rem}
.responses td,.responses th{white-space:nowrap;max-width:22rem;overflow:hidden;text-overflow:ellipsis}
.narrow-table{max-width:32rem}
details.panel summary{cursor:pointer;font-weight:600}
.skip-rule-name{margin:1rem 0 .25rem}
.skip-rule-more{margin:.75rem 0}
.skip-rule-more > summary{cursor:pointer;font-weight:600}
dl.detail{margin:0}
dl.detail dt{font-weight:600;margin-top:1rem}
dl.detail dd{margin:.2rem 0 0 0;padding-left:0}
dl.detail dt.content-item{font-weight:400;font-style:italic;color:var(--dim)}
.filter-row{align-items:end;margin-bottom:.5rem}
.filter-row label{display:block;font-size:.875rem;color:var(--dim)}
/* #Q053 — several answers on one filter line: a column of ticks, the
   answers in the face for words a person wrote. */
.filter-picks{border:0;margin:0;padding:0;min-width:0}
.filter-row .filter-picks label.pick{display:flex;gap:.4rem;align-items:center;
  font-size:1rem;color:var(--ink)}
.filter-match{margin:.25rem 0 .75rem}
/* The Criteria drop-down (the owner, 30 Oct 2026): closed, it looks like
   the selects beside it and says what is chosen; open, a list of check
   boxes floats below. Outranks the site-wide `details > summary` rule. */
.filter-row details.picker{position:relative}
.filter-row details.picker > summary{display:block;list-style:none;cursor:pointer;
  border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink);
  padding:.35rem 2rem .35rem .6rem;font-size:1rem;line-height:1.4;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}
.filter-row details.picker > summary::-webkit-details-marker{display:none}
.filter-row details.picker > summary::after{content:"";position:absolute;right:.75rem;
  top:50%;width:.4rem;height:.4rem;margin-top:-.3rem;border:solid currentColor;
  border-width:0 2px 2px 0;transform:rotate(45deg)}
.filter-row details.picker[open] > summary::after{transform:rotate(-135deg);margin-top:-.05rem}
.filter-row details.picker > .filter-picks{position:absolute;z-index:20;left:0;
  min-width:100%;max-width:min(28rem,90vw);max-height:16rem;overflow:auto;
  background:var(--bg);border:1px solid var(--line);border-radius:6px;
  padding:.4rem .6rem;margin-top:.25rem;box-shadow:0 6px 18px rgba(0,0,0,.15)}
.filter-row details.picker label.pick{padding:.2rem 0;white-space:normal}
.filter-row + .filter-row{border-top:1px solid var(--line);padding-top:.5rem}
/* Analysis → Describe: the questions as a table, the tick box first
   (the owner, 30 Oct 2026). The whole question is the box's label. */
.var-table{border-collapse:collapse;width:100%;margin:.5rem 0}
.var-table th{text-align:left;font-size:.875rem;color:var(--dim);font-weight:400;
  padding:.3rem .5rem;border-bottom:1px solid var(--line)}
.var-table td{padding:.35rem .5rem;border-bottom:1px solid var(--line);vertical-align:middle}
.var-table td.tick{width:1.5rem;padding-right:0}
.var-table td.tick input{margin:0;vertical-align:middle;display:block}
.var-table label{display:block;cursor:pointer}
.var-table td.help{white-space:nowrap}
.var-table caption{text-align:left;caption-side:top;padding:0 0 .35rem;color:var(--ink)}
/* Statistics' Relate cards. Arrows carry words for a screen reader. */
.verdict{font-size:1.1rem;margin:.25rem 0}
.arrow{font-size:.8rem;letter-spacing:-.1em}
/* Stage 5: the weight's line on the results page, and each chart's mark —
   one short line, never colour alone (the word says it). */
.weight-line p{margin:.25rem 0}
.weighted-mark{margin:.25rem 0;font-size:.9rem}
/* Stage 5: a weighting target box holds a percent or a weight — six
   characters, with its % beside it rather than beneath (found by looking,
   28 Oct 2026). */
.weighting input.target{width:6em;display:inline-block}
.weighting td.box{white-space:nowrap}
/* Stage 4: the pivot table's corner names the row question — wide enough
   not to stack one word to a line (found by looking, 27 Oct 2026). */
.pivot th.corner{min-width:9em;vertical-align:bottom}
/* A figure and its arrows stay on one line; only the <br> between two
   values breaks a cell (found by looking: ▼▼▼ fell to a line of its own). */
.pivot td{white-space:nowrap}
.arrow.up{color:var(--good, #1a7f37)}.arrow.down{color:var(--bad, #b42318)}
.test-details dl.facts{display:grid;grid-template-columns:max-content 1fr;gap:.25rem 1rem}
.filter-match label{display:block;font-size:.875rem;color:var(--dim)}
/* ✅ The filter's groups (the owner, 30 Oct 2026): each group's rows carry
   its colour down the left edge. 🔴 Never colour alone — every row's Group
   menu names its group in words. Each
   colour is MEASURED at 3:1 against the page, light and dark
   (test_filter_groups). */
:root{--group-1:#1f5fbf;--group-2:#b4540c;--group-3:#7b3fb0}
@media (prefers-color-scheme:dark){
  :root:where(:not([data-theme="light"])){--group-1:#7aa8f0;--group-2:#f0a35c;--group-3:#c39af0}}
:root[data-theme="dark"]{--group-1:#7aa8f0;--group-2:#f0a35c;--group-3:#c39af0}
.filter-row{border-left:4px solid transparent;padding-left:.6rem}
.filter-row.in-group{border-left-color:var(--group-1)}
.filter-row.in-group.g2{border-left-color:var(--group-2)}
.filter-row.in-group.g3{border-left-color:var(--group-3)}
/* ✅ One height for every box on a filter row (the owner, 30 Oct 2026):
   they drew at 32, 36, 40 and 43px, each at its own natural size, and
   Safari's menus shorter still. Fixed here, text centred, in both engines. */
.filter-row select,.filter-row input[data-when-typing],
.filter-row details.picker > summary{height:2.5rem;box-sizing:border-box}
.filter-row input[data-when-typing]{padding-top:0;padding-bottom:0;line-height:normal}
.filter-row details.picker > summary{padding-top:0;padding-bottom:0;line-height:calc(2.5rem - 2px)}
.filter-join .join-pick span{height:2.5rem;box-sizing:border-box;padding-top:0;
  padding-bottom:0;display:inline-flex;align-items:center}
/* ✅ The word at the end of each filter row (the owner, 30 Oct 2026): five
   columns, the fifth just wide enough for its three buttons; stacked on a
   phone. Radios drawn as one segmented control — the chosen one filled, and
   bold too, so it is never colour alone. */
.filter-row.grid-4{grid-template-columns:minmax(6rem,.8fr) minmax(8rem,1.4fr)
  minmax(7rem,1fr) minmax(8rem,1.3fr) max-content}
@media (max-width:40rem){.filter-row.grid-4{grid-template-columns:1fr}}
.filter-join{border:0;margin:0;padding:0;min-width:0}
.filter-join legend{font-size:.875rem;color:var(--dim);padding:0;margin-bottom:0}
.filter-join .join-pick{position:relative;display:inline-block;margin:0}
.filter-join .join-pick input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.filter-join .join-pick span{display:inline-block;border:1px solid var(--line);
  padding:.35rem .55rem;font-size:.85rem;color:var(--ink);background:var(--bg);line-height:1.4}
.filter-join .join-pick:first-of-type span{border-radius:6px 0 0 6px}
.filter-join .join-pick:last-of-type span{border-radius:0 6px 6px 0}
.filter-join .join-pick + .join-pick span{margin-left:-1px}
.filter-join .join-pick input:checked + span{background:var(--accent);color:var(--bg);
  border-color:var(--accent);font-weight:700}
/* ✅ **Use existing filter** (the owner, 30 Oct 2026): drawn as a button
   beside Apply; opens to this survey's saved filters. */
.use-filter{position:relative}
.use-filter > summary{list-style:none;cursor:pointer;font:inherit;padding:.5rem .9rem;
  border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink)}
.use-filter > summary::-webkit-details-marker{display:none}
.use-filter > summary:hover{border-color:var(--accent)}
.use-filter > summary::after{content:" ▾"}
.use-filter-list{position:absolute;z-index:20;left:0;margin-top:.25rem;min-width:16rem;
  max-width:min(24rem,90vw);background:var(--bg);border:1px solid var(--line);
  border-radius:6px;padding:.4rem 0;box-shadow:0 6px 18px rgba(0,0,0,.15)}
.use-filter-list a{display:block;padding:.35rem .8rem}
.use-filter-list a[aria-current]{font-weight:700}
.use-filter-list .help{margin:.2rem .8rem}
.filter-join .join-pick input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px}

.take.narrow{max-width:30rem}

/* --- charts -------------------------------------------------------------
   Values from the dataviz skill's validated default palette, checked with
   its own validator rather than by eye. Dark is a *selected* set of steps
   for the dark surface, not an automatic flip.

   Light categorical slots 3 and 4 sit under 3:1 against the surface, so the
   relief rule applies — every chart here ships direct labels AND a table. */
.viz {
  --chart-ink:      var(--ink);
  --chart-muted:    var(--dim);
  --chart-axis:     var(--line);
  --chart-one:      #2a78d6;                /* single-series bars */
  --chart-seg-0:    #86b6ef;                /* ordinal ramp, light→dark */
  --chart-seg-1:    #5598e7;
  --chart-seg-2:    #2a78d6;
  --chart-seg-3:    #1c5cab;
  --chart-seg-4:    #104281;
  --chart-series-0: #2a78d6;                /* categorical, fixed order */
  --chart-series-1: #eb6834;
  --chart-series-2: #1baf7a;
  --chart-series-3: #eda100;
  --chart-series-4: #e87ba4;
  --chart-series-5: #008300;
  --chart-series-6: #4a3aa7;
  --chart-series-7: #e34948;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .viz {
    --chart-one:      #3987e5;
    --chart-seg-0:    #cde2fb;
    --chart-seg-1:    #86b6ef;
    --chart-seg-2:    #3987e5;
    --chart-seg-3:    #256abf;
    --chart-seg-4:    #184f95;
    --chart-series-0: #3987e5;
    --chart-series-1: #d95926;
    --chart-series-2: #199e70;
    --chart-series-3: #c98500;
    --chart-series-4: #d55181;
    --chart-series-5: #008300;
    --chart-series-6: #9085e9;
    --chart-series-7: #e66767;
  }
}
:root[data-theme="dark"] .viz {
  --chart-one:      #3987e5;
  --chart-seg-0:    #cde2fb;  --chart-seg-1:    #86b6ef;
  --chart-seg-2:    #3987e5;  --chart-seg-3:    #256abf;
  --chart-seg-4:    #184f95;
  --chart-series-0: #3987e5;  --chart-series-1: #d95926;
  --chart-series-2: #199e70;  --chart-series-3: #c98500;
  --chart-series-4: #d55181;  --chart-series-5: #008300;
  --chart-series-6: #9085e9;  --chart-series-7: #e66767;
}
/* 🔴 A count and its share are ONE fact, so they stay on one line. The
   column was narrow enough to wrap "1" onto one row and "(100.0%)" onto the
   next, which reads as two numbers and makes that row taller than its
   neighbours for no reason. */
.count-cell{white-space:nowrap}
.results td{white-space:nowrap}
.results th[scope="row"]{white-space:normal}
/* An answer reads as a sentence, never one word per line, however many
   columns sit beside it (the owner's 14-way split, 30 Oct 2026). The table
   scrolls inside its card instead. */
.scroll-x .results th[scope="row"]{min-width:14rem}
/* …but not the Responses table's "#" — a number, not a label (it was 14rem
   wide for three digits). */
.scroll-x .results.responses th[scope="row"]{min-width:0}
/* …nor a matrix summary's statements, which are short (group B: its Mean
   column was cut at 1280px). */
.scroll-x .results.matrix-summary th[scope="row"]{min-width:9rem}

/* ⚠️ SVG defaults to overflow:hidden, so a label wider than the chart's box
   is CUT rather than allowed to spill. That is invisible while the web font
   is applied — Alegreya Sans SC is narrow — and appears the moment a wider
   fallback is painted instead, which is what happens when Chrome repaints an
   unfocused window. The label came back on refocus, which is the tell.
   🔴 Two fixes, because either alone leaves the other cause live: pin the
   family so the text cannot be measured in one font and painted in another,
   and let it overflow rather than clip if it ever is. */
.chart{width:100%;height:auto;max-width:40rem;display:block;margin:.5rem 0;
  overflow:visible}
.chart text{font-family:"Alegreya Sans SC",-apple-system,BlinkMacSystemFont,
  "Segoe UI",Roboto,sans-serif}
.chart-label{fill:var(--chart-ink);font-size:13px}
.chart-value{fill:var(--chart-muted);font-size:12px}
.chart-axis{stroke:var(--chart-axis);stroke-width:1}
.chart-bar path,.chart-bar rect{fill:var(--chart-one)}
.chart-seg-0 path,.chart-seg-0 rect{fill:var(--chart-seg-0)}
.chart-seg-1 path,.chart-seg-1 rect{fill:var(--chart-seg-1)}
.chart-seg-2 path,.chart-seg-2 rect{fill:var(--chart-seg-2)}
.chart-seg-3 path,.chart-seg-3 rect{fill:var(--chart-seg-3)}
.chart-seg-4 path,.chart-seg-4 rect{fill:var(--chart-seg-4)}
.chart-series-0 path,.chart-series-0 rect{fill:var(--chart-series-0)}
.chart-series-1 path,.chart-series-1 rect{fill:var(--chart-series-1)}
.chart-series-2 path,.chart-series-2 rect{fill:var(--chart-series-2)}
.chart-series-3 path,.chart-series-3 rect{fill:var(--chart-series-3)}
.chart-series-4 path,.chart-series-4 rect{fill:var(--chart-series-4)}
.chart-series-5 path,.chart-series-5 rect{fill:var(--chart-series-5)}
.chart-series-6 path,.chart-series-6 rect{fill:var(--chart-series-6)}
.chart-series-7 path,.chart-series-7 rect{fill:var(--chart-series-7)}
/* Identity is never colour alone: a legend is present for every multi-series
   chart, and each key carries its label. */
.legend{display:flex;flex-wrap:wrap;gap:.75rem;margin:.4rem 0;font-size:.875rem}
.legend span{display:inline-flex;align-items:center;gap:.35rem}
.legend i{width:.75rem;height:.75rem;border-radius:3px;display:inline-block}
.stat-row{display:flex;flex-wrap:wrap;gap:1.25rem;margin:.5rem 0}
.stat{min-width:5rem}
.stat b{display:block;font-size:1.25rem;font-weight:600}
.stat span{color:var(--dim);font-size:.8rem}
.small-group{border-left:3px solid var(--warn);padding-left:.6rem}

/* --- print ---------------------------------------------------------------
   "Save as PDF" is the browser's own Print command. No renderer on the
   server, nothing to install, and it works on the shared results page — so
   the privacy rules that page enforces come along unchanged.

   🔴 Colours are forced back to light. A reader in dark mode would otherwise
   print white text on white paper and get blank sheets. The dark rules above
   include `:root[data-theme="dark"]`, which out-specifies a plain `:root`,
   so every scope has to be named here to win.
   🔴 Controls are hidden — and the share panel especially, because it lists
   access codes in plain text and those must not end up on paper. */
/* A trial or subscription warning, above the page rather than inside it —
   it is about the whole account, not about whatever is on screen. */
.banner{margin:0;padding:.55rem 1rem;border-bottom:1px solid var(--line);
  background:var(--soft);font-size:.95rem}
.banner.warn{border-bottom-color:var(--warn)}
/* 🔴 Centred only where it is asked for (`.centered`), not on every banner.
   The owner wanted the one-line "Click Billing to subscribe." centered; the
   trial countdown beside it is a longer sentence that reads better ranged
   left, and centring both would have been a guess. */
.banner.centered{text-align:center}
/* ⚠️ NOT on a centered banner. The margin exists to separate a trailing
   "Billing" link from the sentence before it, and inside a centered one-line
   banner the link sits mid-sentence, where an extra 0.4rem reads as the
   double space the owner just had removed. */
.banner a{margin-left:.4rem}
.banner.centered a{margin-left:0}

@media print {
  :root, :root[data-theme="dark"], :root[data-theme="light"] {
    --ink:#111; --dim:#555; --line:#bbb; --bg:#fff; --soft:#fff;
    --accent:#1a1a1a; --bad:#000; --good:#000; --warn:#000;
  }
  .viz, :root[data-theme="dark"] .viz {
    --chart-one:#2a78d6;
    --chart-seg-0:#86b6ef; --chart-seg-1:#5598e7; --chart-seg-2:#2a78d6;
    --chart-seg-3:#1c5cab; --chart-seg-4:#104281;
    --chart-series-0:#2a78d6; --chart-series-1:#eb6834; --chart-series-2:#1baf7a;
    --chart-series-3:#eda100; --chart-series-4:#e87ba4; --chart-series-5:#008300;
    --chart-series-6:#4a3aa7; --chart-series-7:#e34948;
  }
  @page { margin: 16mm; }
  body { background:#fff; font-size: 11pt }
  main { max-width:none; padding:0 }
  .banner { display:none }

  /* Anything that only makes sense on a screen. */
  .top, .crumbs, .flashes, .no-print,
  form, details, button, .actions, .pager { display:none !important }

  /* 🔴 ...except the survey itself, which IS a form.
     The rule above is right for the filter form on a results page and was
     catastrophic here: every question on a survey page lives inside this one
     element, so printing a survey produced a title and nothing else.
     ⚠️ MEASURED with Playwright emulating print media, 2 Oct 2026 — a survey
     page printed to 79 readable characters against the results page's 1,811.
     📌 The controls are deliberately left visible: a radio button prints as an
     empty circle and a text box as a line, which is exactly what somebody
     wants on a paper questionnaire. Only the submit buttons go, and they go
     via `.actions` above. */
  form.questionnaire { display:block !important }

  .print-only { display:block !important }

  /* A question and its chart must not be split across a page turn. */
  .panel, section.panel, table, .stat-row { break-inside: avoid; page-break-inside: avoid }
  h1, h2 { break-after: avoid; page-break-after: avoid }

  .panel { border:0; border-top:1px solid var(--line); border-radius:0;
           padding:.5rem 0; margin:.75rem 0 }
  .chart { max-width:100% }
  .rule { border-left:3px solid #666; background:none }
  .notice { border:1px solid #999 }
  a { color:inherit; text-decoration:none }
}

.print-only { display:none }
.print-head { margin-bottom:1rem }
.print-head h1 { margin:0 0 .2rem }
.print-head p { margin:0; color:var(--dim); font-size:.9rem }


/* ============================================================
   THE PAIRING
   The site speaks in small caps. Anything a PERSON wrote does not.

   🔴 Why it is a real distinction and not decoration: capitals cost word
   shape — the pattern of ascenders and descenders that lets somebody
   recognise a word without spelling it out. That is a fair trade for a
   label read a hundred times and a poor one for a sentence written once.

   ⚠️ These rules must come after the `font:inherit` on inputs and buttons
   above. `font` is a shorthand, so it resets font-family; an earlier version
   of this block sat higher in the file and silently lost.
   ============================================================ */

/* -- the customer's and the respondent's own words -------------------- */
input, textarea, .typed,
.take,                       /* the respondent's page is almost all content */
.lede,                       /* a survey's description */
.block-title,                /* a page heading the customer wrote */
.take h1,                    /* the survey's title */
.take legend,                /* the question itself */
.take .options label,        /* the answer choices */
.take fieldset .help,        /* the customer's guidance under a question */
.question legend + .help,    /* and its help text there */
.ending-message,             /* the author's own ending message (30 Oct 2026:
                                it was drawn in small capitals) */
.chart text.chart-label,     /* ✅ item 21, 7 Nov 2026: a chart's answer
                                labels are the author's words too */
.rt-area,                    /* a campaign message being written */
/* 🔴 The home page's sentences. The same rule, applied honestly: small caps
   are for a label read a hundred times, not a paragraph read once. The
   headings, buttons and badges around them stay SC, because those ARE the
   product's furniture. docs/fonts.md. */
.home .prose
{
  font-family:"Alegreya Sans","Alegreya Sans SC",-apple-system,
    BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

/* -- but the product's own furniture, even inside those pages --------- */
.take .pager, .take .pager *,
.take button, .take .notice, .take .problem, .take .req,
.take progress, .take .sr-only,
/* ⚠️ An explicit escape hatch for our words sitting inside a page of
   theirs. Add `ours` to the class list rather than growing this selector
   every time. */
.ours, .ours *
{
  font-family:"Alegreya Sans SC",-apple-system,BlinkMacSystemFont,
    "Segoe UI",Roboto,sans-serif;
}


/* The masthead. The brand is the size of a survey's title, and the links sit
   beside it on the left rather than being pushed to the far edge. */
.top{justify-content:flex-start;gap:1.5rem}

.brand{font-size:1.5rem;line-height:1.2}


/* Account, as a <details> menu — see base.html for why it is not scripted. */
.menu{position:relative}
.menu>summary{cursor:pointer;list-style:none;color:var(--accent);
  text-decoration:underline}
.menu>summary::-webkit-details-marker{display:none}
.menu>summary::after{content:" ▾";text-decoration:none}
.menu-items{position:absolute;right:0;top:calc(100% + .4rem);z-index:20;
  min-width:11rem;padding:.4rem;background:var(--bg);
  border:1px solid var(--line);border-radius:8px;
  box-shadow:0 6px 20px rgba(0,0,0,.12)}
.menu-items a,.menu-items button{display:block;width:100%;text-align:left;
  padding:.4rem .6rem;border:0;background:none}
.menu-items a:hover,.menu-items button:hover{background:var(--soft)}
.menu-items form{margin:0}


/* The survey at a glance: two columns, four rows each.
   Left says what the survey IS; right holds the numbers, values aligned
   right so a reader can run down the column instead of hunting. */
.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem 2.5rem}
@media (max-width:40rem){.summary-grid{grid-template-columns:1fr}}

.summary-col{margin:0;display:grid;gap:.35rem;align-content:start}
.summary-col .fact{display:flex;gap:.6rem;align-items:baseline}
.summary-col dt{font-size:1rem;color:var(--dim);white-space:nowrap}
.summary-col dd{margin:0;font-size:1rem}

/* The name is the page heading as well as a field, so it is larger — but it
   must not push the rows beside it out of line. */
.summary-col dd h1{font-size:1.15rem;margin:0;line-height:1.2;
  font-weight:700}

/* The numbers column: label left, value hard right. */
.summary-col.numbers .fact{justify-content:space-between}
.summary-col.numbers dd{text-align:right;font-variant-numeric:tabular-nums}

/* Results and Responses share the last row. */
/* The owner, 29 Oct 2026: the box's links on ONE row along its bottom —
   no link may break across two lines, so each keeps its words together and
   the row wraps between links only on a narrow screen. */
.summary-links{margin:.9rem 0 0;padding-top:.6rem;border-top:1px solid var(--line, #ddd)}
.nav-link{white-space:nowrap}
.summary-col .help{font-size:.85rem}

/* The top navigation, in one place.
   ⚠️ It used to be three separate .topnav rules scattered through this file,
   one of which set `margin-right:auto`. Adding `margin-left:auto` elsewhere
   to push it right would have centered it instead — two auto margins share
   the space rather than picking a side. */
.topnav{display:flex;align-items:center;gap:1.25rem;
  margin-left:auto;margin-right:0}

/* The "Other — please specify" box sits under its option, indented to show
   it belongs to it. */
.option.other-box{margin-left:1.6rem;margin-top:-.2rem}
.option.other-box input{max-width:26rem}

/* A picture in a content block. Never wider than the page, and never
   stretched — a survey should not distort somebody's diagram. */
.content-image{max-width:100%;height:auto;border-radius:8px;margin:.6rem 0}

/* The "who can answer" grid. Ordinary markup, so it wears the site font —
   which the list a <select> drops open never can. */
.access-grid table{margin:.4rem 0}
.access-grid th{font-size:.9rem;white-space:nowrap}
.access-grid td{vertical-align:baseline}
.access-grid td label{display:block;font-weight:400;cursor:pointer}
.access-grid input[type=radio]{margin-top:.2rem}
/* ✅ The owner's arrow (10 Nov 2026): one cell down the Advantage column,
   easiest at the top, most secure at the bottom, a line with a head between. */
.access-grid td.advantage{position:relative;min-width:8rem;padding:0}
/* ✅ The owner, 10 Nov 2026: Yes / No and the Advantage heading centered. */
.access-grid td:nth-child(4),.access-grid th:nth-child(4),
.access-grid th:nth-child(5){text-align:center}
@media (min-width:700px){.access-grid td:nth-child(2) label{white-space:nowrap}}
.advantage-span{position:absolute;inset:.15rem .4rem;display:flex;
  flex-direction:column;align-items:center;text-align:center}
.advantage-end{font-size:.9rem;font-weight:600;white-space:nowrap}
.advantage-arrow{flex:1;position:relative;width:2px;margin:.35rem 0 .5rem;
  background:var(--dim)}
.advantage-arrow::after{content:"";position:absolute;left:50%;bottom:-2px;
  transform:translateX(-50%);border:6px solid transparent;
  border-top:9px solid var(--dim);border-bottom:0}
/* The box under the table keeps the room of its tallest choice, so the
   button never moves: app.js marks it .stacked once it has hidden the rest,
   then every choice shares one grid cell and a hidden one keeps its space
   but cannot be seen, focused or read. Without scripting nothing stacks. */
/* ✅ The owner, 10 Nov 2026: each box on ONE line — its words, a box about
   20 letters wide (a longer entry shows "…" when not being typed in), and
   the small help to the right, two lines at most — so the gap under the
   table is one line tall. On a phone it wraps. */
.access-below .q,.q.one-line{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.6rem 0}
.access-below .q > label,.q.one-line > label{margin:0;white-space:nowrap}
.access-below .q > input{width:22ch;flex:none;text-overflow:ellipsis}
.access-below .q > select{width:auto;max-width:28ch;flex:none}
.access-below .q > .help,.q.one-line > .help{margin:0;flex:1 1 14rem;max-width:30rem;font-size:.8rem;line-height:1.25}
/* ✅ "End survey at": its words, the date and the clock on one line, with
   No end date beneath (the owner, 10 Nov 2026). */
.one-line-row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.one-line-row > label{margin:0;white-space:nowrap;font-weight:600}
.one-line-row .when{margin:0}
/* A number box on one line is as wide as a number needs, the number in
   its middle (the owner, 10 Nov 2026). */
.q.one-line > input[type=number]{width:9ch;flex:none;text-align:center}
/* A tick and its words, in front of the line it switches (10 Nov 2026). */
.inline-check{display:inline-flex;align-items:center;gap:.35rem;margin-right:.6rem;white-space:nowrap}
.inline-check input{width:auto;margin:0}
.inline-check label{margin:0;font-weight:400}
.q.one-line > .one-line-words{white-space:nowrap}
/* ✅ The owner, 10 Nov 2026: a light line between the parts of Limits. */
.limit-part + .limit-part{border-top:1px solid var(--line);margin-top:1rem;padding-top:.4rem}
.access-below.stacked{display:grid}
.access-below.stacked > *{grid-area:1/1;margin:0}
.access-below.stacked > [hidden]{display:flex!important;visibility:hidden}

/* NPS. 🔴 The score is large because it is what somebody came for — but the
   denominator sits beside it, never omitted. */
.nps-headline{display:flex;align-items:baseline;gap:.7rem;margin:.8rem 0}
.nps-score{font-size:2.4rem;font-variant-numeric:tabular-nums;line-height:1}

/* Ranking — a menu per item. 📌 The label and its menu stay on one line so
   the relationship is obvious; they wrap together on a narrow screen. */
.rank-row{display:flex;align-items:center;gap:.8rem;padding:.3rem 0;
  flex-wrap:wrap}
.rank-row label{font-weight:400;flex:1 1 12rem}
.rank-row select{width:auto;min-width:4.5rem}

/* Several boxes at once. 📌 Stacked, not side by side — a label above its
   box is the layout every form guide agrees on, and it survives a narrow
   screen without reflowing into confusion. */
.formfield{margin:.6rem 0}
.formfield label{display:block;font-weight:400;margin-bottom:.2rem}

/* R-1172 — constant sum. 📌 Label and box on one line, the boxes in a column
   so the numbers line up for adding; on a narrow screen the label wraps
   above. The unit sits against its box. */
/* ⚠️ Capped, or on a wide screen the box drifts a page-width away from
   its label and the pair stop reading as one. */
.sumfields{max-width:30rem}
.sumfield{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 1rem;
  margin:.45rem 0}
.sumfield label{flex:1 1 12rem;font-weight:400}
.sum-box{display:inline-flex;align-items:center;gap:.3rem}
.sum-box input{width:6rem;text-align:right}
.sum-running{font-weight:600;margin:.6rem 0 0}
/* Words carry the state; the colour only repeats it. */
.sum-running.sum-matched{color:var(--good)}
.sum-running.sum-off{color:var(--bad)}

/* Slider. 📌 The number box is deliberately narrow and beside the track, so
   it reads as one control rather than two questions. */
.slider-row{display:flex;align-items:center;gap:1rem}
.slider-row .slider{flex:1 1 auto;width:auto;min-width:0;padding:0}
/* 🔴 A real box now, not a readout (1 Oct 2026). It has to LOOK typeable or
   nobody tries, which was the whole complaint: a bare number at the far right
   reads as output, so people drag and give up on getting an exact figure.
   ⚠️ It arrives disabled from the server and app.js enables it — see
   take.html for why. The disabled state deliberately still shows its value. */
.slider-row .slider-value{flex:0 0 6rem;width:6rem;text-align:center;
  padding:.4rem .3rem}
.slider-row .slider-value:disabled{opacity:.55;cursor:not-allowed}

/* 🔴 The two ends of a scale, sitting over the two ends of the scale.
   They were one short line at the far left — "Not at all → Extremely"
   floating above eleven numbers and belonging to none of them.
   📌 space-between puts each label against its own end of the row, which is
   the same width as the options beneath. ⚠️ Not mathematically centered on the
   first and last number: "Not at all likely" is five times wider than the "0"
   it describes, so centring it on that digit would hang it off the left edge
   of the question. Aligned to the ends is what every well-drawn scale does. */
/* 🔴 Only as wide as the numbers it labels. Left full-width, "Extremely
   likely" sat far to the right of the 10 it describes — the labels stretched
   to the question, not to the scale. */
.scale-block{width:fit-content;max-width:100%}
/* ✅ The owner's rule, 19 Oct 2026 — the first circle centred under the
   left label, the right label centred over the last circle. Measured and
   applied by `alignScaleEnds` in app.js; without scripting the rule above
   (each label against its own end) is what shows. */
.scale-block .scale-ends{box-sizing:border-box;max-width:none}
.scale-ends{display:flex;align-items:baseline;gap:.75rem;
  justify-content:space-between;margin:.25rem 0 .5rem}
.scale-ends>span:first-child{text-align:left}
.scale-ends>span:last-child{text-align:right}
/* The arrow floats in the middle of whatever gap is left, equidistant from
   both labels, rather than sitting against one of them. */
.scale-ends .arrow{flex:1 1 auto;text-align:center;opacity:.6}

/* 🔴 Buttons line up with the words above them. `.cta-row` centres on the
   home page, where everything is centered; on a left-aligned page that left
   the two buttons floating in the middle of the column with the sentence
   they belong to starting at the margin. */
.cta-row.left{justify-content:flex-start}

/* Options editor. 📌 The new-option row puts its button beside the box, so
   "type here, press that" reads as one action rather than two fields. */
.option-row{margin:.35rem 0}
/* R-050 — a recode number sits beside its answer, sized for a number. */
.recode-row{display:flex;align-items:center;gap:.75rem;margin:.35rem 0}
.recode-row label{flex:0 1 18rem;min-width:0;margin:0}
.recode-row input{width:6rem;flex:none}
.new-option-row{display:flex;gap:.6rem;align-items:center}
.new-option-row input{flex:1 1 auto}
.new-option-row .add-option{flex:0 0 auto;white-space:nowrap}
.bulk{margin:.6rem 0}

/* 🔴 `R-076` — the rule on ONE choice, folded under the choice it governs.
   Indented against a line so it reads as belonging to the box above it rather
   than to the next one, the same device `.other-detail` uses. ⚠️ The summary
   is a SENTENCE, not a label, so it is sized down: it is a thing to read when
   you want it, not a heading competing with the option boxes. 📌 `#B034` says
   this page is already too long, which is why the whole control collapses to
   one line per choice. */
.item-rule{margin:.1rem 0 .5rem 1.1rem;border-left:3px solid var(--line);
  padding-left:.8rem}
.item-rule > summary{font-size:.85rem}
.item-rule .grid-3{margin:.4rem 0}

/* 🔴 Every <details> on the site, not just this one.
   A <summary> is clickable and looks like a heading. Nothing said otherwise
   — no pointer, no colour, no hover — so nobody knew any of them opened.
   Reported as "doesn't give any indication it's clickable", and it was true
   of every fold in the product, not only the one that was noticed.
   ⚠️ Scoped away from the four that carry their own look — the filter's
   Criteria drop-down drew as a squashed link until it was (30 Oct 2026). */
details:not(.menu):not(.danger-fold):not(.picker):not(.use-filter):not(.later-fold):not(.q-more) > summary{
  cursor:pointer;color:var(--accent);display:inline-block;padding:.15rem 0}
details:not(.menu):not(.danger-fold):not(.picker):not(.use-filter):not(.later-fold):not(.q-more) > summary:hover{text-decoration:underline}
.other-detail{border-left:3px solid var(--line);padding-left:.8rem}

/* Deleting a survey.
   ⚠️ The first version was small red text trailing the end of a row, and the
   owner could not find it at all. "Never the thing your eye lands on" is not
   the same as invisible — a control nobody can locate is not a cautious
   control, it is a missing feature. So: a real bordered control, pushed to
   the right of the row where actions belong, still folded so the dangerous
   part takes a deliberate click. */
.cards li{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
/* ⚠️ Kept for any card that still puts the fold directly in the <li>. On the
   surveys list it now lives inside .row-bottom, which does its own pushing —
   see that rule. A selector that matches nothing is not a bug, but a TEST
   pinning one is, so the test asserts the rule that actually applies. */
.cards li > .danger-fold{margin-left:auto}
.danger-fold summary{color:var(--bad);font-size:.85rem;cursor:pointer;
  border:1px solid var(--line);border-radius:6px;padding:.2rem .6rem;
  list-style:none;white-space:nowrap}
.danger-fold summary::-webkit-details-marker{display:none}
.danger-fold summary:hover{border-color:var(--bad)}
.danger-fold[open] summary{border-color:var(--bad);font-weight:600}
/* The form drops out of the flex row and takes the full width beneath it. */
.danger-fold[open]{flex:1 1 100%}
.danger-fold form{border:1px solid var(--bad);border-radius:8px;padding:.8rem;
  margin-top:.5rem;max-width:34rem}
button.danger{background:var(--bad);border-color:var(--bad);color:#fff}
:root[data-theme="dark"] button.danger{color:#14171b}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) button.danger{color:#14171b}}

/* #B033 — what a survey row offers. The ordinary actions read as a line of
   links; Delete keeps its own fold below and its own red, so the dangerous
   thing is still the one that looks dangerous without being the only one
   that looks like anything. */
/* ⚠️ The row is a wrapping flex line, so anything added to it becomes a
   flex item and lands wherever there happens to be room. These two are told
   to take a whole line each, which is what makes the row read as three
   deliberate lines — what it is, what you can do, where the link is —
   rather than as things that spilled. */
/* 🔴 The card is itself a flex row, so a child that should occupy a whole
   line has to say so. ⚠️ `.row-bottom` was added without this and shrank to
   fit its contents — which left `margin-left:auto` inside it nothing to push
   against, so Delete trailed Copy link instead of sitting at the far right.
   📌 `.link-line` is no longer a direct child (it lives inside `.row-bottom`),
   but the selector is harmless and other cards may still use it. */
.cards li > .row-actions, .cards li > .link-line,
.cards li > .row-bottom{flex:1 1 100%}
.row-actions{display:flex;gap:.9rem;flex-wrap:wrap;margin:.35rem 0 0;font-size:.95rem}
/* Delete goes last rather than sitting at the end of the title line. It is
   still red and still unmistakable; it is no longer the first thing the eye
   lands on in a row somebody opened to read their results. */
.cards li > .danger-fold{order:99}
.row-bottom > .danger-fold{order:99}
.cards .when{opacity:.85}
/* 🔴 The link, Copy and Delete share one row, Delete pushed to the far right
   (the owner's layout, 29 Sep 2026). Delete used to take a line of its own
   below the link, spending a whole row on every card.
   ⚠️ The OPEN danger fold takes the full width instead of staying a narrow
   column squeezed against the right edge — closed it is a small button,
   opened it is a panel. */
.row-bottom{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
  margin:.4rem 0 0}
.row-bottom > .danger-fold{margin-left:auto}
.row-bottom > .danger-fold[open]{flex:1 0 100%;margin-left:0}
/* ✅ The owner, 13 Nov 2026: Delete survey opens a BOX over the page, so the
   open fold stays a small button at the right and draws no panel. */
.row-bottom > .danger-fold.del-survey[open]{flex:0 0 auto;margin-left:auto}
.danger-fold.del-survey form{border:0;padding:0;margin:0;max-width:none}
.del-survey .q-del-box .q input{width:100%}
/* ✅ The owner, 13 Nov 2026: Make a copy the same size as Copy link. */
.copy-survey button{font-size:.8rem;padding:.2rem .6rem}
/* The link and its Copy button sit together at the left of that row.
   ⚠️ The gap supplies the spacing, so the button's own margin is cancelled —
   otherwise the two add up and the button drifts away from its box. */
.link-line{margin:0;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.link-line .copy-link{margin-left:0}
/* The button that files a survey without scripting. Removed by app.js once
   the dropdown has been wired to act the moment you pick. */
.assign-go{font-size:.85rem;padding:.15rem .5rem}
/* 🔴 As wide as the link, never wider. The width comes from the `size`
   attribute, which the template sets to the link's own length.
   ⚠️ **`width:auto` has to be said out loud.** Line 136 sets
   `input,textarea,select{width:100%}` for every field in the product, and a
   `size` attribute loses to any CSS width. Simply *deleting* the width from
   this rule does nothing at all — the global one takes over and the box is
   full-width again, which is how it looked before and after the first attempt
   at this fix. 📌 Found by screenshotting the page; the test written
   alongside the broken fix asserted "no width here" and passed happily.
   `max-width` still caps it at the column, so a long link on a narrow screen
   shrinks instead of overflowing. */
.survey-link{width:auto;max-width:100%;font-family:ui-monospace,SFMono-Regular,
  Menlo,monospace;font-size:.85rem;padding:.3rem .45rem;
  background:var(--soft);border:1px solid var(--line);border-radius:6px}
.primary-link{font-weight:600}

/* The Copy button beside a survey link. Small, quiet, and the same green as
   a saved Save button when it has just worked — one vocabulary for "done". */
.copy-link{font-size:.8rem;padding:.2rem .6rem;margin-left:.5rem;
  vertical-align:middle}
.copy-link.saved{background:var(--good);border-color:var(--good);color:#fff}

/* Ranking: draggable bars, best at the top (26 Sep 2026, the owner's
   decision and the way Qualtrics does it). 🔴 The order of the list IS the
   answer — the number on the left is a readout, not a control. */
ol.ranking{list-style:none;margin:.6rem 0;padding:0;max-width:34rem}
.rank-bar{display:flex;align-items:center;gap:.7rem;margin:.35rem 0;
  padding:.6rem .8rem;border:1px solid var(--line);border-radius:8px;
  background:var(--bg);cursor:grab}
.rank-bar:active{cursor:grabbing}
.rank-bar.is-dragging{opacity:.5;border-style:dashed}
.rank-number{flex:0 0 1.6rem;text-align:center;font-weight:700;
  color:var(--dim)}
.rank-text{flex:1}
/* ⚠️ A grab handle drawn in CSS rather than an image, so it inherits the
   theme and needs no file. Decorative, so it is hidden from readers. */
.rank-bar::after{content:"⠿";color:var(--dim);font-size:1.1rem}

/* R-200 — the crosstab's two boxes, added by app.js (setUpCrosstabPicker).
   Drawn like the ranking bars, because they are the same gesture: drag to
   order, arrows on the keyboard. */
.xt-boxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));
  gap:.75rem;margin:0 0 1rem}
.xt-box{border:1px dashed var(--line);border-radius:8px;padding:.6rem;
  background:var(--bg);min-width:0}
.xt-box.is-over{border-style:solid;border-color:var(--warn)}
.xt-title{font-weight:600;margin:0 0 .3rem}
.xt-list{list-style:none;margin:0;padding:0}
.xt-item{display:flex;align-items:center;justify-content:space-between;
  gap:.5rem;margin:.3rem 0;padding:.45rem .7rem;border:1px solid var(--line);
  border-radius:8px;background:var(--soft);cursor:grab}
.xt-item:active{cursor:grabbing}
.xt-item.is-dragging{opacity:.5;border-style:dashed}
.xt-text{flex:1;min-width:0;overflow-wrap:anywhere}
.xt-remove{font-size:1.2rem;line-height:1}
.xt-draggable{cursor:grab}

/* A date box switched off by "No end date". ⚠️ It has to LOOK inert, or it
   reads as a field somebody forgot to fill in — and in Safari the browser
   draws a grey sample date inside an empty one, which looks like a value. */
input:disabled{background:var(--soft);color:var(--dim);cursor:not-allowed}

/* Create on the far left, Folders on the far right, level with each other —
   the two things people come to the surveys page to reach. */
.list-controls{display:flex;justify-content:space-between;align-items:center;
  gap:1rem;flex-wrap:wrap;margin:.6rem 0}
.list-controls form{margin:0}
/* The Folders menu opens leftwards: it sits at the right edge, so a menu
   anchored on the left would hang off the page. */
.folders-menu{position:relative}
.folders-menu > .menu-items{right:0;left:auto}
.folders-menu .menu-items form{display:block;padding:.4rem .2rem}
.folders-menu .menu-items label{display:block;font-size:.85rem;
  margin:0 0 .25rem}
.folders-menu .menu-items input{margin-bottom:.4rem}
.folders-menu .menu-items hr{border:0;border-top:1px solid var(--line);
  margin:.4rem 0}

.survey-search{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;
  margin:.6rem 0 1rem}
.survey-search input{width:auto;min-width:16rem;max-width:100%}

/* The folder a survey is in, beside its version — quiet, like the date.
   ⚠️ No decorative glyph: the site face is Alegreya Sans SC, which has no
   folder character, so it rendered as nothing here and would be a tofu box on
   another machine. The word is the label. */
.folder-name{opacity:.85}

/* Filing sits with the row's other actions rather than below them. */
/* Sits inside the row's actions, immediately after Preview, so filing reads
   as one more thing you can do with this survey rather than a separate step. */
.assign-folder{display:flex;gap:.4rem;align-items:center;margin:0}
.assign-folder select{width:auto;max-width:11rem;font-size:.85rem;
  padding:.15rem .3rem}
.assign-folder button{font-size:.85rem;padding:.15rem .5rem}

/* The account name in the masthead, beside the word Account. Regular weight
   would let it blur into the label; it is the part that identifies the page. */
.account-name{font-weight:600}

/* ===================================================================== *
 * THE PUBLIC HOME PAGE                                                  *
 *                                                                       *
 * 🔴 Everything here is scoped under `.home` so it cannot reach the      *
 * product's own pages. The page uses the SAME tokens as everything else  *
 * (--ink, --bg, --soft, --line, --accent), so it follows light and dark  *
 * for free rather than carrying its own palette.                        *
 *                                                                       *
 * ⚠️ `--on-accent` exists because the accent inverts between schemes.    *
 * White on #1f5fbf is about 6.5:1 in light; white on the dark scheme's   *
 * #7aa8f0 would be roughly 2:1 and unreadable. Dark text on it is about  *
 * 7:1. So the foreground has to flip with the background, not be fixed. *
 * ===================================================================== */

/* ⚠️ The token is declared on BOTH, because `.cta` escaped `.home` on
   1 Oct 2026 — the demo thank-you page needed the same two buttons. A
   `.cta.primary` outside `.home` would otherwise inherit no --on-accent and
   fall back to transparent text on a solid fill. */
.home,.cta-row{--on-accent:#fff}
.home{max-width:62rem; margin:0 auto}
@media (prefers-color-scheme:dark){
  .home:where(:not([data-theme="light"]) *),
  .cta-row:where(:not([data-theme="light"]) *){--on-accent:#101317}}
:root[data-theme="dark"] .home,
:root[data-theme="dark"] .cta-row{--on-accent:#101317}
:root[data-theme="light"] .home,
:root[data-theme="light"] .cta-row{--on-accent:#fff}

/* -- hero ------------------------------------------------------------- */
.home .hero{text-align:center;padding:2.5rem 0 1rem}
/* 📌 40ch, not 34. The reason was a longer headline — it broke across four
   lines at the narrower measure and left "RECEIVE as" straddling a line end,
   putting the one capitalised word in the weakest position on the page. That
   headline is gone (5 Oct 2026) and the present one is short enough that the
   measure no longer bites; 40ch is kept because it is the width the sentence
   is balanced at, not because it is still rescuing anything.
   `text-wrap:balance` evens the lines; it cannot add room that is not there. */
.home .hero-head{font-size:clamp(1.7rem,4.2vw,2.75rem);line-height:1.15;
  margin:0 auto .9rem;max-width:40ch;text-wrap:balance}
.home .hero-sub{font-size:1.1rem;color:var(--dim);max-width:52ch;
  margin:0 auto 2rem}

/* The price, as the one thing the eye lands on. */
.home .price-card{border:1px solid var(--line);border-radius:14px;
  background:var(--soft);padding:1.5rem;margin:0 auto 1.75rem;
  display:flex;gap:1.75rem;align-items:center;text-align:left;
  max-width:46rem;flex-wrap:wrap;justify-content:center}
.home .price{display:flex;align-items:baseline;gap:.5rem;margin:0;
  flex:0 0 auto}
.home .price .amount{font-size:3.4rem;font-weight:700;line-height:1;
  color:var(--accent)}
.home .price .per{font-size:.9rem;color:var(--dim);line-height:1.25}
.home .price-points{list-style:none;margin:0;padding:0;flex:1 1 20rem;
  display:grid;gap:.6rem}
.home .price-points li{padding-left:1.5rem;position:relative;font-size:.97rem}
/* A tick drawn in CSS — no icon font, no SVG request, and it inherits colour. */
.home .price-points li::before{content:"";position:absolute;left:0;top:.42em;
  width:.5rem;height:.28rem;border-left:2.5px solid var(--good);
  border-bottom:2.5px solid var(--good);transform:rotate(-45deg)}

/* -- calls to action -------------------------------------------------- */
.cta-row{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap;
  margin:0 0 1.5rem}
.cta{display:inline-block;padding:.72rem 1.5rem;border-radius:8px;
  text-decoration:none;font-weight:600;font-size:1.02rem;
  border:2px solid transparent;transition:transform .08s ease-out}
.cta.primary{background:var(--accent);color:var(--on-accent);
  border-color:var(--accent)}
.cta.secondary{color:var(--accent);border-color:var(--line)}
.cta:hover{transform:translateY(-1px)}
.cta.secondary:hover{border-color:var(--accent)}
/* 🔴 A visible focus ring, not the removed one. Keyboard users land here. */
.cta:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.cta{transition:none}
  .cta:hover{transform:none}}

/* 📌 The trust panel and the separate demo call-to-action were removed from
   the home page on 1 Oct 2026 (their content moved into the price-card
   bullets), and their rules went with them. Dead CSS is cheap to keep and
   expensive to trust — a later session reads a selector, assumes something
   uses it, and designs around a thing that is not there. */

/* -- bands ------------------------------------------------------------ */
.home .band{padding:2.75rem 0;border-top:1px solid var(--line)}
/* `alt` is a full-bleed tint, so alternating sections read as separate
   without drawing more lines. */
/* ⚠️ Its own margin must NOT stack on top of the previous band's bottom
   padding — that put about eight rems of nothing between two sections and
   read as the page having ended. A screenshot caught it; the rule looked
   reasonable on its own. */
.home .band.alt{background:var(--soft);border-radius:14px;
  padding:2.25rem 1.5rem;border-top:0;margin:0}
.home .band + .band.alt{margin-top:-.5rem}
.home .band h2{font-size:clamp(1.25rem,2.6vw,1.75rem);margin:0 0 .5rem;
  text-wrap:balance}
.home .section-lede{color:var(--dim);max-width:58ch;margin:0 0 1.5rem}
/* 📌 Breathing room between the table and the invitation beneath it (the
   owner, 5 Oct 2026). The paragraph used to sit above the table; moved below
   it, the default spacing left it looking like a stray last row. */
.home .section-lede.after-table{margin-top:2.25rem}
.home .count-note,.home .footnote,.home .provenance{font-size:.88rem;
  color:var(--dim);max-width:62ch}
.home .provenance{margin-top:1rem}

/* -- tables ----------------------------------------------------------- */
/* ⚠️ Wide content scrolls inside its own box. The page body must never
   scroll sideways — on a phone that hides the right-hand column of a
   comparison, which is the column that makes the point. */
.home .scroller{overflow-x:auto;border:1px solid var(--line);border-radius:10px;
  background-color:var(--bg)}
.home table{border-collapse:collapse;width:100%;min-width:34rem}
/* ✅ Group B of the audit: the question types are two columns of words — on
   a phone they wrap rather than hide their descriptions off to the right. */
.home table.types{min-width:0}
.home .types tbody th[scope="row"]{white-space:normal}
/* The comparison needs all four columns, so a phone is told to swipe. */
.home .swipe-hint{display:none}
@media (max-width:40rem){.home .swipe-hint{display:block}}
.home th,.home td{text-align:left;padding:.72rem .9rem;
  border-bottom:1px solid var(--line);vertical-align:top}
.home thead th{font-size:.78rem;letter-spacing:.07em;text-transform:uppercase;
  color:var(--dim);background:var(--soft);position:sticky;top:0}
.home tbody tr:last-child th,.home tbody tr:last-child td{border-bottom:0}
.home tbody th[scope="row"]{font-weight:600;white-space:nowrap}
.home .types tbody tr:nth-child(odd) th,
.home .types tbody tr:nth-child(odd) td{background:color-mix(in srgb,var(--soft) 55%,transparent)}
.home .compare .price-cell{white-space:nowrap;font-variant-numeric:tabular-nums}
.home .compare .tiny{display:block;font-size:.8rem;color:var(--dim);
  white-space:normal}
/* 🔴 Our own row marked, but with a border and weight rather than a loud
   fill — a comparison table that shouts about itself reads as advertising
   and stops being believed. */
.home .compare tr.us th,.home .compare tr.us td{
  background:color-mix(in srgb,var(--accent) 9%,transparent)}
.home .compare tr.us th[scope="row"]{box-shadow:inset 3px 0 0 var(--accent)}

/* Homepage design #2 — "How we compare". 🔴 Every mark says Yes / Partly /
   Not yet in WORDS beside its symbol: never colour alone. Our column is
   tinted like design #1's own row, quietly. */
/* Four columns that FIT a laptop: the capability takes a third, the three
   products share the rest. Only a phone scrolls (inside the box). */
.home .capabilities{min-width:36rem;table-layout:fixed}
.home .capabilities thead th:first-child{width:31%}
.home .capabilities tbody th[scope="row"]{white-space:normal;font-weight:600}
.home .capabilities th,.home .capabilities td{padding:.65rem .7rem}
.home .capabilities td.mark{white-space:nowrap}
.home .capabilities td.mark .glyph{display:inline-block;width:1.2em;
  font-weight:700}
.home .capabilities td.mark.yes .glyph{color:var(--good)}
.home .capabilities td.mark.part .glyph{color:var(--warn)}
.home .capabilities td.mark.no .glyph,
.home .capabilities td.mark.unclear .glyph{color:var(--dim)}
.home .capabilities td.mark .tiny{display:block;white-space:normal;
  font-size:.8rem;color:var(--dim)}
.home .capabilities td.us{background:color-mix(in srgb,var(--accent) 9%,transparent)}
/* Plans (the owner, 31 Oct 2026): three cards side by side, one under
   another on a phone. The price uses the hero's own styles. */
.home .plans{display:grid;gap:1.25rem;margin:0 0 1.5rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
.home .plan{border:1px solid var(--line);border-radius:14px;
  background:var(--soft);padding:1.5rem;display:flex;flex-direction:column;
  gap:.75rem;text-align:left}
.home .plan h3{margin:0;font-size:1.4rem}
.home .plan p{margin:0}
.home .plan .best-for,.home .plan .matches{font-size:.92rem;color:var(--dim)}
.home .plan .limits{font-weight:600}
.home .plan .yearly{font-size:.92rem;margin-top:-.35rem}
.home .plan .price-points{flex:1 1 auto}
.home .plan .matches{border-top:1px solid var(--line);padding-top:.75rem}
/* Alchemer's section names (the owner, 31 Oct 2026): a quiet heading row. */
.home .capabilities tr.group th{text-align:left;font-size:.85rem;
  text-transform:uppercase;letter-spacing:.04em;color:var(--dim);
  padding-top:1.1rem;background:transparent}

/* -- feature lists ---------------------------------------------------- */
.home .feature-list{list-style:none;margin:0;padding:0;display:grid;
  gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))}
.home .feature{border:1px solid var(--line);border-radius:10px;
  padding:1.1rem;background:var(--bg)}
.home .feature-name{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;
  font-weight:600;font-size:1.03rem;margin:0 0 .5rem}
.home .feature p.prose{margin:0 0 .6rem;font-size:.94rem}
.home .feature .elsewhere{margin:0;font-size:.88rem;color:var(--dim);
  border-top:1px solid var(--line);padding-top:.6rem}
.home .elsewhere .label{display:block;font-family:"Alegreya Sans SC",sans-serif;
  font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--dim);margin-bottom:.15rem}
/* Reuses the product's own `.badge` pill. The states are ours. */
.home .badge.yes{border-color:var(--good);color:var(--good)}
.home .badge.roadmap{border-color:var(--warn);color:var(--warn)}
.home .badge.no{border-color:var(--dim);color:var(--dim)}

/* -- closer ----------------------------------------------------------- */
.home .closer{text-align:center;padding:3rem 0 2.5rem;
  border-top:1px solid var(--line)}
.home .closer h2{margin-bottom:.6rem}
.home .closer .prose{color:var(--dim);max-width:48ch;margin:0 auto 1.6rem}

@media (max-width:40rem){
  .home .price-card{flex-direction:column;gap:1rem;align-items:flex-start}
  .home .price .amount{font-size:2.8rem}
  .home .band.alt{padding-inline:1rem;border-radius:10px}
  .cta{width:100%;text-align:center}
}

/* 🔴 The site footer — on every page, including the one a respondent sees.
   ⚠️ `no-print` on the printed copy of a results page: a sheet of paper
   already says what it is and when it was taken, and a support address at the
   bottom of somebody's board pack is noise. */
.site-foot{max-width:56rem;margin:0 auto;padding:1.5rem 1rem 2.5rem;
  border-top:1px solid var(--line);color:var(--dim);font-size:.85rem;
  display:flex;gap:.5rem 2rem;flex-wrap:wrap;justify-content:space-between}
.site-foot p{margin:0}
@media print{.site-foot{display:none}}

/* 🔴 #B077 — the "show each one to about the same number of people" tick sat
   flush beneath the list of PIN ticks, so it scanned as one more option to
   pin rather than a different kind of setting. Found by screenshotting the
   panel and reading it; no test could see it. */
.balance-check { border-top:1px solid var(--line); padding-top:.6rem; margin-top:.75rem }

/* The "Show password" checkbox — added by app.js beside every password box. */
.reveal{display:block;font-size:.875rem;margin:.3rem 0 .2rem;color:var(--dim)}
.reveal input{width:auto;margin-right:.3rem}

/* 🔴 Phone width — nothing may push the page sideways (16 Oct 2026).
   Measured at 375px, signed in: the page was 425px wide. Two causes.
   1. A flex item will not shrink below its content unless told to: the
      survey card's rows held the link box at its full `size`, 397px, so the
      `max-width:100%` on the box never had a narrower parent to obey.
   2. The masthead's links never wrapped, so the Account menu sat past the
      right edge. On a phone they wrap under the brand instead. */
.row-bottom,.link-line{min-width:0}
.link-line .survey-link{flex:0 1 auto;min-width:0}
/* The builder's "who can answer" grid is a real table of radios; on a phone
   it scrolls inside its own box. ⚠️ `min-width:0` is the half that matters:
   a FIELDSET's browser default is `min-width:min-content`, so without it the
   box grows to the table and there is nothing to scroll. */
.access-grid{overflow-x:auto;min-width:0}
@media (max-width:40rem){
  .top{flex-wrap:wrap;row-gap:.5rem}
  .topnav{flex-wrap:wrap;margin-left:0;gap:.5rem 1.25rem;min-width:0}
  /* The menus now sit at the LEFT, so they open rightwards — opening from
     their right edge would push a short account name's menu off-screen. */
  .topnav .menu-items{left:0;right:auto}
}

/* R-042 — the version history. View and Restore side by side. */
.history td.nb{display:flex;align-items:center;gap:.75rem}
.history form.inline{margin:0}

/* R-043 — the progress bar: "0%" and "100%" at its ends, the Qualtrics way. */
.pager .bar-row{display:flex;align-items:center;gap:.5rem}
.pager .bar-row progress{flex:1 1 auto}
.pager .bar-end,.pager .bar-name{font-size:.8rem;opacity:.8}
.pager .bar-name{margin:0 0 .2rem}

/* R-038 — a date box and a time box, side by side, each with its label. */
.when-row{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem}
.when-part{display:flex;flex-direction:column;gap:.2rem}
.when-part input{width:auto}

/* R-053 — how a choice question's options are laid out (the owner's
   decision, 16 Oct 2026). Columns use CSS columns, which fill DOWN, so the
   order on screen is the order a screen reader follows. 🔴 On a phone every
   layout stacks into one column. */
.options.layout-horizontal{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem}
.options.layout-cols-2{column-count:2;column-gap:1.5rem}
.options.layout-cols-3{column-count:3;column-gap:1.5rem}
.options.layout-cols-4{column-count:4;column-gap:1.5rem}
[class*="layout-cols-"] .option{break-inside:avoid}
/* The "Other" box stays with its option rather than heading a new column. */
[class*="layout-cols-"] .option.other-box{break-before:avoid-column}
@media (max-width:40rem){
  .options.layout-horizontal{display:block}
  .options[class*="layout-cols-"]{column-count:1}
}

/* ✅ Pictures as answer choices (Alchemer's Image Select). A grid of tiles,
   each a native radio or checkbox with its picture and words in the label.
   🔴 The control stays visible in the corner, so a chosen tile says so by
   its tick as well as its border — never colour alone. The author's
   columns are the pictures per row; a phone shows two. */
.options.pictures{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));
  gap:.75rem;column-count:auto}
.options.pictures.layout-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.options.pictures.layout-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.options.pictures.layout-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.options.pictures.layout-horizontal{display:grid}
.options.pictures .option{position:relative;padding:0;display:block}
.options.pictures .option input{position:absolute;top:.5rem;left:.5rem;margin:0}
.options.pictures .option label{display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:.4rem;height:100%;min-height:4.5rem;padding:.6rem .6rem .6rem 2rem;
  border:1px solid var(--line);border-radius:8px;cursor:pointer;text-align:center}
.options.pictures .option label img{display:block;width:100%;max-height:10rem;
  object-fit:contain}
.options.pictures input:checked + label{border-color:var(--accent);
  box-shadow:0 0 0 2px var(--accent)}
.options.pictures input:focus-visible + label{outline:2px solid var(--accent);outline-offset:2px}
.options.pictures .option.other-box{grid-column:1/-1}
@media (max-width:40rem){
  .options.pictures,.options.pictures[class*="layout-cols-"]{
    grid-template-columns:repeat(2,minmax(0,1fr));column-count:auto}
}
.option-picture{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:-.3rem 0 .6rem}
.option-picture input[type=file]{width:auto}
.option-thumb{width:3.5rem;height:3.5rem;object-fit:contain;border:1px solid var(--line);border-radius:4px}

/* ✅ Alchemer's Dropdown Menu and Star Rating grids — one answer a line. */
.matrix.grid-dropdown td, .matrix.grid-stars td{text-align:left}
.matrix.grid-dropdown select{width:auto;min-width:12rem;max-width:100%}
.matrix.grid-stars .options.stars{display:inline-flex;vertical-align:middle}
.matrix .star-na{display:inline-flex;align-items:center;gap:.3rem;margin-left:.6rem}

/* ✅ Alchemer's Review action — their answers, page by page. The answer is
   what a PERSON wrote, so it wears the reading face; the question is ours
   only in the sense that the author wrote it, and stays bold. */
.review-page{border-top:1px solid var(--line);padding-top:.6rem;margin-top:1rem;
  break-inside:avoid}
.review-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
.review-head h2{margin:0;font-size:1.1rem}
.review-list dt{font-weight:600;margin-top:.7rem}
.review-list dd{margin:.15rem 0 0;overflow-wrap:anywhere}
.review-list .dim{color:var(--dim)}

/* #B090 — staging says so on every page. Black on amber: 11.5:1, and not a
   colour any theme uses, so it cannot be read as part of the customer's page. */
.staging-banner{background:#f4c430;color:#111;text-align:center;font-weight:500;
  padding:.35rem 1rem;letter-spacing:.04em}
@media print{.staging-banner{border-bottom:2px solid #111}}

/* ✅ The owner's decision, 19 Oct 2026: each choice on an email list's rows
   explained in plain words, above the table. */
.choices-key{display:grid;grid-template-columns:max-content 1fr;gap:.25rem .9rem;
  margin:.5rem 0 1rem}
.choices-key dt{margin:0}
.choices-key dd{margin:0}
@media (max-width:600px){.choices-key{grid-template-columns:1fr}
  .choices-key dd{margin-bottom:.5rem}}

/* ✅ The redesign's stage 1 (the owner, 9 Nov 2026): a question shows as the
   respondent sees it, its number and kind above, Edit / Logic / ⋯ beside;
   its settings open beneath in four tabs. Without scripting the "Edit Q1"
   line opens it and the tabs are headed sections. */
.q-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.q-tag{margin:0}
.q-tag .q-kind{font-weight:normal;color:var(--dim)}
.q-tools{display:flex;align-items:center;gap:.4rem}
.q-tools button,.q-tools a.q-logic{font:inherit;padding:.2rem .7rem;border:1px solid var(--line);border-radius:6px;
  background:var(--bg);color:var(--ink);text-decoration:none;line-height:1.5}
details.q-more{position:relative}
details.q-more > summary{list-style:none;cursor:pointer;padding:.15rem .6rem;border:1px solid var(--line);
  border-radius:.35rem;line-height:1.4}
details.q-more > summary::-webkit-details-marker{display:none}
.q-menu{position:absolute;right:0;top:calc(100% + .25rem);z-index:5;min-width:13rem;padding:.35rem;
  background:var(--bg);border:1px solid var(--line);border-radius:.5rem;box-shadow:0 6px 18px rgba(0,0,0,.18);
  display:flex;flex-direction:column;gap:.15rem}
.q-menu form{display:flex;flex-direction:column;gap:.15rem;margin:0}
.q-menu button,.q-menu a{display:block;width:100%;text-align:left;background:none;border:0;
  padding:.35rem .6rem;border-radius:.3rem;color:var(--ink);text-decoration:none}
.q-menu button:hover,.q-menu a:hover{background:var(--soft)}
.q-menu .danger{color:var(--bad)}
.q-preview{margin-top:.6rem;padding:.75rem 1rem;border:1px dashed var(--line);
  border-radius:.5rem;background:var(--bg);color:var(--ink)}
.q-preview .q-preview-label{margin:0 0 .5rem;font-size:.9rem;color:var(--dim)}
.q-preview .q-preview-label strong{color:var(--ink)}
.q-setline,.q-usedby{margin:.4rem 0 0}
.q-menu-warn{margin:.2rem .6rem .3rem;max-width:18rem}
/* ✅ The owner, 13 Nov 2026: Move · Copy · Delete only while Edit is open. */
.q-top .q-tools{display:none}
section.question:has(> details.q-fold[open]) .q-tools,
section.question:has(details.q-fold[open]) > .q-top .q-tools{display:flex}
.q-tools form.q-copy{margin:0}
.q-tools details.q-more > summary{padding:.2rem .7rem;border-radius:6px;line-height:1.5;background:var(--bg)}
.q-move .q-menu{min-width:9rem}
.q-move .q-menu form{flex-direction:column}
/* Delete asks first — a box in the middle of the screen. */
.q-del-back{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.35)}
.q-del-box{position:fixed;z-index:41;left:50%;top:30%;transform:translate(-50%,-30%);
  width:min(30rem,calc(100vw - 2rem));padding:1.1rem 1.2rem;background:var(--bg);color:var(--ink);
  border:1px solid var(--line);border-radius:.6rem;box-shadow:0 12px 40px rgba(0,0,0,.3)}
.q-del-box p{margin:0 0 .6rem}
.q-del-buttons{display:flex;gap:.6rem;align-items:center;margin-top:.8rem}
.q-del-buttons form{margin:0}
.q-copied{margin:.4rem 0 0;padding:.4rem .7rem;border-left:4px solid var(--good);background:var(--soft);font-weight:600}
.q-del-buttons .primary{background:var(--accent);color:#fff;border-color:var(--accent)}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .q-del-buttons .primary{color:#14171b}}
:root[data-theme="dark"] .q-del-buttons .primary{color:#14171b}
.q-del-buttons .danger{background:var(--bad);color:var(--bg);border-color:var(--bad)}
.q-preview-slot > .q-preview{margin:.2rem 0 1rem}
.rule-say{margin:.5rem 0 0}
details.q-fold{margin-top:.6rem}
details.q-fold > summary.q-line{cursor:pointer;color:var(--accent);font-weight:600}
/* ⚠️ !important: the site-wide summary rule above outranks it otherwise. */
html.js-on details.q-fold > summary.q-line{display:none!important}
details.q-fold[open]{border-top:1px solid var(--line);padding-top:.6rem}
.q-tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--line);margin-bottom:.75rem;flex-wrap:wrap}
.q-tabs [role=tab]{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;
  padding:.4rem .8rem;color:var(--dim);margin-bottom:-1px}
.q-tabs [role=tab][aria-selected=true]{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}
html.js-on .q-tab-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.q-tab-name{margin:1rem 0 .4rem}

/* ✅ #B300 stage 2 — a question's formatted words on the respondent's page:
   a list keeps its numbers or bullets, and help that is a <div> now (a list
   cannot sit in a <p>) keeps the help's own spacing. */
/* 🔴 Bold has to SHOW. A question's wording is already drawn at 600 and our
   fonts stop at 700, so bold inside it looked the same as the rest (walked
   5 Nov 2026). When the author has bolded something, the rest of that
   wording steps down to 500 and the bold words stay at 700. Wording with no
   bold is drawn exactly as before. */
fieldset legend:has(strong),.q>label:has(strong),.content h2:has(strong){font-weight:500}
fieldset legend strong,.q>label strong,.content h2 strong{font-weight:700}
/* ⚠️ Only where the author's words are, never `.q ol` — ranking is a list. */
legend ol,legend ul,div.help ol,div.help ul,.content-help ol,.content-help ul,
.content h2 ol,.content h2 ul{margin:.25rem 0;padding-left:1.5rem}
/* ✅ Piped data (`R-096`, #B300 — the owner's design, 5 Nov 2026). Each box
   is framed with its button inside, at the bottom of a tall box and at the
   right of a one-line one. The frame takes the box's border and its focus
   ring, so the two read as one control. */
.tbox{display:flex;align-items:center;width:100%;min-width:0;position:relative;
  border:1px solid var(--line);border-radius:6px;background:var(--bg)}
.tbox:focus-within{outline:3px solid var(--accent);outline-offset:2px}
.tbox>input,.tbox>textarea{border:0;flex:1;min-width:0;background:transparent}
.tbox>input:focus-visible,.tbox>textarea:focus-visible{outline:none}
.tbox-tall{flex-direction:column;align-items:stretch}
.tbox-bar{display:none;align-items:center;gap:.35rem;padding:.2rem .35rem}
html.js-on .tbox-bar{display:flex}
/* ✅ One toolbar in sight (the owner, 9 Nov 2026): only the box being typed
   in shows its buttons — and keeps them while its Piped data menu is open,
   which app.js puts inside the same box. */
/* ⚠️ visibility, not display: the bar keeps its room, so moving between
   boxes (or pressing Save) never shifts the page under the pointer. */
html.js-on .tbox:not(:focus-within) .tbox-bar{visibility:hidden}
/* …and stays while its Piped data menu is open (Safari, 9 Nov 2026). */
html.js-on .tbox.menu-open .tbox-bar{visibility:visible}
.tbox-tall .tbox-bar{border-top:1px solid var(--line)}
.insert-data{font-size:.85rem;padding:.15rem .55rem;white-space:nowrap}
/* ✅ #B300 stage 2 — the editor that replaces the wording and help boxes
   when scripting is on, and the four formatting buttons beside Piped data.
   The editor holds what a PERSON wrote, so it takes their face (fonts.md). */
.rich{padding:.5rem;min-height:2.6em;outline:none;overflow-wrap:anywhere;
  font-family:"Alegreya Sans","Alegreya Sans SC",-apple-system,BlinkMacSystemFont,
  "Segoe UI",Roboto,sans-serif}
.tbox-tall textarea + .rich{min-height:3.6em}
.rich ol,.rich ul{margin:.25rem 0;padding-left:1.5rem}
.fmt-group{display:inline-flex;gap:.25rem}
.fmt{min-width:2rem;font-size:.9rem;padding:.15rem .4rem;line-height:1.2}
.fmt{display:inline-flex;align-items:center;justify-content:center}
.fmt-group + .fmt-group{padding-left:.35rem;border-left:1px solid var(--line)}
.insert-data{margin-left:auto}
.fmt[aria-pressed="true"]{background:var(--soft);border-color:var(--accent);color:var(--accent)}

/* Without scripting: every list, each code beside its words to copy. */
.pipe-picker{margin:.25rem 0 .75rem}
.im-list{list-style:none;margin:0;padding:0;display:grid;gap:.25rem}
.im-heading{margin:.6rem 0 .25rem}
.im-code{font-size:.85em;overflow-wrap:anywhere;margin-left:.35rem}
.insert-menu:not(.open) .im-top,.insert-menu:not(.open) .im-back,
.insert-menu:not(.open) .im-open{display:none}
.im-insert,.im-open{text-align:left}
.im-sub{display:block;font-size:.85em;color:var(--dim);margin-top:.1rem}

/* With scripting: one panel at a time, under the box pressed. */
html.js-on .pipe-picker,html.js-on .no-js-only{display:none}
.insert-menu.open{position:absolute;top:calc(100% + .3rem);left:-1px;z-index:5;
  /* As wide as its box, within 18–30rem: on a phone the box fits the screen,
     so the menu does too (it ran 22px off a 375px screen before this). */
  width:min(30rem,max(100%,18rem));max-height:min(24rem,55vh);overflow:auto;
  padding:.35rem .6rem .6rem;background:var(--bg);border:1px solid var(--line);
  border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.insert-menu.open .im-heading{margin:.3rem 0 .4rem;display:flex;gap:.6rem;align-items:baseline}
.insert-menu.open .im-code{display:none}
.insert-menu.open .im-list button{width:100%;padding:.4rem .55rem;border:0;
  border-radius:6px;background:none;color:var(--ink);font:inherit}
.insert-menu.open .im-list button:hover,.insert-menu.open .im-list button:focus-visible{background:var(--soft)}
.insert-menu.open .im-open::after{content:" ›";color:var(--dim)}
/* A question's own words in the menu are the CUSTOMER's, so they take the
   face for what a person wrote (docs/fonts.md) — `font:inherit` above would
   otherwise give them the product's small capitals. */
.insert-menu.open .im-list button.typed{font-family:"Alegreya Sans","Alegreya Sans SC",
  -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}

/* ✅ Carry forward (E-128) — a carried choice is read, not typed into. */
.option-row.carried{margin:.25rem 0;padding:.3rem 0;color:var(--dim)}
.option-row.carried .piped-from{color:var(--dim);margin-right:.25rem}
details.carry{margin:.75rem 0}
details.carry .grid-3{margin:.4rem 0}

/* ✅ R-055 — notes between colleagues, under a question in the builder. */
details.notes{margin:.75rem 0}
details.notes .note{border-left:3px solid var(--line);padding:.1rem 0 .4rem .6rem;margin:.4rem 0}
details.notes .note-by{margin:0}
details.notes .note-body{margin:.15rem 0 .3rem;white-space:pre-wrap}

/* ✅ R-002 — the template catalogue on the surveys page. */
details.starters{margin:1rem 0}
details.starters > summary{font-weight:600}
/* 📌 The chevron that says this box opens (the owner, 29 Oct 2026): at the
   far RIGHT of the header row, down when closed and up when open — the
   accordion pattern most design systems use. The whole row is the control.
   🔴 Drawn with borders and empty `content`, so a screen reader reads no
   stray symbol; the <summary> already says open or closed. */
/* ⚠️ `.panel.starters`, not `.starters`: the site-wide rule above that
   makes every summary `inline-block` outranks a single class. */
details.panel.starters > summary{display:flex;align-items:center;
  justify-content:space-between;gap:1rem;width:100%;box-sizing:border-box}
details.starters > summary::-webkit-details-marker{display:none}
details.starters > summary::after{content:"";flex:none;width:.5rem;height:.5rem;
  margin:0 .25rem .25rem 0;border:solid currentColor;border-width:0 2px 2px 0;
  transform:rotate(45deg);transition:transform .15s ease}
details.starters[open] > summary::after{transform:rotate(-135deg);margin-bottom:-.25rem}
@media (prefers-reduced-motion:reduce){details.starters > summary::after{transition:none}}
.starter-purpose{font-size:1rem;margin:1rem 0 .4rem}
.starter-list{list-style:none;padding:0;margin:0;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.75rem}
.starter-list li{border:1px solid var(--line);border-radius:6px;padding:.6rem .75rem}
.starter-list p{margin:.1rem 0 .4rem}

/* ✅ The author's own ending message — their line breaks kept. */
.ending-message{white-space:pre-wrap}

/* ✅ Languages — the menu on a respondent's page, after its own buttons. */
.language-menu{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:1rem 0}
.language-menu label{margin:0}

.language-row{border-top:1px solid var(--line);padding:.5rem 0}
.language-row p{margin:.2rem 0}

/* ✅ PRD E-247 — a rating drawn as stars. The radios stay real and
   focusable (clipped, not removed); each label draws an outlined star,
   and every star up to the one picked is filled — shape AND colour. */
.options.stars{gap:.15rem}
.options.stars .option{position:relative}
.options.stars input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0}
.options.stars label{cursor:pointer;padding:.15rem .1rem;font-size:1.9rem;line-height:1}
.options.stars .star::before{content:"\2606";color:var(--dim)}
.options.stars input:checked + label .star::before{content:"\2605";color:var(--accent)}
.options.stars input:focus-visible + label{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.options.stars:has(.option:nth-child(1) input:checked) .option:nth-child(-n+1) .star::before{content:"\2605";color:var(--accent)}
.options.stars:has(.option:nth-child(2) input:checked) .option:nth-child(-n+2) .star::before{content:"\2605";color:var(--accent)}
.options.stars:has(.option:nth-child(3) input:checked) .option:nth-child(-n+3) .star::before{content:"\2605";color:var(--accent)}
.options.stars:has(.option:nth-child(4) input:checked) .option:nth-child(-n+4) .star::before{content:"\2605";color:var(--accent)}
.options.stars:has(.option:nth-child(5) input:checked) .option:nth-child(-n+5) .star::before{content:"\2605";color:var(--accent)}
.options.stars:has(.option:nth-child(6) input:checked) .option:nth-child(-n+6) .star::before{content:"\2605";color:var(--accent)}
.options.stars:has(.option:nth-child(7) input:checked) .option:nth-child(-n+7) .star::before{content:"\2605";color:var(--accent)}
.options.stars:has(.option:nth-child(8) input:checked) .option:nth-child(-n+8) .star::before{content:"\2605";color:var(--accent)}
.options.stars:has(.option:nth-child(9) input:checked) .option:nth-child(-n+9) .star::before{content:"\2605";color:var(--accent)}
.options.stars:has(.option:nth-child(10) input:checked) .option:nth-child(-n+10) .star::before{content:"\2605";color:var(--accent)}

/* b-results — managing responses: a button inside a sentence, tags as a
   row of pills, a colleague's comment as a quiet box. */
form.inline{display:inline;margin:0}
.tag-list{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:.4rem 0}
.tag-list li{display:inline-flex;align-items:center;gap:.4rem}
.note{border-left:3px solid var(--line, var(--dim));padding:.1rem 0 .1rem .75rem;margin:.6rem 0}
.note p{margin:.2rem 0}
.search-row{display:flex;gap:.5rem;flex-wrap:wrap;align-items:flex-end;margin:.6rem 0}
.search-row .q{margin:0;flex:1 1 14rem}
.trend-controls{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:flex-end}
.trend-controls .q{flex:1 1 12rem;margin:0}
.trend-controls .q.check,.trend-controls .actions{flex:0 0 auto;margin:0}
.answer-groups tr:first-child > *{border-top:2px solid var(--line)}
/* R-290/R-294 — a token, a header, a JSON body: CASE MATTERS, so never the
   small-capitals face. Monospace, as written, for the API guide and the
   token shown once. */
.api-guide code, .api-guide pre, code.secret{font-family:ui-monospace,
  SFMono-Regular,Menlo,monospace;font-variant:normal;text-transform:none;
  font-size:.85rem}
.api-guide pre{background:var(--soft);border:1px solid var(--line);
  border-radius:6px;padding:.6rem .75rem;overflow-x:auto;white-space:pre-wrap;
  word-break:break-word}
.api-guide code{word-break:normal;overflow-wrap:anywhere}
.api-guide pre code{padding:0;background:none}

/* R-124 — the campaign composer. 📌 The preview is drawn LIGHT in both
   themes, because that is how most inboxes will show it. */
fieldset.plain{border:0;padding:0;margin:0;min-width:0}
label.choice{display:block;margin:.25rem 0}
.when-at{margin:.1rem 0 .6rem 1.6rem}
.merge-codes{margin:.2rem 0 .4rem 1.2rem;padding:0}
.merge-codes code{user-select:all}
.rt-tools{display:flex;flex-wrap:wrap;gap:.3rem;margin:.3rem 0}
.rt-tools button{padding:.2rem .6rem;font-size:.9rem}
.rt-tools button[aria-pressed="true"]{background:var(--accent);color:var(--bg)}
.rt-area{min-height:12rem;border:1px solid var(--line);border-radius:6px;
  padding:.5rem .75rem;background:var(--bg);color:var(--ink)}
.rt-area:focus{outline:2px solid var(--accent);outline-offset:1px}
.email-preview{background:#fff;color:#1a1a1a;border:1px solid #ccc;
  border-radius:6px;padding:1rem;font-family:Arial,sans-serif;max-width:40rem}
.email-preview a{color:#1f5fbf}
.email-footer{border-top:1px solid #ccc;margin-top:1rem;padding-top:.5rem;
  font-size:.85rem;color:#555}
/* A number or a pick INSIDE a sentence ("only a random 100 of them",
   "every 2 weeks") sits in the line, not across the page. */
.when-at input:not([type=checkbox]):not([type=radio]):not([type=date]),
.when-at select{width:auto;display:inline-block;min-width:4.5rem}
label.choice.inline{display:inline-block;margin-right:.8rem}
/* ✅ `R-074` — a rule's rows: the filter's rows (`.filter-row`), spaced. */
.rule-rows{margin:.4rem 0}
.rule-row .rule-words{margin-top:.35rem}
/* ✅ `E-147` — an ending page's choices fold away until **End the survey on
   this page** is ticked. Where `:has` is unknown they simply stay open. */
.page-ending:not(:has(input[name="page_ending"]:checked)) .ending-opts{display:none}
.pass-on > summary{cursor:pointer}
.pass-row{margin-bottom:.4rem}

/* ✅ Consent — the box above Next, and the policy folded beneath it. */
.consent{margin:1rem 0 .5rem}
.consent .check label{font-weight:600}
.consent-policy > summary{cursor:pointer;margin:.4rem 0}
.consent-policy h2{font-size:1.05rem;margin:.5rem 0 .25rem}
/* ✅ Share (30 Oct 2026): every link of a survey. An address is one long
   word, so it may break anywhere; on a phone each link becomes a block of
   its own rather than a table wider than the screen (measured: 411px of
   page in a 375px window before this). */
.links-table code{word-break:break-all}
.links-table .row-actions{white-space:nowrap}
.links-table .cell-label{display:none}
textarea.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem}
@media (max-width:640px){
  .links-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .links-table,.links-table tbody,.links-table tr,.links-table th,.links-table td{display:block;width:auto}
  .links-table tr{border-top:1px solid var(--line);padding:.6rem 0}
  .links-table th,.links-table td{padding:.15rem 0;border:0;text-align:left}
  .links-table .row-actions{white-space:normal}
  .links-table .cell-label{display:inline}
}

/* #B300 — on a phone the new-option box, its Piped data button and Add
   option did not fit one line ("Anothe…"), so Add option goes beneath. */
@media (max-width:30rem){.new-option-row{flex-wrap:wrap}.new-option-row .tbox{flex:1 1 100%}}

/* #B301 — the quiz's list of questions to mark: the badge says it in words,
   and its colour only repeats them. */
.quiz-marks{list-style:none;margin:.4rem 0;padding:0;display:grid;gap:.35rem}
.quiz-marks .badge.ok{color:var(--good);border-color:var(--good)}
.quiz-marks .badge.warn{color:var(--warn);border-color:var(--warn)}

/* ✅ The sections after the questions (the owner, 6 Nov 2026): grouped in
   the order a respondent meets them, each folded shut with a line saying
   where it stands. Open, the section's own panel is unchanged. */
.later-group{margin:2rem 0 .5rem}
.later-fold{margin:.5rem 0}
.later-fold>summary.fold-line{display:block;cursor:pointer;padding:.85rem 1rem;
  border:1px solid var(--line);border-radius:8px;background:var(--soft)}
.later-fold>summary.fold-line strong{color:var(--accent)}
.later-fold>summary.fold-line:hover{border-color:var(--accent)}
.later-fold[open]>summary.fold-line{border-bottom-left-radius:0;border-bottom-right-radius:0}
.later-fold>.panel,.later-fold>section{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}
.fold-status{color:var(--dim)}
.fold-status::before{content:"· "}

/* ✅ The Languages line (the owner, 6 Nov 2026): the default language, and a
   button-looking cue to the right. The whole line opens it, so the cue is
   hidden from screen readers — they hear the line's own words. */
.language-fold>summary.fold-line{display:flex;justify-content:space-between;
  align-items:center;gap:.75rem;flex-wrap:wrap}
.language-fold .fold-plain{color:var(--ink);margin-left:.6rem}
.fold-button{border:1px solid var(--accent);color:var(--accent);background:var(--bg);
  border-radius:6px;padding:.3rem .7rem;font-size:.9rem;white-space:nowrap}
.language-fold[open] .fold-button{display:none}

/* 🔴 A box and its words, lined up (the owner, 6 Nov 2026: "the text is too
   low compared to the checkbox"). They sat on the text's BASELINE, so the
   words hung 4px below the box's middle in Chromium and 1–4px in WebKit —
   measured on every checkbox and radio of the builder and a respondent's
   page. Now the box sits beside the FIRST line of its words, so a choice
   that wraps onto two lines keeps its box beside the first.
   ⚠️ Centred on the middle of the LETTERS, not of the line: the line's
   middle left the words 1.5px high (the owner saw it at once). Measured
   with each label's own font, both engines, within a pixel. */
.option{align-items:flex-start}
.option>input[type=radio],.option>input[type=checkbox],
.check:not(.q)>input[type=radio],.check:not(.q)>input[type=checkbox]{
  flex:none;margin-top:calc((1lh - 1.1rem) / 2 - .06em);margin-bottom:0}
.q.check>input[type=radio],.q.check>input[type=checkbox]{position:relative;top:-.06em}
.check:not(.q){display:flex;align-items:flex-start;gap:.5rem}
.check:not(.q)>label{margin:0}
/* A box INSIDE its label (56 places) or alone in a table cell cannot be a
   flex item without breaking the words around it; these values were chosen
   by measuring both engines. */
label>input[type=checkbox],label>input[type=radio]{vertical-align:middle;
  position:relative;top:-.08em}
td>input[type=checkbox],td>input[type=radio]{vertical-align:-.15em}

/* ✅ The logo preview (the owner, 6 Nov 2026): the top of a survey page,
   drawn with the respondent's own `.survey-logo` rules, as wide as a real
   survey page can be, so left / center / right and the three sizes look as
   they will. */
.logo-preview{margin:.5rem 0 1rem}
/* ✅ A color square and its code box on one line (10 Nov 2026). */
.brand-boxes{display:flex;flex-wrap:wrap;gap:.6rem 2rem;margin:.4rem 0}
.brand-pick{display:flex;align-items:center;gap:.5rem}
.brand-pick label{margin:0;font-weight:600;white-space:nowrap}
.brand-pick input[type=color]{width:3rem;height:2.4rem;padding:.15rem;flex:none}
.brand-pick input[data-code-for]{width:9ch;flex:none;font-family:ui-monospace,Menlo,monospace}
/* ✅ The owner, 10 Nov 2026: Where and Size side by side. */
.logo-where-size{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.5rem 2rem}
.logo-where-size > .q{margin:.4rem 0}
.logo-preview-name{margin:0 0 .3rem;font-size:.85rem;color:var(--dim)}
.logo-preview-page{max-width:54rem;padding:1rem;border:1px solid var(--line);
  border-radius:8px;background:var(--bg)}
.logo-preview-page .survey-logo{margin-bottom:.75rem}
.logo-placeholder{display:inline-block;max-width:100%;height:2.5rem;line-height:2.5rem;
  text-align:center;border:2px dashed var(--line);border-radius:6px;color:var(--dim);font-size:.85rem}
.logo-placeholder.logo-small{width:100px}.logo-placeholder.logo-medium{width:200px}
.logo-placeholder.logo-large{width:300px}
.logo-preview-title{font-weight:700;font-size:1.25rem;margin:0 0 .5rem}
.logo-preview-line{height:.6rem;background:var(--soft);border-radius:3px;margin:.4rem 0}
.logo-preview-line.short{width:60%}

/* ✅ N5, the question-kind picker (the owner, 9 Nov 2026): icons beside
   every kind, the pointed-at kind's example and advice at the top. */
details.kind-picker{margin-top:.75rem}
details.kind-picker > summary{font-weight:600}
.picker-form{margin-top:.5rem;padding:.75rem;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.pick-desc{border-bottom:1px solid var(--line);padding-bottom:.6rem;margin-bottom:.6rem;min-height:7.6rem}
html:not(.js-on) .pick-desc{display:none}
.pick-card{display:flex;flex-wrap:wrap;gap:.8rem;align-items:flex-start}
.pick-card .ex{width:15rem;max-width:100%;flex:none;border:1px solid var(--line);border-radius:8px;
  padding:.45rem .6rem;background:var(--bg);font-size:.8rem;line-height:1.35;display:grid;gap:.2rem;align-content:start;
  font-family:"Alegreya Sans",sans-serif;font-variant:normal}
.pick-card .ex b{font-weight:600;font-size:.84rem}
.pick-card .ex-words{flex:1;min-width:12rem;margin:0;font-size:.95rem}
.pick-card .dim{color:var(--dim)}
.pick-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.6rem}
.pick-group h5{margin:0 0 .2rem;font-size:.8rem;color:var(--dim);letter-spacing:.05em}
.pick-group button{display:flex;gap:.5rem;align-items:flex-start;width:100%;text-align:left;background:none;border:0;
  padding:.25rem .35rem;border-radius:5px;color:var(--accent)}
.pick-group button:hover,.pick-group button:focus-visible{background:var(--soft)}
.ico{width:1.3rem;height:1.3rem;flex:none;color:var(--dim);margin-top:.05rem}
.pick-group button:hover .ico,.pick-group button:focus-visible .ico{color:var(--accent)}
.ex-r{display:flex;gap:.35rem;align-items:center}
.ex-o{width:.7rem;height:.7rem;border:1.3px solid var(--dim);border-radius:50%;display:inline-block;flex:none}
.ex-o.sq{border-radius:2px}
.ex-row{display:flex;flex-wrap:wrap;gap:.25rem;align-items:center}
.ex-dot{width:1.15rem;height:1.15rem;border:1.3px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:.62rem}
.ex-ends{display:flex;justify-content:space-between;font-size:.68rem;color:var(--dim)}
.ex-pic{width:2.6rem;height:2rem;border:1.3px solid var(--line);border-radius:4px;display:grid;place-items:center;color:var(--dim);background:var(--soft)}
.ex-pic.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.ex-box{border:1.3px solid var(--line);border-radius:4px;padding:.1rem .35rem;min-height:1.3rem;display:block;flex:1}
.ex-box.tall{min-height:2.6rem}.ex-box.short{width:6.5rem}
.ex-slide{height:.25rem;background:var(--line);border-radius:2px;position:relative;margin:.45rem 0 .2rem}
.ex-slide span{position:absolute;left:62%;top:50%;width:.8rem;height:.8rem;border-radius:50%;background:var(--accent);transform:translate(-50%,-50%)}
.ex-tbl{border-collapse:collapse;font-size:.72rem}.ex-tbl th{font-weight:400;color:var(--dim);padding:0 .3rem}
.ex-tbl td{padding:.1rem .3rem;text-align:center}.ex-tbl td:first-child{text-align:left}
.ex-bar{border:1px solid var(--line);border-radius:4px;padding:0 .35rem;background:var(--soft)}
.ex-kv{display:flex;gap:.4rem;align-items:center;justify-content:space-between}
.ex-num{border:1.3px solid var(--line);border-radius:4px;width:2.4rem;text-align:right;padding:0 .25rem}
.ex-btn{border:1px solid var(--line);border-radius:4px;padding:0 .4rem;background:var(--soft)}

/* ✅ The redesign's stage 2 (the owner, 9 Nov 2026): a bar at the top,
   always in reach, then Build and Settings. */
.bbar{position:static;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:.6rem 1rem;padding:.6rem .9rem;margin:0 0 .75rem;background:var(--bg);border:1px solid var(--line);
  border-radius:.6rem;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.bbar-name{min-width:0;flex:1 1 16rem}
.bbar-name h1{margin:0;font-size:1.35rem;overflow-wrap:anywhere}
.bbar-status{margin:.15rem 0 0}
.bbar .chip{display:inline-block;padding:.05rem .5rem;border-radius:999px;border:1px solid var(--line);
  background:var(--soft);color:var(--ink);font-size:.85rem}
.bbar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.bbar-actions > a.button{font:inherit;padding:.45rem .9rem;border:1px solid var(--line);border-radius:6px;
  color:var(--ink);text-decoration:none;background:var(--bg)}
details.bbar-menu{position:relative}
details.bbar-menu > summary{list-style:none;cursor:pointer;padding:.45rem .9rem;border:1px solid var(--line);
  border-radius:6px;color:var(--ink)}
details.bbar-menu > summary::-webkit-details-marker{display:none}
details.bbar-menu > summary::after{content:" ▾"}
.bbar-pop{position:absolute;left:0;top:calc(100% + .3rem);z-index:30;width:min(26rem,calc(100vw - 2rem));
  padding:.75rem;background:var(--bg);border:1px solid var(--line);border-radius:.6rem;
  box-shadow:0 8px 24px rgba(0,0,0,.18)}
.bbar-pop p{margin:.3rem 0}
.bbar-pop .panel{border:0;padding:0;margin:.5rem 0 0;box-shadow:none;background:none}
.bbar-publish{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.bbar-publish .actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:0}
.bbar-publish .actions form{display:flex;align-items:center;gap:.3rem;margin:0}
.bbar-publish #publish-plan-warning:empty{display:none}
/* ✅ The owner, 10 Nov 2026: Build · Settings · Share drawn as FOLDER
   tabs, the mockup's look — the open one has a border and joins the page
   under it; the others are words in the link color. */
.view-tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--line);margin:0 0 1rem;padding-left:.5rem}
.view-tabs a{padding:.5rem 1.1rem;color:var(--accent);text-decoration:none;
  border:1px solid transparent;border-bottom:0;border-radius:8px 8px 0 0;margin-bottom:-1px}
.view-tabs a:hover{background:var(--soft)}
.view-tabs a[aria-current]{color:var(--ink);font-weight:600;background:var(--bg);
  border-color:var(--line);position:relative}
.tabs-title{font-size:1.3rem;font-weight:700;margin:.5rem 0 .75rem}
.set-group > .panel{margin-top:.5rem}
@media print{.bbar{position:static}}
/* ⚠️ !important: the site-wide summary rule (a link look) outranks these. */
.bbar details.bbar-menu > summary{color:var(--ink)!important;display:inline-block!important;
  padding:.45rem .9rem!important;text-decoration:none!important}
.bbar-actions{align-items:center}
.bbar-actions .bbar-publish{order:3}

/* ✅ Stage 3 (the owner, 9 Nov 2026): pages and the ending. */
.block > .head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
details.page-logic{margin:.5rem 0;padding:.4rem .75rem;border:1px dashed var(--line);border-radius:.5rem}
details.page-logic[open]{border-style:solid}
.skip-between{margin:.4rem 0 .9rem 1rem;padding:.35rem .75rem;border-left:3px solid var(--accent);
  background:var(--soft);border-radius:0 .4rem .4rem 0}
.end-block h2{margin-top:0}
.add-ending{display:flex;flex-wrap:wrap;align-items:baseline;gap:.6rem;margin-top:.75rem}

/* ✅ N1 Check and N6 What changes, in the bar (the owner, 9 Nov 2026). */
.check-list,.changes-list{margin:.4rem 0 .6rem;padding-left:1.2rem}
.check-list li,.changes-list li{margin:.2rem 0}
.bbar details.changes-menu > summary.primary-summary{background:var(--accent)!important;color:#fff!important;
  border-color:var(--accent)!important;font-weight:600}
.bbar details.check-menu > summary{font-variant-numeric:tabular-nums}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .bbar details.changes-menu > summary.primary-summary{color:#14171b!important}}
:root[data-theme="dark"] .bbar details.changes-menu > summary.primary-summary{color:#14171b!important}

/* The bar stays ONE compact row, so pinned at the top it never hides the
   work (stage 2). Pinned only where there is room for it. */
.bbar{position:static;padding:.45rem .75rem}

.bbar-name{flex:1 1 14rem}
.bbar-name h1{font-size:1.15rem}
.bbar-status{font-size:.85rem}
.bbar-actions{flex-wrap:wrap;justify-content:flex-end}
.bbar-actions > a.button,.bbar details.bbar-menu > summary{padding:.3rem .7rem!important}
.bbar-publish button{padding:.3rem .8rem}
.bbar-publish .help{font-size:.8rem}
/* ✅ The owner, 17 Nov 2026: a long link (the review link) wraps inside
   any drop-down instead of running off its edge. */
.bbar-pop{overflow-wrap:anywhere}
.bbar-pop table{overflow-wrap:normal}

/* ✅ Look: colors and font (the owner, 9 Nov 2026). */
.swatch{display:inline-block;width:1.1rem;height:1.1rem;border-radius:.25rem;border:1px solid var(--line);
  vertical-align:middle;margin-left:.3rem}
.theme-choice .help{margin-left:.4rem}
.brand-boxes input[type=color]{width:4rem;height:2.4rem;padding:.1rem;cursor:pointer}

/* The page's heading and logic, folded under one line (9 Nov 2026). */
details.page-settings{margin:.2rem 0 .6rem}
details.page-settings[open]{padding:.5rem .75rem;border:1px solid var(--line);border-radius:.5rem}
.add-page{margin:.25rem 0 1.25rem}

/* The owner's audit of staging against the mockup (9 Nov 2026). */
details.title-fold > summary,details.order-fold > summary{list-style:none;cursor:pointer;display:block!important;color:var(--ink)!important}
details.title-fold > summary::-webkit-details-marker,details.order-fold > summary::-webkit-details-marker{display:none}
.title-said{font-size:1.3rem;font-weight:700}
.title-edit{color:var(--accent);font-size:.95rem;margin-left:.4rem}
/* ✅ The question's Edit looks exactly like the survey name's (10 Nov). */
.q-name-line{display:flex;align-items:baseline;flex-wrap:wrap}
button.q-edit.title-edit{background:none;border:0;padding:.2rem .25rem;margin-left:.4rem;
  color:var(--accent);font:inherit;font-size:.95rem;cursor:pointer;line-height:1.2}
button.q-edit.title-edit:hover{text-decoration:underline}
.title-desc{display:block;margin-top:.3rem;color:var(--dim);font-family:"Alegreya Sans",sans-serif;font-variant:normal}
details.order-fold{margin:0 0 .9rem}
details.order-fold > summary{color:var(--dim)!important}
/* A closed question is just the question, as a respondent sees it. */
.question:has(> details.q-fold:not([open])) .q-preview{border:0;padding:0;background:none}
.question:has(> details.q-fold:not([open])) .q-preview-label{display:none}
.page-unreached{margin:.4rem 0}
/* On a phone a long label may wrap rather than push the page wide. */
@media (max-width:699px){.q.one-line > label{white-space:normal}}

/* ✅ #B315 — Settings › Randomization (the owner, 11 Nov 2026). */
.rnd-part{border-top:1px solid var(--line);padding-top:.8rem;margin-top:.8rem}
.rnd-part > legend{font-weight:700;margin-bottom:.3rem;padding:0}
.rnd-h{font-size:1rem;margin:0 0 .4rem}
.rnd-table{width:100%;border-collapse:collapse;margin:.3rem 0 .6rem}
.rnd-table th,.rnd-table td{text-align:left;padding:.35rem .5rem;border-bottom:1px solid var(--line);vertical-align:middle}
.rnd-table thead th{font-size:.9rem;white-space:nowrap}
.rnd-table tbody th{font-weight:400}
.rnd-table th label,.rnd-table td label{font-weight:400;margin:0}
.rnd-table td.rnd-tick{text-align:center}
.rnd-table th.rnd-tick-h{white-space:nowrap;width:1%;text-align:center}
.rnd-table select{max-width:100%}
.rnd-table .num-box,#pages_subset{width:4.5rem;text-align:center}
.rnd-keep summary{cursor:pointer;list-style:none}
.rnd-keep summary::-webkit-details-marker{display:none}
.rnd-keep[open]{padding-bottom:.3rem}
.rnd-keep .check{margin:.2rem 0}
.rnd-even{border-top:1px solid var(--line);padding-top:.3rem}
.rnd-note{margin:.3rem 0}
@media (max-width:700px){
  .rnd-table thead{display:none}
  .rnd-table tr{display:block;border-bottom:1px solid var(--line);padding:.4rem 0}
  .rnd-table th,.rnd-table td{display:block;border:0;padding:.2rem 0}
  .rnd-table td.rnd-tick{display:inline-block;width:auto;margin-right:.5rem}
  .rnd-table td.rnd-tick + td{display:inline-block}
}
@media (max-width:700px){
  .rnd-table td[data-label]::before{content:attr(data-label) ": ";font-size:.85rem;color:var(--muted,#555);margin-right:.3rem}
  .rnd-table td[data-label] > details{display:inline-block}
}
.rnd-part select{width:auto;max-width:100%}
.rnd-keep summary{white-space:nowrap}
#random-panel details.rnd-keep > summary{color:var(--ink)}
.rnd-keep summary .title-edit{margin-left:.15rem}

/* ✅ The owner, 11 Nov 2026: "Please specify" right after "Other". */
.option:has(> .other-inline){flex-wrap:wrap;align-items:center}
.option > input.other-inline{width:auto;flex:1 1 12rem;max-width:22rem;margin:0 0 0 .25rem;
  padding:0 .4rem;line-height:1.3;height:auto}

/* ✅ The owner, 11 Nov 2026: answer limits in Settings › Limits. */
.alim-fold > summary{cursor:pointer}
.alim-q{margin:.5rem 0}
.alim-q > summary{cursor:pointer;font-weight:600;font-size:.95rem}
.alim-q[open] > summary{margin-bottom:.3rem}
.alim-row.q.one-line{display:grid;grid-template-columns:minmax(0,24rem) 5.5rem auto;
  gap:.6rem;margin:.2rem 0 .2rem 1rem;align-items:center}
.alim-row > label{font-weight:400;white-space:normal!important}
.alim-row > input{width:5.5rem;text-align:center}
@media (max-width:600px){.alim-row.q.one-line{grid-template-columns:1fr 5rem;margin-left:0}
  .alim-row > .help{grid-column:1/-1}}

/* ✅ The owner, 11 Nov 2026: a calendar icon at the end of the date box. */
.date-wrap{position:relative;display:inline-flex;align-items:center}
/* ✅ The owner, 12 Nov 2026: no gap between PM and the icon — the box
   is as wide as Safari's widest drawing of a date and time, no wider. */
.when .date-wrap > input{padding-right:2.4rem;width:13.75rem;min-width:0;flex:none}
.date-wrap > input::-webkit-calendar-picker-indicator{display:none}
.cal-btn{position:absolute;right:.45rem;top:50%;transform:translateY(-50%);
  border:0;background:none;padding:.2rem;margin:0;color:var(--accent);cursor:pointer;line-height:0;min-height:0}
.date-wrap > input:disabled + .cal-btn{color:var(--dim,#888);cursor:default;pointer-events:none}

/* ✅ Quotas in Settings › Limits (the owner, 11 Nov 2026). */
.quota-head{margin:0 0 .3rem}
.quota-grid{display:grid;grid-template-columns:minmax(7rem,1fr) minmax(0,2.4fr) 4.5rem 6rem 4.5rem;
  gap:.6rem;align-items:center;padding:.45rem .5rem}
.quota-titles{font-size:.85rem;font-weight:700;border-bottom:1px solid var(--line)}
.quota-grid .num{text-align:center}
.quota-item{border-bottom:1px solid var(--line)}
.quota-item > summary{cursor:pointer;list-style:none}
.quota-item > summary::-webkit-details-marker{display:none}
.quota-item[open] > summary{background:var(--soft)}
.quota-full{color:var(--bad,#b3261e);font-weight:600}
.quota-edit{background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:.8rem;margin:.4rem 0 .6rem}
.quota-edit .one-line input.quota-name-box{width:auto;flex:0 1 16rem}
.quota-edit .one-line input.quota-limit-box{width:5.5rem;text-align:center;flex:none}
/* ✅ The owner, 13 Nov 2026: Name and Limit no taller than the drop-downs —
   one height for every box in a quota, in every browser (Safari draws a
   bare select shorter than an input). */
.quota-edit input:not([type=radio]):not([type=checkbox]),.quota-edit select{
  box-sizing:border-box;height:2.5rem;padding-top:0;padding-bottom:0;line-height:normal}
.quota-remove{margin:0 0 .6rem;display:flex;gap:.6rem;align-items:baseline}
.quota-add{margin:.5rem 0 .8rem}
.quota-add > summary{cursor:pointer;list-style:none}
.quota-add > summary::-webkit-details-marker{display:none}
.quota-under{margin:.2rem 0 .45rem 1.8rem}
.quota-under input{max-width:34rem}
.quota-full-form{margin-top:.6rem}
@media (max-width:700px){
  .quota-titles{display:none}
  #quotas details.quota-item > summary.quota-grid{grid-template-columns:auto auto 1fr;gap:.2rem .9rem}
  .quota-grid > .quota-name{grid-column:1/3}
  .quota-grid > span:nth-child(2){grid-column:1/-1;grid-row:2}
  .quota-grid > span:nth-child(3),.quota-grid > span:nth-child(4){grid-row:3;text-align:left}
  .quota-grid > span[data-label]::before{content:attr(data-label) " ";font-size:.8rem;color:var(--dim,#666)}
  .quota-remove{flex-wrap:wrap}
}
#quotas details.quota-item > summary.quota-grid{display:grid;color:var(--ink);font-weight:400}
#quotas details.quota-item > summary .quota-name{font-weight:600}
#quotas details.quota-item > summary .title-edit{text-align:right}
/* ✅ A quota's rows — the owner's picture, 12 Nov 2026. Based on · Answer ·
   Limit on one line; a Group column only once three rows are open. */
.qrows{margin:.5rem 0 .2rem}
.qrow{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1.3fr) 6rem;gap:.6rem;align-items:center;margin:.3rem 0}
.qrow > *{min-width:0}
.qrow select,.qrow input{margin:0;width:100%}
.qrow .grp{display:none}
.qrow-head{font-size:.85rem;font-weight:700;margin-bottom:0}
.qrows:has(.qmore .qmore[open]) .qrow{grid-template-columns:7rem minmax(0,1.6fr) minmax(0,1.3fr) 6rem}
.qrows:has(.qmore .qmore[open]) .qrow .grp{display:block}
.qmore > summary{cursor:pointer;list-style:none;margin:.5rem 0 .2rem;display:inline-block}
.qmore > summary::-webkit-details-marker{display:none}
/* ⚠️ Chrome ignores display:none on a <summary>, so an open one is
   folded to nothing and taken out of reach instead. */
.qmore[open] > summary{visibility:hidden;display:block;height:0;margin:0;padding:0;overflow:hidden;line-height:0}
.qjoin{margin:.35rem 0 .1rem}
.qjoin .join-pick span{height:2.1rem;padding:0 .9rem;line-height:2rem}
.qans .qans-words{margin-top:.3rem}
/* ✅ The owner, 13 Nov 2026: **Selection**, and an **Equals** box beside it
   only for a field whose value is typed. */
.js-on .qans[data-kind=pick] .qans-words{display:none}
.js-on .qans[data-kind=words]{display:flex;flex-wrap:wrap;gap:.4rem}
.js-on .qans[data-kind=words] > *{flex:1 1 0;min-width:0}
.js-on .qans[data-kind=words] > select{flex-grow:1.4}
.js-on .qans[data-kind=words]::before{flex:0 0 100%;margin-bottom:-.3rem}
.js-on .qans .qans-words{margin-top:0}
.qrow .link{justify-self:start}
.quota-full-form .one-line select{width:auto}
.quota-full-form .quota-under{margin-left:0}
.quota-full-form .quota-under label{display:block;font-size:.9rem}
@media (max-width:600px){
  .qrow,.qrows:has(.qmore .qmore[open]) .qrow{grid-template-columns:1fr;gap:.25rem}
  .qrow-head{display:none}
  .qrow > span[data-label]::before{content:attr(data-label);display:block;font-size:.8rem;font-weight:600;margin-bottom:.1rem}
  .qrow .quota-limit-box{max-width:7rem}
  .quota-full-form .one-line{flex-wrap:wrap}
}

/* ✅ The owner, 13 Nov 2026: a survey's name and its SEVEN tabs, pinned to
   the top of every one of its pages while the page scrolls. */
.survey-head{position:sticky;top:0;z-index:25;background:var(--bg);margin:0 0 .75rem;
  padding:.5rem 0 0;box-shadow:0 6px 8px -8px rgba(0,0,0,.25)}
.survey-head .view-tabs{margin:.45rem 0 0}
.survey-head-name{margin:0;font-size:1.2rem;font-weight:700;overflow-wrap:anywhere}
.survey-head .bbar-name h1{margin:0;font-size:1.35rem;overflow-wrap:anywhere}
.survey-head .chip{display:inline-block;padding:.05rem .5rem;border-radius:999px;border:1px solid var(--line);
  background:var(--soft);color:var(--ink);font-size:.85rem}
.sub-tabs{display:flex;flex-wrap:wrap;gap:.3rem 1.4rem;padding:.45rem .9rem .5rem;font-size:.95rem}
.sub-tabs a{color:var(--accent);text-decoration:none}
.sub-tabs a:hover{text-decoration:underline}
.sub-tabs strong{color:var(--ink);border-bottom:2px solid var(--accent)}
/* On a phone the tabs slide sideways inside their row; the page never does. */
@media (max-width:760px){
  .survey-head .view-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
  .survey-head .view-tabs a{white-space:nowrap;flex:none;padding:.45rem .8rem}
  .survey-head{position:sticky}
}
@media print{.survey-head{position:static;box-shadow:none}}

/* The pinned head must not cover what a link jumps to. */
html{scroll-padding-top:9.5rem}
@media (max-width:760px){html{scroll-padding-top:7.5rem}}

/* ✅ The owner, 17 Nov 2026: Test and Manage are drop-down lists — one line
   each, no paragraphs. Check shows only when something needs fixing, red,
   on its own line under Save. */
.menu-pop{width:min(22rem,calc(100vw - 2rem));padding:.3rem}
#manage-menu > .bbar-pop{left:auto;right:0;width:min(30rem,calc(100vw - 2rem))}
.bar-list{list-style:none;margin:0;padding:0}
.bar-list > li{padding:.5rem .6rem;border-bottom:1px solid var(--line)}
.bar-list > li:last-child{border-bottom:0}
.bar-list > li > a,.bar-list .menu-button,#version-history > summary{display:block;width:100%;
  color:var(--ink)!important;text-decoration:none!important;text-align:left;font:inherit;
  background:none;border:0;padding:0;cursor:pointer}
.bar-list > li:has(> a:only-child:hover),.bar-list > li:has(.menu-button:hover){background:var(--soft)}
.bar-list > li:has(> a:only-child),.bar-list > li:has(> form:only-child > .menu-button){padding:0}
.bar-list > li > a:only-child,.bar-list > li > form > .menu-button{padding:.5rem .6rem}
.bar-list .copy-link{font-size:inherit}
.bar-list form{margin:0}
.menu-label{display:block;color:var(--dim);font-size:.85rem}
.menu-url{display:block;margin:.15rem 0}
.menu-row{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}
.menu-row form.inline{margin:0}
.menu-note{color:var(--dim);font-size:.9rem}
#version-history > summary{list-style:none}
#version-history > summary::-webkit-details-marker{display:none}
#version-history > summary::before{content:"▸ ";color:var(--dim)}
#version-history[open] > summary::before{content:"▾ "}
.version-list{list-style:none;margin:.4rem 0 0;padding:0;max-height:22rem;overflow-y:auto}
.version-list > li{padding:.45rem 0 .45rem 1rem;border-top:1px solid var(--line)}
.version-list .version-said,.version-list .help{display:block;margin:0 0 .2rem}

.bbar .bar-list button.link{padding:0}


/* ✅ The bell and the grouped Account menu (the owner, 18 Nov 2026). The bell
   sits just left of Account; its drop-down is the account menu's, wider. */
.bell-menu>summary{text-decoration:none;display:inline-flex;align-items:center;
  gap:.2rem;color:var(--ink)}
.bell-menu>summary::after{content:none}
.bell-icon{display:block}
.bell-count{display:inline-block;min-width:1.3rem;padding:0 .35rem;
  border-radius:999px;background:var(--bad);color:var(--bg);font-size:.8rem;
  line-height:1.3rem;text-align:center}
.bell-items{width:min(26rem,calc(100vw - 2rem));max-height:70vh;overflow-y:auto}
.bell-items .feed{margin:0;padding:0 .6rem;list-style:none}
/* On a narrow screen the drop-down hangs from the left of the whole menu
   row, so it never runs off the right edge. */
@media (max-width:40rem){
  .topnav{position:relative}
  .topnav .bell-menu{position:static}
  .topnav .bell-items{left:0;right:auto;width:calc(100vw - 2rem)}
}
.bell-items .feed li{padding:.35rem 0;border-top:1px solid var(--line)}
.bell-items .feed li:first-child{border-top:0}
.bell-items .bell-seen{padding:.3rem .6rem 0}
.menu-items .menu-heading{margin:.5rem .6rem .15rem;font-size:.75rem;
  text-transform:uppercase;letter-spacing:.04em;color:var(--dim)}
.menu-items .menu-heading:first-child{margin-top:.2rem}
.account-items{min-width:13rem}
.hide-templates{margin-top:.5rem}

/* ✅ Show tips is OFF to start (the owner, 18 Nov 2026). Only what is marked
   `tip` hides; a warning is never marked. */
.no-tips .tip{display:none!important}

/* ✅ The owner, 18 Nov 2026: what stopped Save New Version floats right under
   the button, over the page — the bar keeps its one row. */
.bbar-publish{position:relative}
.save-problems{position:absolute;top:calc(100% + .4rem);left:0;z-index:30;
  width:min(30rem,calc(100vw - 2rem));padding:.7rem 2.2rem .7rem .9rem;
  background:var(--bg);border:1px solid var(--bad);border-radius:8px;
  box-shadow:0 6px 20px rgba(0,0,0,.14);overflow-wrap:anywhere}
.save-problems p{margin:0 0 .4rem;color:var(--bad)}
.save-problems ul{margin:0;padding-left:1.1rem}
.save-problems li{margin:.2rem 0}
.save-problems-close{position:absolute;top:.3rem;right:.6rem;font-size:1.3rem;
  line-height:1;text-decoration:none;color:var(--dim)}
.menu-items .menu-rule{border:0;border-top:1px solid var(--line);margin:.4rem .2rem}
/* Numbered steps that say how a feature is used — never tips (18 Nov 2026). */
.steps{margin:.2rem 0 1rem;padding-left:1.4rem}
.steps li{margin:.25rem 0}
/* ✅ The status line under a survey's name, on all seven tabs (the owner,
   18 Nov 2026). A passed closing date is red. */
.survey-status{margin:.15rem 0 .3rem;font-size:.85rem}
.survey-status .past-close{color:var(--bad);font-weight:600}
/* ✅ Share › Links (the owner, 18 Nov 2026): the survey's own link, then
   Create custom link, then the custom links newest on top. Each: a short
   link box and Copy, a small note if the link is closed on its own, and
   its status, count and actions to the right. */
.link-list{list-style:none;margin:0;padding:0}
.link-item{padding:.6rem 0;border-top:1px solid var(--line)}
.link-list:first-of-type .link-item:first-child{border-top:0}
.link-name{margin:0 0 .25rem;font-weight:600}
.link-line{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.link-box{font-size:.8rem;padding:.25rem .5rem;border:1px solid var(--line);
  border-radius:6px;background:var(--bg);white-space:nowrap}
.link-mode{font-family:inherit}
.link-note{font-size:.8rem}
.link-meta{margin-left:auto;display:flex;flex-wrap:wrap;gap:.3rem 1rem;
  align-items:center;font-size:.85rem;color:var(--dim)}
.create-link{margin:.6rem 0 .8rem}
/* !important: the general details > summary rule (link-styled) outranks it. */
.create-link > summary{list-style:none;display:inline-block;cursor:pointer;
  font:inherit;padding:.5rem .9rem!important;border:1px solid var(--line);
  border-radius:6px;background:var(--bg);color:var(--ink)!important}
.create-link > summary:hover{border-color:var(--accent)}
.create-link > summary::-webkit-details-marker{display:none}
.create-link .add-link{margin-top:.4rem}
.create-link input{max-width:22rem;display:block}
.custom-links{margin-top:.4rem}
/* Download › Also include in downloads (18 Nov 2026). */
.download-fields .check-inline{display:inline-flex;align-items:center;gap:.3rem;margin-right:1rem}
/* ✅ Share (the owner, 19 Nov 2026): QR code is a button like Copy link,
   opening Download and Copy to clipboard. */
.qr-menu>summary{text-decoration:none;color:var(--ink);font-size:.8rem;
  padding:.2rem .6rem;border:1px solid var(--line);border-radius:6px;background:var(--bg)}
.qr-menu>summary:hover{border-color:var(--accent)}
.qr-menu .menu-items{left:0;right:auto;min-width:12rem;font-size:.9rem}
/* A custom link's Edit fold, under its row. */
.link-edit{margin:.4rem 0 0}
.link-edit>summary{font-size:.85rem}
.link-edit form{margin:.5rem 0 .2rem;padding:.6rem .8rem;border:1px solid var(--line);
  border-radius:8px;background:var(--soft)}
.link-edit input.short{max-width:9rem}
.link-edit .actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem}
.danger-link{color:var(--bad);font-size:.9rem}
.create-kiosk{margin-top:1rem}
/* Add your own ID to the link: the whole link, wrapping on a phone. */
code.id-link{font-size:.85rem;white-space:normal;overflow-wrap:anywhere;word-break:break-all}
.pointer{margin:.4rem 0}
.site-link-pick{display:flex;align-items:center;gap:.5rem;margin:.6rem 0}
.site-link-pick select{width:auto}
.copy-picture.saved{background:var(--good);color:#fff}
/* ✅ Generate test responses, a box over Build (the owner, 19 Nov 2026). */
dialog.test-box{width:min(30rem,calc(100vw - 2rem));max-height:calc(100vh - 2rem);
  padding:1rem 1.25rem;border:1px solid var(--line);border-radius:12px;
  background:var(--bg);color:var(--ink)}
dialog.test-box::backdrop{background:rgba(0,0,0,.45)}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.dialog-head h2{margin:0}
.dialog-close.icon{border:0;background:none;font-size:1.4rem;line-height:1;padding:0 .3rem;cursor:pointer}
.test-box fieldset,.test-box .q{margin:.6rem 0}
.test-fix select{width:100%;margin:.3rem 0 0}
.test-have{display:flex;flex-wrap:wrap;gap:.3rem .8rem;align-items:center}
.test-said{margin:.6rem 0}
.test-problem{display:block;margin-top:.3rem}
.test-go,.test-done{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}
.test-go[hidden],.test-done[hidden]{display:none}
.test-line form{display:inline}
.test-box input[type=number],#test-count,[data-test-generate] input[name=days]{width:5.5rem;display:inline-block;margin:0 .3rem}
#test-count{margin-left:0}
