/* Track browsing stays spacious without changing the shared launcher or scores. */
body[data-page="/editortracks"] .panel-wide { width: min(1080px, 100%); }
.editor-workshop { display: flex; flex-direction: column; gap: var(--gap); }
.editor-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 1px solid #ffcc1a26; border-radius: 12px; background: linear-gradient(110deg, #26231c, #171719); }
.editor-intro p { margin: 0; max-width: 48ch; color: #c8bfae; font: 14px/1.7 Inter, sans-serif; }
.editor-intro .btn { flex-shrink: 0; font-size: 17px; }
.track-library { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 8px 0 18px; border-bottom: 1px solid #ffffff26; }
.library-toolbar > a { white-space: nowrap; }
.library-toolbar .collection-tabs { gap: 6px; }
.library-toolbar .chip { font: 600 13px/1.4 Inter, sans-serif; letter-spacing: 0; text-transform: none; padding: 10px 16px; border-radius: 8px; }
#tracksStatus { font-size: 12px; }
#tracksStatus.is-loading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.editor-carousel { min-width: 0; margin-top: 0; }
.community-browser { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid #ffffff1a; border-radius: 12px; background: #151517; }
.community-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.community-tabs, .community-subtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.community-browser .chip { min-height: 44px; padding: 10px 16px; border-radius: 8px; font: 600 13px/1.4 Inter, sans-serif; letter-spacing: 0; text-transform: none; }
.community-subtabs { padding-top: 12px; border-top: 1px solid #ffffff1a; }
.community-subtabs .chip { flex: 1; }
.community-subtabs .chip.is-selected { color: var(--yellow); border-color: #ffcc1a66; background: #ffcc1a14; }
.community-options { margin-left: auto; }
.hide-played { display: flex; align-items: center; gap: 8px; min-height: 44px; color: #e0dbd1; cursor: pointer; font: 600 13px/1.4 Inter, sans-serif; }
.hide-played input { width: 18px; height: 18px; margin: 0; accent-color: var(--yellow); }
#refreshTracks { font: 600 13px/1.4 Inter, sans-serif; text-transform: none; letter-spacing: 0; }
.editor-guide { padding: 24px; border: 1px solid #ffffff1a; border-radius: 12px; background: #151517; color: #e0dbd1; font: 14px/1.7 Inter, sans-serif; }
.editor-guide h2 { margin: 0 0 16px; color: #f7f3ea; font: 700 24px/1.2 'Barlow Condensed', sans-serif; }
.editor-guide ul { margin: 0; padding-left: 22px; }
.editor-guide li + li { margin-top: 8px; }
.editor-guide li::marker { color: var(--yellow); }
.editor-guide-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid #ffffff1a; }
.editor-guide-footer .text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
#scoresTrackName { overflow-wrap: anywhere; max-height: 6em; overflow-y: auto; }
#scoresDialog .race-score-identity .workshop-driver-name { flex-shrink: 1; }
#scoresDialog .race-score-person { overflow-wrap: anywhere; }
#scoresDialog th.race-score-rank { font-size: 9px; letter-spacing: 0; }
#scoresDialog .workshop-scores { margin-bottom: 0; }
.workshop-record-driver:focus-visible, .workshop-best-time:focus-visible, .editor-guide .text-link:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 600px) {
    .community-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
    .community-browser .chip { min-width: 0; padding: 10px 6px; white-space: normal; }
    .editor-guide { padding: 18px; }
    .editor-intro { flex-direction: column; align-items: flex-start; padding: 18px; gap: 14px; }
    .library-toolbar .collection-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .library-toolbar .chip { padding: 10px 6px; font-size: 12px; white-space: normal; }
    #scoresDialog { padding: 18px 12px; }
}
