#scoreView .score-top{padding:clamp(14px,2.4vw,25px);background:linear-gradient(115deg,#182830,#141c2a 64%);border-color:#344757}
#scoreView .score-top h2{line-height:1.2;margin-bottom:5px}
#scoreView .score-top p{color:#afbdcc}
#scoreView .video-results>div{min-width:0;background:#142522}
#scoreView .video-results>div>div{min-width:0;overflow-wrap:anywhere}
#scoreView .video-results .primary{width:auto;flex:none;gap:12px}
#scoreView .video-results #videoExportIssue{background:#28201a}
#scoreView .video-results a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.run-history-controls{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0 0}
.run-history-controls [data-history-search]{border:1px solid #43556d;min-height:44px;padding:8px 11px;background:#0f1723;color:inherit;border-radius:8px;min-width:0;flex:0 1 17rem}
.run-history-controls [data-history-search]::placeholder{color:#a7b5c8}
.run-history-controls .pf-select{max-width:100%}
.run-history-summary{min-height:1.25em;margin:8px 0 11px;color:#a8b8cb;font-size:.81rem}
.run-history-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.run-history-card{display:grid;grid-template-columns:minmax(0,1.26fr) minmax(0,1fr) minmax(180px,.67fr);align-items:center;gap:15px;padding:14px;border:1px solid #34465c;border-radius:11px;background:#121c2a}
.run-history-identity{display:grid;grid-template-columns:clamp(51px,6.4vw,74px) minmax(0,1fr);align-items:center;gap:12px;min-width:0}
.run-history-cover{--history-cover-color:#70efc9;aspect-ratio:1;align-self:start;display:grid;place-items:center;position:relative;overflow:hidden;border:1px solid #4a6374;border-radius:8px;background:radial-gradient(ellipse at 34% 26%,color-mix(in srgb,var(--history-cover-color) 45%,#202c3c),#192334 79%)}
.run-history-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.run-history-cover.has-song-image .run-history-cover-wave{visibility:hidden}
.run-history-cover-wave{display:flex;align-items:center;gap:3px;height:53%;transform:rotate(-12deg)}
.run-history-cover-wave i{width:3px;height:43%;border-radius:3px;background:var(--history-cover-color)}
.run-history-cover-wave i:nth-child(2n){height:66%}
.run-history-cover-wave i:nth-child(3){height:94%}
.run-history-detail{display:grid;gap:5px;min-width:0}
.run-history-title{margin:0;color:#f0f6ff;font-size:clamp(.94rem,1.6vw,1.16rem);font-weight:750;line-height:1.22;overflow-wrap:anywhere}
.run-history-meta,.run-history-credits{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0}
.run-history-difficulty{display:inline-block;padding:1px 7px;border-radius:5px;border:1px solid #52657b;background:#223246;color:#d4e4f6;line-height:1.55;font-size:.69rem;font-weight:720}
.run-history-difficulty[data-difficulty="easy"]{border-color:#3c705f;background:#1a3b33;color:#b9f1d9}
.run-history-difficulty[data-difficulty="hard"]{border-color:#816044;background:#473524;color:#ffddb3}
.run-history-difficulty[data-difficulty="expert"]{border-color:#77638d;background:#3d3153;color:#ead6ff}
.run-history-mode,.run-history-credits{color:#a8b9ce;font-size:.75rem}
.run-history-credits>*{min-width:0;overflow-wrap:anywhere}
.run-history-player{color:#e1ecfa;font-weight:690}
.run-history-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0;min-width:0;font-variant-numeric:tabular-nums}
.run-history-metric{min-width:0;padding:5px 7px;border:1px solid #2a3d50;background:#0e1722;border-radius:6px;overflow-wrap:anywhere}
.run-history-metric dt{color:#acbdd0;font-size:.69rem}
.run-history-metric dd{margin:0;color:#f0f6ff;font-weight:750;font-size:.91rem}
.run-history-action{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0}
.run-history-action button{font-size:.75rem;line-height:1.2;padding:6px 8px;min-height:34px;max-width:100%;overflow-wrap:anywhere}
.run-history-action button:not(:disabled):hover{background:#263c52;border-color:#7894ac}
.run-history-action button.run-history-download:not(:disabled){background:#1b3a36;border-color:#477668;color:#ccfff0}
.run-history-watch:disabled{opacity:.55}
.run-history-unavailable{flex-basis:100%;color:#a8b9ce;font-size:.72rem;overflow-wrap:anywhere}
@media(max-width:850px){
 .run-history-card{grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:10px}
 .run-history-action{grid-column:1/-1}
}
@media(max-width:540px){
 .run-history-card{grid-template-columns:minmax(0,1fr);padding:11px;gap:9px}
 .run-history-action button{min-height:38px}
 .run-history-controls [data-history-search]{flex:1 1 11rem}
 #scoreView .video-results .primary{width:100%}
}
