/* X Check shares the Academy palette and owns only its local interface. */
.xcheck { max-width: 1024px; margin: 0 auto; color: var(--ink); font-size: 14px; line-height: 1.75; }
.xcheck *, .xcheck *::before, .xcheck *::after { box-sizing: border-box; }
.xcheck [hidden] { display: none !important; }
.xcheck h1, .xcheck h2, .xcheck h3, .xcheck h4, .xcheck p { margin: 0; }
.xcheck h1 { font-size: 36px; font-weight: 600; letter-spacing: -.045em; line-height: 1.4; }
.xcheck h2 { font-size: 22px; font-weight: 600; line-height: 1.5; letter-spacing: -.025em; }
.xcheck h3 { font-size: 16px; font-weight: 600; line-height: 1.6; }
.xcheck h4 { font-size: 14px; font-weight: 550; }
.xcheck button, .xcheck input, .xcheck select { font: inherit; }
.xcheck button { cursor: pointer; }
.xcheck button:disabled { cursor: wait; opacity: .6; }
.xcheck button, .xcheck input, .xcheck select, .xcheck summary { -webkit-tap-highlight-color: transparent; }
.xcheck :is(button,input,select,summary,a):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.xcheck a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.xcheck-heading { margin-bottom: 34px; }
.xcheck .xcheck-kicker { font-size: 10px; letter-spacing: 1.8px; color: var(--muted); margin-bottom: 12px; }
.xcheck-heading > p:last-child { color: var(--muted); margin-top: 12px; }
.xcheck-search-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 200px) auto; gap: 14px; align-items: end; }
.xcheck-input-field, .xcheck-network-field { min-width: 0; }
.xcheck-search-form label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 9px; }
.xcheck-search-form label span { color: var(--muted); font-weight: 400; }
.xcheck-search-form input, .xcheck-search-form select { display: block; width: 100%; min-width: 0; height: 50px; padding: 0 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); font-size: 13px; }
.xcheck-search-form select { padding-right: 24px; text-overflow: ellipsis; }
.xcheck-search-form input::placeholder { color: var(--muted); }
.xcheck-submit { display: flex; justify-content: center; align-items: center; gap: 18px; height: 50px; padding: 0 22px; border: 1px solid var(--accent-solid); border-radius: 7px; background: var(--accent-solid); color: var(--accent-on); white-space: nowrap; font-size: 13px !important; font-weight: 550 !important; }
.xcheck-submit:hover { background: var(--accent-hover); }
.xcheck .xcheck-note { color: var(--muted); font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
#xcheck-search-help { margin-top: 12px; }
.xcheck-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 17px; color: var(--muted); font-size: 11px; }
.xcheck-shortcuts > span { margin-right: 2px; }
.xcheck-shortcuts button { min-height: 32px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; }
.xcheck-shortcuts button:hover { color: var(--ink); border-color: var(--border-strong); }
#xcheck-network-note { margin-top: 13px; font-size: 11px; }
.xcheck-network-limitations { margin-top: 9px; }
.xcheck-network-limitations > summary { cursor: pointer; color: var(--muted); }
.xcheck-network-limitations .xcheck-notices { margin: 8px 0 0; font-size: 11px; }
.xcheck-network-limitations .xcheck-notices li { margin-bottom: 5px; }
.xcheck-inline-button { padding: 0 4px; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.xcheck-status { margin-top: 28px; min-height: 20px; color: var(--muted); font-size: 12px; }
#xcheck-output { margin-top: 16px; }
.xcheck-empty, .xcheck-loading, .xcheck-error { padding: 48px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.xcheck-empty h2, .xcheck-error h2 { margin: 20px 0 10px; font-size: 19px; }
.xcheck-empty > p, .xcheck-error > p { color: var(--muted); font-size: 13px; margin-top: 9px; }
.xcheck-empty .xcheck-lights, .xcheck-error .xcheck-lights { margin: 0 auto; }
.xcheck-error .xcheck-plain-button { margin-top: 22px; }
.xcheck-loading > p { margin-top: 12px; }
.xcheck-spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--muted); border-radius: 50%; animation: xcheck-spin 1s linear infinite; }
@keyframes xcheck-spin { to { transform: rotate(360deg); } }
.xcheck-search-results > header { margin: 25px 0 18px; }
.xcheck-search-results > header p { margin-top: 8px; }
.xcheck-candidate-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.xcheck-candidate-list > li { border-bottom: 1px solid var(--line); }
.xcheck-candidate { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 20px 12px; text-align: left; background: transparent; color: var(--ink); border: 0; border-radius: 0; }
.xcheck-candidate:hover { background: var(--surface-soft); }
.xcheck-candidate-highlight { background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--border-strong); border-radius: 6px; }
.xcheck-candidate-highlight:hover { background: var(--accent-soft); }
.xcheck-match-label { display: block; width: fit-content; color: var(--ink); font-size: 10px; font-weight: 600; margin-bottom: 8px; }
.xcheck-match-reason { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.xcheck-candidate:focus-visible { outline-offset: -3px; }
.xcheck-candidate-copy { display: block; min-width: 0; }
.xcheck-asset-name { display: block; font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.xcheck-asset-name small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 7px; }
.xcheck-asset-meta { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.xcheck-address { display: block; margin-top: 7px; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; word-break: break-word; }
.xcheck-no-address { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.xcheck-candidate-arrow { flex: none; color: var(--muted); font-size: 16px; }
.xcheck-report { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.xcheck-report-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.xcheck-report-header > div { min-width: 0; }
.xcheck-report-header .xcheck-kicker { margin-bottom: 8px; }
.xcheck-assessment-label { display: inline-block; margin-left: 9px; padding-left: 10px; border-left: 1px solid var(--border-strong); font-size: 10px; font-weight: 400; letter-spacing: 0; overflow-wrap: anywhere; }
.xcheck-report-header h2 { overflow-wrap: anywhere; }
.xcheck-report-header h2 > span { color: var(--muted); font-size: 13px; font-weight: 400; padding-left: 7px; }
.xcheck-plain-button { flex: none; min-height: 38px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 12px !important; }
.xcheck-plain-button:hover { background: var(--surface-soft); border-color: var(--border-strong); }
.xcheck-verdict { display: flex; align-items: center; gap: 22px; padding: 28px; margin-top: 26px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.xcheck-lights { display: flex; align-items: center; flex: none; gap: 10px; width: max-content; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.xcheck-light { width: 20px; height: 20px; border-radius: 50%; background: var(--line); border: 1px solid var(--border-strong); opacity: .65; }
.xcheck-light[data-lit="true"] { opacity: 1; border-color: transparent; }
.xcheck-light[data-color="red"][data-lit="true"] { background: var(--red); }
.xcheck-light[data-color="yellow"][data-lit="true"] { background: var(--warning); }
.xcheck-light[data-color="green"][data-lit="true"] { background: var(--positive); }
.xcheck .xcheck-risk-label { color: var(--muted); font-size: 24px; font-weight: 600; margin: 0; line-height: 1.5; }
.xcheck-verdict[data-risk="red"] .xcheck-risk-label { color: var(--red); }
.xcheck-verdict[data-risk="yellow"] .xcheck-risk-label { color: var(--warning); }
.xcheck-verdict[data-risk="green"] .xcheck-risk-label { color: var(--positive); }
.xcheck .xcheck-scope { margin-top: 15px; font-size: 12px; color: var(--ink); }
.xcheck-scope + .xcheck-note { margin-top: 7px; }
.xcheck-report-meta { display: flex; flex-wrap: wrap; gap: 5px 22px; padding: 15px 0 0; color: var(--muted); font-size: 11px; }
.xcheck-variants { margin-top: 30px; }
.xcheck-variants > p { margin-top: 7px; margin-bottom: 16px; }
.xcheck-findings-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; margin-top: 34px; }
.xcheck-findings-grid section { min-width: 0; }
.xcheck-findings { margin: 16px 0 0; padding: 0; list-style: none; }
.xcheck-findings > li { padding: 0 0 19px; margin: 0 0 19px; border-bottom: 1px solid var(--line); }
.xcheck-finding-top { display: flex; align-items: baseline; gap: 9px; }
.xcheck-finding-top h4 { overflow-wrap: anywhere; }
.xcheck-severity { flex: none; font-size: 10px; font-weight: 500; color: var(--muted); }
.xcheck-severity[data-severity="red"] { color: var(--red); }
.xcheck-severity[data-severity="yellow"] { color: var(--warning); }
.xcheck-findings li > p, .xcheck-checks li > p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 7px; overflow-wrap: anywhere; }
.xcheck .xcheck-evidence { color: var(--subtle); font-size: 10px; margin-top: 7px; }
.xcheck-actions ul, .xcheck-notices { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.xcheck-actions li, .xcheck-notices li { padding-left: 3px; margin-bottom: 11px; overflow-wrap: anywhere; }
.xcheck-notices { margin: 12px 0 18px; font-size: 12px; }
.xcheck-metrics-section { margin-top: 15px; }
.xcheck-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin: 17px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.xcheck-metrics > div { min-width: 0; }
.xcheck-metrics dt { color: var(--muted); font-size: 11px; }
.xcheck-metrics dd { margin: 7px 0 0; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.xcheck-gaps { margin-top: 28px; }
.xcheck-detail { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 17px 0; }
.xcheck-detail + .xcheck-detail { border-top: 0; margin-top: 0; }
.xcheck-detail summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 500; padding-right: 4px; }
.xcheck-detail summary > span { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 13px; }
.xcheck-detail[open] summary { margin-bottom: 20px; }
.xcheck-checks, .xcheck-sources { list-style: none; padding: 0; margin: 0; }
.xcheck-checks > li, .xcheck-sources > li { border-top: 1px solid var(--line); padding: 15px 0; }
.xcheck-checks > li:first-child, .xcheck-sources > li:first-child { border-top: 0; padding-top: 0; }
.xcheck-check-top, .xcheck-source-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.xcheck-check-top > h4, .xcheck-source-top strong { min-width: 0; overflow-wrap: anywhere; }
.xcheck-check-state, .xcheck-source-top > span { color: var(--muted); font-size: 11px; flex: none; }
.xcheck-check-state[data-state="risk"] { color: var(--red); }
.xcheck-source-top strong { font-size: 12px; font-weight: 500; }
.xcheck-sources p { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 7px; }
.xcheck-more-title { margin-top: 18px !important; }
@media (max-width: 760px) {
  .xcheck h1 { font-size: 29px; }
  .xcheck-heading { margin-bottom: 27px; }
  .xcheck-heading > p:last-child { font-size: 13px; }
  .xcheck-search-form { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; }
  .xcheck-input-field { grid-column: 1 / -1; }
  .xcheck-search-form select { height: 46px; }
  .xcheck-submit { height: 46px; padding: 0 18px; }
  .xcheck-findings-grid { grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 28px; }
  .xcheck-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .xcheck-metrics-section { margin-top: 25px; }
  .xcheck-verdict { gap: 17px; padding: 22px 18px; }
  .xcheck-report-header { gap: 14px; }
  .xcheck-report-header h2 { font-size: 20px; }
}
@media (max-width: 420px) {
  .xcheck h1 { font-size: 27px; }
  .xcheck h2 { font-size: 19px; }
  .xcheck-search-form { grid-template-columns: minmax(0, 1fr); }
  .xcheck-submit { width: 100%; }
  .xcheck-search-form input, .xcheck-search-form select { font-size: 12px; }
  .xcheck-shortcuts { gap: 6px; }
  .xcheck-shortcuts button { padding: 3px 10px; }
  .xcheck-report-header { flex-wrap: wrap; }
  .xcheck-verdict { display: block; padding: 20px 17px; }
  .xcheck-verdict .xcheck-lights { margin-bottom: 15px; }
  .xcheck .xcheck-risk-label { font-size: 22px; }
  .xcheck-candidate { padding: 18px 3px; gap: 10px; }
  .xcheck-candidate.xcheck-candidate-highlight { padding: 18px 12px; }
  .xcheck-candidate-copy { max-width: calc(100% - 26px); }
  .xcheck-detail summary > span { display: block; margin: 6px 0 0 17px; }
  .xcheck-empty, .xcheck-error, .xcheck-loading { padding: 34px 12px; }
  .xcheck-check-top, .xcheck-source-top { flex-wrap: wrap; gap: 3px 12px; }
  .xcheck-metrics dd { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .xcheck-spinner { animation: none; } }
.xcheck-variants > summary { cursor: pointer; font-size: 15px; font-weight: 550; }
.xcheck-variants > summary > span { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 9px; }
.xcheck-variants[open] > summary { margin-bottom: 12px; }
.xcheck-verdict:has(.xcheck-verdict-reason) { flex-wrap: wrap; row-gap: 14px; }
.xcheck-verdict-reason { flex-basis: 100%; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 780px; }
.xcheck-identity-source { margin: 12px 0 0; max-width: 720px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.xcheck-identity-source a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
