  /* ============================================================================
     BACKEND (Phase 2-lite) — save state, demo bar, share modal v2, respondent /s/
     page, analyze refresh/error states, identity menu. Zero new colour tokens —
     everything below reads var(--*) already defined in 01-tokens-base.css.
     ============================================================================ */

  /* ---- .nf-strip (spec §1.6) — shared geometry for the four full-width strips
     (#nfDemoBar, #saveFailBar, #draftConflictBar, #conflictBar). This is a
     de-duplication, not a restyle: every strip's RENDERED appearance is unchanged.
     #nfDemoBar's own rule (below) explicitly resets every property it needs different
     (fixed position, 30px height, centered content, zero padding) — an ID selector
     always wins over a class selector for the same property, so that reset is safe
     regardless of stylesheet order. ---- */
  .nf-strip{ display:flex; align-items:center; gap:8px; min-height:40px; padding:9px 14px; border-bottom:1px solid var(--border-default); }
  .nf-strip-info{ background:var(--surface-sunken); color:var(--text-secondary); }
  .nf-strip-warn{ background:var(--warning-bg); color:var(--warning-fg); }
  .nf-strip-error{ background:var(--error-bg); color:var(--error-fg); }
  /* Design Guardian fix #8: #conflictBar has three buttons (the other strips have two),
     and at <=1366px the buttons themselves were wrapping to two lines inside the fixed
     40px-min-height strip, with text escaping the border at 1024px. Buttons must never
     shrink/wrap; the sentence between them absorbs the squeeze instead (its min-width:0
     lets flexbox actually shrink it below its content width). */
  .nf-strip button{ white-space:nowrap; flex:none; }
  .nf-strip .sfb-text, .nf-strip .dcb-text, .nf-strip .cfb-text{ min-width:0; }

  /* ---- #nfDemoBar (spec §5) ---- */
  #nfDemoBar{
    display:none; position:fixed; top:0; left:0; right:0; z-index:500; height:var(--demo-bar-h); min-height:0; padding:0;
    align-items:center; justify-content:center; gap:8px; font-size:12px;
    color:var(--text-primary); border-bottom:1px solid var(--border-strong); /* spec §4 — ink text, --border-strong rule */
  }
  #nfDemoBar .nf-i{color:var(--text-secondary);}
  #nfDemoBar button{position:absolute; right:14px; height:24px; padding:0 12px; font-size:12.5px;}
  body[data-nf-mode="demo"] #nfDemoBar{display:flex;}
  body[data-nf-mode="demo"] #app{margin-top:var(--demo-bar-h); height:calc(100vh - var(--demo-bar-h));}
  body[data-nf-mode="demo"] .fullview{top:var(--demo-bar-h); height:calc(100vh - var(--demo-bar-h));}
  body[data-nf-mode="demo"] #surveySidebar{top:var(--demo-bar-h);}
  /* Guardian ruling 2026-10-06: below 720px the bar takes two lines of copy (every word kept) and
     the button sits in the flow instead of over the text; one variable drives every offset. */
  #nfDemoBar .db-short{display:none;}
  @media (max-width:720px){
    :root{--demo-bar-h:48px;}
    #nfDemoBar{justify-content:flex-start; padding:0 12px; text-align:left; line-height:16px;}
    #nfDemoBar .db-text{flex:1; min-width:0;}
    #nfDemoBar button{position:static; flex:none; height:28px; padding:0 10px; margin-left:12px;}
    #nfDemoBar .db-long{display:none;}
    #nfDemoBar .db-short{display:inline;}
  }
  /* ...but NEVER over the marketing site. Deployed, a logged-out visitor's /api/me is
     bounced by Cloudflare Access, so NF_MODE resolves to 'demo' on "/" — which pinned
     "Demo — nothing is saved. Close this page and your work is gone." plus a "Download
     all surveys" button across the top of the public front page, to a stranger who has
     no work and no surveys. The bar guards work in the workspace; on the marketing site
     there is none, and it appears the moment they enter the workspace, where it's true. */
  body[data-nf-public="1"] #nfDemoBar{display:none !important;}
  body[data-nf-public="1"][data-nf-mode="demo"] .fullview{top:0; height:100vh;}

  /* ---- #saveState (spec §1 — four states) ---- */
  /* Fixed width across all four states (fix: toolbar used to reflow — states measured
     118/118/152/246px — and shift the primary CTA up to 127px on every save/fail
     transition). Height/line-height/vertical-align pinned too: "Saving…" has no icon,
     so without this the inline-flex baseline jumps ~2.5px every save cycle. */
  #saveState{display:inline-flex; align-items:center; gap:5px; width:210px; min-width:210px; white-space:nowrap; height:16px; line-height:16px; vertical-align:middle; text-align:left; color:var(--text-muted); font-weight:400; font-size:12px; overflow:hidden; text-overflow:ellipsis;}
  #saveState .nf-i{flex:none;}
  #saveState.st-saved .nf-i{color:var(--success-fg);}
  #toolbar .title #saveState.st-saved{color:var(--text-muted);}
  #toolbar .title #saveState.st-saving{color:var(--text-muted);}
  #toolbar .title #saveState.st-pending{color:var(--warning-fg);}
  #saveState.st-pending .nf-i{color:var(--warning-fg);}
  #toolbar .title #saveState.st-failed{color:var(--error-fg);}
  #saveState.st-failed .nf-i{color:var(--error-fg);}
  /* Design Guardian fix #4: a conflict is a decision (warning tokens, same as #conflictBar
     40px below), never a system failure (error red) — the pill was reusing .st-failed
     wholesale and reintroducing the exact red/amber confusion spec §1.4 exists to avoid.
     renderSaveStateEl() (survey-registry.js) sets this class instead of .st-failed when
     nfSaveConflict is the reason. */
  #toolbar .title #saveState.st-conflict{color:var(--warning-fg);}
  #saveState.st-conflict .nf-i{color:var(--warning-fg);}
  #toolbar .title #saveState.st-demo{color:var(--text-muted);}

  /* ---- #saveFailBar / #draftConflictBar / #conflictBar (spec §1/§1.4) — geometry and
     colour both come from .nf-strip/.nf-strip-error/.nf-strip-warn now (spec §1.6); only
     each bar's own text/button sizing stays here. ---- */
  #saveFailBar .nf-i, #saveFailBar .sfb-text{color:var(--error-fg);}
  #saveFailBar .sfb-text{font-size:12.5px;}
  #saveFailBar button{height:28px; padding:0 12px; font-size:12.5px;}
  #draftConflictBar .nf-i{color:var(--warning-fg);}
  #draftConflictBar .dcb-text{font-size:12.5px; color:var(--warning-fg);}
  #draftConflictBar button{height:28px; padding:0 12px; font-size:12.5px;}
  #conflictBar .nf-i{color:var(--warning-fg);}
  #conflictBar .cfb-text{font-size:12.5px; color:var(--warning-fg);}
  #conflictBar button{height:28px; padding:0 12px; font-size:12.5px;}

  #builderSurveyName[tabindex="-1"]:focus{outline:none;} /* focused by nfOpenDemo() so the builder has the focus; it isn't a control */
  /* ---- hosted identity (spec §3): profile switcher, plan badge are demo-only ---- */

  /* ---- identity menu (spec §3) ---- */
  .identity-menu{
    display:none; position:absolute; top:52px; right:26px; width:280px; max-width:calc(100vw - 16px); z-index:60;
    background:var(--surface-default); border:1px solid var(--border-strong); border-radius:var(--r-card);
    box-shadow:var(--shadow-2); padding:6px;
  }
  .identity-menu.show{display:block;}
  .identity-menu-email{
    font-size:12px; color:var(--text-secondary); padding:8px 10px 10px; margin-bottom:4px;
    border-bottom:1px solid var(--border-default); word-break:break-all;
  }
  .identity-menu-item{
    display:block; width:100%; height:34px; text-align:left; font-size:13px; border-radius:var(--r-control);
    border:none; background:transparent; padding:0 10px; cursor:pointer;
  }
  .identity-menu-item:hover{background:var(--brand-50);}

  /* ---- share modal v2 (spec §4) ---- */
  .share-off-row{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:12px 0;}
  .share-off-row .sor-label{font-size:13.5px; font-weight:600; color:var(--text-primary);}
  .share-off-row .sor-sub{font-size:12px; color:var(--text-secondary); margin-top:2px; max-width:340px;}
  .share-gate-sub{color:var(--warning-fg) !important;}
  /* Switch (spec §5) — track radius 999; off --border-control, on brand-600; white knob, no shadow. */
  .share-toggle{position:relative; flex:none; width:38px; height:22px; padding:0; border-radius:var(--r-round); border:1px solid var(--border-control); background:var(--border-control); cursor:pointer;
    transition:background-color var(--dur-2) var(--ease-step), border-color var(--dur-2) var(--ease-step);}
  .share-toggle:hover{background:var(--text-secondary); border-color:var(--text-secondary);}
  .share-toggle::after{content:''; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:var(--surface-default); transition:transform var(--dur-2) var(--ease-step);}
  .share-toggle.on, .share-toggle.on:hover{background:var(--brand-600); border-color:var(--brand-600);}
  .share-toggle.on::after{transform:translateX(16px);}
  .share-toggle:disabled, .share-toggle.disabled{opacity:.5; cursor:not-allowed;}
  .share-toggle.busy{opacity:.6; cursor:wait;}
  .share-link-row{display:flex; gap:8px; margin:10px 0;}
  .share-link-row input{flex:1; font:inherit; font-size:13.5px; padding:9px 12px; border:1px solid var(--border-control); border-radius:var(--r-control); background:var(--surface-default); color:var(--text-primary);}
  .share-link-row input:focus{ outline:2px solid var(--brand-600); outline-offset:1px; border-color:var(--brand-600); }
  .share-copy-btn{min-width:104px;}
  .share-copy-fail{font-size:12px; color:var(--warning-fg); margin-top:4px;}
  .qr-wrap{display:flex; justify-content:center; margin:14px auto;} /* auto: 0 here undid 11-modals.css's centring and the QR sat left of the caption */
  .share-replace-link{background:none; border:none; padding:0; font-size:12.5px; color:var(--text-secondary); text-decoration:underline; cursor:pointer;}
  .share-show-issues{margin-top:6px;}

  /* ---- home "Collecting" pill (spec §4) ---- */
  /* (The "Collecting" pill became the card strip's ISSUED stamp — Drawing Set §4.) */

  /* ---- analyze: refresh, freshness stamp, error card (spec §6) ---- */
  .analyze-freshness{font-size:12px; color:var(--text-muted); margin-right:2px;}
  #analyzeRefreshBtn{min-width:136px;}
  #analyzeRefreshBtn[data-busy="1"]{pointer-events:none; opacity:.7;}
  .an-error-card{max-width:480px; margin:40px auto; background:var(--surface-default); border:1px solid var(--border-strong); border-radius:var(--r-card); padding:20px 22px; text-align:center;}
  .an-error-card .nf-i{color:var(--error-fg);}
  .an-error-card h3{font-size:15px; font-weight:600; color:var(--text-primary); margin:10px 0 6px;}
  .an-error-card p{font-size:13px; color:var(--text-secondary); margin:0 0 14px;}
  .an-stat-skel{width:84px; height:30px; border-radius:var(--r-control); background:var(--surface-sunken);}
  .an-body-skel{width:100%; height:220px; border-radius:var(--r-card); background:var(--surface-sunken);}
  .an-figure-faint{color:var(--text-muted);}

  /* ---- public respondent page /s/{shareId} (spec §2) — reuses #respondentView itself
     (see views/respondent.js publicRunMode guards) rather than a parallel view: the
     .resp-page card geometry, #respPageWrap, #respLive etc. are already exactly right,
     and this way every question-type widget/a11y path is shared, not re-implemented. ---- */
  body.nf-route-respondent #app, body.nf-route-respondent #surveySidebar{display:none !important;}
  body.nf-route-respondent #respondentBar{display:none !important;}
  .pr-attribution{font-size:12px; color:var(--text-muted); text-align:center; margin:6px 0 30px;}
  .pr-attribution a{display:inline-block; padding:6px 0; color:inherit; text-decoration:underline; border-radius:var(--r-chip);}
  .pr-attribution a:focus-visible{outline:2px solid var(--brand-600); outline-offset:2px;}
  .pr-skeleton{width:640px; max-width:92vw; margin:24px auto 54px; background:var(--surface-default); border:1px solid var(--border-strong); border-radius:var(--r-card); padding:28px 30px;}
  .pr-skel-block{background:var(--surface-sunken); border-radius:var(--r-control); animation:pr-pulse 1.6s ease-in-out infinite;}
  @keyframes pr-pulse{0%{opacity:1;}50%{opacity:.55;}100%{opacity:1;}}
  @media (prefers-reduced-motion: reduce){ .pr-skel-block{animation:none; opacity:.7;} }
  .pr-skel-title{width:60%; height:22px; margin-bottom:12px;}
  .pr-skel-sub{width:40%; height:14px; margin-bottom:18px;}
  .pr-skel-hr{height:1px; background:var(--border-default); margin-bottom:18px;}
  .pr-skel-row{width:100%; height:44px; margin-bottom:12px;}
  .pr-state-card{width:640px; max-width:92vw; margin:24px auto 54px; background:var(--surface-default); border:1px solid var(--border-strong); border-radius:var(--r-card); padding:28px 30px; text-align:center;}
  .pr-state-card .nf-i{display:inline-flex;}
  .pr-state-card h1{font-size:20px; font-weight:600; color:var(--text-primary); margin:12px 0 8px;}
  .pr-state-card p{font-size:14px; color:var(--text-secondary); margin:0;}
  .pr-state-card .actions{margin-top:20px; display:flex; justify-content:center;}
  .pr-resume-strip{background:var(--brand-50); border-radius:var(--r-control); padding:12px; font-size:12.5px; color:var(--text-secondary); margin-bottom:16px; display:flex; align-items:center; gap:10px; justify-content:space-between;}
  .pr-submit-fail{background:var(--error-bg); border-radius:var(--r-control); padding:12px 14px; margin:12px 0; display:flex; align-items:flex-start; gap:8px;}
  .pr-submit-fail .nf-i{color:var(--error-fg); flex:none;}
  .pr-submit-fail p{margin:0; font-size:13px; color:var(--error-fg);}
  .pr-submit-still-trying{font-size:12px; color:var(--text-muted); margin-top:6px;}

  /* ---- multi-user avatars (spec §0.5) — the whole colour system is two states, "me"
     and "not me". Zero new tokens; deliberately NOT PROFILE_COLORS (demo's simulated
     profiles / app-chrome palette) and NOT --viz-cat-* (data-series palette) — see
     DESIGN-SPEC §0.5 for why a colleague must never read as a status or a data point.
     Geometry matches .profile-avatar (10-home-folders-profiles.css): 24px circle,
     11px/600 label. ---- */
  .nf-avatar{
    width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
    font-size:11px; font-weight:600; flex:none; box-sizing:border-box; line-height:1;
  }
  .nf-avatar-me{ background:var(--brand-100); color:var(--brand-800); }
  .nf-avatar-other{ background:var(--surface-sunken); color:var(--text-secondary); border:1px solid var(--border-default); }
  .ver-row .nf-avatar{ margin-top:1px; } /* aligns with the first line of .ver-meta, same top-alignment .cmt-row already uses */

  /* ---- toolbar presence line (spec §1.3) — next to #saveState. Past tense only: no
     dot, no pulse, no "online now" — this architecture doesn't know what's happening
     right now, only what already happened (spec §1.1).
     Design Guardian fix #1: `#toolbar .title span{color:var(--muted); font-size:12px;
     margin-left:6px;}` (02-toolbar.css) is (1 id, 1 class, 1 type) and was outranking
     the plain `.nf-presence-line`/`.nf-avatar` class rules below, so the line rendered
     in --text-muted (fails AA at 12px) with a 16px/12px avatar whose initials overflow.
     These rules are scoped `#toolbar .title .nf-presence-line...` (1 id, 2 classes) to
     outrank that selector regardless of stylesheet order. ---- */
  .nf-presence-line{ display:inline-flex; align-items:center; gap:6px; margin-left:10px; font-size:12px; color:var(--text-secondary); vertical-align:middle; }
  .nf-presence-line .nf-avatar{ width:18px; height:18px; font-size:11px; }
  /* (The toolbar copy of the presence line now lives in the title block — .tb-presence, 02-toolbar.css.) */

  /* ---- home list: "Edited by" + row presence avatar (spec §2) ---- */
  .sc-edited-by{ color:var(--text-secondary); font-weight:500; }

  /* ---- identity menu team sentence (spec §4) — the entire membership feature, one
     true sentence, reusing the same divider treatment #identityMenuEmail already has
     above it, so it reads as one connected block rather than a new kind of thing. ---- */
  .identity-menu-team{
    font-size:12px; color:var(--text-secondary); line-height:1.4;
    padding:8px 10px 10px; margin-bottom:4px; border-bottom:1px solid var(--border-default);
  }

  /* ---- Webhook row in the Share modal (Wave B item 1, Design Guardian brief) ----
     Collapsed: the .share-off-row component with a 28px ghost "Add a URL". Expanded: a
     block — label, sub, field row (mirrors .share-link-row, but an editable white input),
     message line with the status on the left and "Remove" (styled as .share-replace-link)
     on the right. Zero new colour tokens; success lives in the icon only; errors use the
     error pair, never warning, never orange. */
  .share-hook-add{height:28px; padding:0 10px; font-size:12.5px; border-radius:var(--r-control); align-self:flex-start; margin-top:-5px; white-space:nowrap;}
  .share-hook-collapsed .sor-sub{max-width:none;} /* no 340px cap; at 1500 the sub still takes two lines beside the button (row ≈69px, like Collect answers at 72) — accepted by the Guardian review */
  .share-hook{padding:12px 0;}
  .share-hook .sor-label{font-size:13.5px; font-weight:600; color:var(--text-primary);}
  .share-hook .share-hook-sub{font-size:12px; color:var(--text-secondary); margin-top:2px; max-width:none;}
  .share-hook-row{display:flex; gap:8px; margin:8px 0 0;}
  .share-hook-row input{flex:1; min-width:0; height:36px; font:inherit; font-size:13.5px; padding:9px 12px; border:1px solid var(--border-control); border-radius:var(--r-control); background:var(--surface-default); color:var(--text-primary);}
  .share-hook-row input:focus{outline:2px solid var(--brand-600); outline-offset:1px; border-color:var(--brand-600);}
  .share-hook-test{height:36px; min-width:116px; font-size:13px; border-radius:var(--r-control); white-space:nowrap;}
  .share-hook-msg{margin-top:6px; display:flex; justify-content:space-between; gap:12px; align-items:baseline; flex-wrap:wrap; font-size:12px; line-height:1.5;}
  .share-hook-status{display:inline-flex; gap:6px; align-items:baseline; color:var(--text-secondary);}
  .share-hook-status.muted{color:var(--text-muted);}
  .share-hook-status.err{color:var(--error-fg);}
  .share-hook-ic{display:inline-flex; align-self:flex-start; margin-top:2.5px;} /* on the first line of a two-line message, not between them */
  .share-hook-ic.ok{color:var(--success-fg);}
  .share-hook-ic.err{color:var(--error-fg);}
  @media (max-width:480px){ .share-hook-row{flex-wrap:wrap;} .share-hook-test{flex:1 0 100%;} }

  /* Controls that only make sense without a backend (critique P1: "Reload demo" replaced a
     real hosted survey). Hidden whenever the app is hosted — the handler also refuses. */
  body[data-nf-mode="hosted"] [data-demo-only]{display:none !important;}
  /* While the survey drawer is open the demo bar is inert: dim it with the scrim's colour so its
     Download button doesn't look live (narrow-layouts review fix 1). */
  #nfDemoBar[inert]::after{content:""; position:absolute; inset:0; background:rgba(13,27,54,.40); pointer-events:none;}
  /* Email alert row (spec email-alerts §2) — the .share-off-row grammar, a native select on the right. */
  .share-alert-text{min-width:0;}
  .share-alert .share-alert-sub{max-width:none; white-space:nowrap;}
  .share-alert{flex-wrap:wrap;}
  .share-alert-text{flex:1 1 0;}
  .share-alert-msg{overflow-wrap:anywhere; flex:1 0 100%; margin-top:-8px;} /* full width under the row (Guardian review polish) */
  .share-alert-select{height:28px; font:inherit; font-size:12.5px; padding:0 8px; min-width:140px; flex:none; align-self:flex-start; margin-top:-5px;
    border:1px solid var(--border-control); border-radius:var(--r-control); background:var(--surface-default); color:var(--text-primary);}
  .share-alert-select:focus-visible{outline:2px solid var(--brand-600); outline-offset:1px;}
  @media (max-width:480px){
    .share-alert{flex-wrap:wrap;}
    .share-alert .share-alert-sub{white-space:normal;}
    .share-alert-select{flex:1 0 100%; height:36px; font-size:13.5px; margin-top:8px;}
  }

  /* Who can answer (spec access-rules §1): the .share-off-row grammar; a rule's field and its
     message line sit full width under the label and its button. No new colours, no shadows. */
  .share-off-row .share-collect-sub{max-width:none;} /* one line at 1500: the default card must not scroll (§0) */
  .share-access-collapsed .sor-sub{max-width:none;}
  .share-access{flex-wrap:wrap;}
  .share-access-text{flex:1 1 0; min-width:0;}
  .share-access .sor-sub{max-width:none;}
  .share-access-field{flex:1 0 100%; margin-top:0;}
  .share-access-set{height:36px; min-width:116px; white-space:nowrap;}
  .share-access-msg{flex:1 0 100%; margin-top:-8px; overflow-wrap:anywhere;}
  .share-access-msg > .share-replace-link{margin-left:auto;} /* Cancel / Remove password stay at the right, wrapped or not */
  .share-access-field + .share-access-msg{margin-top:-8px;}
  @media (max-width:480px){
    .share-access-field{flex-wrap:wrap;}
    .share-access-set{flex:1 0 100%;}
  }

  /* Respondent states (spec access-rules §2.3): the icon's colour says which kind — muted for a
     plain stop, the error colour for "couldn't load", the success colour for "already answered". */
  .pr-state-card > .nf-i{color:var(--text-muted);}
  .pr-state-card.is-error > .nf-i{color:var(--error-fg);}
  .pr-state-card.is-done > .nf-i{color:var(--success-fg);}
  /* three- and four-line strings need room between their lines (Guardian review) */
  .pr-state-card h1{line-height:1.25;}
  .pr-state-card p{line-height:1.45;}
  .pr-submit-fail p{line-height:1.45;}
  /* the password prompt (§2.4): 44px controls, 16px text in the field (no zoom on iOS) */
  .pr-pw-form{max-width:320px; margin:20px auto 0; text-align:left;}
  .pr-pw-form label{display:block; font-size:13px; font-weight:600; color:var(--text-primary); margin-bottom:6px;}
  .pr-pw-row{display:flex; gap:8px;}
  .pr-pw-row input{flex:1; min-width:0; height:44px; font:inherit; font-size:16px; padding:0 12px; border:1px solid var(--border-control); border-radius:var(--r-control); background:var(--surface-default); color:var(--text-primary);}
  .pr-pw-row input:disabled, .pr-pw-row input[readonly]{background:var(--surface-subtle);}
  .pr-pw-show{height:44px; min-width:64px;}
  .pr-state-card button.ghost.pr-pw-show:disabled{color:var(--text-muted); border-color:var(--border-default); background:var(--surface-subtle); cursor:not-allowed;}
  .pr-pw-go{display:block; width:100%; height:44px; margin-top:14px;}
  #prPwMsg{display:flex; align-items:flex-start; gap:6px; font-size:13px; line-height:1.45; color:var(--error-fg); margin-top:6px; text-align:left;}
  #prPwMsg:empty{display:none;}
  #prPwMsg .nf-i{color:var(--error-fg); flex:none; margin-top:2px;}
  #prPwMsg.is-plain{color:var(--text-secondary);}
  .pr-state-card.pr-pw > .nf-i{color:var(--text-muted);}
  /* answers waiting for the server's limit to clear (§2.8): a wait, not an error */
  .pr-submit-fail.is-wait{background:var(--warning-bg);}
  .pr-submit-fail.is-wait .nf-i, .pr-submit-fail.is-wait p{color:var(--warning-fg);}
  /* answers being sent with no question page on screen: the outcome strip sits in the card */
  .pr-sending h1:focus-visible{outline:none;} /* focused for the announcement; a box around it reads as an empty field */
  .pr-sending .pr-sending-body{margin-top:8px; text-align:left;}
  .pr-sending .pr-sending-body .actions{margin-top:12px; justify-content:center; gap:8px; flex-wrap:wrap;}
  .pr-sending .pr-sending-body .actions:empty{display:none;}

  /* ============================== LOGGING IN (spec accounts §2) ============================== */
  #signInView > .fullview-bar, #connectView > .fullview-bar{background:var(--shell-bg); border-bottom-color:var(--shell-bg); color:var(--shell-text-strong); padding:13px 26px;}
  #signInView .brand-lockup{text-decoration:none; color:inherit; border-radius:var(--r-control);}
  #signInView .brand-lockup:focus-visible{outline:2px solid var(--shell-text-strong); outline-offset:4px;}
  #signInView .brand-word, #connectView .brand-word{color:var(--shell-text-strong);}
  .signin-body{flex:1; min-height:0; overflow-y:auto; background:var(--surface-canvas);}
  /* top-anchored, never centred: the card must not jump between the two steps */
  .signin-card{width:400px; max-width:calc(100vw - 32px); margin:96px auto 48px; background:var(--surface-default); border:1px solid var(--border-strong); border-radius:var(--r-card); padding:32px; box-shadow:none;}
  .signin-h{font-size:20px; line-height:1.3; font-weight:600; color:var(--text-primary); margin:0 0 8px;}
  .signin-lead{font-size:14px; line-height:1.45; color:var(--text-secondary); margin:0 0 20px; overflow-wrap:anywhere;}
  .signin-lead b{color:var(--text-primary); font-weight:600;}
  .signin-label{display:block; font-size:13px; font-weight:600; color:var(--text-primary); margin:0 0 6px;}
  .signin-input{display:block; width:100%; height:44px; font:inherit; font-size:16px; padding:0 12px; border:1px solid var(--border-control); border-radius:var(--r-control); background:var(--surface-default); color:var(--text-primary);}
  .signin-input:disabled{background:var(--surface-subtle);}
  .signin-input[aria-invalid="true"]{border-color:var(--error-fg);}
  .signin-code{height:48px; font-family:var(--font-mono); font-size:22px; letter-spacing:.12em;}
  .signin-msg{font-size:12px; line-height:1.4; margin-top:6px; align-items:flex-start;}
  .signin-msg .nf-i{flex:none; margin-top:1px;}
  .signin-status{color:var(--text-secondary);}
  button.signin-btn{display:block; width:100%; height:44px; margin-top:14px; font-size:15px;}
  button.signin-btn-2{margin-top:8px;}
  .signin-line{font-size:12.5px; line-height:1.5; color:var(--text-secondary); margin:12px 0 0;}
  .signin-cool{margin-top:4px; min-height:19px; color:var(--text-muted);}
  .signin-nb{white-space:nowrap;} /* review fix 8: a link and its full stop never wrap apart */
  .signin-line .link-inline:focus-visible{outline-offset:1px;}
  .signin-foot-row .link-inline{padding:8px 0;}
  .pp-nb{white-space:nowrap;}
  .signin-card .link-inline:disabled, .signin-card .link-inline:disabled:hover, .reauth-card .link-inline:disabled, .reauth-card .link-inline:disabled:hover{background:none; border:none; color:var(--text-muted); text-decoration:none; cursor:default;}
  .signin-foot{border-top:1px solid var(--border-default); margin-top:20px; padding-top:20px;}
  .signin-terms{font-size:12px; line-height:1.5; color:var(--text-muted); margin:0 0 12px;}
  .signin-foot-row{display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; font-size:12.5px; color:var(--text-secondary);}
  @media (max-width:600px){ .signin-card{margin-top:48px;} }
  @media (max-width:480px){ .signin-card{padding:24px 20px;} }

  /* ============================== ACCOUNT, WORKSPACE, PEOPLE (spec accounts §4–§6, §9) ============================== */
  /* the chip as a real button (hosted): the div's own look, none of the global button's */
  button.profile-chip{font:inherit; font-size:13px; font-weight:500; line-height:normal; justify-content:flex-start;}
  button.profile-chip:hover{color:var(--shell-text-strong);}
  .im-who{padding:8px 10px 10px; border-bottom:1px solid var(--border-default); margin-bottom:4px;}
  .im-name{font-size:13px; font-weight:600; color:var(--text-primary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .im-email{font-size:12px; color:var(--text-secondary); overflow-wrap:anywhere;}
  .im-label{padding:8px 10px 4px;}
  .im-ws-row{display:flex; align-items:center; gap:10px; min-height:34px; padding:0 10px; font-size:13px; color:var(--text-primary);}
  .im-ws-name{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left;}
  .im-role{flex:none; font-size:12px; color:var(--text-secondary);}
  .identity-menu-item.im-ws{display:flex; align-items:center; justify-content:flex-start; gap:6px; padding:0 10px 0 6px; font-weight:400;}
  .identity-menu-item.im-ws[aria-checked="true"]{font-weight:600;}
  .im-check{flex:none; width:16px; display:inline-flex; color:var(--brand-600);}
  .identity-menu-item{display:flex; align-items:center; justify-content:flex-start; color:var(--text-primary); font-weight:400;}
  /* review fix 6: the navy bar's own ring rule (09-survey-sidebar.css) is for buttons ON navy; this menu is white */
  #homeView #identityMenu button.identity-menu-item:focus-visible{outline:2px solid var(--brand-600); outline-offset:-2px;}
  .identity-menu .tb-menu-sep{height:1px; background:var(--border-default); margin:6px 4px;}
  .home-ws{display:flex; align-items:baseline; gap:8px; margin-bottom:6px; min-width:0; max-width:100%;}
  .home-head > div:first-child{min-width:0; max-width:100%;} /* review fix 5: lets the workspace name ellipse at 390 */
  .home-ws[hidden]{display:none;}
  .home-ws-name{font-size:13px; font-weight:600; color:var(--text-primary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0;}
  /* notices on Home (§6.1) */
  .home-notice{display:flex; align-items:flex-start; gap:12px; background:var(--surface-default); border:1px solid var(--border-strong); border-radius:var(--r-card); padding:12px 14px; margin-bottom:12px;}
  .home-notice > .nf-i{flex:none; color:var(--text-secondary); margin-top:2px;}
  .hn-text{flex:1; min-width:0;}
  .hn-title{font-size:13.5px; line-height:1.4; font-weight:600; color:var(--text-primary); overflow-wrap:anywhere;}
  .hn-body{font-size:12.5px; line-height:1.45; color:var(--text-secondary); margin-top:2px;}
  .hn-actions{display:flex; gap:8px; flex:none;}
  .hn-actions button{height:32px; padding-top:0; padding-bottom:0;}
  .hn-actions button.hn-x{width:32px; padding:0;}
  /* the two windows */
  .app-modal-card.people-card{width:560px;}
  .app-modal-card.acct-card{width:440px;}
  .people-card h2:focus, .acct-card h2:focus{outline:none;}
  .acct-card h2{margin-bottom:16px;} /* review fix 10: no sub-line here, so the heading keeps its distance from the first label */
  .pp-field{margin-bottom:16px;}
  .pp-label{display:block; font-size:13px; font-weight:600; color:var(--text-primary); margin-bottom:6px;}
  .pp-row{display:flex; gap:8px; margin:0;}
  .pp-row input{flex:1; min-width:0; height:36px; font:inherit; font-size:13.5px; padding:0 10px; border:1px solid var(--border-control); border-radius:var(--r-control); background:var(--surface-default); color:var(--text-primary);}
  .pp-row input[aria-invalid="true"]{border-color:var(--error-fg);}
  .pp-row button{flex:none; height:36px; padding-top:0; padding-bottom:0;}
  .pp-invite-btn{min-width:96px;}
  .pp-help{font-size:12px; line-height:1.45; color:var(--text-secondary); margin-top:6px;}
  .pp-ws-text{font-size:13px; font-weight:600; color:var(--text-primary); overflow-wrap:anywhere;}
  .pp-msg{display:flex; align-items:flex-start; gap:6px; font-size:12px; line-height:1.45; color:var(--text-secondary); margin-top:6px;}
  .pp-msg .nf-i{flex:none; margin-top:1px;}
  .pp-msg-warn{color:var(--warning-fg);}
  .pp-msg.nf-field-err{color:var(--error-fg);} /* review fix 1: an error is redline, not the status grey */
  .pp-h{margin:20px 0 2px;}
  .pp-item{display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:10px 0; border-top:1px solid var(--border-default);}
  .pp-h + div > .pp-item:first-child{border-top:none;}
  .pp-who{display:flex; align-items:center; gap:10px; flex:1 1 200px; min-width:0;}
  .pp-names{min-width:0;}
  .pp-name, .pp-inv-email{font-size:13px; font-weight:600; color:var(--text-primary); overflow-wrap:anywhere;}
  .pp-inv-email{font-weight:500;}
  .pp-you{font-weight:400; color:var(--text-secondary);}
  .pp-email{font-size:12px; color:var(--text-secondary); overflow-wrap:anywhere;}
  .pp-ctl{display:flex; align-items:center; gap:8px; flex:none;}
  .pp-role{height:28px; font:inherit; font-size:12.5px; padding:0 8px; min-width:104px; border:1px solid var(--border-control); border-radius:var(--r-control); background:var(--surface-default); color:var(--text-primary);}
  .pp-role:disabled{background:var(--surface-subtle); color:var(--text-secondary);}
  .pp-roleword{font-size:12px; color:var(--text-secondary);}
  button.pp-small{height:28px; padding:0 10px; font-size:12.5px;}
  .pp-note, .pp-err{flex:1 0 100%;}
  .pp-note{font-size:12px; line-height:1.45; color:var(--text-secondary);}
  .pp-err:empty{display:none;}
  .pp-skel{height:44px; background:var(--surface-sunken); border-radius:var(--r-control); margin-bottom:8px;}
  .pp-loaderr{display:flex; flex-direction:column; align-items:flex-start; gap:10px;}
  .pp-actions{display:flex; align-items:center; gap:8px; margin-top:20px;}
  .pp-actions .spacer{flex:1;}
  .pp-actions [hidden]{display:none;}
  @media (max-width:600px){
    .identity-menu-item, .im-ws-row{height:40px; min-height:40px;}
    .home-notice{flex-wrap:wrap;}
    .hn-text{flex:1 1 0;}
    .hn-actions{flex:1 0 100%;}
    .hn-actions button{height:36px;}
    .hn-actions button.hn-x{width:36px;}
    /* only a notice whose one control is the dismiss x keeps it beside the text (review fix 4) */
    .home-notice:has(.hn-actions > .hn-x:only-child){flex-wrap:nowrap;} .home-notice:has(.hn-actions > .hn-x:only-child) .hn-actions{flex:none;}
  }
  @media (max-width:480px){
    .app-modal-card.people-card, .app-modal-card.acct-card{padding:20px;}
    .pp-row{flex-wrap:wrap;}
    .pp-row input{flex:1 0 100%; height:44px; font-size:16px;}
    .pp-row button{flex:1 0 100%; height:44px;}
    .pp-ctl{flex:1 0 100%; padding-left:34px; flex-wrap:wrap;}
    #ppInvited .pp-ctl{padding-left:0;}
    .pp-role, button.pp-small{height:36px; font-size:13.5px;}
    .pp-actions{flex-direction:column; align-items:stretch;}
    .pp-actions .spacer{display:none;}
    .pp-actions button{height:44px;}
    .pp-loaderr button{height:44px;}
  }

  /* ---- logged out / removed / other workspace (spec accounts §7, §8) ---- */
  #sessionBar .sb-text{font-size:12.5px; min-width:0;}
  #sessionBar.nf-strip-warn .nf-i, #sessionBar.nf-strip-warn .sb-text{color:var(--warning-fg);}
  #sessionBar.nf-strip-error .nf-i, #sessionBar.nf-strip-error .sb-text{color:var(--error-fg);}
  #sessionBar button{height:28px; padding:0 12px; font-size:12.5px; max-width:100%; overflow:hidden; text-overflow:ellipsis; display:inline-block;}
  #sessionBar button.primary{max-width:320px;} /* review fix 4: "Switch back to {an 80-character name}" */
  #reauthModal{z-index:220;} /* review fix 2: above the option-list manager (185) and everything it opens */
  .app-modal-card.reauth-card{width:400px;}
  .reauth-card .signin-h{font-size:16px; line-height:22px; margin:0 0 6px;}
  .reauth-card .signin-lead{font-size:13px;}
  .reauth-card .pp-actions .link-inline{font-size:12.5px;}
  @media (max-width:720px){ #sessionBar{flex-wrap:wrap;} #sessionBar .sb-text{flex:1 1 100%;} #sessionBar .spacer{display:none;} #sessionBar .nf-i{display:none;} #sessionBar button{height:36px;} #sessionBar button.primary{max-width:100%;} }
  @media (max-width:480px){ .app-modal-card.reauth-card{padding:20px;} }

  /* ---- delete account (spec accounts §12) ---- */
  .ac-delete{border-top:1px solid var(--border-default); margin-top:20px; padding-top:16px;}
  .ac-delete[hidden]{display:none;}
  button.ac-delete-btn{height:32px; padding-top:0; padding-bottom:0; margin-top:10px;}
  .da-p{font-size:13px; line-height:1.5; color:var(--text-primary); margin:0 0 10px;}
  .da-h{margin:16px 0 4px;} .da-h:first-child{margin-top:0;}
  .da-list{margin-bottom:8px;}
  .da-row{display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 12px; padding:6px 0; border-top:1px solid var(--border-default);}
  .da-row:first-child{border-top:none;}
  .da-name{flex:1 1 auto; min-width:0; font-size:13px; font-weight:600; color:var(--text-primary); overflow-wrap:anywhere;}
  .da-count{flex:none; font-size:12px; color:var(--text-secondary);}
  .da-note{font-size:12px; line-height:1.5; color:var(--text-secondary); margin:0 0 4px;}
  .da-label{margin-top:16px; overflow-wrap:anywhere;}
  .signin-deleted{display:flex; align-items:flex-start; gap:6px; font-size:13px; line-height:1.45; color:var(--text-secondary); margin:0 0 16px;}
  .signin-deleted .nf-i{flex:none; margin-top:2px;}
  #sessionBar button{line-height:26px;}
  @media (max-width:720px){ #sessionBar button{line-height:34px;} }
  @media (max-width:480px){
    button.ac-delete-btn{height:44px; width:100%;}
    .da-count{flex:1 0 100%;}
  }
  /* the confirmation stands in for the Account window behind it: one card, one scrim */
  #accountModal:has(+ #deleteAccountModal.show) .app-modal-card{visibility:hidden;}
  #deleteAccountModal{background:transparent; backdrop-filter:none;}

  /* ============================== PLAN AND USAGE (spec plans §2–§7) ============================== */
  .identity-menu-item.im-plan{gap:10px;}
  .im-plan-label{white-space:nowrap;}
  .identity-menu-item.im-plan .im-role{margin-left:auto;}
  .app-modal-card.plan-card{width:520px;}
  .plan-card h2:focus{outline:none;}
  .pl-plan{display:flex; align-items:baseline; gap:8px; margin-bottom:12px;}
  .pl-plan-name{font-size:18px; line-height:24px; font-weight:600; color:var(--text-primary);}
  .pl-list{margin:0;}
  .pl-row{display:grid; grid-template-columns:minmax(0, 1fr) auto; column-gap:12px; padding:12px 0; border-top:1px solid var(--border-default);}
  .pl-row dt{font-size:13px; font-weight:600; color:var(--text-primary); margin:0;}
  .pl-fig{margin:0; font-size:13px; color:var(--text-primary); font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right;}
  .pl-nolimit{font-size:12px; color:var(--text-secondary);}
  /* the meter is a measured rule: the figure beside it carries the value, this never does alone */
  .pl-meter{grid-column:1 / -1; height:4px; border-radius:2px; background:var(--border-default); margin-top:8px; overflow:hidden;}
  .pl-meter span{display:block; height:100%; border-radius:2px; background:var(--brand-600);}
  .pl-meter.is-warn span{background:var(--warning-fg);}
  .pl-note{grid-column:1 / -1; display:flex; align-items:flex-start; gap:6px; font-size:12px; line-height:1.45; color:var(--text-secondary); margin-top:6px;}
  .pl-note .nf-i{flex:none; margin-top:1px; color:var(--warning-fg);}
  .pl-line{display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-top:1px solid var(--border-default); border-bottom:1px solid var(--border-default); min-height:44px;}
  .pl-line-text{flex:1; min-width:0;}
  .pl-line-label{font-size:13px; font-weight:600; color:var(--text-primary);}
  .pl-line-val{flex:none; font-size:13px; color:var(--text-secondary);}
  .pl-line .share-toggle{flex:none; margin-top:1px;}
  .pl-plans{font-size:12px; line-height:1.5; color:var(--text-secondary); margin:12px 0 0;}
  /* notices that are a state, not an error */
  .home-notice.hn-warn > .nf-i{color:var(--warning-fg);}
  /* People: places, and the block that stands in for the invite form */
  .pp-h-row{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:20px 0 2px;}
  .pp-h-row .pp-h{margin:0;}
  .pp-places{font-size:12px; color:var(--text-secondary); font-variant-numeric:tabular-nums; white-space:nowrap;}
  .pp-noplace{font-size:12.5px; line-height:1.45; color:var(--text-secondary); margin:0;}
  /* Share window */
  .share-off-row > div:first-child{flex:1 1 auto; min-width:0;} /* a long name must never push the toggle out of the card */
  .share-open-now{font-size:12px; line-height:1.5; color:var(--text-secondary); margin-top:4px; min-width:0;}
  .son-list{list-style:none; margin:2px 0 0; padding:0;}
  .son-name{display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .share-held{margin:0 0 4px;}
  .share-held .share-replace-link{font-size:12px;}
  #shareBody:has(.share-near) .qr-wrap{margin:2px auto;} #shareBody:has(.share-held) .qr-wrap{margin:0 auto; padding:6px;} /* the card must not scroll with the extra line */
  .share-held .share-replace-link, .share-near .share-replace-link{margin-left:4px;}
  .share-near{margin-top:6px;}
  @media (max-width:480px){
    .app-modal-card.plan-card{padding:20px;}
  }
  /* A respondent is never in "the demo": their browser is simply not signed in, which is what
     NF_MODE calls demo. The bar's sentence ("nothing is saved") is false on a real survey, and it
     was shown, dimmed, above every public survey opened by someone who was not logged in. */
  body.nf-route-respondent #nfDemoBar{display:none !important;}
  body.nf-route-respondent[data-nf-mode="demo"] .fullview{top:0; height:100vh;}

  /* ============================== PAYING FOR A PLAN (spec billing §3–§7) ============================== */
  .pl-plan{flex-wrap:wrap; row-gap:8px;}
  .pl-plan-btns{margin-left:auto; display:flex; gap:8px; flex-wrap:wrap;}
  button.pl-btn{height:32px; padding-top:0; padding-bottom:0; flex:none;}
  .pl-bill{margin:0 0 12px; font-size:13px; line-height:1.5; color:var(--text-primary);}
  .pl-bill > * + *{margin-top:4px;}
  .pl-bill-sub{font-size:12px; color:var(--text-secondary);}
  .pl-bill .pp-msg{margin-top:0;}
  .pl-bill-ending .nf-i{color:var(--warning-fg);}
  .pl-bill-err{margin:0 0 12px;}
  .app-modal-card.billing-card{width:560px;}
  .billing-card h2:focus{outline:none;}
  #billingModal, #studentModal{z-index:186;} /* over Plan and usage, as Delete account sits over Account */
  /* and like it, one card on one scrim while both are open. Opened alone (from "Nothing was
     bought."), the chooser keeps its own scrim: hence the condition. */
  #planModal:has(~ #billingModal.show) .app-modal-card, #planModal:has(~ #studentModal.show) .app-modal-card{visibility:hidden;}
  #planModal.show ~ #billingModal, #planModal.show ~ #studentModal{background:transparent; backdrop-filter:none;}
  .bl-now{display:flex; align-items:baseline; gap:8px; margin-bottom:14px;}
  .bl-now-plan{font-size:13px; font-weight:600; color:var(--text-primary);}
  .bl-controls{display:flex; flex-wrap:wrap; gap:12px 16px; margin-bottom:14px; align-items:flex-start;}
  .bl-seg{border:0; margin:0; padding:0; min-width:0;}
  .bl-seg legend{padding:0; margin:0 0 6px;}
  .bl-seg-row{display:flex;}
  .bl-seg-in{position:absolute; opacity:0; width:1px; height:1px; pointer-events:none;}
  .bl-seg-row label{display:inline-flex; align-items:center; justify-content:center; height:32px; min-width:40px; padding:0 12px; font-size:13px; font-weight:400; color:var(--text-secondary); background:transparent; border:1px solid var(--border-control); margin-left:-1px; cursor:pointer; white-space:nowrap;}
  .bl-seg-row label:first-of-type{margin-left:0; border-radius:var(--r-control) 0 0 var(--r-control);}
  .bl-seg-row label:last-of-type{border-radius:0 var(--r-control) var(--r-control) 0;}
  .bl-seg-in:checked + label{background:var(--brand-50); border-color:var(--brand-600); color:var(--text-primary); font-weight:600; position:relative; z-index:1;}
  .bl-seg-in:focus-visible + label{outline:2px solid var(--brand-600); outline-offset:2px; z-index:2; position:relative;}
  .bl-seg-in:disabled + label{cursor:default; color:var(--text-muted);} /* faint is for things that are not text */
  .bl-hint{font-size:12px; line-height:1.5; color:var(--text-secondary); margin:6px 0 0;}
  .bl-fixed{margin:2px 0 0;}
  .bl-opt{display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:12px; align-items:start; padding:12px 0; border-top:1px solid var(--border-default); cursor:default;}
  .bl-opts > .bl-opt:last-child{border-bottom:1px solid var(--border-default);}
  .bl-opt > input[type="radio"]{width:16px; height:16px; margin:0; accent-color:var(--brand-600);}
  .bl-opt > input[type="radio"]:focus-visible{outline:2px solid var(--brand-600); outline-offset:2px;}
  .bl-opt-name{line-height:16px;}
  #billingFoot button[aria-disabled="true"]{cursor:default;}
  .bl-opt-text{display:block; min-width:0;}
  .bl-opt-name{display:block; font-size:15px; font-weight:600; color:var(--text-primary);}
  .bl-current{margin-left:8px;}
  .bl-opt-desc{display:block; font-size:12.5px; line-height:1.45; color:var(--text-secondary); margin-top:2px;}
  .bl-opt .bl-seg{margin-top:8px;}
  .bl-price{white-space:nowrap; font-variant-numeric:tabular-nums; font-size:12px; color:var(--text-secondary); text-align:right;}
  .bl-price b{font-size:15px; font-weight:600; color:var(--text-primary);}
  #blMsg:empty{display:none;}
  #blMsg{margin-top:10px;}
  .bl-sum{border-top:1px solid var(--border-default); padding:12px 0 0; margin-top:12px;}
  .bl-sum:empty{display:none;}
  .bl-opts + #blMsg + .bl-sum{border-top:0;}
  .bl-sum-1{font-size:13px; font-weight:600; color:var(--text-primary);}
  .bl-notes{margin-top:12px;}
  .bl-notes p{font-size:12px; line-height:1.5; color:var(--text-secondary); margin:0 0 6px;}
  .bl-readonly{font-size:12.5px; color:var(--text-secondary);}
  .bl-terms{font-size:13px; line-height:1.5; color:var(--text-primary); margin:10px 0 0;}
  .bl-confirm .pl-row:last-child{border-bottom:1px solid var(--border-default);}
  .bl-wait .nf-i{color:var(--text-secondary);}
  #billingFoot button .nf-i{margin-left:2px;}
  @media (max-width:600px){ .bl-seg-row label{height:40px;} }

  /* ============================== ACCOUNTS FIRST (spec accounts-first §C, §D) ============================== */
  .st-check.signin-check{border:0; padding:0; margin-top:16px; align-items:start;}
  .st-check.signin-check input{margin-top:2px;}
  .signin-check-help{display:block; margin-top:2px; font-size:12px; line-height:1.5; color:var(--text-muted);}
  #signInCard form .signin-check + #siGo{margin-top:16px;}
  .st-check.ac-news{margin-top:0;}
  @media (max-width:600px){ .st-check.signin-check{align-items:start;} .st-check.signin-check input{margin:2px 0 0;} }

  /* ============================== THE ASSISTANT CONNECTOR (spec connector §3–§5) ============================== */
  body:not([data-nf-connector="1"]) .con-on{display:none !important;}
  body[data-nf-connector="1"] .con-off{display:none !important;}
  body.nf-route-connect #nfDemoBar{display:none !important;}
  body.nf-route-connect .fullview{top:0; height:100vh;}
  body.nf-route-connect #signInView .brand-lockup{pointer-events:none;} /* leaving the page loses the app's request */
  .signin-card.cn-card{width:480px;}
  .cn-card h1:focus{outline:none;}
  .cn-who{margin:0;}
  .cn-who > div{display:grid; grid-template-columns:104px minmax(0, 1fr); gap:12px; padding:12px 0; border-top:1px solid var(--border-default);}
  .cn-who > div:last-child{border-bottom:1px solid var(--border-default);}
  .cn-who dt{margin:0; padding-top:2px;}
  .cn-who dd{margin:0; min-width:0;}
  .cn-val{font-size:14px; line-height:20px; font-weight:600; color:var(--text-primary);}
  .cn-sub{font-size:12.5px; line-height:1.45; color:var(--text-secondary); margin-top:4px; overflow-wrap:anywhere;}
  .cn-who .pp-msg{margin-top:4px; font-size:12.5px;}
  .cn-radio{display:flex; align-items:center; gap:8px; min-height:32px; font-size:14px; font-weight:400; color:var(--text-primary); cursor:pointer;}
  .cn-radio input{width:16px; height:16px; margin:0; flex:none; accent-color:var(--brand-600);}
  .cn-radio input:focus-visible{outline:2px solid var(--brand-600); outline-offset:2px;}
  .cn-may{border:0; margin:20px 0 0; padding:0; min-width:0;}
  .cn-may legend{padding:0;}
  .cn-may .st-check{margin-top:0; border-top:0;}
  .cn-may legend + .st-check{border-top:1px solid var(--border-default); margin-top:6px;}
  .cn-may-t{display:block; font-size:13px; font-weight:600; color:var(--text-primary);}
  .cn-may-d{display:block; font-size:12.5px; line-height:1.45; color:var(--text-secondary); margin-top:2px;}
  #cnMsg:empty{display:none;}
  #cnMsg{margin-top:10px;}
  .cn-info .nf-i, .cn-fault .nf-i{flex:none;}
  .cn-info .nf-i{color:var(--text-secondary);}
  .cn-fault{font-size:14px; line-height:1.45; margin:0;}
  .cn-actions{display:flex; gap:8px; margin-top:16px;}
  .cn-actions button{height:44px; flex:none;}
  .cn-actions button.primary{flex:1; font-size:15px;}
  .cn-actions button[aria-disabled="true"]{cursor:default;}
  .cn-going{font-size:14px; line-height:1.5; color:var(--text-primary); margin:0; overflow-wrap:anywhere;}
  .app-modal-card.connect-card{width:560px;}
  .connect-card h2:focus{outline:none;}
  .cn-label{display:block; margin:0 0 6px;}
  .cn-label-2{margin-top:20px; padding-bottom:6px; border-bottom:1px solid var(--border-default); margin-bottom:0;}
  input.cn-addr{font-family:inherit; min-width:0;}
  .cn-steps{margin:12px 0 0; padding-left:20px; font-size:13px; line-height:1.5; color:var(--text-primary);}
  .cn-steps li{margin-top:6px;}
  .cn-steps li::marker{color:var(--text-secondary);}
  .cn-fine{font-size:12px; line-height:1.5; color:var(--text-secondary); margin:8px 0 0;}
  .cn-empty{font-size:13px; color:var(--text-secondary); margin:12px 0 0;}
  .cn-row{display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:12px; align-items:start; padding:12px 0; border-bottom:1px solid var(--border-default);}
  .cn-row-name{font-size:15px; font-weight:600; color:var(--text-primary);}
  .cn-row-who{font-size:12.5px; line-height:1.45; color:var(--text-secondary); margin-top:2px;}
  .cn-row-may{font-size:12.5px; line-height:1.45; color:var(--text-primary); margin-top:2px;}
  .cn-row-when{font-size:12px; line-height:1.45; color:var(--text-secondary); margin-top:2px;}
  .cn-gone{font-size:12.5px; line-height:1.45; color:var(--text-secondary); margin:0; padding:12px 0; border-bottom:1px solid var(--border-default); overflow-wrap:anywhere;}
  /* an assistant's draft on Home */
  .survey-card .sc-draft-1, .survey-card .sc-draft-2:not(:has(.sc-draft-err)){white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .survey-card .sc-draft-err{display:inline-flex; align-items:flex-start; gap:6px; color:var(--error-fg); line-height:1.45;}
  .survey-card .sc-draft-err .nf-i{flex:none; margin-top:2px;}
  /* one line in the height the folder row takes on every other card, so title blocks line up */
  .survey-card .sc-draft-row{display:block; color:var(--text-muted); height:31px; line-height:31px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  @media (max-width:600px){ .cn-may .st-check{align-items:start;} .cn-may .st-check input{margin-top:2px;} #cnOther{min-height:32px;} .cn-radio{min-height:44px;} .cn-row{grid-template-columns:minmax(0, 1fr);} .cn-row .cn-off{height:44px; justify-self:start;} }
  @media (max-width:480px){ .cn-who > div{grid-template-columns:minmax(0, 1fr); gap:4px;} .app-modal-card.connect-card{padding:20px;} }

  /* ============================== THE STUDENT PLAN (spec student §3–§5) ============================== */
  body:not([data-nf-student="1"]) .stu-on{display:none !important;}
  body[data-nf-student="1"] .stu-off{display:none !important;}
  .app-modal-card.student-card{width:480px;}
  .student-card h2:focus{outline:none;}
  .st-wrap{overflow-wrap:anywhere;}
  .st-addr-val{font-size:14px; line-height:20px; font-weight:600; color:var(--text-primary); overflow-wrap:anywhere;}
  .st-hint{font-size:12px; line-height:1.5; color:var(--text-secondary); margin-top:6px;}
  .st-check{display:grid; grid-template-columns:auto minmax(0, 1fr); gap:10px; padding:12px 0; border-top:1px solid var(--border-default); border-bottom:1px solid var(--border-default); margin-top:16px; font-size:13px; line-height:1.45; font-weight:400; color:var(--text-primary); cursor:pointer;}
  .st-check input{width:16px; height:16px; margin:2px 0 0; accent-color:var(--brand-600);}
  .st-check input:focus-visible{outline:2px solid var(--brand-600); outline-offset:2px;}
  #stMsg:empty{display:none;}
  #stMsg{margin-top:10px;}
  .st-notes{margin-top:12px;}
  .st-notes p, p.st-note{font-size:12px; line-height:1.5; color:var(--text-secondary); margin:0 0 6px;}
  p.st-note{margin:10px 0 0;}
  .st-out{margin-top:0; font-size:13px; line-height:1.5; color:var(--text-primary);}
  .st-out .nf-i, .st-info .nf-i, .st-waiting .nf-i, .bl-stu .nf-i{color:var(--text-secondary);}
  #studentFoot button[aria-disabled="true"]{cursor:default;}
  .st-bill{overflow-wrap:anywhere;}
  .st-bill .share-replace-link, .st-waiting .share-replace-link, .bl-notes .share-replace-link{font-size:inherit;} /* a link inside a 12px sentence is 12px */
  #stCool:empty{display:none;}
  .st-leave{margin-top:8px;}
  .st-leave-btns{display:flex; gap:8px; flex-wrap:wrap; margin-top:8px;}
  .pl-line.st-row{border-top:0;}
  .st-row .pp-msg{margin-top:6px;}
  .bl-stu{margin-top:12px;}
  @media (max-width:600px){ .st-check{min-height:44px; align-items:center;} .st-check input{margin:0;} .st-leave-btns button.pl-btn{height:40px;} }
  @media (max-width:480px){ .app-modal-card.student-card{padding:20px;} }
  @media (max-width:480px){
    .app-modal-card.billing-card{padding:20px;}
    .bl-opt{grid-template-columns:auto minmax(0, 1fr);}
    .bl-price{grid-column:2; text-align:left;}
    .pl-plan-btns{margin-left:0; flex:1 0 100%;}
  }
