/* СКГА 5.3.9.58.82 — только панель проверки преподавателя. */
.sw-redesign .sw-detail-grid{grid-template-columns:minmax(0,1fr) minmax(330px,390px)!important;gap:18px!important}
.sw-redesign .sw-review{
 --review-border:#343941;--review-panel:#1b1e22;--review-field:#111417;
 --review-muted:#a9b0bd;--review-text:#f4f5f7;
 position:sticky!important;top:16px!important;
 padding:22px!important;border:1px solid var(--review-border)!important;
 border-radius:16px!important;background:var(--review-panel)!important;
 box-shadow:0 12px 35px rgba(0,0,0,.11)!important;
 color:var(--review-text)!important
}
.sw-redesign .sw-review .portfolio-section-title{
 margin:0!important;padding:0 0 13px!important;display:flex;align-items:center;
 font-size:19px!important;line-height:1.3!important;font-weight:800!important;
 color:var(--review-text)!important
}
.sw-redesign .sw-review .portfolio-section-title:before{
 content:"✓";display:grid;place-items:center;width:38px;height:38px;margin-right:11px;
 border-radius:11px;background:#3b2328;color:#ffc8cc;font-size:19px;flex:none
}
.sw-redesign .sw-review .sw-review-intro{
 margin:0 0 23px!important;padding:12px 14px!important;
 color:var(--review-muted)!important;background:rgba(127,127,127,.06)!important;
 border:1px solid var(--review-border)!important;border-radius:10px!important;
 font-size:12px!important;line-height:1.65!important
}
.sw-redesign .sw-review label{
 display:flex!important;flex-direction:column!important;gap:9px!important;
 margin:16px 0!important;font-size:13px!important;font-weight:700!important;
 color:var(--review-text)!important
}
.sw-redesign .sw-review #swReviewGrade{
 width:100%!important;min-height:44px!important;padding:10px 13px!important;
 background:var(--review-field)!important;color:var(--review-text)!important;
 border:1px solid #474c54!important;border-radius:10px!important;
 font-weight:600!important;box-sizing:border-box!important
}
.sw-redesign .sw-review #swReviewComment{
 width:100%!important;min-height:168px!important;padding:13px!important;
 resize:vertical!important;box-sizing:border-box!important;
 background:var(--review-field)!important;color:var(--review-text)!important;
 border:1px solid #474c54!important;border-radius:0 0 10px 10px!important;
 line-height:1.6!important;font-size:13px!important
}
.sw-redesign .sw-review :is(select,textarea):focus-visible{
 outline:2px solid #ac454d!important;outline-offset:2px!important
}
/* Preserve the existing rich-text toolbar, with legible compact controls. */
.sw-redesign .sw-review label:has(#swReviewComment)>:not(#swReviewComment){max-width:100%}
.sw-redesign .sw-review .sw-review-actions{
 display:grid!important;grid-template-columns:1fr!important;gap:9px!important;
 margin:22px 0 0!important
}
.sw-redesign .sw-review .sw-review-actions button{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-height:45px!important;border-radius:10px!important;
 font-size:13px!important;font-weight:750!important;line-height:1.4!important;
 padding:10px 12px!important;cursor:pointer!important;
 transition:filter .15s ease,transform .15s ease!important
}
.sw-redesign .sw-review .sw-review-actions button:hover:not(:disabled){
 filter:brightness(1.11)!important;transform:translateY(-1px)
}
.sw-redesign .sw-review .sw-review-actions button:disabled{opacity:.5!important;cursor:wait!important}
.sw-redesign .sw-review [data-decision="accepted"]{
 background:#850e14!important;color:#fff!important;border:1px solid #a5252c!important
}
.sw-redesign .sw-review [data-decision="revision"]{
 background:#35302a!important;color:#f5c98f!important;border:1px solid #69533a!important
}
.sw-redesign .sw-review [data-decision="rejected"]{
 background:transparent!important;color:#f2aaa9!important;border:1px solid #87484b!important
}
.sw-redesign .sw-review .sw-review-hint{
 display:block!important;margin:17px 0 0!important;padding-top:14px!important;
 border-top:1px solid var(--review-border)!important;
 font-size:11px!important;line-height:1.6!important;color:var(--review-muted)!important
}
.sw-redesign .sw-review .sw-review-error{
 display:block;margin-top:13px!important;padding:12px!important;
 color:#ffb7b7!important;background:#392327!important;
 border:1px solid #884048!important;border-radius:10px!important
}
.sw-redesign .sw-review .sw-review-error[hidden]{display:none!important}
html:not([data-theme="dark"]) .sw-redesign .sw-review{
 --review-border:#e0e1e5;--review-panel:#fff;--review-field:#fafafa;
 --review-muted:#626c7b;--review-text:#26272d
}
html:not([data-theme="dark"]) .sw-redesign .sw-review .portfolio-section-title:before{
 background:#f9e7e7;color:#8d161c
}
html:not([data-theme="dark"]) .sw-redesign .sw-review :is(#swReviewComment,#swReviewGrade){
 border-color:#d2d5dd!important
}
html:not([data-theme="dark"]) .sw-redesign .sw-review [data-decision="revision"]{
 background:#fff5e7!important;color:#875017!important;border-color:#e8c7a2!important
}
html:not([data-theme="dark"]) .sw-redesign .sw-review [data-decision="rejected"]{
 color:#98252b!important;border-color:#e5b1b4!important
}
@media(max-width:1100px){
 .sw-redesign .sw-detail-grid{grid-template-columns:1fr!important}
 .sw-redesign .sw-review{position:static!important}
}
@media(max-width:620px){
 .sw-redesign .sw-review{padding:16px!important;border-radius:12px!important}
}
