/* ── v2-report.css — results kit (2026-10-21) ──
   One look for tool results (v2-tool.css .report, the sample report window):
     .rp            one bordered panel; sections inside are split by hairlines,
                    not by separate boxes
     .rp-bar        top line: crumb on the left, tags / actions on the right
     .rp-metrics    strip of key numbers (.rp-metric: label, value, verdict, track)
     .rp-note       one-line verdict / explanation under the strip
     .rp-tabs       tab row inside the panel
     .rp-split      two (or three) columns split by a hairline (.rp-col)
     .rp-sec        section title row (title left, status or action right)
     .rp-rows       label · bar · number rows
     .rp-table      table inside a panel (hairline rows, mono numbers)
     .rp-chip       small neutral tag; .rp-chip--good/--warn/--bad for status
     .rp-q          heading above a per-item panel (Q1 query, page, URL)
     .rp-alert      standalone box for a run error / warning outside a panel
                    (.rp-alert--warn / --bad): neutral text, colour on the icon
                    and the frame only
   Colour rule: numbers stay in --text. Only the verdict word, the track and
   status chips carry --good / --warn / --bad. Zero is never coloured. */

.rp { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg-raised); overflow: hidden; text-align: left; }
.rp + .rp { margin-top: 16px; }
.rp-q + .rp { margin-top: 12px; }

.rp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.rp-bar b { color: var(--text); font-weight: 500; }
.rp-bar-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rp-bar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.rp-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 12.5px; line-height: 1; color: var(--text-2); white-space: nowrap; }
.rp-chip svg { width: 12px; height: 12px; flex: none; }
.rp-chip--good { color: var(--good); border-color: rgba(var(--good-rgb), 0.35); }
.rp-chip--warn { color: var(--warn); border-color: rgba(var(--warn-rgb), 0.35); }
.rp-chip--bad { color: var(--bad); border-color: rgba(var(--bad-rgb), 0.35); }
.rp-chip--accent { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.35); }
.rp-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: none; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.rp-btn:hover { background: var(--bg-hover); color: var(--text); }

.rp-metrics { display: grid; grid-template-columns: repeat(var(--rp-cols, 4), minmax(0, 1fr)); }
.rp-metric { padding: 20px 20px 22px; min-width: 0; }
.rp-metric + .rp-metric { border-left: 1px solid var(--line); }
.rp-metric-label { font-size: 13px; color: var(--text-3); }
.rp-metric-value { margin-top: 10px; font-family: var(--mono); font-size: 34px; line-height: 1; letter-spacing: -0.04em; color: var(--text); }
.rp-metric-value small { margin-left: 4px; font-size: 15px; letter-spacing: 0; color: var(--text-3); }
.rp-metric-verdict { margin-top: 8px; font-size: 13.5px; color: var(--text-2); }
.rp-metric-track { margin-top: 14px; height: 4px; border-radius: 2px; background: rgba(var(--fg-rgb), 0.07); overflow: hidden; }
.rp-metric-track i { display: block; height: 100%; border-radius: 2px; background: var(--text-3); }
.is-good { color: var(--good); } .is-warn { color: var(--warn); } .is-bad { color: var(--bad); }
.rp-metric-track i.is-good { background: var(--good); } .rp-metric-track i.is-warn { background: var(--warn-fill, var(--warn)); } .rp-metric-track i.is-bad { background: var(--bad); } .rp-metric-track i.is-accent { background: var(--accent); }

.rp-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.rp-note b { color: var(--text); font-weight: 500; }
.rp-note > svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--text-3); }

.rp-tabs { display: flex; gap: 2px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.rp-tabs::-webkit-scrollbar { display: none; }
.rp-tab { padding: 5px 10px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; font-size: 13px; color: var(--text-3); cursor: pointer; }
.rp-tab:hover { color: var(--text); }
.rp-tab.is-active { background: var(--bg-hover); color: var(--text); }

.rp-split { display: grid; grid-template-columns: var(--rp-split, 1fr 1fr); }
.rp-col { padding: 20px; min-width: 0; }
.rp-col + .rp-col { border-left: 1px solid var(--line); }
.rp > .rp-split + *, .rp > * + .rp-split { border-top: 1px solid var(--line); }
.rp-pad { padding: 20px; }

.rp-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 13.5px; font-weight: 500; color: var(--text); }
.rp-sec small { margin-left: 4px; font-weight: 400; color: var(--text-3); }
/* title (+ small note) in the first <span>, status or action in .rp-sec-r */
.rp-sec .rp-sec-r { font-weight: 400; color: var(--text-3); font-size: 13px; }

.rp-rows { display: flex; flex-direction: column; }
.rp-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr 70px; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; color: var(--text-2); }
.rp-row-bar { height: 6px; border-radius: 3px; background: rgba(var(--fg-rgb), 0.06); overflow: hidden; }
.rp-row-bar i { display: block; height: 100%; border-radius: 3px; background: var(--text-3); }
.rp-row-n { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--text-3); }

.rp-legend { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; min-width: 0; }
.rp-legend-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.rp-legend-row i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.rp-legend-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-legend-row b { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text); }

.rp-table-wrap { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rp-table th { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 400; color: var(--text-3); text-align: left; white-space: nowrap; }
.rp-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.rp-table tr:last-child td { border-bottom: 0; }
.rp-table tbody tr:hover td { background: rgba(var(--fg-rgb), 0.02); }
.rp-table .num { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); text-align: right; white-space: nowrap; }
.rp-table th.num { text-align: right; }
.rp-table .rank { width: 1%; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.rp-table .main { color: var(--text); font-weight: 500; }
.rp-table .sub { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; color: var(--text-3); word-break: break-all; }
.rp-table .quote { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); font-style: italic; }
.rp-table tr.is-you td { background: rgba(var(--accent-rgb), 0.06); }
.rp-table tr.is-you .main { color: var(--accent); }

.rp-q { display: flex; align-items: center; gap: 10px; margin-top: 40px; font-size: 16px; font-weight: 500; color: var(--text); }
.rp-q > span:first-child { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text-3); }

@media (max-width: 860px) {
    .rp-metrics { grid-template-columns: 1fr 1fr; }
    .rp-metric:nth-child(odd) { border-left: 0; }
    .rp-metric:nth-child(n+3) { border-top: 1px solid var(--line); }
    .rp-split { grid-template-columns: 1fr; }
    .rp-col + .rp-col { border-left: 0; border-top: 1px solid var(--line); }
    .rp-metric-value { font-size: 28px; }
}
@media (max-width: 560px) {
    .rp-sec { flex-wrap: wrap; row-gap: 4px; }
    .rp-sec small { display: block; margin: 3px 0 0; }
    .rp-bar { flex-direction: column; align-items: flex-start; }
    .rp-bar-r { justify-content: flex-start; }
    .rp-legend { grid-template-columns: 1fr; }
    .rp-row { grid-template-columns: 90px 1fr 56px; }
    .rp-table th, .rp-table td { padding-left: 12px; padding-right: 12px; }
}

.rp-sep { border-top: 1px solid var(--line); }
.rp-row-bar i.is-good { background: var(--good); } .rp-row-bar i.is-warn { background: var(--warn-fill, var(--warn)); } .rp-row-bar i.is-bad { background: var(--bad); }
.rp-table .num.is-good, .rp-table .num .is-good { color: var(--good); }
.rp-table .num .is-warn { color: var(--warn); }
.rp-table .num .sub { font-family: var(--mono); }
.rp-metric-verdict .is-good, .rp-sec-r .is-good { color: var(--good); }
.rp-sec-r .is-bad { color: var(--bad); }
.rp-note > svg.is-good { color: var(--good); } .rp-note > svg.is-warn { color: var(--warn); } .rp-note > svg.is-bad { color: var(--bad); }

/* Standalone alert: a run error or a warning shown above / instead of a report.
   Same type as .rp-note (13.5 px, --text-2); status colour only on the icon and
   the frame, never on the text. */
.rp-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg-raised); font-size: 13.5px; line-height: 1.55; color: var(--text-2); text-align: left; }
.rp-alert > svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--text-3); }
.rp-alert > div { min-width: 0; overflow-wrap: anywhere; }
.rp-alert b, .rp-alert strong { color: var(--text); font-weight: 500; }
.rp-alert p { margin: 4px 0 0; }
.rp-alert--warn { border-color: rgba(var(--warn-rgb), 0.35); }
.rp-alert--warn > svg { color: var(--warn); }
.rp-alert--bad { border-color: rgba(var(--bad-rgb), 0.35); }
.rp-alert--bad > svg { color: var(--bad); }

/* Dropdown chevron in kit buttons: drawn as a centred mask instead of the
   ▾/▼ glyph, which sat below the text line in the site font */
.rp-btn .dropdown-arrow, .rp-btn .export-arrow { position: static; top: 0; display: inline-block; width: 10px; height: 10px; margin-left: 2px; font-size: 0; opacity: 0.7; transform: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
/* Panels that hold dropdown menus let them spill out */
.rp.rp--menus { overflow: visible; }
