:root{font-family:Arial,Helvetica,sans-serif;color:#29235c;background:#f7f6f3;font-synthesis:none;font-size:15px;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer;border:1px solid #d7d4e1;border-radius:9px;padding:10px 17px;background:white;color:#29235c;font-weight:600}button:hover{background:#efedf6}button:disabled{cursor:default;opacity:.55}button.primary{background:#29235c;color:white;border-color:#29235c}button.primary:hover{background:#393074}a{color:inherit}.top{min-height:84px;padding:20px max(24px,calc((100% - 1120px)/2));background:white;border-bottom:1px solid #e6e3ed;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:20px;text-decoration:none}.brand b{font-size:24px;letter-spacing:.06em}.brand span{font-size:14px;color:#686476;border-left:1px solid #dedbe5;padding-left:20px}main{max-width:1120px;margin:36px auto;padding:0 24px;min-height:65vh}h1{font-size:30px;line-height:1.2;letter-spacing:-.025em;margin:10px 0 14px}h2{font-size:21px;line-height:1.3;margin:0 0 10px}p{margin:0 0 16px;color:#696575}.eyebrow{text-transform:uppercase;color:#937024;font-weight:700;font-size:12px;letter-spacing:.1em}.login{max-width:450px;margin:60px auto;padding:32px;background:white;border:1px solid #e3dfeb;border-radius:16px}.login h1{font-size:27px}.login button{width:100%;margin-top:8px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:#514b67}.field.wide{grid-column:1/-1}input{width:100%;min-height:44px;border:1px solid #d7d2e2;border-radius:8px;padding:10px 12px;background:white;color:#29235c;outline:none;font-weight:400}input:focus{border-color:#686090;box-shadow:0 0 0 3px #29235c14}input:disabled{background:#f5f4f7;color:#635d72}.login .field{margin-top:18px}.hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.badge{display:inline-block;background:#ece9f4;border-radius:30px;padding:6px 12px;font-size:12px;white-space:nowrap;margin-top:10px}.notice{border-left:3px solid #c89939;padding:13px 17px;background:#fff9e9;border-radius:0 8px 8px 0;font-size:14px;color:#68532b;margin-bottom:22px}.tabs{display:flex;gap:7px;border-bottom:1px solid #ddd9e6;padding-bottom:14px;margin-bottom:24px;overflow:auto}.tabs button{white-space:nowrap;background:transparent;border-color:transparent;font-size:14px}.tabs button[aria-selected=true]{background:white;border-color:#d4cee4;color:#29235c;box-shadow:0 1px 3px #29235c0c}.panel{background:white;border:1px solid #e4e0eb;border-radius:14px;padding:28px}.panel>p{font-size:14px}.actions{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e9e6ee;margin-top:28px;padding-top:20px}.status{font-size:13px;color:#696575}.error{color:#9e2831;background:#fff0f0;padding:12px 15px;border-radius:8px;margin:14px 0;font-size:14px}.success{color:#37694d}.tableWrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:580px;text-align:left;font-size:14px}th{font-size:12px;color:#696575;font-weight:600;background:#f7f6f9}th,td{padding:14px 16px;border-bottom:1px solid #ece9f0;vertical-align:top}td:first-child{width:44%;font-weight:600}td small{display:block;font-weight:400;color:#777182;margin-top:4px}.empty{padding:35px 16px;text-align:center;background:#f9f8fb;border-radius:10px}.siteFooter{max-width:1120px;padding:24px;margin:25px auto;color:#898293;font-size:12px}.quiet{background:transparent}.loading{padding:70px 0;text-align:center}#refresh{margin-left:10px}button:focus-visible,a:focus-visible{outline:3px solid #b09acc;outline-offset:3px}[hidden]{display:none!important}@media(max-width:650px){.top{padding:18px;gap:10px;min-height:76px}.brand{gap:12px}.brand b{font-size:20px}.brand span{font-size:12px;padding-left:12px;max-width:140px}main{padding:0 16px;margin-top:25px}.hero{display:block}h1{font-size:25px}.fields{grid-template-columns:1fr;gap:17px}.panel{padding:20px 16px}.login{padding:24px;margin:25px auto}.actions{align-items:flex-start;flex-direction:column}.actions button{width:100%}.tabs{margin-left:-2px;margin-right:-2px}th,td{padding:12px}.siteFooter{padding:16px}}

#refresh{margin:18px 0 0}.tableWrap table{min-width:760px}.tableWrap th:first-child{width:34%}.tableWrap td:first-child{width:34%}@media(max-width:650px){.tableWrap::before{content:"Прокрутите таблицу вправо →";display:block;position:sticky;left:0;font-size:12px;color:#777182;margin:0 0 12px}}
.submission{margin-top:24px}.submission .actions>.status{max-width:620px}.submission .actions button{flex-shrink:0}.submission>.quiet{margin-top:16px}
.rosterToolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 16px}.rosterToolbar>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:100%}.rosterTable{min-width:930px;table-layout:fixed}.rosterTable th,.rosterTable td{border:1px solid #e4e0eb;overflow-wrap:anywhere}.rosterTable th:first-child,.rosterTable td:first-child{width:28%}.rosterTable th:nth-child(2){width:20%}.rosterTable th:nth-child(3){width:14%}.rosterTable th:nth-child(4){width:17%}.rosterTable th:last-child{width:21%}.rosterTable tbody tr:nth-child(even){background:#faf9fc}.rosterTable button{display:block;width:100%;min-height:36px;font-size:12px;padding:6px 8px;margin:0 0 8px;white-space:nowrap}.rosterTable button:last-child{margin-bottom:0}.removed td{color:#807987;background:#f5f3f5}.personDialog{border:1px solid #ded9e9;border-radius:16px;padding:28px;width:min(620px,calc(100% - 32px));max-height:90vh;overflow:auto;color:#29235c}.personDialog::backdrop{background:#19142b70}.personDialog h2{margin-bottom:24px}select{font:inherit;color:inherit;background:white;border:1px solid #d7d2e2;border-radius:8px;padding:10px;min-height:44px;width:100%}.checkboxField{display:flex;gap:10px;align-items:center;margin-top:20px;font-size:14px}.checkboxField input{width:18px;min-height:18px}.personDialog .actions{margin-top:20px}@media(max-width:650px){.rosterToolbar{align-items:flex-start;flex-direction:column}.personDialog{padding:20px}}

.draftReset{margin-top:24px;padding-top:18px;border-top:1px solid #e9e6ee;font-size:13px;color:#696575}.draftReset summary{cursor:pointer}.draftReset p{margin:14px 0;max-width:640px}.guardianHint{margin:18px 0 0}

.rosterToolbar>div{align-items:stretch}.rosterToolbar>div>button,.rosterToolbar>div>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #d7d4e1;border-radius:9px;background:white;font:600 14px/22px Arial,Helvetica,sans-serif;text-decoration:none;white-space:nowrap}.rosterToolbar>div>a:hover{background:#efedf6}
.rosterTable{min-width:1120px}.rosterTable th:first-child,.rosterTable td:first-child{width:23%}.rosterTable th:nth-child(2){width:16%}.rosterTable th:nth-child(3){width:12%}.rosterTable th:nth-child(4){width:14%}.rosterTable th:nth-child(5){width:21%}.rosterTable th:last-child{width:14%}
@media(max-width:650px){.rosterToolbar>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px}.rosterToolbar>div>button,.rosterToolbar>div>a{white-space:normal;padding:10px 8px;text-align:center}}

/* Equal action widths within each group; keep the table scroll inside its panel. */
.personDialog .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.personDialog .actions button{width:100%;min-height:44px}
@media(min-width:651px) and (max-width:1000px){.rosterToolbar{align-items:flex-start;flex-direction:column}.rosterToolbar>div{width:100%}}

.formGroupTitle{grid-column:1/-1;font-size:16px;margin:8px 0 0;padding-top:18px;border-top:1px solid #e9e6ee}.personDialog{width:min(760px,calc(100% - 32px))}
.tableWrap .rosterTable{min-width:1120px}.rosterTable td:nth-child(3),.rosterTable td:nth-child(4){white-space:nowrap}
.personDialog .actions{position:sticky;bottom:-28px;background:white;padding-bottom:20px;z-index:1}@media(max-width:650px){.personDialog .actions{bottom:-20px}}

/* Fit the desktop frame; keep word wrapping and a scrollable minimum on phones. */
.tableWrap .rosterTable{min-width:880px;width:100%}
.rosterTable th,.rosterTable td{padding:12px 10px;overflow-wrap:break-word;word-break:normal}
.rosterTable th:first-child,.rosterTable td:first-child{width:24%}
.rosterTable th:nth-child(2){width:15%}.rosterTable th:nth-child(3){width:11%}.rosterTable th:nth-child(4){width:15%}.rosterTable th:nth-child(5){width:23%}.rosterTable th:last-child{width:12%}

.status.unsaved{color:#a52a35;font-weight:600}.status.success{color:#287346;font-weight:600}.rosterTable td:nth-child(4){white-space:normal;overflow-wrap:normal;font-size:13px}

.phoneValidation{font-size:12px;line-height:1.4;color:#a52a35;font-weight:400}input[aria-invalid=true]{border-color:#a52a35}
.fileUpload{margin:24px 0;padding:20px;border:1px solid var(--line,#dce3ea);border-radius:14px}.fileUpload fieldset{margin:16px 0;border:1px solid #dce3ea;border-radius:10px;padding:12px}.fileUpload legend{font-size:14px}.filePeople{display:grid;gap:10px;max-height:240px;overflow:auto}.filePeople label{display:flex;align-items:center;gap:10px;font-size:14px}.filePeople input{width:18px;height:18px;flex:none}.fileUpload [hidden]{display:none!important}.filesTable{table-layout:fixed;width:100%}.filesTable th:first-child{width:38%}.filesTable th:nth-child(2){width:26%}.filesTable td{overflow-wrap:anywhere}.fileStatus{display:inline-block;padding:5px 8px;border-radius:7px;background:#edf1f7;font-size:13px}.fileStatus.approved{background:#e2f4e8;color:#1b6538}.fileStatus.rejected{background:#fff0f0;color:#a32929}.fileStatus.quarantine,.fileStatus.pending{background:#fff6d8;color:#795a08}

.filesTable,.consentTable{min-width:0!important;table-layout:fixed;width:100%}.consentTable th:first-child{width:30%}.consentTable td,.consentTable th,.filesTable th{white-space:normal;overflow-wrap:anywhere}.fileUpload input[type=file]{max-width:100%}

/* Keep upload groups spaced even when the people selector is hidden. */
.fileUpload{display:grid;gap:26px;padding:26px}.fileUpload .fields{gap:24px}.fileUpload .field{gap:10px}.fileUpload fieldset{margin:0;padding:16px}.fileUpload .actions{margin-top:0;padding-top:22px}.fileFormatHint{font-size:13px;font-weight:400;color:#696575;margin-top:-4px}.selectControl{display:block;position:relative;min-width:0}.selectControl select{appearance:none;-webkit-appearance:none;padding:12px 48px 12px 14px;min-height:46px;cursor:pointer;font-weight:400}.selectControl::after{content:"";position:absolute;right:19px;top:50%;width:11px;height:11px;border-right:1.5px solid #696080;border-bottom:1.5px solid #696080;transform:translateY(-75%) rotate(45deg);pointer-events:none}.selectControl select:focus-visible{outline:3px solid #29235c14;outline-offset:1px;border-color:#686090}@media(max-width:650px){.fileUpload{padding:18px;gap:24px}.fileUpload .fields{gap:22px}}

.correctionNotice{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;margin:20px 0;border:1px solid #cc5555;border-left:5px solid #b93838;border-radius:12px;background:#fff5f3;color:#682a2d}.correctionNotice h2{font-size:19px;line-height:1.4;margin:7px 0 10px}.correctionNotice p{font-size:14px;line-height:1.5;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.correctionCount{display:inline-block;font-size:12px;font-weight:700;color:#8f292e}.correctionNotice button{flex-shrink:0;white-space:normal;min-height:42px}#questionnaire{scroll-margin-top:24px}#questionnaire:focus{outline:2px solid #506a9b;outline-offset:4px}@media(max-width:640px){.correctionNotice{align-items:stretch;flex-direction:column;gap:14px;padding:18px}.correctionNotice button{width:100%}}

.headerActions{display:flex;align-items:center;gap:14px;flex-shrink:0}.cabinetBell{position:relative;display:grid;place-items:center;width:42px;height:42px;padding:9px;border:1px solid #dedbe5;border-radius:10px;background:#fff}.cabinetBell[hidden],.cabinetBell b[hidden]{display:none}.cabinetBell svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.cabinetBell b{position:absolute;top:-6px;right:-6px;min-width:19px;height:19px;border-radius:12px;padding:0 4px;background:#ad3038;color:#fff;border:2px solid #fff;display:grid;place-items:center;font-size:11px;line-height:1}.cabinetNotifications{position:fixed;inset:0;margin:auto;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:24px;border:1px solid #dedbe5;border-radius:16px;background:#fff;color:#29235c;box-shadow:0 20px 70px #162b3d30;opacity:1;animation:none}.cabinetNotifications::backdrop{background:#13202d60}.cabinetNotifications>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.cabinetNotifications>header h2{margin:0;font-size:22px}.cabinetNotifications>header button{width:36px;height:36px;padding:0;font-size:24px;font-weight:400}.cabinetNotifications .correctionNotice{margin:0;flex-direction:column;align-items:stretch;gap:14px;padding:18px}.cabinetNotifications .correctionNotice h2{font-size:17px}.cabinetNotifications button:focus-visible,.cabinetBell:focus-visible{outline:2px solid #686090;outline-offset:3px}@media(max-width:640px){.top{gap:12px}.headerActions{gap:10px}.brand{gap:10px}.brand span{padding-left:10px}.cabinetNotifications{padding:18px}}

.consentTable{min-width:480px!important}.consentTable th,.consentTable td{overflow-wrap:normal;word-break:normal}.consentTable td:first-child{overflow-wrap:anywhere}

.testEnvironment{padding:10px 16px;text-align:center;background:#fff2cc;color:#594308;font:600 13px/1.5 Arial,sans-serif;border-bottom:1px solid #e4ce86}

html[data-developer-mode="true"] .top{background:#fff2cc;border-bottom-color:#e4ce86}html[data-developer-mode="true"] .brand span{color:#594308}.environmentSwitch{font-size:13px;white-space:nowrap}.top .brand span{white-space:normal}@media(max-width:760px){.top{flex-wrap:wrap}.top .headerActions{flex-wrap:wrap;max-width:100%}.environmentSwitch{white-space:normal}}
