/* Composer Benchmark: the house page. Loaded with composer_benchmark_runs.css; every rule sits under .cb.cbr. */
/* Actions menu (HouseActionsComponent) */
.cbr .actmenu { position: relative; }
.cbr .actmenu > summary { list-style: none; }
.cbr .actmenu > summary::-webkit-details-marker { display: none; }
.cbr .actmenu > summary::after { content: " ▾"; color: var(--muted); }
.cbr .actlist { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; min-width: 240px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); }
.cbr .actform { display: contents; }
.cbr .actitem { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 0.85rem; text-decoration: none; cursor: pointer; }
.cbr .actitem:hover, .cbr .actitem:focus-visible { background: var(--sunk); }
.cbr .actkey { display: flex; }
.cbr .actkey kbd { margin-left: auto; }
.cbr .actsep { width: 100%; height: 1px; margin: 4px 0; border: 0; background: var(--line); }

/* The house page: header, run picker and the Stage scores table */
.cbr .hhead h1 { gap: 10px; align-items: baseline; }
.cbr .hhead .dot { color: var(--line-strong); }
.cbr .hhead .runlink { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.cbr .hhead .plain { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 500; }
.cbr .hmeta { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.cbr kbd { font-family: var(--mono); font-size: 0.7rem; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; color: var(--muted); }
.cbr .btn.xs { padding: 2px 9px; font-size: 0.74rem; border-radius: 8px; }
.cbr .btn kbd { margin-left: 6px; }

.cbr dialog.cbdlg { padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); width: min(720px, calc(100% - 32px)); max-height: 80vh; overflow: auto; margin: 12vh auto auto; }
.cbr dialog.cbdlg::backdrop { background: rgba(5, 10, 20, 0.6); }
.cbr .cbdlg .dlghead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cbr .cbdlg .dlghead h2 { font-size: 1.05rem; }
.cbr .cbdlg .dlghead .btn { margin-left: auto; }
.cbr .rpick { display: grid; grid-template-columns: 56px 96px 64px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.85rem; }
.cbr .rpick:first-of-type { border-top: 0; }
.cbr .rpick:hover, .cbr .rpick[aria-current="true"] { background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.cbr .rpick .tagc { text-align: right; font-size: 0.75rem; color: var(--accent); }
@media (max-width: 640px) { .cbr .rpick { grid-template-columns: 56px minmax(0, 1fr) auto; } .cbr .rpick > :nth-child(4) { grid-column: 1 / -1; order: 5; } }

.cbr .card.hstages { padding: 0; gap: 0; overflow: hidden; }
.cbr .hshead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 18px 20px 14px; }
.cbr .hshead .lookct { color: var(--warn); }
.cbr .hshead [data-summary] { font-size: 0.85rem; }
.cbr .hsbase { margin-left: auto; font-size: 0.82rem; color: var(--muted); }
.cbr .hsbase select { font: inherit; font-size: 0.82rem; color: var(--ink); background: var(--sunk); border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 8px; margin-left: 6px; }
.cbr .hshd, .cbr .hshead2 { display: grid; grid-template-columns: 200px 64px 116px 112px minmax(0, 1fr) 150px 16px; gap: 16px; align-items: center; padding: 10px 16px; }
.cbr .hshd { border-top: 1px solid var(--line); padding-block: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cbr .r { text-align: right; }
.cbr .hsrow { position: relative; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.cbr .hsrow.whole { border-bottom: 2px solid var(--line-strong); }
.cbr .hsrow.open { background: color-mix(in srgb, var(--accent) 8%, var(--paper)); padding-bottom: 10px; }
.cbr .hsrow.look::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 48px; background: var(--warn); }
.cbr .hshead2 { cursor: pointer; font-size: 0.88rem; }
.cbr .hshead2:hover { background: color-mix(in srgb, var(--accent) 5%, var(--paper)); }
.cbr .hsname { font-weight: 500; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.cbr .hsname .n { color: var(--muted); font-size: 0.75rem; min-width: 18px; text-align: right; }
.cbr .hsscore { font-size: 0.95rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cbr .hsscore.hswhole { grid-column: span 2; white-space: nowrap; }
.cbr .hspill { display: inline-block; font-size: 0.75rem; font-weight: 600; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.cbr .hspill.match { color: var(--good); background: var(--good-soft); }
.cbr .hspill.close { color: var(--ink); background: var(--same-soft); }
.cbr .hspill.look { color: var(--warn); background: var(--warn-soft); }
.cbr .hspill.none { color: var(--muted); background: var(--same-soft); }
.cbr .hsdetail { font-size: 0.82rem; color: var(--muted); min-width: 0; }
.cbr .hschange { font-size: 0.82rem; }
.cbr .hschange.gold { color: var(--gold); font-size: 0.76rem; }
.cbr .hschev { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-align: right; }
.cbr .wtag, .cbr .btag, .cbr .atag, .cbr .ntag { font-size: 0.68rem; font-weight: 600; border-radius: 5px; padding: 0 6px; white-space: nowrap; }
.cbr .wtag { text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); border: 1px solid var(--accent-soft); }
.cbr .ntag { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.cbr .btag { color: var(--page); background: var(--worse); text-transform: uppercase; }
.cbr .atag { color: var(--muted); border: 1px dashed var(--line-strong); }
.cbr .hsbreak { margin: 0; padding: 0 16px 6px 50px; font-size: 0.8rem; }
.cbr .hsbody { padding: 12px 20px 16px 50px; min-width: 0; }
.cbr .hsfoot { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.cbr .spark { display: block; overflow: visible; }
.cbr .sparkline { stroke: var(--same); stroke-width: 1.5; }
.cbr .sparkhit { fill: transparent; cursor: pointer; }
.cbr .sparkhit:hover { fill: color-mix(in srgb, var(--accent) 25%, transparent); }
.cbr .sparkdot { fill: var(--same); pointer-events: none; }
.cbr .sparkdot.on { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
.cbr .hsrow.look .sparkdot.on { fill: var(--warn); }

.cbr .ev { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 24px; align-items: start; }
.cbr .ev.fields { grid-template-columns: minmax(0, 1fr); }
.cbr .ev .evfig { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cbr .ev .evside { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: 0.82rem; }
.cbr .ev .evside:empty { display: none; }
.cbr .ev .hpfig { max-width: 520px; }
.cbr .sgroup { display: flex; flex-direction: column; gap: 6px; }
.cbr .sgroup h3 { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.cbr table.items { border-collapse: collapse; width: 100%; font-size: 0.78rem; }
.cbr table.items th { text-align: left; font-size: 0.7rem; font-weight: 600; color: var(--muted); padding: 2px 6px; }
.cbr table.items td { padding: 2px 6px; border-top: 1px solid var(--line); }
.cbr table.items .r { text-align: right; }
.cbr .scaletable { width: auto; }
@media (min-width: 1000px) { .cbr .ev:not(.fields) { grid-template-columns: minmax(0, 560px) minmax(220px, 1fr); } }

@media (max-width: 900px) {
  .cbr .hshd { display: none; }
  .cbr .hshead2 { grid-template-columns: minmax(0, 1fr) auto auto 16px; grid-template-areas: "name score pill chev" "spark detail detail detail" "change change change change"; gap: 6px 12px; }
  .cbr .hshead2 > :nth-child(1) { grid-area: name; }
  .cbr .hshead2 > :nth-child(2) { grid-area: score; }
  .cbr .hshead2 > :nth-child(3) { grid-area: pill; }
  .cbr .hshead2 > :nth-child(4) { grid-area: spark; }
  .cbr .hshead2 > :nth-child(5) { grid-area: detail; }
  .cbr .hshead2 > :nth-child(6) { grid-area: change; text-align: left; }
  .cbr .hshead2 > :nth-child(7) { grid-area: chev; }
  .cbr .hsbody, .cbr .hsbreak { padding-left: 16px; }
  .cbr .hsbase { margin-left: 0; }
}

/* Input and models: three tiles, and the viewer overlay */
.cbr .card.hlook { gap: 16px; }
.cbr .hlhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.cbr .hlhead .btn { margin-left: auto; }
.cbr .hltiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cbr .hltile { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cbr .hltile figcaption { font-size: 0.82rem; color: var(--muted); }
.cbr .hltile figcaption b { color: var(--ink); font-weight: 600; }
.cbr .hltile figcaption .goldcap { color: var(--gold); }
.cbr .hltile figcaption .runcap { color: var(--accent); }
.cbr .hlframe { position: relative; height: 260px; border-radius: 10px; overflow: hidden; background: var(--sunk); display: flex; align-items: center; justify-content: center; }
.cbr .hlframe.model { background: var(--plate); }
.cbr .hlframe.model .hpeempty { padding: 16px; text-align: center; }
.cbr .hlframe .hpeempty { padding: 16px; text-align: center; }
.cbr .hlpane { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cbr .hlpane.plan { background: var(--plate); }
.cbr .hlimg { padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cbr .hlimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbr .hlpane.plan .hlimg img { object-fit: contain; }
.cbr .hlswitch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: color-mix(in srgb, var(--page) 85%, transparent); align-self: flex-start; }
.cbr .hlframe > .hlswitch { position: absolute; top: 8px; left: 8px; }
.cbr .hlswitch button { font: inherit; font-size: 0.75rem; border: 0; border-radius: 6px; padding: 3px 9px; cursor: pointer; background: transparent; color: var(--ink); opacity: 0.8; }
.cbr .hlswitch button[aria-pressed="true"] { background: var(--accent-soft); opacity: 1; }
.cbr .hlslot { position: absolute; inset: 0; }
.cbr .hlslot:empty { display: none; }
.cbr .hlslot .hpemodel, .cbr .hlslot .hpeviewer { width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; aspect-ratio: auto; }

.cbr dialog.cbview { padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink); width: calc(100vw - 48px); max-width: none; height: calc(100vh - 48px); max-height: none; margin: auto; overflow: hidden; }
.cbr dialog.cbview[open] { display: flex; flex-direction: column; }
.cbr dialog.cbview::backdrop { background: rgba(5, 10, 20, 0.72); }
.cbr .cbview .dlghead { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.cbr .cbview .dlghead h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.cbr .cbview .dlghead .btn { margin-left: auto; }
.cbr .vwcols { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 20px 20px; }
.cbr .vwcol, .cbr .vwmodels, .cbr .vwpane { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.cbr .vwcol { flex: 1; }
.cbr .vwmodels, .cbr .vwpane { flex: 1; }
.cbr .vwpane[hidden] { display: none; }
.cbr .vwstage { flex: 1; min-height: 0; border-radius: 10px; background: var(--sunk); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cbr .vwstage.plan { background: var(--plate); }
.cbr .vwstage img { max-width: 100%; max-height: 100%; display: block; }
.cbr .vwstrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; flex: 0 0 auto; }
.cbr .vwstrip button { padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; flex: 0 0 auto; }
.cbr .vwstrip button[aria-current="true"] { outline: 2px solid var(--accent); }
.cbr .vwstrip img { height: 64px; width: 96px; object-fit: cover; border-radius: 6px; display: block; }
.cbr .vwfloors { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cbr .vwfloors .btn[aria-pressed="true"] { background: var(--accent-soft); }
.cbr .vwmodels .hpemodel, .cbr .vwmodels .hpeviewer { flex: 1; min-height: 0; aspect-ratio: auto; margin: 0; }
.cbr .vwmodels .hpemodel { display: flex; flex-direction: column; }
.cbr .vwpane > [data-gold-slot] { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .cbr .hltiles { grid-template-columns: minmax(0, 1fr); }
  .cbr dialog.cbview { width: 100vw; height: 100vh; border-radius: 0; }
  .cbr .vwcols { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .cbr .vwpane { min-height: 320px; }
}

/* Gold issues */
.cbr .card.hgold { padding: 0; gap: 0; overflow: hidden; border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.cbr .hgoldhead { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px 10px; }
.cbr .hgoldhead h2 { color: var(--gold); }
.cbr .hgissue { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.cbr .hgedit { font-weight: 600; }
.cbr .hgwhat { display: flex; flex-direction: column; gap: 2px; }
.cbr .hgwhat b { font-weight: 600; }
.cbr .hgtag { display: inline-block; font-size: 0.75rem; font-weight: 600; border-radius: 6px; padding: 3px 8px; color: var(--gold); background: var(--gold-soft); }
.cbr .hgtag.err { color: var(--warn); background: var(--warn-soft); }
@media (max-width: 900px) { .cbr .hgissue { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Notes, the Add note dialog and Gold edits */
.cbr .card.hnotes { gap: 12px; padding: 16px 20px 18px; }
.cbr .hnhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.cbr .hnhead .btn { margin-left: auto; }
.cbr .hnlist { display: flex; flex-direction: column; gap: 0; }
.cbr .note.nrow { display: grid; grid-template-columns: 130px 56px 150px minmax(0, 1fr) 120px 92px; gap: 12px; align-items: center; padding: 8px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; flex-direction: row; font-size: 0.82rem; }
.cbr .note.nrow .nkind { font-size: 0.75rem; font-weight: 600; border-radius: 6px; padding: 3px 8px; width: fit-content; color: var(--accent); background: var(--accent-soft); }
.cbr .note.nrow.gold_suspect .nkind { color: var(--gold); background: var(--gold-soft); }
.cbr .note.nrow.pattern .nkind { color: var(--ink); background: var(--same-soft); }
.cbr .note.nrow .nbody { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbr .note.nrow .nstatus-form { margin: 0; }
.cbr .note.nrow select { font: inherit; font-size: 0.75rem; color: var(--ink); background: var(--sunk); border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 6px; }
@media (max-width: 900px) {
  .cbr .note.nrow { grid-template-columns: auto auto minmax(0, 1fr); }
  .cbr .note.nrow .nbody { grid-column: 1 / -1; white-space: normal; }
}
.cbr form.addnote { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.cbr form.addnote h2 { font-size: 1.05rem; }
.cbr .anrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.82rem; }
.cbr .seg-pick { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
.cbr .seg-pick label { position: relative; cursor: pointer; }
.cbr .seg-pick input { position: absolute; opacity: 0; inset: 0; }
.cbr .seg-pick span { display: block; border-radius: 6px; padding: 5px 10px; color: var(--muted); }
.cbr .seg-pick input:checked + span { background: var(--accent-soft); color: var(--ink); }
.cbr .seg-pick input:focus-visible + span { outline: 2px solid var(--accent); }
.cbr .anstage { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.cbr .anstage .input { width: auto; padding: 5px 8px; }
.cbr .anactions { display: flex; justify-content: flex-end; gap: 8px; }
.cbr .card.hedits { padding: 0; gap: 0; overflow: hidden; }
.cbr .hedits summary { display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; list-style: none; }
.cbr .hedits summary::-webkit-details-marker { display: none; }
.cbr .hedits summary .chev { color: var(--muted); width: 12px; }
.cbr .hedits details[open] summary .chev { display: inline-block; transform: rotate(90deg); }
.cbr .hedits turbo-frame, .cbr .hedits .hparts-body { display: block; padding: 4px 20px 20px 44px; }
.cbr .gegroup { display: flex; flex-direction: column; gap: 6px; max-width: 900px; }
.cbr .gegroup + .gegroup { margin-top: 14px; }
.cbr .getable form { display: inline; }
