.xhi-protection [hidden] { display: none !important; }
.xhi-protection { overflow-wrap: anywhere; }
.xhi-protection .xp-note, .xhi-protection .xp-hint { color: var(--muted); }
.xhi-protection form, .xhi-protection .xp-result {
  padding: clamp(1rem, 4vw, 2.5rem);
  margin-block: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
}
.content-page .entry-content .xhi-protection h2 { margin: 0 0 1rem; }
.content-page .entry-content .xhi-protection .xp-progress,
.content-page .entry-content .xhi-protection .xp-mode {
  font: 600 .82rem/1.5 var(--mono);
  color: #416022;
}
.xhi-protection fieldset { min-inline-size: 0; margin: 0; border: 0; padding: 0 0 1.25rem; }
.xhi-protection fieldset + fieldset { margin-top: .5rem; }
.xhi-protection legend { padding: 0; font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.content-page .entry-content .xhi-protection .xp-hint { margin: .35rem 0 .7rem; font-size: .95rem; line-height: 1.5; }
.xhi-protection .xp-choices, .xhi-protection .xp-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.xhi-protection .xp-choices label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.xhi-protection input[type=radio] { margin: 0; width: 1rem; height: 1rem; accent-color: var(--ink); }
.xhi-protection label:has(input:checked) { background: #e9f5d6; border-color: #557436; }
.xhi-protection :focus-visible, .xhi-protection label:has(input:focus-visible) { outline: 3px solid #355b14; outline-offset: 3px; }
.xhi-protection [data-missing] legend, .xhi-protection .xp-error { color: #8c281b; }
.xhi-protection .xp-error:empty, .xhi-protection [data-feedback]:empty { display: none; }
.xhi-protection .xp-actions { margin: 1rem 0 .4rem; }
.xhi-protection .button { min-height: 44px; white-space: normal; text-align: center; }
.xhi-protection .button:not(.button-dark) { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.content-page .entry-content .xhi-protection a.button-dark { color: var(--white); text-decoration: none; }
.xhi-protection .xp-result ol { padding-inline-start: 1.4rem; }
.xhi-protection .xp-result li { padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
.content-page .entry-content .xhi-protection li h3 { margin: .3rem 0; }
.content-page .entry-content .xhi-protection li p { margin: 0; }
.xhi-protection [data-fallback] { margin-block: 1rem; }
.xhi-protection textarea { display: block; margin-block: .5rem; width: 100%; }
.xhi-protection [data-edit] { margin-top: 1rem; }
