/* Self-report pages (/qeeg-analysis/survey/ · /qeeg-analysis/q/ · /qeeg-analysis/profile/preview/) — the BNM battery: one progress bar, one
   instrument at a time, answer row per item (its own scale); tabs per instrument; mobile first. Whole file 2026-10-13 (BATTERY-FINAL).
   Whole file FIX-4 C (2026-10-15): the standard type and shape of the order forms (order3.css) — Inter body 16/1.6, Source Serif 4 headings,
   radius 8 — over site.css (and v2.css on the preview) on these three pages only; the heading rules carry .svy so they outrank the
   "html.lang-ko h1" rules of v2.css.
   Whole file B-4 (2026-10-15): + the guardian's first screen "Who will answer?" (.svwho, the minor-consent line .svconsent, the two options
   .svwhoopt) and the child's link card (.svkid, copy row .svcopy), the waiting line on the end screen (.svwait).
   Whole file E (2026-10-15): this header names only the standard families. */
:root{--sv-r:8px;--sv-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;
  --sv-serif:"Source Serif 4",Georgia,"Apple SD Gothic Neo","Malgun Gothic",serif}
body,html.lang-ko body{font-family:var(--sv-sans);font-size:16px;line-height:1.6}
.svy h1,.svy h2,.svy h3,html.lang-ko .svy h1,html.lang-ko .svy h2,html.lang-ko .svy h3{font-family:var(--sv-serif);font-weight:700;letter-spacing:0}
.svy h1{font-size:34px;line-height:1.25;margin:0 0 8px}
.svy h2{font-size:24px;line-height:1.3}
.svy .lead{font-size:16px;line-height:1.6}
.btn,.btn.sm{border-radius:var(--sv-r);font-family:var(--sv-sans);font-weight:600}
.card{border-radius:var(--sv-r)}
.svy .wrap{max-width:760px}
.svdemo{background:#FFF7ED;border:1px solid #FDBA74;border-radius:var(--sv-r);padding:8px 14px;margin:0 0 14px;font-weight:600;color:#9A3412}
.svbar{position:sticky;top:64px;z-index:4;background:var(--bg,#fff);padding:12px 0 8px;margin:10px 0 6px}
.svtrack{height:10px;border-radius:var(--sv-r);background:#E3ECF3;overflow:hidden}
.svfill{height:100%;width:0;background:#1F5F8F;border-radius:var(--sv-r);transition:width .25s}
.svmeta{display:flex;justify-content:space-between;gap:10px;margin:6px 0 0;font-size:15px;color:var(--muted)}
.svsave{font-weight:600;color:#0F7A55}
.svtabs{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.svtab{border:1px solid #CFE0EE;background:#fff;border-radius:var(--sv-r);padding:5px 12px;font:inherit;font-size:14px;cursor:pointer;color:#1F2A37}
.svtab.done{border-color:#0F7A55;color:#0F7A55}
.svtab.on{background:#1F5F8F;border-color:#1F5F8F;color:#fff;font-weight:600}
.svmsg{border-radius:var(--sv-r);padding:10px 14px;margin:10px 0;background:#F3F8FC;border:1px solid #CFE0EE}
.svmsg.err{background:#FEF3F2;border-color:#FDA29B;color:#912018}
.svsecmeta{margin:-4px 0 8px;color:var(--muted);font-size:15px}
.svnote{color:#1F5F8F;font-weight:600}
.svskipped{background:#F3F8FC;border:1px dashed #1F5F8F;border-radius:var(--sv-r);padding:8px 14px;margin:0 0 10px;font-weight:600;color:#1F5F8F}
.svitems{list-style:none;padding:0;margin:14px 0 0;counter-reset:q}
.svitem{background:#fff;border:1px solid var(--line,#dde6ee);border-radius:var(--sv-r);padding:14px 16px;margin:0 0 12px;counter-increment:q}
.svitem.open-miss{border-color:#F79009;box-shadow:0 0 0 2px rgba(247,144,9,.15)}
.svtext{font-size:17px;line-height:1.5;margin:0 0 10px;font-weight:600}
.svopts{display:grid;grid-template-columns:repeat(var(--n,5),1fr);gap:6px}
.svopts label{display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid #CFE0EE;border-radius:var(--sv-r);padding:8px 4px;text-align:center;font-size:14px;
  line-height:1.25;cursor:pointer;min-height:58px;justify-content:center}
.svopts input{position:absolute;opacity:0;pointer-events:none}
.svopts label.on{background:#1F5F8F;border-color:#1F5F8F;color:#fff;font-weight:600}
.svopts label:focus-within{outline:2px solid #4A90C2;outline-offset:1px}
.svskip{background:none;border:0;color:var(--muted);font:inherit;font-size:14px;text-decoration:underline;cursor:pointer;margin-top:8px;padding:0}
.svskip.on{color:#1F5F8F;font-weight:600}
.svskiptool{display:block;margin:4px 0 0 auto;background:none;border:1px solid #CFE0EE;border-radius:var(--sv-r);padding:6px 14px;font:inherit;font-size:14px;color:var(--muted);cursor:pointer}
.svskiptool[hidden]{display:none}
.svnav{display:flex;justify-content:space-between;gap:12px;margin:18px 0 30px}
.svdone{text-align:center;padding:30px 24px;margin-top:16px}
/* B-4: the guardian's first screen and the child's link */
.svwho{padding:22px 22px 14px;margin:14px 0}
.svwho h2{margin:0 0 8px}
.svconsent{background:#F3F8FC;border:1px solid #CFE0EE;border-radius:var(--sv-r);padding:10px 14px;font-weight:600;color:#1F2A37}
.svwhoopts{display:grid;gap:8px;margin:10px 0}
.svwhoopt{display:flex;gap:12px;align-items:flex-start;border:1px solid #CFE0EE;border-radius:var(--sv-r);padding:12px 14px;cursor:pointer;background:#fff;font-weight:600}
.svwhoopt input{width:20px;height:20px;margin:2px 0 0;accent-color:#1F5F8F;flex:none}
.svwhoopt span span{display:block;font-weight:400;font-size:14px;color:var(--muted)}
.svwhoopt:has(input:checked){border-color:#1F5F8F;background:#F3F8FC}
#svWhoMail input,.svcopy input{width:100%;height:46px;border:1px solid #d6dee6;border-radius:var(--sv-r);padding:0 12px;font:inherit;font-size:16px;box-sizing:border-box}
#svWhoMail label{display:block;font-weight:600;margin:8px 0 4px}
.svkid{padding:14px 16px;margin:10px 0;text-align:left}
.svkid p{margin:0 0 6px}
.svcopy{display:flex;gap:8px;align-items:center}
.svcopy input{flex:1;min-width:0;font-size:14px}
.svwait{text-align:left;margin:0 0 14px}
@media (max-width:600px){
  .svy h1{font-size:28px}
  .svopts{grid-template-columns:1fr;gap:6px}
  .svopts label{flex-direction:row;justify-content:flex-start;min-height:44px;padding:10px 14px;font-size:15px;text-align:left}
  .svtext{font-size:16px}
  .svnav .btn{flex:1}
  .svtabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .svtab{flex:0 0 auto}
  .svcopy{flex-wrap:wrap}
}
/* INTAKE-LINK / INTAKE-CATALOG (2026-10-14): free-text answers of a clinician's own form */
.svfree{width:100%;min-height:84px;border:1px solid #d6dee6;border-radius:var(--sv-r);padding:10px 12px;font:inherit;font-size:16px;margin:6px 0 4px;resize:vertical;box-sizing:border-box}
/* the self-report preview (/qeeg-analysis/profile/preview/): who answers (adult / parent) · end box instead of Submit */
.pvwho{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}
.pvwho a{padding:6px 14px;border:1px solid #1F2A37;border-radius:var(--sv-r);text-decoration:none;color:inherit;font-weight:600;font-size:14px}
.pvwho a[aria-current="true"]{background:#E3ECF3}
.pvend{margin:18px 0 0;padding:20px 22px;border:1px solid var(--line,#dde6ee);border-radius:var(--sv-r);background:#F3F8FC}
.pvend h3{margin:0 0 6px}.pvend p{margin:0 0 12px}
/* card Qeeg-20261113-1848 ③ (a): the crisis line under the safety question when it is answered 1 or more */
.svcrisis{margin:10px 0 0;padding:10px 14px;border-radius:var(--sv-r);background:#FBEDE4;color:#8A3A12;font-weight:600}
.svcrisis[hidden]{display:none}

/* card M-24 #14: the answer-scale line above a group of items (not numbered) */
.svgrp{list-style:none;counter-increment:none;font-weight:600;font-size:15px;color:#3f4a55;margin:16px 0 8px}

/* card M-25 2·4: the way back to the client screen (top left) */
.svback{display:inline-block;margin:4px 0 12px;font-size:14px;color:var(--accent,#2E5A7A);text-decoration:none}
.svback:hover{text-decoration:underline}
