.offinz-hr{--hr-border:#dce3ef;--hr-card:#fff;--hr-text:#172239;--hr-muted:#59667b;--hr-tint:#f4f7fc;color:var(--hr-text);min-width:0}.offinz-hr *{box-sizing:border-box}.offinz-hr [hidden]{display:none!important}.offinz-hr .hr-heading,.offinz-hr .hr-toolbar,.offinz-hr .hr-actions,.offinz-hr .hr-record-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.offinz-hr .hr-heading{justify-content:space-between;margin-bottom:20px}.offinz-hr h2{font-size:1.5em;font-weight:800}.offinz-hr h3{font-size:1.1em;font-weight:750}.offinz-hr p{color:var(--hr-muted);line-height:1.55}.offinz-hr button{max-width:100%;min-height:42px;padding:10px 16px;border-radius:9px;border:1px solid transparent;background:#5845e9;color:#fff;font:inherit;font-weight:700;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.offinz-hr button.hr-secondary{background:var(--hr-card);border-color:var(--hr-border);color:var(--hr-text)}.offinz-hr button:disabled{opacity:.55;cursor:not-allowed}.offinz-hr :is(button,input,select,textarea):focus-visible{outline:3px solid #36a9d6;outline-offset:3px}.offinz-hr label{display:flex;flex-direction:column;gap:7px;font-size:.9em;font-weight:650;min-width:0}.offinz-hr :is(input,textarea,select){width:100%;min-width:0;max-width:100%;padding:11px 12px;border:1px solid var(--hr-border);border-radius:8px;background:var(--hr-card);color:var(--hr-text);font:inherit;font-weight:400}.offinz-hr textarea{resize:vertical;line-height:1.55}.offinz-hr .hr-toolbar{align-items:flex-end;margin-bottom:16px}.offinz-hr .hr-toolbar label{min-width:180px;flex:1}.offinz-hr .hr-records{display:grid;gap:12px}.offinz-hr .hr-record,.offinz-hr #hrEditor{background:var(--hr-card);border:1px solid var(--hr-border);border-radius:12px;padding:20px}.offinz-hr .hr-record p{margin:7px 0 14px;overflow-wrap:anywhere}.offinz-hr #hrEditor{margin-top:24px}.offinz-hr .hr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.offinz-hr .hr-wide{grid-column:1/-1}.offinz-hr .hr-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;margin:0 0 24px;padding:0}.offinz-hr .hr-steps li{padding:10px;border-bottom:3px solid var(--hr-border);font-weight:650;color:var(--hr-muted)}.offinz-hr .hr-steps li.is-current{color:#5b42e9;border-color:#7155f5}.offinz-hr .hr-actions{justify-content:flex-end;margin-top:24px;padding-top:18px;border-top:1px solid var(--hr-border)}.offinz-hr .hr-check{flex-direction:row;align-items:flex-start;padding:12px;margin:10px 0;background:var(--hr-tint);border-radius:8px;line-height:1.5}.offinz-hr .hr-check input{width:19px;height:19px;flex:0 0 19px;margin:2px 0 0;accent-color:#5845e9}.offinz-hr .hr-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:460px;overflow:auto;padding:24px;margin:20px 0;background:var(--hr-tint);line-height:1.65;border:1px solid var(--hr-border);border-radius:8px}.offinz-hr .hr-guidance,.offinz-hr .hr-sources{font-size:.85em;margin-top:12px}.offinz-hr a{color:#5141c6;text-decoration:underline}.offinz-hr #hrStatus{margin:12px 0;overflow-wrap:anywhere}body.dark-mode .offinz-hr{--hr-border:#46546d;--hr-card:#182234;--hr-text:#edf2fb;--hr-muted:#c1cbdd;--hr-tint:#111b2c}body.dark-mode .offinz-hr a,body.dark-mode .offinz-hr .hr-steps li.is-current{color:#c4b8ff}@media(max-width:640px){.offinz-hr .hr-fields{grid-template-columns:minmax(0,1fr)}.offinz-hr .hr-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.offinz-hr .hr-record,.offinz-hr #hrEditor{padding:15px}.offinz-hr .hr-actions button{flex:1 1 145px}.offinz-hr .hr-toolbar label{min-width:0;flex-basis:100%}.offinz-hr .hr-record-actions button{flex:1 1 120px}.offinz-hr .hr-preview{padding:14px}}

#hrPresetsCard{margin:16px 0;padding:24px;border:1px solid #dbe3ef;border-radius:14px;background:var(--panel-bg,#fff)}
#hrPresetsCard details{margin:12px 0;padding:14px;border:1px solid #dbe3ef;border-radius:10px}
#hrPresetsCard summary{cursor:pointer;font-weight:700;padding:8px 0}
#hrPresetsCard label{display:grid;gap:8px;margin:14px 0}#hrPresetsCard textarea{box-sizing:border-box;width:100%;min-width:0;resize:vertical;padding:12px;font:inherit;color:inherit;border:1px solid #cbd5e1;border-radius:8px;background:transparent}
body.dark-mode #hrPresetsCard{background:#172033;color:#e2e8f0;border-color:#475569}
body.dark-mode #hrPresetsCard details,body.dark-mode #hrPresetsCard textarea{border-color:#475569}

/* Select, preview and adopt text without overwriting the editable assessment. */
.offinz-hr .hr-text-section{border:1px solid var(--hr-border);border-radius:10px;padding:18px;min-width:0}
.offinz-hr .hr-text-section h4{font-size:1.05em;font-weight:750;margin:0 0 14px}
.offinz-hr .hr-block-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.offinz-hr .hr-block-preview,.offinz-hr .hr-rating-preview{background:var(--hr-tint);padding:12px;border-radius:7px;font-size:.9em;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400}
.offinz-hr .hr-rating-preview{margin:0}
.offinz-hr .hr-text-block>p:last-child{font-size:.85em;margin:10px 0 18px}
.offinz-hr .hr-editor-status:not(:empty){padding:12px 14px;margin-top:18px;border-left:3px solid #7155f5;background:var(--hr-tint);border-radius:6px}
@media(max-width:640px){.offinz-hr .hr-block-controls{grid-template-columns:minmax(0,1fr)}.offinz-hr .hr-text-section{padding:12px}.offinz-hr .hr-text-block button{width:100%}}

/* Explicit task selection; editable prose stays optional. */
.offinz-hr .hr-task-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.offinz-hr .hr-task-choices .hr-check{margin:0;font-weight:400;font-size:.88em;border:1px solid var(--hr-border)}
.offinz-hr .hr-task-choices .hr-check:has(input:checked){border-color:#8071f0}
.offinz-hr details>summary{cursor:pointer;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.offinz-hr details[open]>summary{margin-bottom:14px}
.offinz-hr #hrTaskText{margin-top:16px}
@media(max-width:640px){.offinz-hr .hr-task-choices{grid-template-columns:minmax(0,1fr)}}

/* A short certificate editor; the complete document stays editable. */
.offinz-hr #hrEditor.hr-reference-editor{max-width:1040px;margin-inline:auto}
.offinz-hr .hr-reference-editor [data-hr-step="1"]{gap:20px}
.offinz-hr .hr-reference-editor #hrTaskText{border:0;padding:0;margin-top:12px}
.offinz-hr .hr-reference-editor #hrTaskText>summary{display:none}
.offinz-hr .hr-reference-editor #hrTaskChoices[hidden],.offinz-hr .hr-reference-editor #hrUseTasks[hidden],.offinz-hr #hrQuestions>label[hidden]{display:none!important}
.offinz-hr .hr-preview{max-width:760px;margin:24px auto;line-height:1.7;padding:32px}
@media(max-width:600px){.offinz-hr .hr-preview{padding:18px;margin:18px 0}.offinz-hr .hr-reference-editor [data-hr-step="1"]{gap:16px}}
