/* The risk score's scale and panel (risk-panel.js). Used by console pages and, at the end of a test, by the hosted page: only names that theme.css
   and hosted.css both define. */
.rp { display: grid; gap: 12px; text-align: left; }
.rp p, .rp h3, .rp ul { margin: 0; }
.rp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rp-score { color: var(--ink-2); }
.rp-score b { font-size: 40px; line-height: 1; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-d { padding: 3px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-weight: 650; }
.rp-d.allow { background: var(--ok-bg); color: var(--ok); } .rp-d.review { background: var(--warn-bg); color: var(--warn); } .rp-d.deny { background: var(--bad-bg); color: var(--bad); }
.rp-scale { min-width: 0; }
.rp-track { position: relative; height: 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-2); }
.rp-span { position: absolute; top: 0; bottom: 0; left: var(--from); width: calc(var(--to) - var(--from)); min-width: 4px; background: var(--accent); opacity: .55; transition: left .2s, width .2s; }
.rp-line { position: absolute; top: -4px; bottom: -4px; left: var(--at); width: 3px; margin-left: -1px; background: var(--warn); }
.rp-line.deny { background: var(--bad); }
.rp-mark { position: absolute; top: 50%; left: var(--at); width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 3px solid var(--surface); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.rp-ends { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.rp-ends b { color: var(--ink-2); font-weight: 600; }
.rp-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 28px; }
.rp-why h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.rp-why ul { list-style: none; padding: 0; }
.rp-why li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.rp-why li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-note { color: var(--muted); font-size: 14px; }
.rp-unsure { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); }
.rp-unsure b::before { content: "?"; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-right: .5em; border: 2px solid currentColor; border-radius: 50%; font-size: .8em; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .rp-span { transition: none; } }
