/* Rallyver Redesign 14 — leaderboard legibility, mobile overflow containment, and reachable settings */
#rvV6GameHud .rv6-topbar{min-width:0!important;overflow:visible!important}
#rvV6GameHud .rv6-brand,#rvV6GameHud .rv6-brand-copy,#rvV6GameHud .rv6-driver-pill,#rvV6GameHud .rv6-driver-values{min-width:0!important}
#rvV6GameHud .rv6-brand-copy small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;letter-spacing:.07em!important}
#rvV6GameHud .rv6-driver-values small,#rvV6GameHud #rvV6RoomName{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.3!important}
#rvV6GameHud .rv6-session-chip{max-width:min(370px,37vw)!important;min-width:0!important;box-sizing:border-box!important}
#rvV6GameHud .rv6-session-chip .rv6-session-code{display:none!important}
#rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{top:calc(105px + var(--rv6-safe-t))!important;left:calc(12px + var(--rv6-safe-l))!important;right:auto!important;width:clamp(142px,24vw,220px)!important;max-width:min(42vw,220px)!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important}
#rvV6GameHud .rv6-card-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;height:auto!important;min-height:37px!important;padding:5px 8px!important;box-sizing:border-box!important;overflow:visible!important}
#rvV6GameHud .rv6-card-head>div{min-width:0!important;overflow:visible!important}
#rvV6GameHud .rv6-card-head>div small{display:block!important;font-size:9px!important;line-height:1.25!important;letter-spacing:.08em!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;color:#a8bac7!important}
#rvV6GameHud .rv6-card-head>div b{display:block!important;margin-top:3px!important;font-size:11px!important;line-height:1.25!important;letter-spacing:.07em!important;white-space:nowrap!important;overflow:visible!important}
#rvV6GameHud .rv6-live-tag{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;flex:0 0 auto!important;white-space:nowrap!important;font-size:9px!important;line-height:1.2!important}
#rvV6GameHud .rv6-ranking-body{min-width:0!important;max-width:100%!important;overflow-x:hidden!important}
#rvV6GameHud #leaderboard,#rvV6GameHud .rv6-ranking-body .rank-item{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#rvV6GameHud .rv6-ranking-body .rank-item>*{min-width:0!important}
/* Remove misleading static SESSION/LIVE wording; dynamic connection state remains authoritative. */
#rvV6GameHud .rv6-session-code{display:none!important}
/* The settings mainbar repeats both the workspace title and close affordance. */
#uiPanelInner .rv6-settings-mainbar{display:none!important}
#uiPanelInner .rv6-settings-layout{height:100%!important;max-height:none!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;grid-template-columns:minmax(112px,158px) minmax(0,1fr)!important}
#uiPanelInner .rv6-settings-nav{min-height:0!important;max-height:100%!important;overflow-y:auto!important;overscroll-behavior:contain!important}
#uiPanelInner .rv6-settings-content{min-height:0!important;height:100%!important;max-height:none!important;flex:1 1 0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
#uiPanelInner .rmt-section{box-sizing:border-box!important;width:100%!important;min-width:0!important}
#uiPanelInner .rv240-setting-pair{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-column:1/-1!important;width:100%!important}
#uiPanelInner .rv240-setting-pair>.rv240-setting-row{min-width:0!important;max-width:100%!important}
#uiPanelInner .rv240-control-label{white-space:normal!important;overflow-wrap:anywhere!important}
#uiPanelInner .rv240-choice{min-width:0!important;overflow-wrap:anywhere!important}
#uiPanelInner .rv240-choice select{max-width:100%!important}
#uiPanelInner .rv240-display-grid{min-width:0!important}
#uiPanelInner .rv240-name-group{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
#uiPanelInner .rv240-name-toggle{white-space:normal!important;align-items:flex-start!important;min-width:0!important}
#uiPanelInner .rv240-name-toggle span{white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important}
#uiPanelInner .rv240-range-pair{min-width:0!important}
#uiPanelInner .rv240-range-field{min-width:0!important;overflow-wrap:anywhere!important}
#uiPanelInner .rv240-range-field input[type=range]{max-width:100%!important}
#uiPanelInner .rv240-cockpit-options{min-width:0!important;box-sizing:border-box!important}
#uiPanelInner .rv238-preset-grid{min-width:0!important}
#uiPanelInner .rv238-preset-option{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
#uiPanelInner .rv238-preview,#uiPanelInner .rv238-meter-preview{max-width:100%!important;box-sizing:border-box!important}
#uiPanelInner .rv240-opacity-note{font-size:11px!important;line-height:1.45!important}
/* All pages and dialogs receive their own reachable scroll area rather than clipping their contents. */
#rvV6Workspace .rv6-page-host{min-width:0!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important}
#rvV6Workspace .rv6-page{min-width:0!important;min-height:0!important;max-width:100%!important;overflow-x:hidden!important;box-sizing:border-box!important}
#rvV6Workspace .rv6-live-surface{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#rvV6Page_settings .rv6-page-intro{display:none!important}
#rvV6Workspace .rv6-workspace-top{min-width:0!important}
#rvV6Workspace .rv6-workspace-top-actions{min-width:0!important}
#uiPanelInner .rv240-reset-button{min-height:40px!important;font-size:13px!important;font-weight:800!important}
/* Desktop font floor: increase small operational labels without scaling panels. */
@media (min-width:1024px) {

 #rvV6Workspace .rv6-page small,#rvV6Workspace .rv6-kicker,#rvV6PageHost small,#rvV6PageHost .rv6-kicker{font-size:max(11px,.92em)!important;line-height:1.35!important}
 #rvV6Workspace .rv6-nav-item .rv6-button-label,#rvV6Workspace .rv6-nav-caption,#rvV6Workspace .rv6-page .rv6-feature-copy small{font-size:max(11px,.92em)!important;line-height:1.3!important}
 #rvV6GameHud .rv6-brand-copy small{font-size:12px!important;line-height:1.3!important}
 #rvV6GameHud .rv6-kicker,#rvV6GameHud .rv6-card-head>div small,#rvV6GameHud .rv6-live-tag{font-size:11px!important;line-height:1.3!important}
 #rvV6GameHud .rv6-ranking-body,#rvV6GameHud #leaderboard .rank-item{font-size:13px!important;line-height:1.4!important}
 #rvV6GameHud .rv6-ranking-body .rv-rank-laps{font-size:11px!important}
 #rvV6GameHud .rv6-speed-head,#rvV6GameHud .rv6-speed-foot,#rvV6GameHud #speed .rv5-speed-unit{font-size:12px!important}
 #rvV6GameHud .rv6-speed-foot small,#rvV6GameHud .rv6-lap-display small,#rvV6GameHud .rv6-time-cell small{font-size:11px!important;line-height:1.3!important}
 #uiPanelInner .rmt-tab{font-size:13px!important}
 #uiPanelInner .rmt-section label,#uiPanelInner .rmt-section button,#uiPanelInner .rmt-section select{font-size:13px!important}
}

#racePanel .rv-room-search-wrap .rv242-search-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;min-height:32px!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:7px!important;background:#11181e!important;color:#fff!important;font-size:17px!important;flex:0 0 32px!important}
/* Responsive workstation rail and compact settings on small devices. */
@media (max-width:700px) {

 #rvV6Workspace{grid-template-columns:44px minmax(0,1fr)!important;width:100vw!important;max-width:100vw!important;overflow:hidden!important}
 #rvV6Workspace .rv6-nav-rail{padding:6px 3px!important;min-width:0!important;overflow-x:hidden!important}
 #rvV6Workspace .rv6-nav-brand>span:not(.rv6-nav-logo),#rvV6Workspace .rv6-nav-caption,#rvV6Workspace .rv6-nav-footer,#rvV6Workspace .rv6-nav-item .rv6-button-label{display:none!important}
 #rvV6Workspace .rv6-nav-brand{justify-content:center!important;padding:0 0 6px!important}
 #rvV6Workspace .rv6-nav-logo{width:29px!important;height:29px!important;min-width:29px!important;flex-basis:29px!important}
 #rvV6Workspace .rv6-nav-item{width:100%!important;min-width:0!important;justify-content:center!important;padding:6px 2px!important}
 #rvV6Workspace .rv6-page-host{padding:6px 7px 36px!important}
 #rvV6Workspace .rv6-workspace-top{grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;padding:5px 7px!important}
 #rvV6Workspace .rv6-breadcrumb{min-width:0!important}
 #rvV6Workspace .rv6-breadcrumb small{font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 #rvV6Workspace .rv6-breadcrumb h1{font-size:15px!important;overflow-wrap:anywhere!important}
 #rvV6Workspace .rv6-workspace-state{display:none!important}
 #uiPanel{padding:2px!important;align-items:stretch!important;justify-content:stretch!important}
 #uiPanelInner{width:100%!important;max-width:100%!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;padding:4px!important;gap:0!important;border-radius:7px!important}
 #uiPanelInner .rv6-settings-layout{grid-template-columns:78px minmax(0,1fr)!important;gap:4px!important;height:100%!important;max-height:none!important}
 #uiPanelInner .rv6-settings-nav{padding:3px!important;gap:3px!important}
 #uiPanelInner .rv6-settings-nav-head{display:none!important}
 #uiPanelInner .rally-menu-tabs.rv6-settings-tabs{gap:3px!important}
 #uiPanelInner .rmt-tab{min-height:34px!important;padding:5px 3px!important;font-size:10px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
 #uiPanelInner .rv6-settings-content{padding:0!important;height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin!important}
 #uiPanelInner .rmt-section{padding:5px!important}
 #uiPanelInner .rmt-section .rmt-card{padding:6px!important;margin-bottom:5px!important}
 #uiPanelInner .rv240-setting-pair{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
 #uiPanelInner .rv240-setting-pair .rv240-setting-row{padding:2px!important}
 #uiPanelInner .rv240-control-label{font-size:11px!important;line-height:1.25!important;white-space:normal!important}
 #uiPanelInner .rv240-display-grid{grid-template-columns:1fr!important;gap:6px!important}
 #uiPanelInner .rv240-name-group{padding:6px!important}
 #uiPanelInner .rv240-name-toggle{min-height:30px!important}
 #uiPanelInner .rv240-range-pair{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
 #uiPanelInner .rv238-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
 #uiPanelInner .rv238-preset-option{padding:6px!important;gap:4px!important}
 #uiPanelInner .rv240-options-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
 #uiPanelInner .rv240-choice span{font-size:10px!important;line-height:1.25!important}
 #uiPanelInner .rv240-choice select{font-size:11px!important;height:32px!important;min-height:32px!important;padding:4px!important}
 #uiPanelInner .rv240-cockpit-options{padding:6px!important;margin-top:6px!important}
 #uiPanelInner .rv240-cockpit-note{font-size:10px!important}
 #uiPanelInner .rv240-language-row-inline{align-items:flex-start!important;flex-direction:column!important;gap:5px!important}
 #uiPanelInner .rv240-language-row-inline select{width:100%!important;min-width:0!important}
 #rvV6Page_overview .rv6-overview-mast{min-height:0!important;height:auto!important;padding:7px!important;grid-template-columns:minmax(0,1fr) 85px!important}
 #rvV6Page_overview .rv6-mast-copy p{display:none!important}
 #rvV6Page_overview .rv6-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #rvV6Page_overview .rv6-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #rvV6Page_overview .rv6-feature-card{min-width:0!important;grid-template-columns:22px minmax(0,1fr) 7px!important;padding:5px!important}
 #rvV6Page_overview .rv6-feature-copy b{font-size:11px!important;overflow-wrap:anywhere!important}
 #rvV6Page_overview .rv6-feature-copy>span{font-size:10px!important;overflow-wrap:anywhere!important}
 #rvV6GameHud .rv6-topbar{grid-template-columns:minmax(0,.7fr) minmax(0,1fr) auto!important;gap:4px!important;padding:3px 4px!important}
 #rvV6GameHud .rv6-brand-copy small{display:none!important}
 #rvV6GameHud .rv6-driver-values small,#rvV6GameHud #rvV6RoomName{font-size:9px!important;max-width:100%!important}
 #rvV6GameHud .rv6-session-chip{max-width:min(42vw,240px)!important;min-height:22px!important}
 #rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{top:calc(74px + var(--rv6-safe-t))!important;left:calc(6px + var(--rv6-safe-l))!important;right:auto!important;width:clamp(142px,24vw,180px)!important;max-width:min(42vw,180px)!important}
 #rvV6GameHud .rv6-card-head{min-height:32px!important;padding:4px 6px!important;gap:4px!important}
 #rvV6GameHud .rv6-card-head>div small{font-size:9px!important;letter-spacing:.02em!important}
 #rvV6GameHud .rv6-card-head>div b{font-size:10px!important;letter-spacing:.02em!important}
 #rvV6GameHud .rv6-live-tag{font-size:8px!important;gap:2px!important}
 #rvV6GameHud .rv6-ranking-body{max-height:31dvh!important;overflow-y:auto!important}
 #rvV6GameHud .rv6-ranking-body .rank-item{font-size:10px!important;line-height:1.3!important}
 #rvV6GameHud .rv6-status-ribbon{max-width:42vw!important;overflow-wrap:anywhere!important}
 /* Compress header bars but keep their close buttons reachable as floating controls. */
 .rv-popup-card,.rv-modal-card,.chat-history-card,.report-issue-card,#racePanel,.race-final-card,#rvRoomPopup .rv-room-card{position:relative!important;box-sizing:border-box!important;max-width:100vw!important;max-height:96dvh!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
 .rv-popup-head,.rv-modal-head,.chat-history-header,.chat-history-head{position:absolute!important;top:3px!important;right:3px!important;left:auto!important;z-index:30!important;width:32px!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;overflow:visible!important}
 .rv-popup-head h3,.rv-modal-head h3,.chat-history-header h3,.chat-history-head h3{display:none!important}
 .rv-popup-head .rv-popup-close,.rv-modal-head button,.chat-history-header button,.chat-history-head button{position:absolute!important;top:0!important;right:0!important;width:29px!important;height:29px!important;min-width:29px!important;min-height:29px!important;padding:0!important;z-index:31!important}
 #racePanel .race-panel__header{position:absolute!important;top:3px!important;right:3px!important;left:auto!important;z-index:30!important;min-height:0!important;height:0!important;width:34px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;overflow:visible!important}
 #racePanel .race-panel__header h3,#racePanel #racePanelStatus{display:none!important}
 #racePanel .race-panel__header-actions{position:static!important;display:block!important;width:0!important;height:0!important;overflow:visible!important}
 #racePanel #btnCloseRacePanel{position:absolute!important;top:0!important;right:0!important;width:29px!important;height:29px!important;min-height:29px!important;padding:0!important;z-index:31!important}
 #racePanel .race-panel__controls,#racePanel .race-status{display:none!important}
 #racePanel .rv-room-search-wrap{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;flex-wrap:wrap!important;margin:0 0 7px!important;padding:0!important;background:transparent!important;border:0!important;min-height:32px!important}
 #racePanel .rv242-search-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:32px!important;min-height:32px!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:7px!important;background:#11181e!important;color:#fff!important;font-size:17px!important;flex:0 0 34px!important}
 #racePanel .rv-room-search-wrap #rvRoomSearchInput{display:none!important;flex:1 0 100%!important;width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}
 #racePanel .rv-room-search-wrap.rv242-search-expanded #rvRoomSearchInput{display:block!important}
 #raceRoomsList{max-height:calc(96dvh - 64px)!important;overflow-y:auto!important}
 .chat-history-list,#chatHistoryList,#reportIssueOverlay textarea,#raceFinalOverlay .race-final-table-wrap{min-height:0!important;max-height:60dvh!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}
}

@media (max-width:430px) {

 #rvV6Workspace{grid-template-columns:38px minmax(0,1fr)!important}
 #rvV6Workspace .rv6-nav-logo{width:26px!important;height:26px!important;min-width:26px!important;flex-basis:26px!important}
 #uiPanelInner .rv6-settings-layout{grid-template-columns:68px minmax(0,1fr)!important}
 #uiPanelInner .rmt-tab{font-size:9px!important;padding:4px 2px!important}
 #uiPanelInner .rv240-setting-pair{gap:4px!important}
 #uiPanelInner .rv240-control-label{font-size:10px!important}
 #rvV6GameHud .rv6-topbar{grid-template-columns:minmax(0,.6fr) minmax(0,1fr) auto!important}
 #rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{width:142px!important;max-width:44vw!important}
 #rvV6GameHud .rv6-card-head>div small{font-size:8px!important}
 #rvV6GameHud .rv6-card-head>div b{font-size:10px!important}
 #rvV6GameHud .rv6-live-tag{font-size:8px!important}
}


/* Redesign 14 final corrections: readable telemetry, opacity actually applied to painted surfaces, and small-screen resilience. */
#rvV6GameHud .rv6-topbar{grid-template-columns:minmax(0,.68fr) minmax(0,.82fr) auto!important;gap:clamp(4px,.55vw,9px)!important}
#rvV6GameHud .rv6-brand,#rvV6GameHud .rv6-driver-pill,#rvV6GameHud .rv6-top-actions{min-width:0!important}
#rvV6GameHud .rv6-brand-copy{overflow:hidden!important}
#rvV6GameHud .rv6-driver-pill{max-width:min(31vw,285px)!important;padding-inline:clamp(4px,.6vw,10px)!important}
#rvV6GameHud .rv6-driver-values{overflow:hidden!important}
#rvV6GameHud #rvV6RoomName{width:100%!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#rvV6GameHud .rv6-top-actions{gap:clamp(2px,.35vw,5px)!important;overflow:hidden!important}
#rvV6GameHud .rv6-session-chip{max-width:min(340px,38vw)!important;overflow:hidden!important;white-space:nowrap!important}
#rvV6GameHud #rvV6SessionText{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{top:calc(105px + var(--rv6-safe-t))!important;left:calc(12px + var(--rv6-safe-l))!important;right:auto!important;width:clamp(145px,22vw,220px)!important;max-width:min(40vw,220px)!important;min-width:0!important}
#rvV6GameHud .rv6-card-head{grid-template-columns:minmax(0,1fr) auto!important;min-height:39px!important;height:auto!important;gap:5px!important;padding:5px 7px!important}
#rvV6GameHud .rv6-card-head>div{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:100%!important}
#rvV6GameHud .rv6-card-head>div small{font-size:9px!important;line-height:1.15!important;letter-spacing:.035em!important;white-space:nowrap!important}
#rvV6GameHud .rv6-card-head>div b{font-size:11px!important;line-height:1.15!important;letter-spacing:.045em!important;white-space:nowrap!important}
#rvV6GameHud .rv6-live-tag{font-size:9px!important;letter-spacing:.04em!important}
/* Make all panel backgrounds obey the selected opacity, including nested controls and the native speed display. */
/* Main app shell and pop-up content must be scrollable inside the available viewport. */
#rvV6Page_settings .rv6-page-intro,#rvV6Page_overview .rv6-page-intro{display:none!important}
#rvV6Workspace .rv6-page-host{min-width:0!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
#rvV6Workspace .rv6-page{min-width:0!important;min-height:0!important;max-width:100%!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important}
#rvV6Workspace .rv6-live-surface{min-width:0!important;max-width:100%!important;min-height:0!important;box-sizing:border-box!important}
#rvV6Workspace .rv6-page[data-page="settings"].active{min-height:0!important;overflow:hidden!important}
#rvV6Page_settings .rv6-live-surface{height:100%!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
#uiPanel[data-v6-active="true"]{display:flex!important;flex:1 1 auto!important;min-height:0!important;height:100%!important;max-height:100%!important;overflow:hidden!important}
#uiPanelInner{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;width:100%!important;min-width:0!important;min-height:0!important;height:100%!important;max-height:100%!important;overflow:hidden!important}
#uiPanelInner .rv6-settings-layout{display:grid!important;grid-template-columns:minmax(112px,158px) minmax(0,1fr)!important;flex:1 1 auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
#uiPanelInner .rv6-settings-content{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;min-height:0!important;height:100%!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
#uiPanelInner .rv6-settings-content .rmt-section.active{display:block!important;flex:0 0 auto!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
#uiPanelInner #controls.rv240-control-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%!important;max-width:100%!important}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-column:1/-1!important;gap:7px!important;width:100%!important;min-width:0!important}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:100%!important;gap:4px!important;padding:7px!important;border:1px solid rgba(213,231,243,.10)!important;border-radius:7px!important;background:rgba(255,255,255,.025)!important;overflow:hidden!important}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair .rv240-control-label{display:block!important;min-width:0!important;font-size:11px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair .rv240-control-field,#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair select{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#uiPanelInner .rv240-display-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:8px!important}
#uiPanelInner .rv240-name-group{min-width:0!important;max-width:100%!important;overflow:hidden!important}
#uiPanelInner .rv240-name-toggle{display:flex!important;width:100%!important;min-width:0!important;gap:6px!important;align-items:flex-start!important}
#uiPanelInner .rv240-name-toggle input{flex:0 0 auto!important}
#uiPanelInner .rv240-name-toggle span{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
#uiPanelInner .rv240-range-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0!important;gap:5px!important}
#uiPanelInner .rv240-range-field{min-width:0!important;overflow:hidden!important}
#uiPanelInner .rv240-range-field output{white-space:nowrap!important}
/* Compact room search and controls without removing the actual join action. */
#racePanel .race-panel__controls{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,auto)!important;align-items:center!important;gap:5px!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
#racePanel .race-panel__controls #raceRoomSelect{grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:100%!important}
#racePanel .race-panel__controls #roomPasswordInput{grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#racePanel .race-panel__controls #btnJoinRace,#racePanel .race-panel__controls #btnEntryProposal,#racePanel .race-panel__controls #btnLeaveRoom{min-width:0!important;max-width:100%!important;width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:10px!important;line-height:1.3!important;padding:6px!important;box-sizing:border-box!important}
#racePanel .race-status{display:block!important;min-width:0!important;max-width:100%!important;min-height:18px!important;max-height:28px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding:3px 6px!important;margin:2px 0!important;font-size:10px!important;line-height:1.35!important}
#racePanel .rv-room-search-wrap{min-width:0!important;max-width:100%!important}
#racePanel .rv-room-search-wrap #rvRoomSearchInput{min-width:0!important;max-width:100%!important}
/* The close affordance floats at the top-right; reserve a little content space without keeping a large header. */
@media (max-width:700px) {

 #rvV6Workspace{grid-template-columns:35px minmax(0,1fr)!important;width:100vw!important;max-width:100vw!important}
 #rvV6Workspace .rv6-nav-rail{width:35px!important;min-width:35px!important;padding-inline:2px!important}
 #rvV6Workspace .rv6-nav-logo{width:25px!important;height:25px!important;min-width:25px!important;flex-basis:25px!important}
 #rvV6Workspace .rv6-page-host{padding:5px 6px 28px!important}
 #rvV6Workspace .rv6-workspace-top{min-height:45px!important;padding:4px 6px!important;gap:4px!important}
 #rvV6Workspace .rv6-breadcrumb h1{font-size:14px!important;line-height:1.2!important}
 #rvV6Workspace .rv6-workspace-top-actions{width:auto!important;max-width:40vw!important;flex-direction:row!important;align-items:center!important;gap:3px!important}
 #uiPanelInner{padding:3px!important}
 #uiPanelInner .rv6-settings-layout{grid-template-columns:64px minmax(0,1fr)!important;gap:3px!important}
 #uiPanelInner .rv6-settings-nav{overflow-y:auto!important;min-height:0!important}
 #uiPanelInner .rv6-settings-content{height:100%!important;min-height:0!important;overflow-y:auto!important;padding:0 2px 18px 0!important}
 #uiPanelInner .rv6-settings-mainbar{display:none!important}
 #uiPanelInner .rv240-display-grid{grid-template-columns:minmax(0,1fr)!important}
 #uiPanelInner .rv240-name-group{padding:6px!important}
 #uiPanelInner .rv240-setting-pair{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
 #uiPanelInner .rv240-control-label{font-size:10px!important;line-height:1.25!important}
 #uiPanelInner .rv240-choice span{font-size:11px!important;line-height:1.3!important}
 #uiPanelInner .rv240-choice select{width:100%!important;min-width:0!important;font-size:11px!important}
 #uiPanelInner .rv240-reset-button{min-height:38px!important;width:100%!important;white-space:normal!important}
 #rvV6GameHud .rv6-topbar{left:calc(4px + var(--rv6-safe-l))!important;right:calc(4px + var(--rv6-safe-r))!important;grid-template-columns:minmax(0,.42fr) minmax(0,.48fr) auto!important;gap:3px!important;padding:3px!important;min-height:36px!important}
 #rvV6GameHud .rv6-brand{gap:4px!important}
 #rvV6GameHud .rv6-brand-logo,#rvV6GameHud .rv6-brand-mark{width:23px!important;height:23px!important;min-width:23px!important;flex:0 0 23px!important}
 #rvV6GameHud .rv6-brand-copy b{font-size:9px!important;letter-spacing:.03em!important}
 #rvV6GameHud .rv6-driver-pill{gap:4px!important;padding:3px!important;max-width:100%!important}
 #rvV6GameHud .rv6-driver-avatar{width:19px!important;height:19px!important;flex:0 0 19px!important}
 #rvV6GameHud .rv6-driver-values b{font-size:8px!important;letter-spacing:0!important}
 #rvV6GameHud .rv6-driver-values small,#rvV6GameHud #rvV6RoomName{font-size:8px!important;letter-spacing:0!important}
 #rvV6GameHud .rv6-top-actions{gap:2px!important;max-width:100%!important}
 #rvV6GameHud .rv6-top-actions .rv6-button{width:25px!important;min-width:25px!important;height:25px!important;min-height:25px!important;padding:4px!important;gap:1px!important}
 #rvV6GameHud .rv6-top-actions #rvV6Races{width:auto!important;min-width:38px!important;padding-inline:4px!important;font-size:8px!important}
 #rvV6GameHud .rv6-session-chip{top:calc(49px + var(--rv6-safe-t))!important;left:calc(5px + var(--rv6-safe-l))!important;max-width:min(55vw,260px)!important;min-height:20px!important;padding:3px 6px!important;gap:5px!important;font-size:8px!important;letter-spacing:.02em!important}
 #rvV6GameHud #rvV6SessionText{font-size:8px!important}
 #rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{top:calc(75px + var(--rv6-safe-t))!important;left:calc(5px + var(--rv6-safe-l))!important;right:auto!important;width:clamp(140px,28vw,180px)!important;max-width:min(43vw,180px)!important}
 #rvV6GameHud .rv6-card-head{min-height:34px!important;padding:4px 6px!important}
 #rvV6GameHud .rv6-card-head>div small{font-size:8px!important;letter-spacing:.02em!important}
 #rvV6GameHud .rv6-card-head>div b{font-size:10px!important;letter-spacing:.025em!important}
 #rvV6GameHud .rv6-live-tag{font-size:8px!important}
 #rvV6GameHud .rv6-status-ribbon{max-width:40vw!important;overflow:hidden!important}
 #rvV6GameHud .rv6-status-ribbon>*{min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .rv-popup-card,.rv-modal-card,.chat-history-card,.report-issue-card,#racePanel,.race-final-card,#rvRoomPopup .rv-room-card{padding-top:34px!important}
 #racePanel .race-panel__controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;padding:3px!important;margin:1px 0!important}
 #racePanel .race-panel__controls #raceRoomSelect,#racePanel .race-panel__controls #roomPasswordInput{grid-column:1/-1!important}
 #racePanel .race-panel__controls #btnJoinRace{grid-column:1!important}
 #racePanel .race-panel__controls #btnEntryProposal{grid-column:2!important}
 #racePanel .race-status{font-size:9px!important;min-height:16px!important;max-height:22px!important}
 #raceRoomsList{max-height:calc(96dvh - 160px)!important;overflow-y:auto!important}
}

@media (max-width:430px) {

 #rvV6Workspace{grid-template-columns:30px minmax(0,1fr)!important}
 #rvV6Workspace .rv6-nav-rail{width:30px!important;min-width:30px!important;padding-inline:1px!important}
 #rvV6Workspace .rv6-nav-logo{width:22px!important;height:22px!important;min-width:22px!important;flex-basis:22px!important}
 #uiPanelInner .rv6-settings-layout{grid-template-columns:55px minmax(0,1fr)!important}
 #uiPanelInner .rmt-tab{font-size:8px!important;padding:4px 1px!important;line-height:1.15!important}
 #rvV6GameHud .rv6-topbar{grid-template-columns:minmax(0,.3fr) minmax(0,.42fr) auto!important;gap:2px!important}
 #rvV6GameHud .rv6-driver-pill{max-width:100%!important}
 #rvV6GameHud .rv6-driver-avatar{display:none!important}
 #rvV6GameHud .rv6-top-actions .rv6-button{width:23px!important;min-width:23px!important;height:23px!important;min-height:23px!important;padding:3px!important}
 #rvV6GameHud .rv6-top-actions #rvV6Races{min-width:34px!important;font-size:7px!important}
 #rvV6GameHud .rv6-session-chip{max-width:54vw!important;font-size:7px!important}
 #rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{width:138px!important;max-width:43vw!important}
 #uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair{gap:4px!important}
 #uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row{padding:4px!important}
 #raceRoomsList{max-height:calc(96dvh - 175px)!important}
}

@media (min-width:1024px) {

 #rvV6Workspace .rv6-feature-copy small,#rvV6Workspace .rv6-page .rv6-kicker,#rvV6Workspace .rv6-page small{font-size:max(12px,1em)!important;line-height:1.4!important}
 #rvV6Workspace .rv6-feature-copy b{font-size:max(14px,1em)!important}
 #rvV6GameHud .rv6-driver-values small,#rvV6GameHud #rvV6RoomName{font-size:11px!important}
 #rvV6GameHud .rv6-card-head>div small{font-size:10px!important}
 #rvV6GameHud .rv6-card-head>div b{font-size:12px!important}
}


/* Preserve the original tactile 5-gear throttle ring; the wrapper must never become a blurred strip. */








/* Redesign 14: final small-screen collision hardening and accessible compact layouts. */
#rvV6GameHud .rv6-topbar,#rvV6GameHud .rv6-topbar>*{box-sizing:border-box!important;min-width:0!important}
#rvV6GameHud .rv6-brand-copy,#rvV6GameHud .rv6-driver-values,#rvV6GameHud .rv6-top-actions{min-width:0!important;max-width:100%!important}
#rvV6GameHud .rv6-brand-copy b,#rvV6GameHud .rv6-driver-values b{display:block!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#rvV6GameHud .rv6-speed-head{display:flex!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;gap:4px!important}
#rvV6GameHud .rv6-speed-head>span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#rvV6GameHud .rv6-speed-head>span:first-child{flex:1 1 auto!important}
#rvV6GameHud .rv6-speed-head>span:last-child{flex:0 1 auto!important;max-width:42%!important}
#rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{z-index:8!important}
#rvV6GameHud .rv6-card-head{grid-template-columns:minmax(0,1fr) auto!important}
#rvV6GameHud .rv6-card-head>div small,#rvV6GameHud .rv6-card-head>div b{max-width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
#rvV6GameHud .rv6-card-head>div small{font-size:clamp(9px,1vw,11px)!important;letter-spacing:.025em!important}
#rvV6GameHud .rv6-card-head>div b{font-size:clamp(10px,1.05vw,12px)!important;letter-spacing:.025em!important}
#rvV6GameHud .rv6-race-telemetry{background:transparent!important}
/* User can select top corners for the speed pod without covering the fixed header. */
body[data-rv240-meter-position="top-right"] #rvV6GameHud #rvV6SpeedPod{top:calc(62px + var(--rv6-safe-t))!important;bottom:auto!important;right:calc(12px + var(--rv6-safe-r))!important}
body[data-rv240-meter-position="top-left"] #rvV6GameHud #rvV6SpeedPod{top:56%!important;bottom:auto!important;left:calc(12px + var(--rv6-safe-l))!important;right:auto!important}
@media (max-width:700px) {

 #rvV6GameHud .rv6-topbar{grid-template-columns:minmax(0,.52fr) minmax(0,.62fr) auto!important;gap:3px!important;overflow:hidden!important}
 #rvV6GameHud .rv6-driver-pill{overflow:hidden!important}
 #rvV6GameHud .rv6-driver-values b,#rvV6GameHud .rv6-driver-values small,#rvV6GameHud #rvV6RoomName{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 #rvV6GameHud .rv6-brand-copy b{font-size:clamp(9px,2vw,12px)!important;letter-spacing:.02em!important}
 #rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{top:calc(76px + var(--rv6-safe-t))!important;left:calc(5px + var(--rv6-safe-l))!important;width:clamp(138px,28vw,184px)!important;max-width:min(43vw,184px)!important}
 #rvV6GameHud .rv6-card-head{min-height:35px!important;padding:4px 5px!important}
 #rvV6GameHud .rv6-card-head>div small{font-size:9px!important;letter-spacing:0!important}
 #rvV6GameHud .rv6-card-head>div b{font-size:10px!important;letter-spacing:0!important}
 #rvV6GameHud .rv6-live-tag{font-size:8px!important}
 #rvV6GameHud .rv6-speed-head{font-size:clamp(9px,1.7vw,11px)!important}
 #rvV6GameHud .rv6-speed-head>span:last-child{max-width:35%!important}
 #rvV6Workspace .rv6-workspace-main,#rvV6Workspace .rv6-page-host,#rvV6Workspace .rv6-page{min-width:0!important;max-width:100%!important}
 #rvV6Workspace .rv6-workspace-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;max-width:100%!important;overflow:hidden!important}
 #rvV6Workspace .rv6-breadcrumb,#rvV6Workspace .rv6-breadcrumb h1{min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
 #rvV6Workspace .rv6-workspace-top-actions{min-width:0!important}
 #uiPanelInner .rv6-settings-layout{grid-template-columns:clamp(44px,12vw,64px) minmax(0,1fr)!important;min-width:0!important}
 #uiPanelInner .rv6-settings-nav{min-width:0!important;width:100%!important}
 #uiPanelInner .rv6-settings-content,#uiPanelInner .rmt-section,#uiPanelInner .rmt-card{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 #uiPanelInner .rv240-display-grid{grid-template-columns:minmax(0,1fr)!important}
 #uiPanelInner .rv240-name-group{width:100%!important}
 #uiPanelInner .rv240-options-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #uiPanelInner .rv240-choice{min-width:0!important;overflow:hidden!important}
 #uiPanelInner .rv240-choice span{overflow-wrap:anywhere!important}
 #uiPanelInner .rv240-choice select{min-width:0!important;width:100%!important;max-width:100%!important}
 #uiPanelInner .rv240-setting-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #uiPanelInner .rv240-cockpit-options{min-width:0!important;max-width:100%!important;overflow:visible!important}
 #uiPanelInner .rv6-settings-content{display:block!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;max-height:calc(100dvh - 14px)!important}
 #uiPanelInner .rv6-settings-content .rmt-section.active{overflow:visible!important;height:auto!important;max-height:none!important}
 #uiPanelInner #rv240PlacementOptions{padding-bottom:28px!important;margin-bottom:20px!important}
 #racePanel .race-panel__controls{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:4px!important;min-width:0!important}
 #racePanel .race-panel__controls>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 #racePanel .race-status{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
}

@media (max-width:430px) {

 #rvV6Workspace{grid-template-columns:30px minmax(0,1fr)!important}
 #rvV6Workspace .rv6-nav-rail{width:30px!important;min-width:30px!important}
 #uiPanelInner .rv6-settings-layout{grid-template-columns:46px minmax(0,1fr)!important}
 #uiPanelInner .rmt-tab{font-size:9px!important;padding:4px 0!important}
 #rvV6GameHud .rv6-topbar{grid-template-columns:minmax(0,.4fr) minmax(0,.45fr) auto!important;gap:2px!important}
 #rvV6GameHud .rv6-top-actions{max-width:100%!important;overflow:hidden!important}
 #rvV6GameHud .rv6-top-actions .rv6-button{width:21px!important;min-width:21px!important;height:22px!important;min-height:22px!important;padding:2px!important}
 #rvV6GameHud .rv6-top-actions #rvV6Races{min-width:29px!important;font-size:7px!important}
 #rvV6GameHud .rv6-driver-values b{font-size:8px!important}
 #rvV6GameHud .rv6-driver-values small,#rvV6GameHud #rvV6RoomName{font-size:8px!important}
 #rvV6GameHud .rv6-card-head>div small{font-size:8px!important}
 #rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{width:136px!important;max-width:43vw!important}
}

@media (min-width:1024px) {

 #rvV6GameHud .rv6-driver-values b,#rvV6GameHud #rvV6RoomName{font-size:12px!important}
 #rvV6GameHud .rv6-card-head>div small{font-size:11px!important}
 #rvV6GameHud .rv6-card-head>div b{font-size:13px!important}
 #rvV6GameHud .rv6-ranking-body .rank-item{font-size:13px!important}
 #rvV6GameHud .rv6-time-value{font-size:12px!important}
}


/* Last-pass scroll containment: active tab content must be scrollable on small landscape phones. */
#uiPanel,#uiPanelInner{min-height:0!important;overscroll-behavior:contain!important}
#uiPanelInner{display:flex!important;flex-direction:column!important;overflow:hidden!important}
#uiPanelInner #rallyMenuTabs{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin!important;white-space:normal!important}
#uiPanelInner .rv6-settings-layout{flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:hidden!important}
#uiPanelInner .rv6-settings-content{flex:1 1 auto!important;min-height:0!important;height:100%!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
#uiPanelInner .rv6-settings-content .rmt-section.active{display:block!important;min-height:0!important;overflow:visible!important}
#uiPanelInner .rv240-display-grid>div{min-width:0!important;max-width:100%!important}
#uiPanelInner .rv240-range-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;min-width:0!important}
#uiPanelInner .rv240-range-field{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
#uiPanelInner .rv240-range-field input[type=range]{width:100%!important;min-width:0!important}
@media (max-width:700px) {

 #uiPanelInner #rallyMenuTabs{max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;white-space:normal!important}
 #uiPanelInner .rv6-settings-layout{grid-template-columns:clamp(43px,10vw,58px) minmax(0,1fr)!important}
 #uiPanelInner .rv6-settings-content{padding-bottom:28px!important}
 #uiPanelInner .rv240-options-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #uiPanelInner .rv240-choice{display:flex!important;flex-direction:column!important;gap:4px!important}
 #uiPanelInner .rv240-choice span{display:block!important;min-height:2.35em!important}
}

@media (max-width:430px) {

 #uiPanelInner .rv6-settings-layout{grid-template-columns:52px minmax(0,1fr)!important}
 #uiPanelInner .rv6-settings-content .rmt-section{padding:4px 3px 22px!important}
 #uiPanelInner .rv240-options-grid{grid-template-columns:1fr!important}
 #uiPanelInner .rv240-choice span{min-height:0!important}
}


/* Guard against legacy/translated telemetry labels competing with the room identity on narrow widths. */
#rvV6GameHud .rv6-topbar{grid-template-columns:minmax(0,.72fr) minmax(0,.9fr) auto!important;align-items:center!important;}
#rvV6GameHud .rv6-topbar .rv6-brand,#rvV6GameHud .rv6-topbar .rv6-driver-pill{overflow:hidden!important;}
#rvV6GameHud .rv6-brand-copy b,#rvV6GameHud .rv6-driver-values b,#rvV6GameHud .rv6-driver-values small,#rvV6GameHud #rvV6RoomName{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
#rvV6GameHud .rv6-speed-pod{min-width:0!important;box-sizing:border-box!important;overflow:hidden!important;}
#rvV6GameHud .rv6-speed-head{min-width:0!important;box-sizing:border-box!important;overflow:hidden!important;}
#rvV6GameHud .rv6-speed-head>*{min-width:0!important;max-width:100%!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;}
#rvV6GameHud .rv6-card-head>div{max-width:100%!important;min-width:0!important;}
#rvV6GameHud .rv6-card-head>div small{font-size:clamp(9px,1vw,11px)!important;letter-spacing:.015em!important;}
#rvV6GameHud .rv6-card-head>div b{font-size:clamp(10px,1.1vw,13px)!important;letter-spacing:.015em!important;}
#rvV6GameHud .rv6-card-head{min-height:38px!important;}
#rvV6GameHud .rv6-session-chip .rv6-session-code{display:none!important;}
#rvV6GameHud .rv6-race-telemetry{background:transparent!important;}
/* HUD, leaderboard, speed pod and timing fields repaint with their selected alpha through UI v9. */
@media (max-width:700px) {

 #rvV6GameHud .rv6-topbar{grid-template-columns:minmax(0,.5fr) minmax(0,.58fr) auto!important;gap:2px!important;}
 #rvV6GameHud .rv6-brand-copy b{font-size:clamp(9px,1.8vw,11px)!important;}
 #rvV6GameHud .rv6-driver-values{overflow:hidden!important;}
 #rvV6GameHud .rv6-driver-values b,#rvV6GameHud .rv6-driver-values small,#rvV6GameHud #rvV6RoomName{max-width:100%!important;}
 #rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{top:calc(76px + var(--rv6-safe-t))!important;left:calc(5px + var(--rv6-safe-l))!important;width:clamp(136px,28vw,182px)!important;max-width:43vw!important;}
 #rvV6GameHud .rv6-card-head{min-height:36px!important;padding:4px 5px!important;gap:3px!important;}
 #rvV6GameHud .rv6-card-head>div small{font-size:9px!important;letter-spacing:0!important;}
 #rvV6GameHud .rv6-card-head>div b{font-size:10px!important;letter-spacing:0!important;}
 #rvV6GameHud .rv6-live-tag{font-size:8px!important;}
 #uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-column:1/-1!important;width:100%!important;}
 #uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row{min-width:0!important;max-width:100%!important;}
 #uiPanelInner .rv240-display-grid{grid-template-columns:minmax(0,1fr)!important;}
}

@media (max-width:430px) {

 #rvV6GameHud .rv6-topbar{grid-template-columns:minmax(0,.38fr) minmax(0,.42fr) auto!important;}
 #rvV6GameHud .rv6-driver-avatar{display:none!important;}
 #rvV6GameHud .rv6-top-actions{min-width:0!important;overflow:hidden!important;}
 #rvV6GameHud .rv6-top-actions .rv6-button{width:21px!important;min-width:21px!important;height:22px!important;min-height:22px!important;padding:2px!important;}
 #rvV6GameHud .rv6-top-actions #rvV6Races{min-width:29px!important;font-size:7px!important;}
 #rvV6GameHud .rv6-session-chip{max-width:52vw!important;}
 #rvV6GameHud .rv6-ranking-card,#rvV6GameHud #rvV6RankingCard{width:134px!important;max-width:43vw!important;}
 #uiPanelInner .rv6-settings-layout{grid-template-columns:52px minmax(0,1fr)!important;}
}

