/* axis-check.css: the AXIS Agent Checker. Colours come from citerank.css
   tokens only (the -ink variants are the AA-contrast text versions). */

.ax-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px 80px; }
.ax-head { padding: 24px 0 8px; }
.ax-h1 { font-size: 1.4375rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; margin: 0 0 6px; }
.ax-h2 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.ax-sub { font-size: .9375rem; color: var(--text-2); line-height: 1.55; margin: 0; max-width: 760px; }
.ax-sub a, .ax-method a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ── form ─────────────────────────────────────────────────────────────── */
.ax-form { margin: 18px 0 22px; padding: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg, 12px); }
.ax-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--text-2); margin: 0 0 6px; padding: 0; }
.ax-input { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r, 8px); padding: 10px 12px; font: inherit; font-size: .9375rem; }
.ax-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea.ax-input { resize: vertical; min-height: 56px; }
.ax-scenarios { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.ax-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-chip { appearance: none; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: .875rem; cursor: pointer; min-height: 36px; }
.ax-chip:hover { border-color: var(--border-strong, var(--border-2)); color: var(--text); }
.ax-chip[aria-checked="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.ax-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ax-custom { margin-top: 12px; }
.ax-prompt { font-size: .8125rem; color: var(--text-3); line-height: 1.5; margin: 10px 0 0; min-height: 1.2em; }
.ax-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.ax-btn { appearance: none; border: 0; background: var(--accent-strong); color: #fff; font: inherit; font-weight: 700; font-size: .9375rem;
  padding: 11px 20px; border-radius: var(--r, 8px); cursor: pointer; min-height: 44px; }
.ax-btn:disabled { opacity: .6; cursor: progress; }
.ax-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ax-btn.ghost { background: transparent; color: var(--accent-ink); border: 1px solid var(--border); font-weight: 600; }
.ax-hint { flex: 1; min-width: 240px; font-size: .8125rem; color: var(--text-2); margin: 0; line-height: 1.5; }
.ax-status { font-size: .875rem; color: var(--text-2); margin: 12px 0 0; min-height: 1.2em; }
.ax-status.err { color: var(--red-ink); }

/* ── live run ─────────────────────────────────────────────────────────── */
.ax-live { margin: 0 0 24px; }
.ax-bar { height: 6px; background: var(--bg-card2, var(--bg-card)); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.ax-bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
.ax-steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--r-lg, 12px); background: var(--bg-card); max-height: 520px; overflow: auto; }
.ax-step { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 10px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: .875rem; }
.ax-step:first-child { border-top: 0; }
.ax-step-n { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: .75rem; padding-top: 2px; }
.ax-step-l { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.ax-step-m { color: var(--text-3); font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ax-step-t { grid-column: 2 / 4; color: var(--text-2); font-size: .8125rem; line-height: 1.45; overflow-wrap: anywhere; }
.ax-step.err .ax-step-l { color: var(--red-ink); }
.ax-step.sub .ax-step-l { color: var(--green-ink); }
.ax-step.model .ax-step-l { font-weight: 500; color: var(--text-2); }
.ax-step-audit { grid-column: 2 / 4; font-size: .75rem; color: var(--text-3); }
.ax-tag { display: inline-block; font-size: .6875rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 4px; margin-left: 6px; border: 1px solid var(--border); color: var(--text-3); vertical-align: 1px; }
.ax-tag.service { color: var(--accent-ink); }
.ax-tag.agent { color: var(--purple-ink); }
.ax-tag.environment { color: var(--amber-ink); }

/* ── report ───────────────────────────────────────────────────────────── */
.ax-hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-lg, 12px); margin-bottom: 16px; }
.ax-ring { --v: 0; --c: var(--accent); width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--bg-card2, var(--border)) 0); }
.ax-ring-in { width: 104px; height: 104px; border-radius: 50%; background: var(--bg-card); display: grid; place-items: center; text-align: center; }
.ax-ring-n { font-size: 2.25rem; font-weight: 800; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.ax-ring-b { font-size: .75rem; color: var(--text-2); margin-top: 4px; text-transform: capitalize; }
.ax-verdict { font-size: 1.0625rem; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.ax-answer { font-size: .9375rem; color: var(--text-2); line-height: 1.55; margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ax-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8125rem; color: var(--text-3); margin: 0; padding: 0; list-style: none; }
.ax-notice { font-size: .8125rem; color: var(--amber-ink); margin: 8px 0 0; }

.ax-dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ax-dim { padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg, 12px); }
.ax-dim-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ax-dim-name { font-size: .8125rem; font-weight: 700; color: var(--text-2); }
.ax-dim-w { font-size: .75rem; color: var(--text-3); }
.ax-dim-n { font-size: 1.75rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; margin: 4px 0 8px; }
.ax-dim-what { font-size: .75rem; color: var(--text-3); line-height: 1.4; margin: 0 0 10px; }
.ax-sub-row { display: grid; grid-template-columns: 74px 1fr 30px; gap: 6px; align-items: center; font-size: .75rem; color: var(--text-2); margin-top: 4px; }
.ax-sub-bar { height: 5px; border-radius: 999px; background: var(--bg-card2, var(--border)); overflow: hidden; }
.ax-sub-bar i { display: block; height: 100%; background: var(--accent); }
.ax-sub-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.ax-card { padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg, 12px); margin-bottom: 16px; }
.ax-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ax-table th { text-align: left; font-size: .75rem; font-weight: 600; color: var(--text-3); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.ax-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); line-height: 1.45; }
.ax-table tr:last-child td { border-bottom: 0; }
.ax-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ax-why { color: var(--text-2); font-size: .8125rem; margin-top: 3px; }
.ax-g-hi { color: var(--green-ink); font-weight: 700; }
.ax-g-mid { color: var(--amber-ink); font-weight: 700; }
.ax-g-lo { color: var(--red-ink); font-weight: 700; }

.ax-patterns { list-style: none; margin: 0; padding: 0; }
.ax-pattern { padding: 10px 0; border-top: 1px solid var(--border); font-size: .875rem; color: var(--text); line-height: 1.5; }
.ax-pattern:first-child { border-top: 0; padding-top: 0; }
.ax-sev { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-right: 8px; }
.ax-sev.high { color: var(--red-ink); } .ax-sev.medium { color: var(--amber-ink); } .ax-sev.low { color: var(--text-3); }
.ax-ids { color: var(--text-3); font-size: .75rem; }
.ax-empty { color: var(--text-2); font-size: .875rem; margin: 0; }

.ax-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }

.ax-hist { display: flex; gap: 8px; flex-wrap: wrap; }
.ax-hist a { display: block; min-width: 132px; padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r, 8px);
  color: var(--text); text-decoration: none; font-size: .8125rem; }
.ax-hist a:hover, .ax-hist a:focus-visible { border-color: var(--accent); }
.ax-hist b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.ax-hist span { color: var(--text-3); display: block; }

.ax-method { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .875rem; color: var(--text-2); line-height: 1.6; }
.ax-method p { margin: 0 0 10px; max-width: 780px; }
.ax-credit { color: var(--text-3); font-size: .8125rem; }

@media (max-width: 760px) {
  .ax-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-hero { grid-template-columns: 1fr; justify-items: start; }
  .ax-table th:nth-child(2), .ax-table td:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ax-bar-fill { transition: none; } }
