:root {
  --ink: #163c50;
  --blue: #075e78;
  --muted: #486575;
  --paper: #f4f8fc;
  --line: #c6d7e5;
  --focus: #ad560d;
  font: 16px/1.55 "Segoe UI", Calibri, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 3px; }
:is(a,button,input,textarea,summary,[tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: absolute; left: 20px; top: -100px; background: white; padding: 12px; z-index: 2; }
.skip:focus { top: 12px; }
.site-header, main, footer { width: min(100%, 1120px); margin: auto; padding-inline: 40px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.brand img { display: block; width: 170px; height: auto; }
.site-header > a:last-child { font-weight: 650; }
.intro { display: grid; grid-template-columns: 1fr 250px; align-items: end; gap: 42px; padding-block: 44px 34px; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 56px); line-height: 1.1; letter-spacing: -1.8px; }
.lede { font-size: 19px; color: var(--muted); margin: 16px 0 0; }
.privacy-note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 18px; margin: 0; }
.notice { border-left: 4px solid var(--focus); padding: 14px 18px; background: white; }
.mode-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
button { font: inherit; font-weight: 650; border: 1px solid var(--blue); border-radius: 6px; padding: 11px 20px; background: var(--blue); color: white; cursor: pointer; }
button:hover:enabled { filter: brightness(.9); }
button:disabled { cursor: not-allowed; opacity: .5; }
.mode-tabs button { background: transparent; color: var(--muted); border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 18px; }
.mode-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
label { display: block; font-weight: 700; }
.help { color: var(--muted); font-size: 14px; margin: 6px 0 14px; max-width: 75ch; }
textarea, input { display: block; width: 100%; font: inherit; border: 1px solid var(--muted); border-radius: 8px; padding: 16px; color: var(--ink); background: white; }
textarea { min-height: 230px; resize: vertical; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
.input-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; }
#paste-count, #preview-count { font-size: 14px; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.status { font-size: 14px; color: var(--muted); min-height: 1.55em; margin: 10px 0 0; }
#url-form input { margin-block: 10px 14px; }
#turnstile-widget:empty { display: none; }
#verification-note { margin-top: 0; }
.url-actions { display: flex; align-items: center; gap: 12px; }
.url-actions .secondary { margin-top: 0; }
#preview-panel { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
#preview-title { margin: 0; font-size: 24px; }
#preview-source { color: var(--muted); overflow-wrap: anywhere; margin: 8px 0 20px; }
#analysis-status:empty { display: none; }
#result { margin-top: 36px; padding: 32px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.result-heading { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; margin-bottom: 26px; }
#score { font-size: clamp(30px, 4vw, 48px); font-weight: 750; line-height: 1.1; letter-spacing: -1.8px; color: var(--blue); margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
#verdict { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.8px; margin: 0; }
#evidence-strength { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
#vibe-meter { --score: 0%; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; height: 26px; border-radius: 4px; }
#vibe-meter span { background: var(--blue); border-radius: 2px; }
#vibe-meter span:nth-child(1) { opacity: .12; }
#vibe-meter span:nth-child(2) { opacity: .28; }
#vibe-meter span:nth-child(3) { opacity: .46; }
#vibe-meter span:nth-child(4) { opacity: .7; }
#vibe-meter::after { content: ""; position: absolute; top: -5px; bottom: -5px; width: 4px; background: var(--focus); border: 1px solid white; left: clamp(0px, var(--score), calc(100% - 4px)); transition: left 350ms ease-out; }
.meter-labels { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; color: var(--muted); margin-top: 9px; }
#result-limit { max-width: 76ch; font-size: 15px; color: var(--muted); margin: 22px 0 28px; }
.finding-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
h3 { font-size: 19px; margin: 0 0 18px; }
#result ul { list-style: none; padding: 0; margin: 0; }
.finding { margin-bottom: 25px; }
.finding-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; font-size: 16px; }
.contribution { flex: none; font-weight: 650; color: var(--blue); font-variant-numeric: tabular-nums; }
.finding p { font-size: 14px; margin: 7px 0 0; color: var(--muted); max-width: 70ch; }
.finding .measurement { font-size: 12px; }
.empty-findings { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
details { border-top: 1px solid var(--line); padding-block: 18px; }
summary { width: fit-content; cursor: pointer; font-weight: 650; }
details[open] > summary { margin-bottom: 18px; }
#highlighted-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 480px; overflow-y: auto; padding: 16px; line-height: 1.8; background: var(--paper); border-radius: 6px; }
mark { color: var(--ink); background: #c6d7e5; text-decoration: underline; text-decoration-color: var(--focus); text-underline-offset: 3px; }
.secondary { color: var(--blue); background: white; margin-top: 8px; }
.rubric { margin-block: 30px 44px; }
.rubric p { max-width: 76ch; color: var(--muted); font-size: 15px; }
.verdict-bands { font-size: 14px; }
.verdict-bands div { display: flex; gap: 18px; margin-block: 6px; }
.verdict-bands dt { width: 60px; flex: none; font-weight: 650; }
.verdict-bands dd { margin: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 25px 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 700px) {
  .site-header, main, footer { padding-inline: 20px; }
  .brand img { width: 145px; }
  .intro { grid-template-columns: 1fr; gap: 22px; padding-block: 32px 28px; }
  .privacy-note { max-width: 38ch; }
  .lede { font-size: 17px; }
  .input-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .url-actions { align-items: stretch; flex-direction: column; }
  #result { padding: 22px 18px; margin-inline: -4px; }
  .result-heading { grid-template-columns: 1fr; gap: 16px; }
  #score { font-size: 40px; }
  .finding-columns { grid-template-columns: 1fr; gap: 4px; }
  footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #vibe-meter, #vibe-meter::after { transition: none; animation: none; }
}
