:root{--bg:#f4f7f7;--panel:#fff;--text:#102332;--muted:#5e6d78;--border:#dbe4e8;--main:#2e5d52;--main2:#244b43;--red:#c94444;--yellow:#a97511;--green:#22865d;--blue:#2f68a3;--soft:#eef4f2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.45}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 28px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.brand{font-size:24px;font-weight:800}.subbrand{color:var(--muted);font-size:14px}.service-link{background:#eef3f5;border:1px solid var(--border);border-radius:999px;color:#364852;padding:9px 14px;font-weight:700;cursor:pointer}.service-link:hover{background:#dde8ed}.app{max-width:1240px;margin:0 auto;padding:28px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:22px;padding:28px;margin-bottom:22px;box-shadow:0 8px 26px rgba(31,51,65,.05)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.wide{grid-column:1/-1}h1,h2,h3{margin:0 0 16px}h1{font-size:30px}h2{font-size:24px}h3{font-size:20px}.muted{color:var(--muted)}.small{font-size:13px}.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.tab{border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px 14px;cursor:pointer;font-weight:700}.tab.active{background:var(--main);color:#fff;border-color:var(--main)}label{display:block;font-weight:700;margin:0 0 6px}input,select,textarea{width:100%;border:1px solid #cfdbe1;border-radius:12px;padding:13px 14px;font:inherit;background:#fff;color:var(--text)}textarea{min-height:110px;resize:vertical}.field{margin-bottom:14px}.btn{border:0;border-radius:13px;background:var(--main);color:#fff;padding:13px 18px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{background:var(--main2)}.btn.secondary{background:#e9eff2;color:#132532}.btn.danger{background:var(--red)}.btn.ghost{background:#fff;color:var(--main);border:1px solid var(--main)}.btn:disabled{opacity:.5;cursor:not-allowed}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.notice{background:var(--soft);border:1px solid var(--border);border-radius:16px;padding:14px 16px;margin:10px 0 18px}.consent{display:flex;align-items:flex-start;gap:12px;margin:12px 0}.consent input{width:18px;height:18px;min-width:18px;margin-top:4px;accent-color:var(--main)}.consent label{font-weight:500;margin:0}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:13px;font-weight:800;white-space:nowrap}.pill.green{background:#e1f5ec;color:var(--green)}.pill.yellow{background:#fff1d5;color:var(--yellow)}.pill.red{background:#ffe3e3;color:var(--red)}.pill.blue{background:#e5f0fb;color:var(--blue)}.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric{background:#f7fafb;border:1px solid var(--border);border-radius:16px;padding:16px}.metric .value{font-size:24px;font-weight:900;margin-top:4px}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:16px;background:#fff}table{width:100%;border-collapse:collapse}th,td{border-bottom:1px solid var(--border);padding:12px 13px;text-align:left;vertical-align:top}th{background:#f6f9fa;font-weight:900}tr:last-child td{border-bottom:0}.question{border:1px solid var(--border);border-radius:16px;padding:15px;margin:12px 0;background:#fff}.question-title{font-weight:800;margin-bottom:12px}.scale{display:flex;gap:8px;flex-wrap:wrap}.option{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;padding:8px 11px;cursor:pointer;background:#f9fbfc}.option input{width:auto}.status-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.hidden{display:none!important}.toast{position:fixed;right:22px;bottom:22px;background:#142a37;color:#fff;border-radius:14px;padding:13px 16px;box-shadow:0 12px 36px rgba(0,0,0,.22);display:none;max-width:360px;z-index:30}.toast.show{display:block}.login-card{max-width:760px;margin:0 auto}.split{display:grid;grid-template-columns:1.2fr .8fr;gap:22px}.credentials{background:#fff8dc;border:1px solid #ead28e;border-radius:16px;padding:16px;margin-top:14px}.credentials code{font-size:18px;font-weight:800}.service-badge{display:inline-flex;background:#182c37;color:#fff;border-radius:999px;padding:6px 12px;font-weight:800;font-size:13px;margin-bottom:10px}.filters{display:grid;grid-template-columns:2fr 1.4fr 1fr 1.2fr 1.2fr;gap:10px;margin-bottom:12px}.candidate-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.score-row{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:10px;align-items:stretch;border-bottom:1px solid var(--border);padding:12px 0}.score-row:last-child{border-bottom:0}.score-options{display:flex;gap:8px;flex-wrap:wrap}.score-options label{font-weight:500}.conclusion{background:#fff;border:1px solid #222;border-radius:0;padding:28px;color:#000}.conclusion h2{text-align:center}.print-only{display:none}.danger-text{color:var(--red);font-weight:800}.ok-text{color:var(--green);font-weight:800}.help-list li{margin:7px 0}@media(max-width:900px){.grid,.grid3,.grid4,.split,.cards,.filters{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.app{padding:16px}.panel{padding:18px}.candidate-head{display:block}}@media print{body{background:#fff}.topbar,.no-print,.btn,.tabs,.filters{display:none!important}.app{max-width:none;padding:0}.panel{box-shadow:none;border:0;margin:0}.conclusion{border:0;padding:0}.print-only{display:block}}

/* v5.2 — подсказки, инструкции в кабинетах и более живой интерфейс */
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#ffffff 0%,#eef8f3 52%,#f6f1ff 100%)}
.hero:before{content:"";position:absolute;right:-90px;top:-90px;width:240px;height:240px;border-radius:50%;background:rgba(46,93,82,.10)}
.hero:after{content:"";position:absolute;left:-80px;bottom:-100px;width:220px;height:220px;border-radius:50%;background:rgba(47,104,163,.10)}
.hero>*{position:relative;z-index:1}.hero-mini{background:linear-gradient(135deg,#fff,#f0f7f4)}
.steps{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 6px}.steps span{border:1px solid var(--border);background:#fff;border-radius:999px;padding:8px 12px;font-weight:800;font-size:13px;color:#425461}.steps span.done{background:#e1f5ec;color:var(--green);border-color:#b8dfce}
.info-box{background:#f8fbfc;border:1px solid var(--border);border-radius:18px;padding:14px 16px;margin:0 0 18px;box-shadow:0 6px 20px rgba(31,51,65,.04)}.info-box summary{cursor:pointer;font-weight:900}.info-box ol{margin:12px 0 0 20px;padding:0}.info-box li{margin:6px 0}.help-tip{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-left:6px;border-radius:50%;background:#e7f0ed;color:var(--main);font-size:13px;font-weight:900;cursor:help;vertical-align:middle;border:1px solid #c7dcd5}.help-text{display:none;position:absolute;z-index:50;max-width:280px;background:#132532;color:#fff;border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.35;box-shadow:0 14px 34px rgba(0,0,0,.22);transform:translate(8px,-4px)}.help-tip:hover+.help-text,.help-tip:focus+.help-text{display:inline-block}.field label,.panel h2,.panel h3{position:relative}.password-line{display:flex;gap:8px}.password-line input{flex:1}.password-toggle{white-space:nowrap;padding-left:12px;padding-right:12px}.block-card{border-left:5px solid var(--main)}.panel,.metric,.question,.tab,.btn,.service-link,.option{transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease}.panel:hover{box-shadow:0 12px 34px rgba(31,51,65,.07)}.metric:hover,.question:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(31,51,65,.06)}.option:hover{border-color:var(--main);background:#f2f8f5}.btn:hover,.service-link:hover{transform:translateY(-1px)}#registerSubmit:disabled{background:#9aabb2}.danger-text.small{margin:-4px 0 12px}.credentials{position:relative}.credentials:before{content:"Важно";display:inline-flex;margin-bottom:8px;background:#132532;color:#fff;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900}.login-card{animation:fadeUp .25s ease-out}@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.password-line{display:block}.password-toggle{margin-top:8px;width:100%}.help-text{left:18px;right:18px;transform:none;max-width:none}.steps span{font-size:12px}}

/* v5.3 — проверка регистрации, прогресс вместо меню этапов */
.form-progress{margin:10px 0 18px}.progress-wrap{margin-top:12px;max-width:560px}.progress-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:7px;color:var(--muted);font-size:14px}.progress-label b{color:var(--main)}.progress{height:10px;background:#e7eef1;border-radius:999px;overflow:hidden;border:1px solid var(--border)}.progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--main),#49a278);transition:width .25s ease}.validation-msg{min-height:18px;margin-top:6px;color:var(--muted);font-weight:700}.field-error input{border-color:var(--red);box-shadow:0 0 0 3px rgba(201,68,68,.12)}.field-error .validation-msg{color:var(--red)}.field-ok input{border-color:var(--green);box-shadow:0 0 0 3px rgba(34,134,93,.10)}.field-ok .validation-msg{color:var(--green)}#consentWarning.hidden{display:none}.shake{animation:shake .28s ease-in-out}@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}.help-text{white-space:normal;word-break:normal}.help-tip:hover+.help-text,.help-tip:focus+.help-text{display:inline-block}

/* v5.4 — подсказки не выходят за границы экрана */
.help-text{
  display:none;
  position:static;
  z-index:50;
  max-width:min(560px,100%);
  margin:8px 0 0;
  background:#132532;
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
  line-height:1.4;
  box-shadow:0 14px 34px rgba(0,0,0,.22);
  transform:none;
  white-space:normal;
}
.help-tip:hover+.help-text,
.help-tip:focus+.help-text{
  display:block;
}
.field label .help-text,
h2 .help-text,
h3 .help-text{
  font-weight:500;
}
.help-tip:focus{
  outline:2px solid var(--main);
  outline-offset:2px;
}


/* v5.5 — пошаговое тестирование и автосохранение ответов */
.test-stepper{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 6px}.test-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:#fff;border-radius:999px;padding:9px 14px;font-weight:900;color:#526675}.test-pill.active{background:var(--main);border-color:var(--main);color:#fff;box-shadow:0 8px 22px rgba(46,93,82,.18)}.test-pill.done{background:#e1f5ec;border-color:#b8dfce;color:var(--green)}.test-step-card{animation:fadeUp .22s ease-out}.test-step-card .status-line{justify-content:space-between;align-items:flex-start}.test-actions{position:sticky;bottom:0;z-index:10;border-color:#cfe0d9;box-shadow:0 -8px 26px rgba(31,51,65,.07)}.completion-card{text-align:center;max-width:820px;margin-left:auto;margin-right:auto}.complete-icon{width:72px;height:72px;border-radius:50%;background:#e1f5ec;color:var(--green);display:inline-flex;align-items:center;justify-content:center;font-size:42px;font-weight:900;margin-bottom:14px}.lead{font-size:18px;line-height:1.5}.save-status-flash{color:var(--green)}
@media(max-width:700px){.test-actions{position:static}.test-step-card .status-line{display:block}.test-pill{flex:1;justify-content:center}}

/* v5.6 — список кандидатов, пагинация, отдельная страница кандидата и удобная оценка 2 этапа */
.quick-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.chip-filter{border:1px solid var(--border);background:#fff;color:#1d3442;border-radius:999px;padding:9px 13px;font-weight:900;cursor:pointer}.chip-filter:hover{border-color:var(--main);background:#f1f7f4}.chip-filter.active{background:var(--main);border-color:var(--main);color:#fff}.chip-filter.red.active{background:var(--red);border-color:var(--red)}.list-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0;color:var(--muted)}.page-size-label{display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:700}.page-size-label select{width:auto;padding:8px 12px}.pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}.empty-state{padding:24px;text-align:center;color:var(--muted);font-weight:700}.candidate-detail-page{max-width:1180px;margin-left:auto;margin-right:auto}.candidate-detail-page h2{margin-top:12px}.interview-block{background:#fbfdfe}.score-row-v2{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(420px,1.8fr);gap:16px;align-items:stretch;border-bottom:1px solid var(--border);padding:14px 0}.score-row-v2:last-child{border-bottom:0}.score-question{padding-top:8px}.score-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.score-choice{display:block;margin:0;border:1px solid var(--border);border-radius:16px;padding:12px;cursor:pointer;background:#fff;min-height:112px}.score-choice input{width:auto;margin-right:6px}.score-choice .score-label{display:block;font-weight:900;margin-bottom:6px}.score-choice .score-desc{display:block;color:var(--muted);font-weight:500;font-size:14px;line-height:1.35}.score-choice.good.selected{border-color:var(--green);background:#eaf8f1;box-shadow:0 0 0 3px rgba(34,134,93,.10)}.score-choice.medium.selected{border-color:var(--yellow);background:#fff7e8;box-shadow:0 0 0 3px rgba(169,117,17,.12)}.score-choice.bad.selected{border-color:var(--red);background:#fff0f0;box-shadow:0 0 0 3px rgba(201,68,68,.12)}.conclusion-list{margin-top:-8px}.conclusion-list.good li::marker{color:var(--green)}.conclusion-list.medium li::marker{color:var(--yellow)}.conclusion-list.bad li::marker{color:var(--red)}
@media(max-width:1000px){.score-row-v2{grid-template-columns:1fr}.score-choice-grid{grid-template-columns:1fr}.filters{grid-template-columns:1fr}}
@media print{.candidate-detail-page{max-width:none}.score-row-v2,.question,details{display:none!important}.conclusion{display:block!important}}
.filters{grid-template-columns:1.6fr 1.2fr .9fr 1fr 1fr 1.1fr}
@media(max-width:1000px){.filters{grid-template-columns:1fr}}

/* v5.7 */
.stage-summary table td:nth-child(2){font-size:14px;line-height:1.45}.interview-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}.interview-block-head h3{margin:0}.block-score-badge,.interview-total-line{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:999px;background:#f4f8f6;padding:9px 13px;font-weight:900;color:var(--main)}.interview-total-line{margin:12px 0 18px;background:#fff}.score-choice .score-desc::first-letter{text-transform:uppercase}@media(max-width:700px){.interview-block-head{align-items:flex-start}.block-score-badge,.interview-total-line{width:100%;justify-content:center}}


/* v5.8 — точное отображение процентов в полосе прогресса */
.progress{
  position:relative;
  width:100%;
  height:10px;
  background:#e7eef1;
  border-radius:999px;
  overflow:hidden;
  border:1px solid var(--border);
}
.progress-fill{
  display:block;
  height:100%;
  width:var(--progress-value,0%) !important;
  max-width:100%;
  min-width:0;
  border-radius:999px;
  background:linear-gradient(90deg,var(--main),#49a278);
  transition:width .25s ease;
}
.progress-wrap[data-progress="0"] .progress-fill{width:0!important;}


/* v5.9 — прогресс без inline-style, чтобы работало при строгой CSP */
.progress-fill{width:0% !important;}
.progress-fill.progress-pct-0{width:0% !important;}
.progress-fill.progress-pct-1{width:1% !important;}
.progress-fill.progress-pct-2{width:2% !important;}
.progress-fill.progress-pct-3{width:3% !important;}
.progress-fill.progress-pct-4{width:4% !important;}
.progress-fill.progress-pct-5{width:5% !important;}
.progress-fill.progress-pct-6{width:6% !important;}
.progress-fill.progress-pct-7{width:7% !important;}
.progress-fill.progress-pct-8{width:8% !important;}
.progress-fill.progress-pct-9{width:9% !important;}
.progress-fill.progress-pct-10{width:10% !important;}
.progress-fill.progress-pct-11{width:11% !important;}
.progress-fill.progress-pct-12{width:12% !important;}
.progress-fill.progress-pct-13{width:13% !important;}
.progress-fill.progress-pct-14{width:14% !important;}
.progress-fill.progress-pct-15{width:15% !important;}
.progress-fill.progress-pct-16{width:16% !important;}
.progress-fill.progress-pct-17{width:17% !important;}
.progress-fill.progress-pct-18{width:18% !important;}
.progress-fill.progress-pct-19{width:19% !important;}
.progress-fill.progress-pct-20{width:20% !important;}
.progress-fill.progress-pct-21{width:21% !important;}
.progress-fill.progress-pct-22{width:22% !important;}
.progress-fill.progress-pct-23{width:23% !important;}
.progress-fill.progress-pct-24{width:24% !important;}
.progress-fill.progress-pct-25{width:25% !important;}
.progress-fill.progress-pct-26{width:26% !important;}
.progress-fill.progress-pct-27{width:27% !important;}
.progress-fill.progress-pct-28{width:28% !important;}
.progress-fill.progress-pct-29{width:29% !important;}
.progress-fill.progress-pct-30{width:30% !important;}
.progress-fill.progress-pct-31{width:31% !important;}
.progress-fill.progress-pct-32{width:32% !important;}
.progress-fill.progress-pct-33{width:33% !important;}
.progress-fill.progress-pct-34{width:34% !important;}
.progress-fill.progress-pct-35{width:35% !important;}
.progress-fill.progress-pct-36{width:36% !important;}
.progress-fill.progress-pct-37{width:37% !important;}
.progress-fill.progress-pct-38{width:38% !important;}
.progress-fill.progress-pct-39{width:39% !important;}
.progress-fill.progress-pct-40{width:40% !important;}
.progress-fill.progress-pct-41{width:41% !important;}
.progress-fill.progress-pct-42{width:42% !important;}
.progress-fill.progress-pct-43{width:43% !important;}
.progress-fill.progress-pct-44{width:44% !important;}
.progress-fill.progress-pct-45{width:45% !important;}
.progress-fill.progress-pct-46{width:46% !important;}
.progress-fill.progress-pct-47{width:47% !important;}
.progress-fill.progress-pct-48{width:48% !important;}
.progress-fill.progress-pct-49{width:49% !important;}
.progress-fill.progress-pct-50{width:50% !important;}
.progress-fill.progress-pct-51{width:51% !important;}
.progress-fill.progress-pct-52{width:52% !important;}
.progress-fill.progress-pct-53{width:53% !important;}
.progress-fill.progress-pct-54{width:54% !important;}
.progress-fill.progress-pct-55{width:55% !important;}
.progress-fill.progress-pct-56{width:56% !important;}
.progress-fill.progress-pct-57{width:57% !important;}
.progress-fill.progress-pct-58{width:58% !important;}
.progress-fill.progress-pct-59{width:59% !important;}
.progress-fill.progress-pct-60{width:60% !important;}
.progress-fill.progress-pct-61{width:61% !important;}
.progress-fill.progress-pct-62{width:62% !important;}
.progress-fill.progress-pct-63{width:63% !important;}
.progress-fill.progress-pct-64{width:64% !important;}
.progress-fill.progress-pct-65{width:65% !important;}
.progress-fill.progress-pct-66{width:66% !important;}
.progress-fill.progress-pct-67{width:67% !important;}
.progress-fill.progress-pct-68{width:68% !important;}
.progress-fill.progress-pct-69{width:69% !important;}
.progress-fill.progress-pct-70{width:70% !important;}
.progress-fill.progress-pct-71{width:71% !important;}
.progress-fill.progress-pct-72{width:72% !important;}
.progress-fill.progress-pct-73{width:73% !important;}
.progress-fill.progress-pct-74{width:74% !important;}
.progress-fill.progress-pct-75{width:75% !important;}
.progress-fill.progress-pct-76{width:76% !important;}
.progress-fill.progress-pct-77{width:77% !important;}
.progress-fill.progress-pct-78{width:78% !important;}
.progress-fill.progress-pct-79{width:79% !important;}
.progress-fill.progress-pct-80{width:80% !important;}
.progress-fill.progress-pct-81{width:81% !important;}
.progress-fill.progress-pct-82{width:82% !important;}
.progress-fill.progress-pct-83{width:83% !important;}
.progress-fill.progress-pct-84{width:84% !important;}
.progress-fill.progress-pct-85{width:85% !important;}
.progress-fill.progress-pct-86{width:86% !important;}
.progress-fill.progress-pct-87{width:87% !important;}
.progress-fill.progress-pct-88{width:88% !important;}
.progress-fill.progress-pct-89{width:89% !important;}
.progress-fill.progress-pct-90{width:90% !important;}
.progress-fill.progress-pct-91{width:91% !important;}
.progress-fill.progress-pct-92{width:92% !important;}
.progress-fill.progress-pct-93{width:93% !important;}
.progress-fill.progress-pct-94{width:94% !important;}
.progress-fill.progress-pct-95{width:95% !important;}
.progress-fill.progress-pct-96{width:96% !important;}
.progress-fill.progress-pct-97{width:97% !important;}
.progress-fill.progress-pct-98{width:98% !important;}
.progress-fill.progress-pct-99{width:99% !important;}
.progress-fill.progress-pct-100{width:100% !important;}

/* v5.10: separate printable conclusion page */
.conclusion-ready{border-color:#cfe0d9;background:#fbfdfc}.conclusion-page-shell{max-width:920px;margin-left:auto;margin-right:auto}.conclusion-toolbar{justify-content:space-between;margin-bottom:18px}.conclusion-page{min-height:1120px;padding:42px 48px;border:1px solid #1e2a32;background:#fff}.conclusion-page h2{font-size:24px;margin-bottom:24px;text-align:center}.signature-block{margin-top:46px;padding-top:18px;border-top:1px solid #d8d8d8}.signature-row{display:grid;grid-template-columns:170px minmax(180px,1fr) 180px 70px;gap:12px;align-items:end;margin:18px 0}.signature-row .line{border-bottom:1px solid #000;height:26px}.signature-row .line.short{max-width:220px}.signature-row span:last-child{font-size:13px;color:#444;text-align:center}
@media print{@page{size:A4;margin:14mm}.conclusion-page-shell{max-width:none;margin:0;padding:0}.conclusion-page{border:0;min-height:auto;padding:0;font-size:13px;line-height:1.35}.conclusion-page h2{font-size:18px;margin-bottom:14px}.conclusion-page p{margin:7px 0}.conclusion-list{margin:6px 0 8px 18px}.signature-block{margin-top:32px}.signature-row{grid-template-columns:150px 1fr 150px 60px;gap:10px}.signature-row .line{height:22px}}

/* v5.11 — по умолчанию показываем регистрацию, вход кандидата спрятан за кнопку */
.auth-switch{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}
.hero .auth-switch .btn.secondary{background:#fff;color:#132532;border:1px solid var(--border)}


/* v5.12: analytics by municipality */
.analytics-panel .table-wrap{max-height:640px;overflow:auto;border-radius:18px;border:1px solid var(--border)}
.analytics-table.compact{font-size:12px;min-width:1420px}
.analytics-table.compact th,.analytics-table.compact td{padding:8px 9px;vertical-align:middle}
.analytics-table thead th{position:sticky;top:0;background:#f3f7f8;z-index:1}
.analytics-table tfoot td{font-weight:800;background:#eef4f1;position:sticky;bottom:0}
.analytics-green{background:#dff5e9!important;color:#11522f!important}.analytics-lightgreen{background:#ecf8e5!important;color:#27530f!important}.analytics-yellow{background:#fff3cd!important;color:#6b4a00!important}.analytics-orange{background:#ffe4c7!important;color:#7a3700!important}.analytics-red{background:#ffe1e1!important;color:#7a1111!important}
.legend-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:8px;vertical-align:middle}.legend-dot.analytics-green{background:#dff5e9!important;border:1px solid #84c49f}.legend-dot.analytics-lightgreen{background:#ecf8e5!important;border:1px solid #a4ce89}.legend-dot.analytics-yellow{background:#fff3cd!important;border:1px solid #e1bd59}.legend-dot.analytics-red{background:#ffe1e1!important;border:1px solid #d77b7b}.btn.danger{border-color:#c94444;color:#9b1c1c}
@media(max-width:900px){.analytics-table.compact{font-size:11px}.analytics-panel .table-wrap{max-height:560px}}


/* v5.14 — ручное обновление плановых данных по МО */
.plan-editor-box{border:1px solid #cfe0d9;background:#fbfdfc}.plan-import-grid{margin-top:12px}.plan-import-actions{display:flex;align-items:flex-end}.plan-edit-table{max-height:520px;overflow:auto;border:1px solid var(--border);border-radius:16px}.plan-edit-table table{margin:0}.plan-edit-table input{min-width:96px;padding:8px 10px;border-radius:10px;text-align:center;font-weight:800}.plan-row td:first-child{min-width:240px}.plan-editor-box summary{font-weight:900;cursor:pointer;color:var(--main)}.plan-editor-box textarea{font-family:Consolas,monospace;min-height:96px}
@media(max-width:800px){.plan-import-actions{display:block}.plan-row td:first-child{min-width:180px}}

/* v5.15 — правки по заключению, памятке и визуальной оценке */
.scale-legend{margin:10px 0 0;padding:10px 12px;border:1px dashed var(--border);border-radius:12px;background:#f8fbfc;color:var(--muted);font-size:13px;line-height:1.45}
.scale-legend b{color:var(--text)}
.consultation-memo{border-left:5px solid var(--main);background:#f7fbf9}
.consultation-memo summary{font-size:18px}
.memo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.memo-card{border:1px solid var(--border);border-radius:14px;background:#fff;padding:12px}.memo-card b{display:block;margin-bottom:6px}.stage2-preview-box{border:2px solid var(--main);background:#fbfffd;border-radius:18px;padding:18px;margin:18px 0}.stage2-preview-box h3{margin-top:0}.stage2-preview-disabled{opacity:.72;pointer-events:none}.edit-attempts{background:#fff7df;border:1px solid #ead28e;border-radius:14px;padding:12px;margin:12px 0;font-weight:700}.block-score-list{display:grid;grid-template-columns:1fr;gap:8px;margin:10px 0}.block-score-item{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fff}.block-score-item.green{background:#e1f5ec;border-color:#bde3cf}.block-score-item.yellow{background:#fff1d5;border-color:#ead28e}.block-score-item.red{background:#ffe3e3;border-color:#f0b6b6}.block-score-item b{white-space:nowrap}.conclusion .block-score-list{page-break-inside:avoid}.conclusion-toolbar{justify-content:space-between}.preview-actions{margin-top:14px}.score-choice .score-label{font-size:17px}.score-choice.good .score-label{color:var(--green)}.score-choice.medium .score-label{color:var(--yellow)}.score-choice.bad .score-label{color:var(--red)}
@media(max-width:800px){.memo-grid{grid-template-columns:1fr}.block-score-item{grid-template-columns:1fr}}
