.checker {
  min-width: 0;
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding: clamp(1.15rem, 3vw, 2rem);
  background: var(--card, #fff);
  border: 1px solid var(--line, #cfdcd4);
  border-radius: 20px;
  color: var(--ink, #182d2b);
  container: ai-check / inline-size;
}
.checker [hidden] { display: none !important; }
.checker h2,
.checker h3,
.checker h4,
.checker p { margin: 0; }
.check-head h2 {
  font: 450 clamp(1.85rem, 3.5vw, 2.65rem)/1.05 Georgia, serif;
  letter-spacing: -.055em;
}
.check-head > p,
.check-monitor p,
.check-help,
.check-mode,
.check-source-note,
.check-source-list,
.check-fieldtest { color: var(--sub, #506562); }
.check-head > p { max-width: 52ch; margin-top: .55rem; }
.check-entry,
.check-confirm,
.check-monitor form { margin-top: 1.15rem; }
.check-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  width: fit-content;
  max-width: 100%;
  padding: .2rem;
  margin: 0 0 1rem;
  border: 1px solid #b6cbbd;
  border-radius: 1.8rem;
  background: var(--paper, #f5f7f4);
}
.check-switch legend,
.check-switch input,
.check-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(50%);
}
.check-switch label { position: relative; cursor: pointer; }
.check-switch label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .35rem .78rem;
  border-radius: 99px;
  color: var(--sub, #506562);
  font-size: .92rem;
  font-weight: 620;
}
.check-switch input:checked + span { background: var(--teal, #075946); color: #fff; }
.check-switch input:focus-visible + span { outline: 3px solid #963c09; outline-offset: 3px; }
.check-field { display: block; font-size: .96rem; font-weight: 670; }
.check-field input,
.check-field textarea {
  display: block;
  width: 100%;
  margin: .35rem 0 .8rem;
  padding: .7rem .85rem;
  border: 1px solid #8ba895;
  border-radius: 12px;
  background: white;
  color: var(--ink, #182d2b);
  font: inherit;
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.45;
}
.check-field input { min-height: 46px; }
.check-field textarea { resize: vertical; min-height: 4.7rem; }
.check-field input::placeholder,
.check-field textarea::placeholder { color: #60736a; opacity: 1; }
.checker .button { min-height: 44px; }
.checker button:disabled { opacity: .65; cursor: wait; }
.check-actions,
.check-foot,
.check-engine-head,
.check-source-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
}
.check-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--teal, #075946);
  font-size: .9rem;
  font-weight: 650;
  padding: .55rem 0;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.checker details.check-optional {
  border: 0;
  margin: -.1rem 0 .8rem;
  font-size: .91rem;
}
.checker .check-optional summary {
  width: fit-content;
  max-width: 100%;
  padding: .3rem 0;
  font-weight: 550;
}
.check-optional .check-field { margin-top: .5rem; font-size: .89rem; }
.checker .check-help,
.checker .check-mode,
.checker .check-source-note,
.checker .check-status,
.checker .check-identity,
.checker .check-fieldtest { font-size: .88rem; line-height: 1.5; }
.checker .check-status:not(:empty) {
  margin: .8rem 0;
  padding: .75rem .9rem;
  border-left: 3px solid #8faa76;
  border-radius: 0 7px 7px 0;
  background: #eef4e9;
  color: #284c3e;
}
.checker .check-status:empty,
.checker .check-source-note:empty { display: none; }
.checker .check-identity { color: var(--teal, #075946); margin: 0 0 .55rem; font-weight: 650; }
.checker .check-source-note:not(:empty) { margin: .45rem 0; overflow-wrap: anywhere; }
.check-actions { margin-top: .9rem; }
.check-results { border-top: 1px solid var(--line, #cfdcd4); padding-top: 1rem; margin-top: 1.1rem; }
.check-results h3,
.check-monitor h3 { font-size: 1.33rem; letter-spacing: -.035em; line-height: 1.2; }
.check-question {
  margin: .6rem 0;
  padding: .55rem .85rem;
  border-left: 3px solid #86ab92;
  color: var(--ink, #182d2b);
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.check-engines { display: grid; gap: .75rem; margin-top: 1rem; }
.check-engine { min-width: 0; border: 1px solid var(--line, #cfdcd4); border-radius: 12px; padding: 1rem; }
.check-engine-head { justify-content: space-between; }
.check-engine h4 { font-size: 1rem; line-height: 1.3; }
.check-badge {
  color: #4b5b53;
  background: #eef1ee;
  border-radius: 99px;
  padding: .21rem .5rem;
  font-size: .77rem;
  font-weight: 630;
}
.check-badge.check-ready { color: #224c23; background: #e4f0da; }
.check-engine .check-mode { margin-top: .15rem; }
.check-engine .check-help { margin-top: .55rem; }
.check-answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: .7rem 0 .35rem;
  color: var(--ink, #182d2b);
  line-height: 1.52;
}
.check-answer mark,
.check-excerpt mark {
  border-radius: .2rem;
  padding: .04em .12em;
  color: #1c3a20;
  background: #def5a1;
}
.checker details.check-more { margin: .65rem 0 .35rem; border: 0; }
.checker .check-more summary { display: block; padding: 0; }
.check-more summary::-webkit-details-marker { display: none; }
.check-excerpt {
  display: block;
  color: var(--ink, #182d2b);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-weight: 450;
}
.check-open-label,
.check-close-label { color: var(--teal, #075946); font-size: .88rem; text-decoration: underline; text-underline-offset: .2em; }
.check-more:not([open]) .check-close-label,
.check-more[open] .check-open-label,
.check-more[open] .check-excerpt { display: none; }
.check-source-list { border-top: 1px solid var(--line, #cfdcd4); margin-top: .75rem; padding-top: .6rem; font-size: .85rem; }
.check-source-list span { font-weight: 645; }
.check-source-list a { max-width: 100%; overflow-wrap: anywhere; }
.check-monitor {
  margin-top: 1.25rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border-radius: 14px;
  background: #edf3e7;
}
.check-monitor h3 + p { margin-top: .4rem; }
.check-monitor form { margin-top: .75rem; }
.check-monitor .check-help { margin-top: .55rem; }
.check-monitor .check-status { margin-bottom: 0; }
.check-foot { margin-top: .5rem; }
.checker .check-fieldtest { margin-top: 1rem; }
@container ai-check (min-width: 37rem) {
  .check-monitor form { display: grid; grid-template-columns: minmax(13rem, 1fr) auto; column-gap: .7rem; align-items: end; }
  .check-monitor .check-field input { margin-bottom: 0; }
  .check-monitor .check-help { grid-column: 1 / -1; }
}
@container ai-check (max-width: 24rem) {
  .check-entry > .button,
  .check-monitor .button { width: 100%; }
  .check-engine { padding: .8rem; }
}
