/* CISB Surveys: only what is particular to this app, built from the Design System's tokens and components.
   Shared rules are written body:is(.ds-light, .ds-staff); the respondent's screens are ds-light, staff pages ds-staff. */

:root { --q-size: 1.3rem; }
@media (max-width: 640px) { :root { --q-size: 1.18rem; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.bad-text { color: var(--red); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; }

/* ---------- frame ---------- */
body:is(.ds-light, .ds-staff) .wrap.wrap-narrow { max-width: 680px; }
body:is(.ds-light, .ds-staff) .brand-mark { background: var(--navy); color: #fff; }
body:is(.ds-light, .ds-staff) .brand-mark .ic { margin: 0; width: 18px; height: 18px; }
body:is(.ds-light, .ds-staff) .btn-block { display: flex; width: 100%; justify-content: center; }
body:is(.ds-light, .ds-staff) .btn-block + .btn-block { margin-top: 10px; }
body:is(.ds-light, .ds-staff) .btn-big { min-height: 52px; font-size: 1.05rem; }
.btn .ic:last-child:not(:first-child) { margin: 0 0 0 .4em; }
[data-dir="-1"] .ic, [data-dir="up"] .ic { transform: rotate(180deg); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.crumb { margin: 0 0 6px; font-size: .9rem; }
.crumb a { text-decoration: none; font-weight: 600; }
.sec-h { font-size: 1.1rem; font-weight: 800; margin: 26px 0 10px; }
.sub-h { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; }
.small-h { font-size: .95rem; margin-bottom: 10px; }
.narrow-card { max-width: 560px; margin: 0 auto; }
body:is(.ds-light, .ds-staff) .card.flush { padding: 0; overflow: hidden; }
.card + .card, .card + section.card, section.card + section.card { margin-top: 16px; }
.notice-ok { background: var(--free); color: var(--free-ink); }
.notice .ic { margin-right: .35em; }
.notice ul.checks { margin: 6px 0 0; padding-left: 20px; }
.notice ul.checks li { margin: 3px 0; }
.toast.bad { background: var(--red); }

/* ---------- sign-in ---------- */
.why { margin: 4px 0 20px; }
.why p { font-size: var(--q-size); line-height: 1.42; margin: 0 0 12px; text-wrap: pretty; }
.why p:lang(zh) { line-height: 1.6; }
.or { text-align: center; margin: 14px 0; }
.login-for { text-align: center; margin: 0 0 10px; font-weight: 600; }
.demo-card { margin-top: 16px; }
.demo-list { display: grid; gap: 6px; }
.demo-list .btn { justify-content: space-between; text-align: left; }
.demo-list .btn span { font-weight: 500; font-size: .86rem; }
.hello { font-size: 2rem; font-weight: 800; margin: 6px 0 4px; }
.big-q { font-size: var(--q-size); margin: 0 0 20px; }

/* ---------- inset lists (respondent's home, pickers) ---------- */
.inset { background: var(--card); border-radius: var(--ds-radius, 18px); overflow: hidden; box-shadow: 0 1px 2px rgba(22, 26, 38, .04); }
.inset-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; text-decoration: none; position: relative; width: 100%;
  background: none; border: 0; font: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.inset-row + .inset-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--ds-line); }
a.inset-row:hover, button.inset-row:hover { background: var(--hover); }
.ir-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.done-bar { display: flex; gap: 14px; align-items: center; background: var(--free); color: var(--free-ink); border-radius: 18px; padding: 16px 18px; }
.done-bar > .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--free-ink); color: #fff; stroke-width: 3; margin: 0; }

/* ---------- the respondent's screens ---------- */
.preview-note { margin: 0 0 16px; }
.resp { padding-bottom: 32px; }
.intro h1 { margin-bottom: 8px; }
.asked { margin: 0 0 8px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--ds-sub); font-weight: 600; margin: 0 0 18px; }
.meta { gap: 4px 18px; }
.meta > span { white-space: nowrap; display: inline-flex; align-items: center; }
.about-child { background: var(--navy-soft); color: var(--navy-text, var(--navy)); border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.intro-text { font-size: 1.05rem; line-height: 1.55; max-width: 62ch; }
.intro-text p { margin: 0 0 12px; text-wrap: pretty; }
.intro-video { width: 100%; border-radius: 16px; background: #000; display: block; margin: 8px 0 18px; max-height: 60vh; }
.keep { background: var(--card); border-radius: 16px; padding: 16px 18px; margin: 18px 0; box-shadow: 0 1px 2px rgba(22, 26, 38, .04); }
.keep h2 { font-size: 1rem; margin: 0 0 6px; display: flex; align-items: center; }
.keep p { margin: 6px 0 0; }
.worry { background: #eef1f6; color: #3d4659; border-radius: 14px; padding: 12px 14px; font-size: .95rem; }
.intro-go { margin-top: 22px; }

.progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; }
.prog-text { font-weight: 700; color: var(--ds-sub); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .95rem; }
.prog-bar { flex: 1; height: 4px; border-radius: 2px; background: #e3e6ee; overflow: hidden; }
.prog-bar > span { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 2px; }
.q-section { margin: 0 0 6px; font-weight: 600; }
.q-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-text { font-size: var(--q-size); font-weight: 750; line-height: 1.3; letter-spacing: -.01em; padding: 0; margin: 0 0 10px; text-wrap: pretty; }
.q-text:lang(zh), :lang(zh) .q-text { letter-spacing: 0; font-weight: 800; }
h1.q-text { font-size: calc(var(--q-size) + .15rem); }
.q-opt { font-size: .82rem; font-weight: 600; color: var(--ds-sub); letter-spacing: 0; white-space: nowrap; }
.q-help { color: var(--ds-sub); margin: 0 0 12px; }
.mode-line { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--ds-sub); margin: 0 0 16px; padding: 10px 12px; background: var(--card); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ds-line); }
.mode-line .ic { margin: 2px 0 0; flex-shrink: 0; }
.mode-line.mode-named { color: var(--ds-ink); box-shadow: inset 0 0 0 1.5px var(--navy-line); }
.mode-line.mode-named .ic { color: var(--navy); }

.choices { display: grid; gap: 8px; }
.choices.yesno { grid-template-columns: 1fr 1fr; }
.choices.yesno .choice-na { grid-column: 1 / -1; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; background: var(--card); border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--ds-line); cursor: pointer; font-size: 1.02rem; line-height: 1.35; }
.choice input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--navy); }
.choice:hover { background: var(--hover); }
.choice:has(input:checked) { background: var(--navy-soft); box-shadow: inset 0 0 0 1.5px var(--navy); font-weight: 600; }
.choice:has(input:disabled) { opacity: .5; cursor: default; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.choice-na { margin-top: 6px; color: var(--ds-sub); }
.choices + .choice-na, .scale-ends + .choice-na, .scale + .choice-na { display: flex; margin-top: 12px; }

.scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.scale.scale-long { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); }
.pt { position: relative; cursor: pointer; }
.pt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pt > span:not(.sr-only) { display: grid; place-items: center; min-height: 52px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--ds-line);
  font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.pt:hover > span:not(.sr-only) { background: var(--hover); }
.pt input:checked + span { background: var(--navy); color: #fff; box-shadow: none; }
.pt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; gap: 12px; color: var(--ds-sub); font-size: .88rem; margin-top: 8px; }
.scale-ends span:last-child { text-align: right; }

.rank { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rank li { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 8px 8px 8px 14px; box-shadow: inset 0 0 0 1px var(--ds-line); min-height: 52px; }
.rk-n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.rank li > span:nth-child(2) { flex: 1; }
.rk-btns { display: flex; gap: 4px; }
.rk-btns .btn { min-width: 44px; min-height: 44px; justify-content: center; }
.rk-btns .btn .ic { margin: 0; }

.optin { margin-top: 14px; padding: 12px 14px; background: var(--card); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ds-line); font-size: .98rem; min-height: 48px; }
.optin input { width: 20px; height: 20px; accent-color: var(--navy); }
.q-screen textarea { min-height: 150px; font-size: 1.02rem; }
.q-screen input[type=text] { font-size: 1.02rem; padding: 12px; }
.q-err { color: var(--red); font-weight: 600; min-height: 1.4em; margin: 10px 0 0; }
.q-nav { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.q-nav .btn-primary { margin-left: auto; min-width: 120px; justify-content: center; min-height: 48px; }
.q-nav .btn { min-height: 48px; }
.ack { text-align: center; font-size: 1.1rem; color: var(--ds-sub); min-height: 1.6em; margin: 22px 0 0; opacity: 0; transition: opacity .2s ease; }
.ack.on { opacity: 1; }
#qf { transition: opacity .2s ease; }
#qf.q-leaving { opacity: .3; }
.finish-note { display: flex; gap: 10px; align-items: flex-start; background: var(--warn); color: var(--warn-ink); border-radius: 14px; padding: 12px 14px; }
.finish-note .ic { margin: 3px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .q-in-next { animation: q-in-next .28s cubic-bezier(.2, .8, .2, 1); }
  .q-in-back { animation: q-in-back .28s cubic-bezier(.2, .8, .2, 1); }
  .prog-bar > span { transition: width .3s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes q-in-next { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes q-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.done { text-align: center; padding-top: 12px; }
.done .intro-text { margin: 0 auto; text-align: left; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--free-ink); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }
.done-mark .ic { width: 32px; height: 32px; margin: 0; stroke-width: 3; }
.done .worry { text-align: left; }
.done-actions { margin-top: 22px; text-align: left; }

/* ---------- staff: builder ---------- */
.bi { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 760px) { .bi { grid-template-columns: 1fr; } }
.video-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ds-line); }
.video-row input[type=url] { flex: 1 1 260px; width: auto; }
.video-row label.btn { cursor: pointer; }
.sec-card { margin-top: 16px; }
.sec-head h2 { margin-bottom: 6px; }
.owners { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.qlist { list-style: none; counter-reset: q; padding: 0; margin: 0; border-top: 1px solid var(--ds-line); }
.qrow { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ds-line); counter-increment: q; }
.qrow::before { content: counter(q); width: 26px; height: 26px; border-radius: 50%; background: var(--ds-ground); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; color: var(--ds-sub); }
.q-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.q-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.q-aud { font-size: .88rem; color: var(--ds-sub); }
.q-aud b { color: var(--ds-ink); margin-left: 4px; font-variant-numeric: tabular-nums; }
.q-acts { display: flex; gap: 2px; align-items: flex-start; flex-shrink: 0; }
.q-acts .btn-ghost .ic { margin: 0; }
.rates { font-size: .9rem; }
.rates .sep { margin: 0 6px; color: var(--ds-chev); }
.stat b small { font-size: .9rem; color: var(--ds-sub); font-weight: 600; }
.send-card { margin-top: 0; }
.pick-list { margin: 8px 0; max-height: 280px; overflow: auto; }
.pa-qs { padding-left: 22px; }
.pa-qs li { margin: 4px 0; }
.checklist { display: grid; gap: 8px; max-height: 50vh; overflow: auto; padding: 4px 0; }

body:is(.ds-light, .ds-staff) .modal.modal-editor { max-width: 880px; }
.qed .row { align-items: center; }
.opts { display: grid; gap: 6px; margin-bottom: 8px; }
.opt-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.opt-row .btn .ic { margin: 0; }
.narrow-field { max-width: 260px; }
.modes { border: 0; padding: 0; margin: 0 0 14px; }
.modes legend { font-weight: 600; font-size: .86rem; margin-bottom: 6px; padding: 0; }
.mode-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ds-line); margin-bottom: 6px; cursor: pointer; }
.mode-opt > span { display: flex; flex-direction: column; gap: 2px; }
.mode-opt input { margin-top: 3px; accent-color: var(--navy); }
.mode-opt.on { background: var(--navy-soft); box-shadow: inset 0 0 0 1.5px var(--navy); }
.mode-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }

.aud { display: grid; gap: 8px; }
.clause { background: #f7f8fb; border-radius: 14px; padding: 10px 12px; }
.cl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-head select { width: auto; }
.cl-words { font-weight: 700; flex: 1; min-width: 160px; }
.cl-n { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .88rem; background: var(--card); border-radius: 999px; padding: 3px 10px; }
.cl-head .btn .ic { margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.chip-label { width: 64px; font-size: .82rem; color: var(--ds-sub); font-weight: 600; }
.chip { border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--ds-line); border-radius: 999px; padding: 5px 11px; font-weight: 600; font-size: .85rem; cursor: pointer; min-height: 32px; }
.chip[aria-pressed="true"] { background: var(--navy-soft); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.chip .ic { margin: 0 0 0 .3em; width: .85em; height: .85em; }
.class-add { width: auto !important; padding: 5px 8px !important; font-size: .85rem; }
.aud-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.aud-total { font-size: .92rem; }

/* ---------- staff: results ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 6px 0 10px; }
.filter-bar .field { margin: 0; min-width: 200px; }
.results { display: grid; gap: 14px; }
.qres-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.qres-head h3 { flex: 1; min-width: 240px; margin: 0; font-size: 1.05rem; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 92px; gap: 12px; align-items: center; font-size: .92rem; }
.bar-t { height: 14px; border-radius: 7px; background: var(--ds-ground); overflow: hidden; }
.bar-f { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 7px; }
.bar-n { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr 76px; } .bar-t { grid-column: 1 / -1; grid-row: 2; } }
.mean { margin: 0 0 12px; color: var(--ds-sub); }
.mean b { font-size: 1.5rem; color: var(--ds-ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.suppressed { display: flex; align-items: center; gap: 4px; background: #eef0f5; color: #3d4659; border-radius: 12px; padding: 12px 14px; margin: 0; }
.txt-search { margin-bottom: 10px; }
.txts { list-style: none; padding: 0; margin: 0; }
.txts li { padding: 12px 0; border-top: 1px solid var(--ds-line); }
.txt { margin: 0 0 6px; white-space: pre-wrap; }
.txt-meta { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; }
.txt-acts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.txt-acts .tag-in { width: 220px; padding: 5px 9px; font-size: .86rem; }
.named { margin-top: 12px; font-size: .9rem; }
.named summary { cursor: pointer; font-weight: 600; }
.rank-res li { margin: 4px 0; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.settings-grid .card + .card, .settings-grid form + .card { margin-top: 0; }

/* ---------- class codes ---------- */
.board-url { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.board-url b { font-size: 1.8rem; letter-spacing: .01em; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.code-card { background: var(--card); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(22, 26, 38, .04); }
.code-card.is-done { background: var(--free); }
.cc-name { font-weight: 700; }
.cc-code { font-size: 1.6rem; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.cc-state { color: var(--ds-sub); }

/* ---------- print (results, class codes) ---------- */
@media print {
  .top, .no-print, .skip-link, .btn, .crumb, #toasts, .tabs { display: none !important; }
  body { background: #fff !important; }
  .card, .inset, .code-card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
  .bar-f { background: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { padding-top: 0 !important; }
}

/* the light bar on phones: brand and tools on one row, the page links below */
@media (max-width: 640px) {
  body.ds-light .top-inner { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand right" "nav nav"; column-gap: 10px; row-gap: 0; padding-top: 8px; min-height: 0; }
  body.ds-light .top-inner > .brand { grid-area: brand; }
  body.ds-light .top-inner > .top-right { grid-area: right; justify-self: end; margin-left: 0; gap: 6px; }
  body.ds-light .top-inner > .top-right .who { display: none; }
  body.ds-light .top-inner > .nav { grid-area: nav; margin: 6px -8px 0; padding: 0 0 6px; }
  body.ds-light .top-inner > .nav:empty { display: none; }
  body.ds-light .top-inner:has(> .nav:empty) { padding-bottom: 8px; }
}

/* Surveys list: the title gets room; responses wrap as short lines */
.tbl .tc-main { min-width: 200px; }
.tbl td.rates { line-height: 1.5; }
a.tab { text-decoration: none; display: inline-block; }
.tbl td.tc-acts { text-align: right; }
.tbl td.tc-acts .btn { margin: 2px 0; }

/* "Other (please specify)": the box under the choices */
.other-text { margin: 0 0 0 44px; }
.other-text[hidden] { display: none; }

/* ---------- staff: the new-survey wizard ---------- */
.wiz-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0 16px; }
.wiz-steps li > * { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--card); border-radius: 999px; padding: 6px 14px 6px 6px;
  font: inherit; font-weight: 600; font-size: .9rem; color: var(--ds-sub); box-shadow: inset 0 0 0 1px var(--ds-line); min-height: 36px; }
.wiz-steps li > button { cursor: pointer; }
.wiz-steps li > button:hover { background: var(--hover); }
.wiz-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-ground); font-size: .82rem; }
.wiz-steps li.done > * { color: var(--ds-ink); }
.wiz-steps li.done b { background: var(--free); color: var(--free-ink); }
.wiz-steps li[aria-current="step"] > * { background: var(--navy-soft); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.wiz-steps li[aria-current="step"] b { background: var(--navy); color: #fff; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 8px; }
.wiz-nav .btn { min-height: 46px; }
.wiz-presets { align-items: center; margin: 0 0 12px; }
.wiz-presets .chip-label { width: auto; margin-right: 4px; }
.wiz-perchild { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 14px 0 8px; }
.wiz-perchild .small { flex-basis: 100%; padding-left: 28px; }
.wiz-sec { padding: 12px 0; border-top: 1px solid var(--ds-line); }
.wiz-sec:first-child { border-top: 0; padding-top: 0; }
.wiz-q { display: grid; gap: 16px; }
.wiz-q .card + .card { margin-top: 0; }
.qrow.wiz-editing { background: var(--navy-soft); border-radius: 12px; }
.wiz-time { margin: 12px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.wiz-time .ic { flex-shrink: 0; margin-top: 2px; }
.wiz-group { margin: 0 0 12px; }
.wiz-group-h { display: block; font-size: .82rem; font-weight: 700; color: var(--ds-sub); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.wiz-intents { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.wiz-intent { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; border: 0; background: var(--card); font: inherit;
  border-radius: 14px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--ds-line); cursor: pointer; position: relative; min-height: 64px; }
.wiz-intent:hover { background: var(--hover); }
.wiz-intent[aria-pressed="true"] { background: var(--navy-soft); box-shadow: inset 0 0 0 1.5px var(--navy); }
.wiz-intent[aria-pressed="true"] b { color: var(--navy); }
.wiz-badge { display: inline-flex; align-items: center; gap: 3px; font-size: .75rem; font-weight: 700; color: var(--navy); background: var(--navy-soft); border-radius: 999px; padding: 2px 8px 2px 6px; }
.wiz-badge .ic { width: .9em; height: .9em; margin: 0; }
.wiz-intent:has(.wiz-badge) { box-shadow: inset 0 0 0 1.5px var(--navy-line, var(--navy)); }
.wiz-suggest { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--navy-soft); border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; }
.wiz-suggest > .ic { color: var(--navy); flex-shrink: 0; margin: 0; }
.wiz-suggest > span { flex: 1 1 260px; }
.wiz-answer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 20px; align-items: start; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--ds-line); }
@media (max-width: 860px) { .wiz-answer { grid-template-columns: 1fr; } .wiz-prev { order: -1; position: static; } }
.wiz-why { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 8px; color: var(--ds-sub); }
.wiz-why .ic { color: var(--navy); flex-shrink: 0; margin: 2px 0 0; }
.wiz-words { margin: 0 0 12px; }
.wiz-words summary { cursor: pointer; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.wiz-words .bi { gap: 6px; margin-bottom: 6px; }
.wiz-hints { background: var(--warn); color: var(--warn-ink); border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; font-size: .92rem; }
.wiz-hints ul { margin: 6px 0 0; padding-left: 20px; }
.wiz-hints li { margin: 3px 0; }
.wiz-tpl { margin: 8px 0 12px; }
.wiz-tpl summary { cursor: pointer; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.wiz-prev { position: sticky; top: 12px; background: var(--ds-ground); border-radius: 16px; padding: 14px; }
.wiz-prev-h { display: block; font-size: .78rem; font-weight: 700; color: var(--ds-sub); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.pv-q { font-weight: 750; margin: 0 0 10px; line-height: 1.3; }
.pv-list, .pv-yn { display: grid; gap: 6px; }
.pv-yn { grid-template-columns: 1fr 1fr; }
.pv-c { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 10px; padding: 8px 10px; box-shadow: inset 0 0 0 1px var(--ds-line); font-size: .9rem; }
.pv-c::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ds-chev, #9aa1b2); flex-shrink: 0; }
.pv-multi .pv-c::before { border-radius: 4px; }
.pv-scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.pv-scale span { display: grid; place-items: center; background: var(--card); border-radius: 6px; min-height: 30px; font-weight: 700; font-size: .8rem; box-shadow: inset 0 0 0 1px var(--ds-line); }
.pv-rank { margin: 0; padding-left: 20px; font-size: .9rem; }
.pv-rank li { margin: 4px 0; }
.pv-box { background: var(--card); border-radius: 10px; padding: 10px; color: var(--ds-sub); font-size: .85rem; box-shadow: inset 0 0 0 1px var(--ds-line); }
.pv-box.pv-long { min-height: 80px; }
