/* pwm-forms-v1: анкеты в ДЗ */
.pwm-hidden { display: none !important; }
.pwm-form { margin-top: 18px; }
.pwm-form__intro { background: var(--soft, #f3f4fb); border-radius: 14px; padding: 14px 16px; margin: 6px 0 18px; line-height: 1.5; }
.pwm-form__done { margin: 6px 0 16px; }
.pwm-form__qs { display: flex; flex-direction: column; gap: 14px; }
.pwm-fq { border: 1.5px solid var(--line, #dfe2f2); border-radius: 16px; padding: 16px 18px; background: var(--card, #fff); transition: border-color .15s; }
.pwm-fq--miss { border-color: var(--bad, #d23a3a); box-shadow: 0 0 0 3px var(--bad-bg, #fde8e8); }
.pwm-fq__t { display: flex; gap: 10px; align-items: baseline; font-weight: 700; font-size: 16px; line-height: 1.4; }
.pwm-fq__n { flex: none; display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; background: var(--navy, #14176b); color: #fff; font-size: 13px; font-weight: 800; }
.pwm-req { color: var(--bad, #d23a3a); margin-left: 3px; }
.pwm-fq__hint { margin: 6px 0 0 36px; }
.pwm-fq__b { margin: 12px 0 0 36px; }
.pwm-fq__b > .input { width: 100%; }
.pwm-opts { display: flex; flex-direction: column; gap: 8px; }
.pwm-opt { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 9px 12px; border: 1.5px solid var(--line, #dfe2f2); border-radius: 12px; cursor: pointer; line-height: 1.35; }
.pwm-opt:hover { border-color: var(--blue, #3d3ce6); }
.pwm-opt input[type=radio], .pwm-opt input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue, #3d3ce6); flex: none; margin: 0; }
.pwm-opt:has(input:checked) { border-color: var(--blue, #3d3ce6); background: rgba(61, 60, 230, .06); }
.pwm-opt > span { flex: 1 1 0; min-width: 0; }
.pwm-opt--other > span { flex: 0 0 auto; }
.pwm-opt__txt { flex: 1 1 200px; min-width: 0; padding: 7px 10px !important; }
.pwm-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pwm-pill input { position: absolute; opacity: 0; pointer-events: none; }
.pwm-pill span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border: 1.5px solid var(--line, #dfe2f2); border-radius: 10px; font-weight: 800; cursor: pointer; }
.pwm-pill span:hover { border-color: var(--blue, #3d3ce6); }
.pwm-pill input:checked + span { background: var(--blue, #3d3ce6); border-color: var(--blue, #3d3ce6); color: #fff; }
.pwm-pill input:focus-visible + span { outline: 2px solid var(--blue, #3d3ce6); outline-offset: 2px; }
.pwm-ends { margin-top: 8px; }
.pwm-grid + .pwm-ends { text-align: right; }
.pwm-grid { display: flex; flex-direction: column; gap: 8px; }
.pwm-grid__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 6px 0; border-bottom: 1px dashed var(--line, #dfe2f2); }
.pwm-grid__row:last-child { border-bottom: 0; }
.pwm-grid__label { flex: 1 1 200px; font-weight: 600; }
.pwm-form__err { margin: 14px 0 0; }
.pwm-form__actions { margin-top: 16px; }
.pwm-form__note { margin-top: 8px; }
@media (max-width: 640px) {
  .pwm-fq { padding: 14px; }
  .pwm-fq__b, .pwm-fq__hint { margin-left: 0; }
  .pwm-pill span { min-width: 36px; height: 36px; }
}
/* панель: /admin/forms */
.pwm-fa .listhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.pwm-fa .listhead .small { margin-top: 4px; max-width: 720px; }
.pwm-fa__course { max-width: 360px; }
.pwm-fa__only { display: inline-flex; gap: 8px; align-items: center; margin: 10px 0; }
.pwm-fa--only .pwm-fa__none { display: none; }
.pwm-fa__scroll { overflow-x: auto; }
.pwm-fa__items tr.on td { background: rgba(61, 60, 230, .08); }
.pwm-fa__ed, .pwm-fa__ans { margin-top: 18px; }
.pwm-fa__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 14px; }
.pwm-fa__src { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.pwm-fa__errs { margin: 10px 0; }
.pwm-fa__help { margin-top: 14px; }
.pwm-fa__help pre { white-space: pre-wrap; background: var(--soft, #f3f4fb); border-radius: 12px; padding: 12px; font-size: 12.5px; }
.pwm-fa__pvh { margin-bottom: 6px; }
.pwm-fa__pv { max-height: 720px; overflow: auto; border: 1.5px dashed var(--line, #dfe2f2); border-radius: 16px; padding: 14px; }
.pwm-fa__table td, .pwm-fa__table th { vertical-align: top; min-width: 140px; }
.pwm-fa__table td:first-child, .pwm-fa__table th:first-child { position: sticky; left: 0; background: var(--card, #fff); z-index: 1; }
.pwm-fa__g { display: block; white-space: nowrap; }
.pwm-fa__link { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 900px) { .pwm-fa__cols { grid-template-columns: 1fr; } }
/* тёмная тема */
:where(html[data-theme="dark"]) .pwm-form__intro, :where(html[data-theme="dark"]) .pwm-fa__help pre { background: #1d2140; }
:where(html[data-theme="dark"]) .pwm-fq__n { background: #3d3ce6; color: #fff; }
:where(html[data-theme="dark"]) .pwm-opt:has(input:checked) { background: rgba(120, 120, 255, .14); }
