:root{font-family:"Segoe UI",Arial,sans-serif;color:#202630;background:#F4F6F9;font-size:15px;line-height:1.5;font-synthesis:none;--accent:#1683EB;--border:#E2E6EC;--muted:#697586}*{box-sizing:border-box}body{margin:0;padding:36px 18px}main{max-width:800px;margin:auto;background:#fff;border:1px solid var(--border);border-radius:16px;padding:34px;box-shadow:0 8px 32px #243b5310}header{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--border);padding-bottom:24px;margin-bottom:26px}header img{width:44px;height:44px;flex-shrink:0}header strong{font-size:25px;font-weight:650;letter-spacing:-.6px}small{display:block;color:var(--muted);font-size:12px;margin-top:4px}h1{font-size:25px;line-height:1.35;letter-spacing:-.45px;margin:0 0 18px;font-weight:650}h2{font-size:20px;letter-spacing:-.3px;margin:24px 0 12px}h3{font-size:16px;margin:24px 0 12px}p{line-height:1.7;margin:12px 0}#app>p:not(.error){color:#536173}label{display:block;margin:9px 0;line-height:1.5}input:not([type=radio]):not([type=checkbox]),textarea,select{display:block;width:100%;min-width:0;border:1px solid #cdd5df;border-radius:9px;background:#fff;padding:12px;font:inherit;color:inherit;margin-top:9px;transition:border-color .18s,box-shadow .18s,background .18s}input::placeholder,textarea::placeholder{color:#8b96a5}textarea{min-height:108px;resize:vertical}select{cursor:pointer;text-overflow:ellipsis}input:disabled,textarea:disabled{background:#f1f3f6!important;color:#7f8997}input:not([type=radio]):not([type=checkbox]):focus,textarea:focus,select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #1683eb1a}input[type=checkbox],input[type=radio]{appearance:none;-webkit-appearance:none;position:relative;width:19px;height:19px;flex:0 0 19px;border:1.5px solid #a9b5c4;background:#fff;margin:1px 0 0;border-radius:5px;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}input[type=radio]{border-radius:50%}input[type=checkbox]:checked,input[type=radio]:checked{background:var(--accent);border-color:var(--accent);animation:select-pop .22s ease-out}input[type=checkbox]:checked::after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}input[type=radio]:checked::after{content:"";position:absolute;inset:5px;background:#fff;border-radius:50%}input:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #1683eb55;outline-offset:3px}.question{min-width:0;border:1px solid transparent;border-radius:12px;padding:16px;margin:16px -17px;scroll-margin-top:24px;transition:border-color .2s,background .2s}.question legend{float:left;display:block;width:100%;font-weight:600;line-height:1.55;margin-bottom:10px;padding:0;font-size:15px}.question legend+*{clear:both}.question:after{content:"";display:table;clear:both}.question>label,.matrix-choices>label{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid var(--border);border-radius:9px;cursor:pointer;background:#fff;transition:background .18s,border-color .18s,box-shadow .18s}.question>label:hover,.matrix-choices>label:hover{background:#f7faff;border-color:#afcff1}.question>label:has(input:checked),.matrix-choices>label:has(input:checked){background:#edf6ff;border-color:#78b4ef;color:#095ba6;box-shadow:0 1px 3px #1683eb0b}.question>label:has(input:focus-visible),.matrix-choices>label:has(input:focus-visible){outline:2px solid #1683eb55;outline-offset:2px}.hint{color:var(--muted);font-size:13px;white-space:pre-line;margin:0 0 12px}.matrix{clear:both;padding:16px 0;border-bottom:1px solid var(--border)}.matrix:last-child{border-bottom:0;padding-bottom:0}.matrix>b{display:block;font-size:14px;font-weight:600;margin-bottom:10px;overflow-wrap:anywhere}.matrix-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.matrix-choices>label{font-size:12px;line-height:1.45;margin:0;padding:11px 8px;gap:7px}.matrix-choices input{width:17px;height:17px;flex-basis:17px}.matrix-choices input[type=radio]:checked::after{inset:4px}.progress{display:flex;gap:7px;margin:18px 0 22px}.progress span{height:6px;flex:1;background:#e8edf3;border-radius:5px;transition:background .25s}.progress .active{background:var(--accent)}button,.button{border:1px solid #dce3eb;border-radius:9px;padding:11px 17px;background:#fff;color:#354254;cursor:pointer;font:inherit;font-weight:500;text-decoration:none;display:inline-block;margin:4px;transition:background .18s,box-shadow .18s,border-color .18s,transform .18s}button:hover,.button:hover{background:#f3f7fc;border-color:#b8c9dd;box-shadow:0 2px 7px #243b530c}button:active,.button:active{transform:translateY(1px)}button.primary,button.active{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 3px 8px #1683eb20}button.primary:hover,button.active:hover{background:#0873d8}button:disabled{opacity:.5;cursor:wait}nav{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:26px;padding-top:18px;border-top:1px solid var(--border)}nav button,nav .button{margin:0}#app>button:last-child:not(.primary){font-size:13px;color:var(--muted);margin:14px 0 0;padding:6px 0;border:0;background:transparent;box-shadow:none}footer{color:#8590a0;text-align:center;font-size:12px;border-top:1px solid var(--border);margin-top:28px;padding-top:20px}.error{color:#9e2d36;padding:14px 16px;background:#fff3f3;border:1px solid #f2c3c7;border-radius:10px;font-size:14px}.question.invalid{border-color:#eaa3aa;background:#fffafa}.field-error{clear:both;color:#b32b3b;font-size:13px;line-height:1.5;margin:10px 0 0}.field-error[hidden]{display:none}.question.invalid input[aria-invalid=true]:not([type=radio]):not([type=checkbox]),.question.invalid textarea,.question.invalid select{border-color:#da7f89}.row-invalid{background:#fff4f4;border-radius:8px;padding:12px;margin:4px -8px}.row-invalid>b{color:#a62d3b}.task{border:1px solid var(--border);border-radius:12px;padding:22px;margin:20px 0;background:#fbfcfe}.task>h3{margin-top:0}.task .question{margin-left:-9px;margin-right:-9px;padding:12px 8px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.65;color:#536173}table{border-collapse:collapse;width:100%;font-size:13px}th{background:#f6f8fb;color:#697586;font-weight:600;font-size:12px}td,th{padding:14px 10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}tbody tr:hover,table tr:not(:first-child):hover{background:#f8fbff}.scroll{overflow:auto;border:1px solid var(--border);border-radius:10px;margin-top:20px}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:24px 0 30px}.metric{padding:18px;border:1px solid var(--border);border-radius:12px;background:#fbfcfe}.metric b{display:block;font-size:30px;font-weight:600;letter-spacing:-1px;color:var(--accent);margin-bottom:5px}.metric span{font-size:12px;color:var(--muted)}.bar{height:8px;background:var(--accent);margin:7px 0 18px;max-width:100%;border-radius:5px}dialog{max-width:760px;width:95%;border:1px solid var(--border);border-radius:16px;padding:26px;max-height:90vh;overflow:auto;box-shadow:0 20px 70px #182a4933}dialog::backdrop{background:#182a4966}body.admin main{max-width:1200px}body.admin nav{margin:0 0 24px;padding:0 0 20px;border-top:0;border-bottom:1px solid var(--border)}body.admin nav button,body.admin nav .button{font-size:13px}body.admin form{max-width:420px;margin:24px auto 42px}body.admin form button{background:var(--accent);color:#fff;width:100%;margin:16px 0 0}body.admin #app>select{margin:10px 0}@keyframes select-pop{0%{transform:scale(.85)}60%{transform:scale(1.12)}100%{transform:scale(1)}}@media(max-width:700px){.matrix-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){body{padding:12px 10px}main{padding:22px 20px}h1{font-size:22px}header{padding-bottom:20px;margin-bottom:22px}header strong{font-size:23px}.question{padding:12px;margin-left:-13px;margin-right:-13px}.matrix-choices{grid-template-columns:1fr}.matrix-choices>label{font-size:13px;padding:12px}.task{padding:16px}nav button{flex:1}body.admin nav button,body.admin nav .button{flex:auto}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
