/* BytePerformance Log Viewer: visual polish layer (2026-11-16). Loaded last on every page. Layout and behaviour stay the same. */

/* Scrollbars that belong to the dark and light surfaces instead of the grey system default. */
html{scrollbar-width:thin;scrollbar-color:#2c3a47 transparent}
html:has(body.light){scrollbar-color:#c3ced8 transparent}
body *{scrollbar-width:thin;scrollbar-color:#2c3a47 transparent}
body.light *{scrollbar-color:#c3ced8 transparent}

/* Numbers that change under the cursor keep their width, so readouts do not jitter. */
body.logger-workspace :is(.main,.sidebar,.prof-tooltip),body .studio-garage-summary strong,body #content .meta{font-variant-numeric:tabular-nums}

/* One focus ring everywhere for keyboard users. */
body :is(a,button,select,input,summary,[tabindex]):focus-visible{outline:2px solid var(--bp-accent,#58d9ce)!important;outline-offset:2px!important}

/* Header on garage and settings: language next to the theme button, like on the analysis page. */
body:is(.pro-garage,.pro-settings) .studio-site-header>#bp-language-select{order:20!important;margin:0 0 0 auto!important;width:auto!important;min-width:0!important;height:40px!important;padding:0 34px 0 14px!important;border-radius:10px!important;border:1px solid var(--bp-line)!important;background-color:var(--bp-panel)!important;color:var(--bp-text)!important;font:600 13px/1 var(--bp-font)!important;box-shadow:none!important}
body:is(.pro-garage,.pro-settings) .studio-site-header>.suite-header-actions{order:21!important;margin-left:8px!important}

/* Garage */
body.pro-garage .studio-garage-summary>div{display:flex!important;align-items:baseline!important;gap:10px!important}
body.pro-garage .studio-garage-summary strong{font-size:24px!important;font-weight:650!important;letter-spacing:-.4px!important;line-height:1!important}
body.pro-garage #gfilter{background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
body.pro-garage .veh-h svg{opacity:.85}
body.pro-garage #content .card{transition:border-color .15s ease,background-color .15s ease}
body.pro-garage #content .card:hover{border-color:color-mix(in srgb,var(--bp-accent) 35%,var(--bp-line))!important}
body.pro-garage #content .g-file{font:600 15px/1.3 var(--bp-font);color:var(--bp-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body.pro-garage #content .note{color:var(--bp-muted)!important;font-weight:400!important;font-size:13px!important}
body.pro-garage #content .btn{min-height:38px!important;padding:8px 18px!important;border-radius:9px!important;font-size:13px!important}
body.pro-garage #content .btn.del{background:transparent!important;border-color:transparent!important;color:#e98d8d!important}
body.pro-garage #content .btn.del:hover{border-color:#6b2d34!important;background:#e0575712!important}
body.light.pro-garage #content .btn.del{color:#b4393d!important}

/* Settings: breathing room between the theme choice and the language row. */
body.pro-settings .suite-preferences .suite-preference-row+.suite-preference-row{margin-top:18px!important}

/* Analysis sidebar: no empty filter buttons before a log is loaded. */
body.logger-workspace:not(.bp-has-data) .sidebar :is(.evo-presets,.bench-channel-filter,.sb-actions){display:none!important}
body.logger-workspace .sidebar .bp-empty-channel{font-size:13px!important;line-height:1.6!important;color:var(--bp-muted)!important;padding:18px 8px!important;margin:0!important}
/* Room for the file name in the chart toolbar. */
@media(min-width:801px){body.logger-workspace .prof-commandbar .prof-file{max-width:200px!important}}
body.logger-workspace .studio-sidebar-foot{letter-spacing:1.4px!important;font-size:10px!important;color:var(--bp-muted)!important}
