/* Test-lab security tools: form + report styles. Loaded after styles.css and widgets.css; tokens only. */
.lab-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; max-width: 760px; align-items: stretch; }
.lab-form label { flex: 1 0 100%; font-weight: 700; color: var(--yellow); }
.lab-input {
  flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 0 22px; border-radius: 999px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line);
  font: 600 1.0625rem var(--body);
}
.lab-input::placeholder { color: var(--muted); }
.lab-input:focus-visible, .btn:focus-visible, .lab-sel:focus-visible, .lab-bar:focus-visible, .lab-linkbtn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.lab-input.is-mono { font-family: var(--mono); }
.lab-form .btn { flex: 0 0 auto; }
.lab-form .lab-small { flex: 1 1 200px; }
.btn[disabled] { opacity: .5; cursor: progress; transform: none; }
.lab-linkbtn { background: none; border: 0; color: var(--ink); font: 700 1rem var(--body); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; padding: 8px 4px; }
.lab-sel { min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 2px solid var(--line); font: 600 1rem var(--body); max-width: 100%; }
.lab-privacy { margin-top: clamp(40px, 5vw, 72px); padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-md); max-width: 76ch; }
.lab-privacy h2 { font-size: 1rem; font-weight: 800; color: var(--yellow); margin-bottom: 8px; }
.lab-privacy p { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.lab-privacy p + p { margin-top: 8px; }
.lab-privacy a { color: var(--ink); }
.lab-banner { display: inline-block; margin-top: 18px; padding: 4px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .875rem; }

.lab-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); font-weight: 700; font-size: .8125rem; }
.lab-chip.is-hot { background: var(--orange); color: var(--on-light); }
.lab-chip.is-ok { background: var(--mint); color: var(--on-light); }
.lab-chip.is-bad { background: var(--red); color: var(--ink); }

/* Report card */
.lab-grade { display: grid; gap: clamp(12px, 1.5vw, 20px); grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
@media (min-width: 760px) { .lab-grade { grid-template-columns: 280px minmax(0, 1fr); } }
.lab-grade-tile { border-radius: var(--r-lg); padding: 28px; background: var(--yellow); color: var(--on-light); display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; }
.lab-grade-tile.is-ok { background: var(--mint); }
.lab-grade-tile.is-mid { background: var(--yellow); }
.lab-grade-tile.is-warn { background: var(--orange); }
.lab-grade-tile.is-bad { background: var(--red); color: var(--ink); }
.lab-grade-letter { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(7rem, 5rem + 8vw, 11rem); line-height: .8; }
.lab-grade-say { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.lab-grade-sum { background: var(--surface); border-radius: var(--r-lg); padding: 28px; }
.lab-grade-sum h2 { font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: .9; overflow-wrap: anywhere; }
.lab-grade-sum p { color: var(--ink-soft); margin-top: 12px; }
.lab-rows { display: grid; gap: 12px; margin-top: 12px; }
.lab-row { background: var(--surface); border-radius: var(--r-md); padding: 20px 24px; display: grid; gap: 8px; min-width: 0; }
.lab-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.lab-row-head h3 { font-weight: 800; font-size: 1.25rem; font-stretch: 90%; }
.lab-row p { color: var(--ink-soft); overflow-wrap: anywhere; }
.lab-row .fix { color: var(--yellow); font-weight: 600; }
.lab-row code, .lab-code { font-family: var(--mono); font-size: .875rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: block; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--ink-soft); }
.lab-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .8125rem; }
.lab-pill.pass { background: var(--mint); color: var(--on-light); }
.lab-pill.warn { background: var(--orange); color: var(--on-light); }
.lab-pill.fail { background: var(--red); color: var(--ink); }
.lab-pill.info { background: var(--surface-2); color: var(--ink-soft); }

/* Pwned: what left the machine */
.lab-flow { display: grid; gap: 12px; margin-top: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .lab-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lab-step { background: var(--surface); border-radius: var(--r-lg); padding: 24px; min-width: 0; display: grid; gap: 10px; align-content: start; }
.lab-step h3 { font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 1.75rem; line-height: .9; }
.lab-step.is-sent { background: var(--yellow); color: var(--on-light); }
.lab-step.is-sent .lab-code { background: var(--on-light); color: var(--yellow); border-color: var(--on-light); }
.lab-step p { overflow-wrap: anywhere; }
.lab-hash { font-family: var(--mono); font-size: 1rem; word-break: break-all; line-height: 1.5; }
.lab-hash .sent { background: var(--yellow); color: var(--on-light); padding: 1px 3px; border-radius: 4px; font-weight: 700; }
.lab-hash .kept { color: var(--muted); }
.lab-verdict { margin-top: 12px; border-radius: var(--r-lg); padding: 28px; font-weight: 800; font-size: var(--t-lede); line-height: 1.2; }
.lab-verdict.is-bad { background: var(--red); color: var(--ink); }
.lab-verdict.is-ok { background: var(--mint); color: var(--on-light); }
.lab-verdict small { display: block; margin-top: 10px; font-weight: 600; font-size: 1rem; }

/* Forecast */
.lab-wx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 24px; }
@media (min-width: 900px) { .lab-wx { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lab-wx li { background: var(--surface); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.lab-wx .pct { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 4.5rem; line-height: .85; }
.lab-wx .pct.is-hot { color: var(--red); } .lab-wx .pct.is-warm { color: var(--orange); } .lab-wx .pct.is-mild { color: var(--yellow); } .lab-wx .pct.is-clear { color: var(--mint); }
.lab-wx .cond { font-weight: 800; }
.lab-wx h3 { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 1.75rem; line-height: .95; overflow-wrap: anywhere; }
.lab-wx p { color: var(--ink-soft); overflow-wrap: anywhere; }
.lab-meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.lab-meter span { display: block; height: 100%; background: var(--yellow); }
.lab-wx a { color: var(--ink); font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* IP */
.lab-kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--surface); border-radius: var(--r-md); overflow: hidden; margin-top: 12px; }
.lab-kv div { padding: 16px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.lab-kv dt { color: var(--muted); font-size: .875rem; font-weight: 700; }
.lab-kv dd { font-weight: 700; font-size: 1.125rem; overflow-wrap: anywhere; }

/* Breaches */
.lab-bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; background: var(--surface); border-radius: var(--r-md); padding: 16px; margin-top: 24px; overflow-x: auto; }
.lab-bar { flex: 1 0 18px; min-width: 18px; background: var(--yellow); border: 0; border-radius: 4px 4px 0 0; cursor: pointer; padding: 0; position: relative; }
.lab-bar.is-on { background: var(--orange); outline: 2px solid var(--ink); }
.lab-bar:hover { background: var(--ink); }
.lab-bars-x { display: flex; justify-content: space-between; color: var(--muted); font-size: .8125rem; font-weight: 700; margin-top: 8px; }
.lab-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.lab-filters label { color: var(--muted); font-weight: 700; font-size: .9375rem; display: grid; gap: 6px; }
.lab-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-more { margin-top: 24px; }
.lab-attr { color: var(--muted); font-size: .9375rem; margin-top: 28px; max-width: 70ch; }
.lab-attr a { color: var(--ink); }
.lab-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
