.training-form{padding:28px}.training-form fieldset{border:0;padding:0;margin:0 0 32px;min-width:0}.lookup-heading{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:600;margin-bottom:20px}.lookup-heading>span{display:grid;place-items:center;width:32px;height:32px;background:#e1f2f3;color:#057c8a;font-size:15px;border-radius:50%}.lookup-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.lookup-fields .lookup-program{grid-column:span 2;position:relative}.lookup-program [role=listbox]{position:absolute;top:100%;left:0;right:0;max-height:300px;overflow:auto;background:white;border:1px solid #c4dadd;box-shadow:0 12px 30px #24475020;z-index:10;border-radius:8px;padding:6px}.lookup-option{display:block;text-align:left;width:100%;padding:10px 12px;font-size:13px;border-radius:5px;cursor:pointer}.lookup-option strong{display:block;color:#087e8c;font-size:12px;margin-bottom:3px}.lookup-option:hover,.lookup-option[aria-selected=true]{background:#e3f3f4}.lookup-methods{display:grid;grid-template-columns:1fr 1fr;gap:16px}.lookup-method{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #d7e3e6;border-radius:9px;cursor:pointer}.lookup-method:has(:checked){border-color:#1496a4;background:#edf8f8}.lookup-method:has(:disabled){color:#789099;background:#f7f9fa;cursor:default}.lookup-method input{accent-color:#07818f;width:18px;height:18px;flex-shrink:0}.lookup-method small{display:block;font-size:13px;margin-top:5px;font-weight:400;color:#647c84}.lookup-access{display:flex;gap:20px;justify-content:space-between;font-size:13px;margin:12px 0 24px;color:#607880}.lookup-access a{text-decoration:underline}.lookup-access button{flex-shrink:0}.lookup-captcha{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:20px;background:#f4f8f9;border-radius:9px}.lookup-captcha p{font-size:13px;margin-top:5px;color:#607880}.lookup-captcha>div{margin-right:auto}.lookup-captcha img{max-width:220px;max-height:80px;object-fit:contain}.lookup-captcha .field{max-width:180px}.lookup-submit{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #deeaed;padding-top:24px}.lookup-submit>p{font-size:12px;line-height:1.6;max-width:440px;color:#657e86;display:flex;gap:10px}.lookup-submit .icon{flex-shrink:0}.lookup-preview{overflow-x:auto;margin-top:16px}.lookup-preview table{width:100%;border-collapse:collapse;font-size:13px;min-width:620px}.lookup-preview th,.lookup-preview td{text-align:left;padding:10px;border-bottom:1px solid #dfebed}.lookup-preview th{background:#f3f8f8;position:sticky;top:0}.lookup-results{margin-top:24px;padding:28px}.lookup-explainer{font-size:13px;color:#627b84;max-width:1000px;margin-bottom:20px}.lookup-result{padding:18px 0;border-top:1px solid #e1eaed}.lookup-result summary{cursor:pointer;line-height:1.7;overflow-wrap:anywhere}.lookup-result summary strong{margin-right:12px}.lookup-result small{color:#637e86;display:block}.lookup-state{font-size:12px;padding:4px 9px;border-radius:5px;background:#edf2f4;display:inline-block}.lookup-state.found{background:#e7f5ec;color:#216742}.lookup-state.failed{background:#fff0ec;color:#9b4a35}.lookup-result dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;margin-top:12px;background:#f7fafb;border-radius:8px}.lookup-result dt{font-size:12px;color:#627c84}.lookup-result dd{font-size:14px;overflow-wrap:anywhere}.lookup-footer{display:flex;justify-content:space-between;gap:20px;font-size:13px;color:#657d86;padding:24px 0}.lookup-footer a{flex-shrink:0}.lookup-result .notice{margin:12px 0}.training-page [hidden]{display:none!important}@media(max-width:900px){.training-form,.lookup-results{padding:20px}.lookup-submit{align-items:stretch;flex-direction:column}.lookup-footer{flex-direction:column}.lookup-methods{grid-template-columns:1fr}.lookup-result dl{grid-template-columns:1fr 1fr}}@media(max-width:540px){.lookup-fields{grid-template-columns:1fr}.lookup-fields .lookup-program{grid-column:auto}.lookup-heading{font-size:18px}.training-form,.lookup-results{padding:16px}.lookup-captcha{padding:14px}.lookup-access{flex-direction:column;gap:8px}.lookup-submit .button-row{flex-direction:column;align-items:stretch}.lookup-result dl{grid-template-columns:1fr}.lookup-results .panel-head{align-items:start;flex-direction:column;gap:16px}.training-form .section-tabs{gap:8px}.training-form .tab-choice{font-size:12px}}

.lookup-captcha-refresh{width:42px;height:42px;min-width:42px;padding:10px;flex-shrink:0}.lookup-captcha-refresh.is-loading .icon{animation:captcha-spin 1s linear infinite}.lookup-captcha>div{flex:1 1 280px}.lookup-captcha img{background:#fff;border-radius:6px}.lookup-captcha .field{margin:0}@keyframes captcha-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.lookup-captcha-refresh.is-loading .icon{animation:none}}

/* Compact batch input and protocol reading view. */
.training-form{padding:22px}.training-form fieldset{margin-bottom:22px}.lookup-heading{font-size:18px;margin-bottom:14px}.training-form .section-tabs{margin-bottom:16px}.lookup-manual-row{display:grid;grid-template-columns:24px minmax(0,1fr) 36px;gap:12px;align-items:start;border-top:1px solid #dce6e8;padding:14px 0}.lookup-manual-row:first-child{border-top:0;padding-top:0}.lookup-row-number{color:#69838a;font-size:13px;padding-top:29px}.lookup-manual-row .lookup-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}.lookup-manual-row .lookup-fields .lookup-program{grid-column:span 1}.lookup-manual-row .field{font-size:12px;min-width:0;gap:5px}.lookup-manual-row .input{height:38px;min-height:38px;font-size:13px;width:100%}.lookup-remove{margin-top:23px;padding:8px!important;min-width:34px}.lookup-remove .icon{width:17px;height:17px}.lookup-manual-row .lookup-program{position:relative}.lookup-manual-row [role=listbox]{z-index:20;width:max(100%,340px);max-width:min(600px,80vw);right:auto}.lookup-manual-row .lookup-option{white-space:normal;text-align:left}.lookup-program [role=listbox] .lookup-option{display:block;width:100%}.lookup-program [role=listbox] .lookup-option>strong{margin-right:8px}.lookup-methods{gap:12px}.lookup-method{padding:12px 16px}.lookup-captcha{padding:14px;gap:12px}.lookup-captcha>div{flex:1 1 260px}.lookup-captcha>div p{font-size:12px}.lookup-captcha .field{font-size:12px}.lookup-captcha .input{min-height:38px;height:38px}.lookup-submit{padding-top:14px}.lookup-protocol-group{margin-top:24px;border:1px solid #d6e3e5;border-radius:10px;overflow:visible;background:white}.lookup-protocol-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#eef5f4;padding:14px 18px;border-radius:10px 10px 0 0;border-bottom:1px solid #d6e3e5}.lookup-protocol-heading h3{font-size:18px;font-weight:600;margin:0;overflow-wrap:anywhere}.lookup-protocol-heading>span{font-size:13px;color:#527078}.lookup-protocol-heading>.lookup-copy{margin-left:auto}.lookup-register-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left}.lookup-register-table th,.lookup-register-table td{padding:14px 18px;border-bottom:1px solid #e0e8e9;vertical-align:top;overflow-wrap:anywhere}.lookup-register-table thead th{font-weight:400;font-size:12px;color:#5b747b;background:#fafcfc}.lookup-register-table th:first-child{width:34%}.lookup-register-table th:last-child,.lookup-register-table td:last-child{width:90px;text-align:center}.lookup-register-table tbody th{font-size:15px;font-weight:600;line-height:1.65}.lookup-register-table tbody tr:last-child>*{border-bottom:0}.lookup-numbers{display:flex;flex-wrap:wrap;gap:9px}.lookup-number{font:inherit;font-variant-numeric:tabular-nums;letter-spacing:.025em;color:#175a45;background:#e9f5ed;border:1px solid #b8d6c5;border-radius:5px;padding:6px 10px;position:relative;cursor:pointer;user-select:text;max-width:100%;text-align:left}.lookup-number:hover,.lookup-number:focus-visible{background:#d9ede0;outline:2px solid #6b9f85;outline-offset:2px}.lookup-number-tooltip{display:none;position:absolute;bottom:calc(100% + 8px);left:0;width:300px;max-width:65vw;padding:10px 12px;background:#173c43;color:#fff;box-shadow:0 4px 15px #173c4326;border-radius:7px;font-size:12px;line-height:1.5;font-weight:400;letter-spacing:0;z-index:25;pointer-events:none}.lookup-number:hover .lookup-number-tooltip,.lookup-number:focus-visible .lookup-number-tooltip{display:block}.lookup-copy{width:34px;min-width:34px;padding:7px!important;flex:none;min-height:34px}.lookup-copy svg{width:18px;height:18px}.lookup-result-note{font-size:12px;line-height:1.6;color:#687579;margin:8px 0 0}.lookup-copy-buffer{position:fixed;left:0;top:0;width:1px;height:1px;opacity:0}.lookup-results .panel-head .button-row{flex-wrap:wrap}.lookup-results .lookup-explainer{font-size:12px;line-height:1.7}.lookup-results .panel-head h2{font-size:25px}.lookup-results .panel-head p{font-size:13px;margin-top:7px}.lookup-register-table .lookup-number-tooltip{overflow-wrap:anywhere}
@media(min-width:1250px){.lookup-manual-row .lookup-fields{grid-template-columns:1fr 1fr 1.1fr 1fr 1.6fr 150px}.lookup-captcha .field{max-width:200px}}
@media(max-width:700px){.training-form{padding:16px}.lookup-manual-row{gap:7px;grid-template-columns:18px minmax(0,1fr) 30px}.lookup-manual-row .lookup-fields{grid-template-columns:1fr 1fr}.lookup-manual-row [role=listbox]{left:auto;right:0;max-width:75vw;width:300px}.lookup-protocol-heading{padding:12px;gap:8px}.lookup-protocol-heading h3{font-size:16px}.lookup-protocol-heading>span{flex-basis:70%;font-size:12px}.lookup-register-table th,.lookup-register-table td{padding:10px 8px}.lookup-register-table th:last-child,.lookup-register-table td:last-child{width:48px}.lookup-register-table thead th:last-child{font-size:0}.lookup-register-table th:first-child{width:36%}.lookup-register-table tbody th{font-size:13px}.lookup-number{font-size:13px;padding:5px 7px}.lookup-number-tooltip{left:auto;right:0;max-width:72vw}.lookup-results{padding:16px}.lookup-results .panel-head{align-items:start;flex-direction:column}.lookup-results .button-row .btn{font-size:12px}.lookup-numbers{gap:7px}}
@media(max-width:430px){.lookup-manual-row .lookup-fields{grid-template-columns:1fr}.lookup-manual-row .lookup-fields .lookup-program{grid-column:auto}.lookup-manual-row [role=listbox]{right:0;width:250px}.lookup-row-number{padding-top:24px}.lookup-protocol-heading h3{flex-basis:100%}.lookup-register-table tbody th{font-size:12px}}

.lookup-number-tooltip{left:auto;right:0}@media(max-width:700px){.lookup-number-tooltip{left:50%;right:auto;transform:translateX(-50%);max-width:62vw}}

/* One shared heading row; labels remain available to screen readers. */
.lookup-manual-head{display:grid;grid-template-columns:24px minmax(0,1fr) 36px;gap:12px;background:#f0f6f6;color:#526d75;padding:10px 0;font-size:12px;border-bottom:1px solid #d7e4e7}
.lookup-manual-head>span:first-child{text-align:center}.lookup-column-headings{display:grid;grid-template-columns:1fr 1fr 1.1fr 1fr 1.6fr 150px;gap:12px}
.lookup-field-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.lookup-manual-row{padding:10px 0;align-items:start}.lookup-manual-row:first-child{padding-top:10px}.lookup-row-number{padding-top:10px;text-align:center}.lookup-remove{margin-top:1px}
.lookup-manual-row .lookup-fields{grid-template-columns:1fr 1fr 1.1fr 1fr 1.6fr 150px}.lookup-manual-row .field{gap:0}
.lookup-manual-row input::placeholder{font-size:12px}.lookup-manual-row .lookup-date{position:relative}
@media(max-width:1249px){.lookup-manual-head{display:none}.lookup-manual-row .lookup-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.lookup-manual-row .lookup-date::before{content:'Дата протокола';font-size:10px;color:#607a82;position:absolute;left:10px;top:2px;pointer-events:none}.lookup-manual-row .lookup-date input{padding-top:12px}}
@media(max-width:700px){.lookup-manual-row{grid-template-columns:18px minmax(0,1fr) 30px;gap:7px}.lookup-manual-row .lookup-fields{grid-template-columns:1fr 1fr}.lookup-manual-row .lookup-program{grid-column:span 2!important}}
@media(max-width:430px){.lookup-manual-row .lookup-fields{grid-template-columns:1fr}.lookup-manual-row .lookup-program{grid-column:auto!important}.lookup-row-number{padding-top:10px}}
/* Results open as a compact right-hand drawer, independent of the input form. */
html.lookup-drawer-open{overflow:hidden}
.lookup-drawer{position:fixed;inset:0 auto 0 max(0px,calc(100vw - min(780px,92vw)));margin:0;width:min(780px,92vw);height:100dvh;max-width:100vw;max-height:100dvh;padding:0;border:0;border-left:1px solid #d8e4e6;border-radius:0;background:#fff;color:#193841;box-shadow:-12px 0 48px #183c4426;overflow:hidden}
.lookup-drawer[open]{display:flex;flex-direction:column;animation:lookup-drawer-in .2s ease-out}
.lookup-drawer::backdrop{background:#16363d52}
.lookup-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 16px;border-bottom:1px solid #dce7e9;flex:none}
.lookup-drawer-head h2{font-size:23px;font-weight:600;line-height:1.25;margin:0}.lookup-drawer-head p{font-size:12px;margin:7px 0 0;color:#5c7881}
.lookup-drawer-close{width:34px;min-width:34px;min-height:34px;height:34px;padding:7px;flex:none}.lookup-drawer-close .icon{width:18px;height:18px}
.lookup-drawer-actions{display:flex;align-items:center;gap:8px;padding:14px 24px 0;flex-wrap:wrap;flex:none}.lookup-drawer-actions .btn{font-size:12px}
.lookup-drawer-body{flex:1;min-height:0;padding:12px 24px 24px;overflow-y:auto;overscroll-behavior:contain}
.lookup-drawer .lookup-explainer{font-size:12px;line-height:1.5;margin:0 0 16px}.lookup-drawer-note{font-size:11px;line-height:1.6;color:#647e85;margin:16px 0 0}
.lookup-drawer .lookup-protocol-group{margin:0 0 18px;border:0;border-radius:0}.lookup-drawer .lookup-protocol-heading{padding:9px 10px;gap:8px;border-radius:4px 4px 0 0;background:#edf4f4;border-bottom:1px solid #d6e3e5;flex-wrap:wrap}
.lookup-drawer .lookup-protocol-heading h3{font-size:14px;line-height:1.4;flex-basis:auto}.lookup-drawer .lookup-protocol-heading>span{font-size:12px;flex-basis:auto;font-variant-numeric:tabular-nums}
.lookup-drawer .lookup-register-table th,.lookup-drawer .lookup-register-table td{padding:8px 10px;line-height:1.5}.lookup-drawer .lookup-register-table th:first-child{width:40%}.lookup-drawer .lookup-register-table tbody th{font-size:13px;font-weight:400}.lookup-drawer .lookup-register-table thead th{font-size:11px;padding-top:6px;padding-bottom:6px;background:#fafcfc}.lookup-drawer .lookup-register-table th:last-child,.lookup-drawer .lookup-register-table td:last-child{width:44px;padding-left:4px;padding-right:4px}
.lookup-drawer .lookup-copy{width:28px;min-width:28px;min-height:28px;height:28px;padding:5px!important}.lookup-drawer .lookup-copy svg{width:16px;height:16px}
.lookup-drawer .lookup-number{font-size:13px;padding:3px 7px;line-height:1.5;letter-spacing:0;border-color:transparent}.lookup-drawer .lookup-numbers{gap:4px 6px}.lookup-drawer .lookup-result-note{font-size:11px;margin:3px 0}.lookup-drawer .lookup-number-tooltip{font-size:12px;max-width:min(300px,55vw)}
.lookup-drawer-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:12px 24px;border-top:1px solid #dce7e9;background:#f8fbfb;flex:none}.lookup-drawer-footer .btn{font-size:12px}.lookup-copy-status{font-size:12px;color:#285f4c;margin-right:auto;flex:1 1 160px}.lookup-drawer #lookup-drawer-error{padding:10px 12px;font-size:12px;margin-bottom:14px}
@keyframes lookup-drawer-in{from{transform:translateX(40px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.lookup-drawer[open]{animation:none}}
@media(max-width:600px){.lookup-drawer{width:100vw;left:0}.lookup-drawer-head{padding:18px 14px 12px}.lookup-drawer-head h2{font-size:20px}.lookup-drawer-actions{padding:12px 14px 0}.lookup-drawer-body{padding:12px 14px 18px}.lookup-drawer-footer{padding:10px 14px}.lookup-drawer .lookup-register-table th,.lookup-drawer .lookup-register-table td{padding:7px 6px}.lookup-drawer .lookup-register-table th:first-child{width:38%}.lookup-drawer .lookup-register-table tbody th{font-size:12px}.lookup-drawer .lookup-register-table th:last-child,.lookup-drawer .lookup-register-table td:last-child{width:36px;padding:7px 3px}.lookup-drawer .lookup-number-tooltip{left:50%;right:auto;transform:translateX(-50%);max-width:55vw}}
.lookup-guidance{font-size:13px;line-height:1.65;color:#4c6972;padding:12px 14px;margin:0 0 18px;background:#f2f8f8;border-left:3px solid #168993;border-radius:0 6px 6px 0;overflow-wrap:anywhere}.training-form #lookup-error:focus,.training-form #training-table-error:focus{outline:2px solid #168993;outline-offset:3px}.training-form .input{scroll-margin-block:100px}@media(max-width:600px){.lookup-guidance{font-size:12px;padding:10px 12px}.lookup-manual-row .input,.lookup-captcha .input{font-size:16px;min-height:44px}.lookup-manual-row .lookup-program [role=listbox]{width:100%;max-width:100%}}
@media(max-width:600px){.lookup-manual-row .lookup-field-label{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal;font-size:12px;color:#4c6972}.lookup-manual-row .lookup-date::before{content:none}.lookup-manual-row .lookup-date input{padding-top:7px}.lookup-manual-row .lookup-row-number,.lookup-manual-row .lookup-remove{margin-top:20px}}
@media(max-width:600px){#training-form .lookup-manual-row .input,#training-form .lookup-captcha .input{font-size:16px;height:44px;min-height:44px}}

.lookup-captcha-refresh.is-empty{width:auto;min-width:42px;padding:10px 14px;gap:8px}
