/* Раздел ОВЗ повторяет проверенные размеры карточек и портфолио школьной библиотеки. */
#specialTree .special-tree-nested{margin-left:15px}
#specialTree .special-tree-nested[hidden],#specialTree[hidden]{display:none!important}
#specialTree .section-toggle{font-size:13px}
#specialTree .topic-btn{width:100%;text-align:left}
#specialView{padding-bottom:60px}
#specialView .special-filters{display:flex;align-items:center;gap:12px}
#specialView .special-filters .search-wrap{flex:1 1 320px;min-width:250px}
#specialView .special-filters .search-wrap input{height:50px}
#specialView .special-age-field{flex:0 1 240px;min-width:210px;display:flex;align-items:center}
#specialView .special-age-field select{height:50px;width:100%;min-width:0}
#specialView .special-subbar{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
#specialView .special-subbar h2{margin:0;font-size:clamp(22px,2vw,28px)}
#specialView .special-subbar span{color:var(--muted);font-size:13px}
#specialView .special-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
#specialView .special-method{min-width:0}
#specialView .special-method .head{display:flex;align-items:flex-start}
#specialView .special-method .head>div:last-child{min-width:0}
#specialView .special-method .glyph{flex:none}
#specialView .special-method .tags{margin-top:13px}
#specialView .special-method p.method-card-summary{margin:7px 0 16px}
#specialView .special-method .actions{margin-top:auto}
#specialView .special-method .actions .btn{max-width:100%}
#specialView .special-empty{padding:25px;border:1px dashed var(--area-border);border-radius:14px;grid-column:1/-1}
#modal.psy-main-tabs.psy-special-current .modalfoot #bottomProcessing:not([hidden]){position:static!important;right:auto!important;left:auto!important;bottom:auto!important;top:auto!important;margin-left:auto!important;transform:none!important;flex:0 0 auto!important;max-width:100%!important}
#modal.psy-special-current .psy-special-shared-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;width:100%}
#modal.psy-special-current .psy-special-shared-footer #bottomProcessing{margin-left:auto;white-space:normal}
#modal.psy-special-current .psy-special-footer-state{font:700 12px/1.4 system-ui;border-radius:100px;padding:8px 12px;white-space:nowrap}
#modal.psy-special-current .psy-special-footer-state.pending{background:#fff0d7;color:#985d0c}
#modal.psy-special-current .psy-special-footer-state.complete{background:#e0f3e6;color:#246a43}
#modal.psy-special-current .psy-special-guide h3{color:var(--green)}
#modal.psy-special-current .psy-special-calc{max-width:100%;margin:0 auto}
#modal.psy-special-current .special-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;flex-wrap:wrap;margin:0 0 18px}
#modal.psy-special-current .special-result-head h3{margin:0}
#modal.psy-special-current .special-result-head p{margin:5px 0 0;color:var(--muted)}
#modal.psy-special-current .special-status{border-radius:100px;padding:8px 13px;font:700 12px/1.4 system-ui}
#modal.psy-special-current .special-status.pending{background:#fff0d7;color:#985d0c}
#modal.psy-special-current .special-status.complete{background:#e0f3e6;color:#246a43}
#modal.psy-special-current .special-answer-list{display:grid;gap:9px}
#modal.psy-special-current .special-answer{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,215px);align-items:center;gap:13px;padding:12px 15px;border:1px solid var(--line);border-radius:12px;font-size:14px}
#modal.psy-special-current .special-answer select{width:100%;min-height:42px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--paper);color:var(--ink);font:inherit}
#modal.psy-special-current .special-note-label{display:block;margin-top:16px;font-weight:700;font-size:13px}
#modal.psy-special-current .special-note-label textarea{display:block;margin-top:8px;padding:12px 14px;width:100%;min-height:95px;resize:vertical;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:400 14px/1.5 system-ui}
#modal.psy-special-current .special-summary{margin-top:18px;padding:17px 19px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
#modal.psy-special-current .special-summary p{overflow-wrap:anywhere;font-size:14px}
#modal.psy-special-current .special-result-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:18px 0}
#modal.psy-special-current .special-result-actions button:disabled{opacity:.55;cursor:not-allowed}
#modal.psy-special-current .special-table{border-collapse:collapse;width:100%;table-layout:fixed;margin:18px 0;font-size:13px}
#modal.psy-special-current .special-table td,#modal.psy-special-current .special-table th{border:1px solid var(--line);padding:10px;overflow-wrap:anywhere;vertical-align:top}
#modal.psy-special-current .special-table th:first-child{width:62%}
#modal.psy-special-current .special-table td:not(:first-child),#modal.psy-special-current .special-table th:not(:first-child){text-align:center}
#modal.psy-special-current .special-paper-lines{overflow-wrap:anywhere}
#modal.psy-special-current .psy-special-shared-footer [hidden]{display:none!important}
html.dark #modal.psy-special-current .psy-special-footer-state.pending,html.dark #modal.psy-special-current .special-status.pending{background:#51432e;color:#ffd18b}
html.dark #modal.psy-special-current .psy-special-footer-state.complete,html.dark #modal.psy-special-current .special-status.complete{background:#234d35;color:#a5ebbb}
@media(max-width:1050px){
 #specialView .special-cards{grid-template-columns:1fr}
}
@media(max-width:700px){
 #specialView .special-filters{gap:10px}
 #specialView .special-filters .search-wrap{flex:1 1 100%;min-width:0}
 #specialView .special-age-field{flex:1 1 100%;min-width:0}
 #modal.psy-special-current .psy-special-shared-footer{gap:9px;flex-wrap:wrap}
 #modal.psy-special-current .psy-special-footer-state{font-size:11px}
 #modal.psy-special-current .special-answer{grid-template-columns:1fr}
 #modal.psy-special-current .special-table td,#modal.psy-special-current .special-table th{padding:7px 6px;font-size:12px}
 #modal.psy-special-current .special-table th:first-child{width:55%}
}

/* Не используем статус как оценку состояния человека: только полнота протокола. */
#specialView .special-method .method-card-summary{overflow-wrap:anywhere}
#specialView .special-method .tags{flex-wrap:wrap}
#modal.psy-special-current .special-table th:not(:first-child){width:11%}
#modal.psy-special-current .special-table th:first-child{width:67%}
#specialView .special-method .head h3{overflow-wrap:anywhere}

@media(max-width:700px){#modal.psy-special-current .special-table th:first-child{width:55%}#modal.psy-special-current .special-table th:not(:first-child){width:15%}}

/* GAS and ABC: individual method forms. No change to school or preschool. */
#modal.psy-special-current .special-toolkit-calc{max-width:100%;margin:0}
#modal.psy-special-current .special-toolkit-calc h4{font-size:15px;margin:22px 0 12px;color:var(--ink)}
#modal.psy-special-current .special-toolkit-fields,#modal.psy-special-current .special-toolkit-levels,#modal.psy-special-current .special-toolkit-events{display:grid;gap:12px}
#modal.psy-special-current .special-toolkit-fields label,#modal.psy-special-current .special-toolkit-levels label,#modal.psy-special-current .special-toolkit-event label,#modal.psy-special-current .special-toolkit-outcome{display:grid;gap:7px;font-size:13px;font-weight:700;color:var(--ink)}
#modal.psy-special-current .special-toolkit-fields input,#modal.psy-special-current .special-toolkit-fields textarea,#modal.psy-special-current .special-toolkit-levels textarea,#modal.psy-special-current .special-toolkit-event textarea,#modal.psy-special-current .special-toolkit-outcome textarea,#modal.psy-special-current .special-toolkit-outcome select{width:100%;max-width:100%;min-width:0;min-height:42px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:400 14px/1.5 system-ui;resize:vertical}
#modal.psy-special-current .special-toolkit-fields textarea,#modal.psy-special-current .special-toolkit-levels textarea,#modal.psy-special-current .special-toolkit-event textarea,#modal.psy-special-current .special-toolkit-outcome textarea{min-height:76px}
#modal.psy-special-current .special-toolkit-outcome{margin-top:16px}
#modal.psy-special-current .special-toolkit-levels{grid-template-columns:repeat(2,minmax(0,1fr))}
#modal.psy-special-current .special-toolkit-levels label:nth-child(3){grid-column:1/-1}
#modal.psy-special-current .special-toolkit-levels label{border:1px solid var(--line);border-radius:12px;padding:13px;background:var(--soft)}
#modal.psy-special-current .special-toolkit-event{display:grid;gap:12px;min-width:0;margin:0;border:1px solid var(--line);border-radius:14px;padding:17px}
#modal.psy-special-current .special-toolkit-event legend{font-weight:700;padding:0 8px}
#modal.psy-special-current .special-toolkit-event .btn{justify-self:end}
#modal.psy-special-current .special-toolkit-event-actions{display:flex;justify-content:flex-end;margin-top:12px}
#modal.psy-special-current .special-toolkit-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:12px 0;font-size:13px}
#modal.psy-special-current .special-toolkit-table th,#modal.psy-special-current .special-toolkit-table td{border:1px solid var(--line);padding:10px;vertical-align:top;overflow-wrap:anywhere}
#modal.psy-special-current .special-toolkit-table:not(.abc) th:first-child{width:31%}
#modal.psy-special-current .special-toolkit-table.abc th:first-child{width:8%}
#modal.psy-special-current .special-toolkit-muted{display:block;color:var(--muted);font-size:11px}
#modal.psy-special-current .special-toolkit-write-lines{height:48px}
#modal.psy-special-current .special-toolkit-blank p{overflow-wrap:anywhere}
#modal.psy-special-current .special-toolkit-level-list p{margin:6px 0}
@media(max-width:700px){
 #modal.psy-special-current .special-toolkit-levels{grid-template-columns:1fr}
 #modal.psy-special-current .special-toolkit-levels label:nth-child(3){grid-column:auto}
 #modal.psy-special-current .special-toolkit-table{font-size:11px}
 #modal.psy-special-current .special-toolkit-table th,#modal.psy-special-current .special-toolkit-table td{padding:6px}
}

/* Specialized monitoring forms: scoped to the existing OVZ dialog. */
#modal.psy-special-current .special-measure-sessions,#modal.psy-special-current .special-measure-interval-list{display:grid;gap:12px}
#modal.psy-special-current .special-measure-line{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#modal.psy-special-current .special-measure-line label{display:grid;gap:8px;font-size:13px;font-weight:700}
#modal.psy-special-current .special-measure-line input{width:100%;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:400 14px system-ui}
#modal.psy-special-current .special-measure-interval-list{grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0}
#modal.psy-special-current .special-measure-interval{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px}
#modal.psy-special-current .special-measure-interval select{min-width:0;max-width:135px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);padding:7px}
#modal.psy-special-current .special-measure-table th,#modal.psy-special-current .special-measure-table td{text-align:left}
@media(max-width:700px){#modal.psy-special-current .special-measure-line,#modal.psy-special-current .special-measure-interval-list{grid-template-columns:1fr}}

/* Published, copyright-protected diagnostic form selection in OVZ. */
#modal.psy-special-current .psy-special-source-choice{display:grid;gap:8px;font-weight:700;font-size:14px;margin:16px 0}
#modal.psy-special-current .psy-special-source-choice select{width:100%;max-width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);padding:11px 13px;font:inherit}
#modal.psy-special-current .psy-special-source-current{font-size:13px;color:var(--muted);margin:10px 0}
#modal.psy-special-current .psy-special-versions{margin:8px 0 16px}
#modal.psy-special-current .psy-special-versions p{padding:7px 0;margin:0;border-bottom:1px solid var(--line)}
#modal.psy-special-current .psy-special-footer-state.external{background:var(--soft);color:var(--muted);border-color:var(--line)}

/* Published MACS, Mini-MACS and CFCS: accessible level registration. */
#modal.psy-special-current .psy-functional-confirm{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600;border:1px solid var(--line);border-radius:12px;padding:13px;margin:15px 0}
#modal.psy-special-current .psy-functional-confirm input[type="checkbox"]{appearance:auto;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--accent)}
#modal.psy-special-current .psy-functional-confirm span{flex:1;min-width:0;line-height:1.5}
#modal.psy-special-current .psy-functional-blank{font-size:14px;line-height:1.55}
#modal.psy-special-current .psy-functional-blank p{margin:13px 0;overflow-wrap:anywhere}
