.metrics {display:grid;grid-template-columns:1fr 1.15fr 1fr 1.1fr;padding:1.5rem .4rem;border-radius:16px;background:var(--surface);color:var(--white);margin:1.5rem 0}
.metrics>div {padding:.35rem clamp(1rem,2.5vw,2.6rem);min-width:0;border-left:1px solid var(--line)}
.metrics>div:first-child {border:0}
.metrics dt {font:400 .71rem var(--mono);letter-spacing:.075em;text-transform:uppercase;color:#b2b2c4}
.metrics dd {font:500 clamp(2rem,4vw,3.75rem)/1.15 var(--heading);letter-spacing:-.055em;margin-top:.6rem}
.metrics>div:first-child dd {color:var(--accent)}
.metrics>div:last-child dd {font-size:clamp(1.4rem,2.3vw,2.4rem)}
.records-table {overflow:hidden}
.records-header {display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 1.5rem;gap:1rem}
.records-tabs {display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;padding:.6rem 0}
.records-hint {padding:1.2rem 1.5rem;color:var(--subtle)}
.records-hint a {text-decoration:underline}
.records-local {font:.73rem var(--mono);color:var(--subtle)}
.run-records {border-collapse:collapse;text-align:left;width:100%}
.run-records th,.run-records td {padding:.85rem 1rem;overflow-wrap:anywhere}
.run-records thead {color:var(--subtle);background:var(--lift)}
.run-records thead th {font-size:.76rem;font-weight:500}
.run-records tbody tr+tr {border-top:1px solid var(--line)}
.run-records td {font:.8rem var(--mono)}
.record-actions button,.record-actions a {display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;min-width:36px;min-height:36px;margin:.1rem;color:var(--white)}
.record-actions a {padding:.3rem .65rem;font:550 .8rem var(--body)}
.record-actions button:hover,.record-actions a:hover {background:var(--lift)}
.record-actions .icon {width:16px;height:16px}
.result-layout {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:1rem;align-items:stretch}
.shared-circuit,.shared-chart,.sample-panel {min-width:0;overflow:hidden}
.shared-circuit header,.shared-chart,.sample-panel {padding:1.6rem}
.shared-circuit header h2,.shared-chart h2,.sample-panel h2 {font-size:clamp(1.8rem,3vw,2.8rem)}
.shared-circuit header h2 {margin-top:.3rem}
.shared-circuit dl {display:flex;padding:1rem 1.6rem;gap:2rem;border-top:1px solid var(--line)}
.shared-circuit dt {font-size:.78rem;color:var(--muted)}
.shared-circuit dd {font:1.15rem var(--mono);margin-top:.3rem}
.shared-chart h2,.sample-panel h2 {margin-bottom:1.5rem}
.shared-chart .hist-track,.shared-chart .hist-scale {height:145px}
.sample-panel {margin-top:1rem}
.sample-panel a {display:inline-block;margin-top:1rem;font-size:.85rem;text-decoration:underline}
@media(max-width:850px){.result-layout{grid-template-columns:1fr}.run-records th,.run-records td{padding:.7rem .5rem}}
@media(max-width:650px){
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:.2rem .8rem}.metrics>div{border-left:0;padding:1.1rem .5rem}.metrics>div:nth-child(n+3){border-top:1px solid var(--line)}.metrics dd{font-size:2.3rem}.metrics dt{font-size:.65rem}
 .records-header{padding:0 .8rem;gap:.4rem}.records-tabs{gap:.75rem}.records-tabs button{font-size:.83rem}.records-local{font-size:.62rem}
 .run-records,.run-records tbody{display:block}.run-records thead{display:none}.run-records tr{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;padding:1rem}.run-records th,.run-records td{padding:0}.run-records th,.record-actions{grid-column:1/-1}.run-records td[data-label]:before{display:block;content:attr(data-label);font:.73rem var(--body);color:var(--subtle);margin-bottom:.2rem}
 .shared-circuit header,.shared-chart,.sample-panel {padding:1.1rem}.shared-circuit .wire-grid {--cell:52px}
}
@media(max-width:650px) {.record-actions button,.record-actions a {min-width:44px;min-height:44px}}
.record-result:has(.product-empty) .product-wrap {max-width:860px}
.result-layout>.product-empty {grid-column:1/-1}

.record-actions button,.record-actions a,.sample-panel a {min-width:44px;min-height:44px}
.sample-panel a {display:inline-flex;align-items:center}
.records-tabs button:hover {color:var(--white);background:var(--lift)}
