/* Composer › Review (agent_docs/model-review.md). Inside the Composer shell, so composer_benchmark_tokens.css supplies the
   colours and fonts. Every class carries rv- so nothing here touches the manager's own styles. */
.rv { display: flex; flex-direction: column; gap: 18px; min-width: 0; color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 1.5; }
.rv h1, .rv h2, .rv h3, .rv p, .rv figure { margin: 0; }
.rv a { color: var(--accent); }
.rv .rv-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rv .rv-small { font-size: .75rem; color: var(--muted); }
.rv .rv-sub { color: var(--muted); font-size: .86rem; max-width: 90ch; }
.rv .rv-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv .rv-row.spread { justify-content: space-between; }
.rv kbd { font-family: var(--mono); font-size: .68rem; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: var(--paper); color: var(--muted); }
.rv .t-good { color: var(--good); } .rv .t-warn { color: var(--warn); } .rv .t-gold { color: var(--gold); } .rv .t-mid { color: #aab3c2; } .rv .t-muted { color: var(--muted); } .rv .t-blue { color: var(--accent); }

/* Header: title, view tabs, run toolbar */
.rv-head { display: flex; flex-direction: column; gap: 10px; }
.rv-head h1 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.rv-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.rv-tabs a, .rv-tabs span { padding: 8px 0 10px; margin-bottom: -1px; font-size: .92rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.rv-tabs a:hover { color: var(--ink); }
.rv-tabs [aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.rv-tabs [aria-disabled="true"] { opacity: .55; cursor: default; }
.rv-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rv-toolbar .rv-count { margin-left: auto; }
.rv-crumbs { display: flex; gap: 6px; font-size: .8rem; color: var(--muted); }
.rv-crumbs a { text-decoration: none; }
.rv-crumbs a:hover { text-decoration: underline; }
.rv select, .rv .rv-input { font: inherit; font-size: .84rem; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--sunk); color: var(--ink); }
.rv textarea.rv-input { width: 100%; min-height: 64px; resize: vertical; }
.rv-run select { font-weight: 600; }
.rv-field { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rv-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cards and buttons */
.rv-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rv-card.slim { padding: 14px 20px; }
.rv-card h2 { font-size: 1.05rem; font-weight: 600; }
.rv-card h3 { font-size: .95rem; font-weight: 600; }
.rv-h3 { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rv-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); padding: 4px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600; font-size: .78rem; text-decoration: none; }
.rv-btn:hover { background: var(--sunk); }
.rv-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.rv-btn.good[aria-pressed="true"] { border-color: var(--good); background: var(--good-soft); box-shadow: inset 0 0 0 1px var(--good); }
.rv-btn.warn[aria-pressed="true"] { border-color: var(--warn); background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--warn); }
.rv-btn.gold[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.rv form { margin: 0; display: inline; }

/* Summary cards */
.rv-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) { .rv-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-kpi { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.rv-kpi:hover { border-color: var(--line-strong); }
.rv-kpi[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow); }
.rv-kpi .rv-kl { font-size: .78rem; color: var(--muted); font-weight: 600; text-decoration: none; }
.rv-kpi .rv-kl::after { content: ""; position: absolute; inset: 0; }
.rv-counts { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; position: relative; }
.rv-cnt { font-size: .8rem; font-weight: 600; white-space: nowrap; text-decoration: none; text-underline-offset: 3px; }
.rv-cnt:hover, .rv-cnt[aria-current="true"] { text-decoration: underline; }
.rv-cnt b { font-family: var(--mono); font-size: 1.35rem; font-weight: 500; margin-right: 3px; font-variant-numeric: tabular-nums; }
.rv-stack { display: flex; gap: 2px; height: 10px; width: 100%; }
.rv-stack i { display: block; height: 100%; border-radius: 3px; }
.rv-stack .pass { background: var(--good); } .rv-stack .close { background: var(--same); } .rv-stack .fail { background: var(--warn); }

/* Since the previous main run */
.rv-changes { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.rv-changes .lead { font-weight: 600; }
.rv-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--sunk); border-radius: 99px; padding: 5px 12px; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.rv-toggle:hover { border-color: var(--muted); }
.rv-toggle[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* Filters */
.rv .rv-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.rv-filters .rv-count { margin-left: auto; font-size: .82rem; color: var(--muted); align-self: center; }

/* Tiles: two across, three on a wide screen */
.rv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 1600px) { .rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .rv-grid { grid-template-columns: 1fr; } }
.rv-tile { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 0 16px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.rv-tile:hover { border-color: var(--line-strong); }
.rv-tile > .rv-why, .rv-tile > .rv-chips { margin-inline: 16px; }
.rv-tilebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.rv-tilebar a { font-family: var(--mono); font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; }
.rv-tilebar a::after { content: ""; position: absolute; inset: 0; }
.rv-why { font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.rv-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.rv-pill.none { color: var(--muted); border: 1px dashed var(--line-strong); }
.rv-pill.none::before { border: 1.5px dashed var(--muted); }
.rv-pill.reviewed { color: var(--good); background: var(--good-soft); }
.rv-pill.reviewed::before { background: var(--good); }
.rv-pill.challenged { color: var(--gold); background: var(--gold-soft); }
.rv-pill.challenged::before { background: var(--gold); }
.rv-pill.recheck { color: var(--accent); background: var(--accent-soft); }
.rv-pill.recheck::before { background: var(--accent); }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; border: 1px solid var(--line-strong); border-radius: 99px; padding: 1px 9px; white-space: nowrap; color: var(--ink); }
.rv-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--same); }
.rv-chip.high::before { background: var(--warn); } .rv-chip.medium::before { background: var(--gold); }
.rv-chip.suggested { border-style: dashed; color: var(--muted); }
.rv-chip.stop { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.rv-chip.plain::before { display: none; }

/* The image band: listing photo (with the gold house box) beside the model */
.rv-band { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.rv-band.big { border-radius: 12px; overflow: hidden; }
.rv-half { position: relative; aspect-ratio: 4 / 3; overflow: hidden; min-width: 0; }
.rv-half.photo { background: var(--sunk); }
.rv-half.model { background: #c9d9ea; }
.rv-half svg, .rv-half img { display: block; width: 100%; height: 100%; }
.rv-half img { object-fit: contain; }
.rv-half .rv-empty { display: grid; place-items: center; height: 100%; font-size: .78rem; color: var(--muted); }
.rv-half.model .rv-empty { color: #4b5563; }
.rv-box { fill: none; stroke: #ff1a1a; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.rv-ov { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rv-ovchip { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: rgba(16, 24, 40, .82); color: #d5dae2; border: 1px solid rgba(255, 255, 255, .18); white-space: nowrap; }
.rv-ovchip.pass { color: var(--good); border-color: var(--good); }
.rv-ovchip.fail { color: var(--warn); border-color: var(--warn); }
.rv-ovchip .stoplbl { font-family: var(--body); font-size: .72rem; }
.rv-ovchip.delta { font-size: .72rem; font-weight: 500; }
.rv-ovchip.up { color: var(--good); } .rv-ovchip.down { color: var(--warn); }
.rv-band.big .rv-ovchip { font-size: .95rem; padding: 3px 11px; }

/* Focus */
.rv-navrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-focus { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .rv-focus { grid-template-columns: 1fr; } }
.rv-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rv-prev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; align-items: start; }
.rv-prev img { width: 100%; border-radius: 10px; background: #c9d9ea; display: block; }
.rv-scorebig { font-family: var(--mono); font-size: 2.4rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-scoremid { font-family: var(--mono); font-size: 1.4rem; font-weight: 500; line-height: 1; }

/* Progress */
.rv-charts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1300px) { .rv-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .rv-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .rv-charts { grid-template-columns: 1fr; } }
.rv-chart { display: flex; flex-direction: column; gap: 8px; background: var(--sunk); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; color: var(--ink); text-decoration: none; }
.rv-chart:hover { border-color: var(--line-strong); }
.rv-chart svg { width: 100%; height: auto; }
.rv-ct { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rv-bigpct { font-family: var(--mono); font-size: 1.5rem; font-weight: 500; line-height: 1; }
.rv-split { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; flex-wrap: wrap; }
.rv-split b { font-family: var(--mono); }
.rv-gridl { stroke: var(--line); stroke-width: 1; }
.rv-tick { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.rv-camera { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.rv-whisk { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: .7; }
.rv-trend { fill: none; stroke: var(--good); stroke-width: 2; }
.rv-trend.fail { stroke: var(--warn); stroke-dasharray: 4 3; }
.rv-dot { fill: var(--good); stroke: var(--sunk); stroke-width: 2; }
.rv-dot.later { fill: var(--sunk); stroke: var(--good); }
.rv-dot.now { r: 5.5; }
.rv-dot.fail { fill: var(--sunk); stroke: var(--warn); stroke-width: 1.5; }
.rv-ilist { display: flex; flex-direction: column; }
.rv-irow { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(140px, 2.2fr) 120px minmax(150px, 1fr) 150px; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding: 10px 6px; color: var(--ink); text-decoration: none; }
.rv-irow:first-child { border-top: 0; }
.rv-irow:hover { background: var(--sunk); }
.rv-irow.era { grid-template-columns: minmax(110px, 1fr) minmax(160px, 3fr) 220px 90px; }
.rv-iname { font-weight: 600; font-size: .88rem; }
.rv-ibar { display: flex; gap: 2px; height: 12px; }
.rv-ibar .sev { display: block; height: 100%; border-radius: 3px; }
.rv-ibar .high { background: var(--warn); } .rv-ibar .medium { background: var(--gold); } .rv-ibar .low { background: var(--same); }
.rv-ibar .now { background: var(--line-strong); } .rv-ibar .gone { border: 2px dashed var(--good); }
.rv-inum { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .86rem; }
.rv-inum small { font-family: var(--body); color: var(--muted); }
.rv-tickbox { position: relative; }
.rv-tickwas { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--accent); border-radius: 1px; }
@media (max-width: 980px) { .rv-irow, .rv-irow.era { grid-template-columns: 1fr 1fr; } }

/* Pins: numbered dots on the focus view's pictures, the list beside them, and the form a click opens */
.rv-band.big svg[data-image] { cursor: crosshair; }
.rv-pin circle { fill: #dc2626; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rv-pin.stale circle { fill: #64748b; }
.rv-pin text { fill: #fff; font-family: var(--body); font-weight: 600; pointer-events: none; }
.rv-jpin circle { fill: rgba(255, 255, 255, .85); stroke: #d97706; stroke-width: 2.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.rv-jpin text { fill: #b45309; font-family: var(--mono); font-weight: 600; pointer-events: none; }
.rv-jpin.settled circle { fill: #dc2626; stroke: #fff; stroke-dasharray: none; }
.rv-jpin.settled text { fill: #fff; }
.rv-jpin.dismissed { opacity: .45; }
.rv-pin, .rv-jpin { cursor: pointer; }
.rv-jpin.dismissed circle { stroke: #64748b; }
.rv-jpin.dismissed text { fill: #475569; }
.rv-notplaced { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--muted); font-size: .68rem; font-weight: 600; }
.rv-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .75rem; color: var(--muted); }
.rv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rv-legend i { width: 12px; height: 12px; border-radius: 99px; display: inline-block; }
.rv-legend .judge { border: 2px dashed #d97706; background: rgba(255, 255, 255, .85); }
.rv-legend .settled { background: #dc2626; border: 2px solid #fff; }
.rv-legend .dismissed { background: #64748b; border: 2px solid #fff; }
.rv-pins { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.rv-entry { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; padding: 9px 8px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: .86rem; text-align: left; cursor: pointer; border-radius: 8px; }
.rv-entry:hover { background: var(--sunk); }
.rv-entry:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rv-entrybody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-entrynote { color: var(--ink); }
.rv-no { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 99px; font-family: var(--mono); font-size: .75rem; font-weight: 600; background: #dc2626; color: #fff; border: 2px solid transparent; }
.rv-no.judge.suggested { background: transparent; border: 2px dashed #d97706; color: #f59e0b; }
.rv-no.dismissed, .rv-no.stale { background: #64748b; color: #fff; }
.rv .rv-pinact { display: block; }
.rv-jnote { font-size: .82rem; color: var(--ink); margin-top: 2px; }
.rv-dialog { margin: auto; width: min(440px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px; background: var(--paper); color: var(--ink); }
.rv-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.rv .rv-dialog form { display: flex; flex-direction: column; gap: 12px; }
.rv-dialog .rv-input, .rv-dialog select { width: 100%; }
