/* Только справка: размеры таблиц и существующих форм не меняются. */
.context-help-button { align-self: center; flex: 0 0 40px; width: 40px; height: 40px; margin: 0; border: 2px solid #315b87; border-radius: 50%; background: #fff; color: #244b73; font: bold 24px/1 Arial, sans-serif; cursor: pointer; }
.context-help-button:focus-visible, .context-help-close:focus-visible { outline: 3px solid #1773c7; outline-offset: 3px; }
.context-help-dialog { box-sizing: border-box; inset: 0; margin: auto; width: min(680px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: 12px; background: #fff; color: #252d38; overflow: auto; font: 16px/1.5 Arial, sans-serif; }
.context-help-dialog::backdrop { background: rgb(15 27 40 / 55%); }
.context-help-dialog [hidden] { display: none !important; }
.context-help-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.context-help-heading h2 { margin: 0; font-size: 23px; line-height: 1.3; overflow-wrap: anywhere; }
.context-help-close { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #b5c1cd; border-radius: 6px; background: #fff; color: #243e59; font-size: 28px; cursor: pointer; }
.context-help-dialog h3 { margin: 20px 0 8px; font-size: 19px; line-height: 1.4; }
.context-help-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.context-help-topic { margin: 12px 0; border-bottom: 1px solid #d9e1e8; padding-bottom: 12px; }
.context-help-topic summary { cursor: pointer; font-weight: bold; padding: 8px 0; }
.context-help-topic summary:focus-visible { outline: 3px solid #1773c7; }
.context-help-topic .context-help-text { padding: 8px 0; }
.context-help-footer { padding-top: 16px; margin: 20px 0 0; border-top: 1px solid #d9e1e8; color: #526171; font-size: 14px; }
.context-help-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.context-help-dialog .btn { max-width: 100%; white-space: normal; }
.knowledge-page { max-width: 1080px; margin: 24px auto; padding: 0 16px 32px; }
.knowledge-page h1 { font-size: 28px; line-height: 1.3; }
.knowledge-page p { line-height: 1.5; }
.knowledge-notice { padding: 14px; margin: 16px 0; background: #eaf5ed; color: #204f30; }
.knowledge-list { margin-top: 20px; display: grid; gap: 16px; }
.knowledge-item { padding: 16px; border: 1px solid #cbd5df; border-radius: 8px; overflow-wrap: anywhere; }
.knowledge-item h2 { margin: 0 0 8px; font-size: 20px; }
.knowledge-item p { margin: 8px 0; }
.knowledge-form { max-width: 760px; }
.knowledge-field { margin: 20px 0; }
.knowledge-field label { display: block; margin-bottom: 6px; font-weight: 600; }
.knowledge-field input[type=text], .knowledge-field select, .knowledge-field textarea { box-sizing: border-box; width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #8294a5; border-radius: 5px; background: white; color: #253446; }
.knowledge-field textarea { min-height: 300px; resize: vertical; line-height: 1.5; }
.knowledge-field small { display: block; margin-top: 6px; line-height: 1.5; }
.knowledge-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.knowledge-page .validation-summary-errors, .knowledge-page .field-validation-error { color: #a51c25; line-height: 1.5; }
.knowledge-page .input-validation-error { border: 2px solid #a51c25; }
@media (max-width: 600px) {
    .context-help-button { flex-basis: 36px; width: 36px; height: 36px; }
    .context-help-dialog { padding: 18px; }
    .context-help-heading h2 { font-size: 21px; }
    .knowledge-page h1 { font-size: 24px; }
    .knowledge-actions .btn { white-space: normal; max-width: 100%; }
}
