/* Rallyver V19.2.353 layout corrections and additional settings. */
#rv299LiveSettingPreview .rv299-live-preview-head{touch-action:none!important;user-select:none!important;-webkit-user-select:none!important;cursor:grab!important}
#rv299LiveSettingPreview{touch-action:none!important;overscroll-behavior:contain!important}
.rv349-multiplayer-setting-locked{opacity:.38!important;filter:grayscale(1)!important;pointer-events:none!important}
.rv349-multiplayer-setting-locked input,.rv349-multiplayer-setting-locked select{cursor:not-allowed!important}
.rv349-photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
.rv349-photo-actions button{min-height:36px;padding:7px 9px;border:1px solid rgba(255,255,255,.15);border-radius:6px;background:rgba(225,6,0,.18);color:#fff;font:700 11px Tahoma,sans-serif}
#rv349PhotoStatus{min-height:18px;margin-top:6px;color:#aebbc2;font-size:10px;line-height:1.5}
/* Leaderboard position is independent from the HUD and speedometer positions. */
body[data-rv240-leaderboard-position="top-left"] #rvV6GameHud #rvV6RankingCard{top:calc(105px + var(--rv6-safe-t))!important;bottom:auto!important;left:calc(12px + var(--rv6-safe-l))!important;right:auto!important}
body[data-rv240-leaderboard-position="top-right"] #rvV6GameHud #rvV6RankingCard{top:calc(105px + var(--rv6-safe-t))!important;bottom:auto!important;left:auto!important;right:calc(12px + var(--rv6-safe-r))!important}
body[data-rv240-leaderboard-position="bottom-left"] #rvV6GameHud #rvV6RankingCard{top:auto!important;bottom:calc(12px + var(--rv6-safe-b))!important;left:calc(12px + var(--rv6-safe-l))!important;right:auto!important}
body[data-rv240-leaderboard-position="bottom-right"] #rvV6GameHud #rvV6RankingCard{top:auto!important;bottom:calc(12px + var(--rv6-safe-b))!important;left:auto!important;right:calc(12px + var(--rv6-safe-r))!important}
/* Higher specificity than the compact mobile HUD rules: top-left must stay top-left. */
@media(max-width:700px){body[data-rv240-meter-position="top-left"] #rvV6GameHud #rvV6SpeedPod{left:calc(6px + var(--rv6-safe-l))!important;right:auto!important;top:calc(76px + var(--rv6-safe-t))!important;bottom:auto!important}}
#touchControls,#touchControlsMedium,#touchControlsAdvanced{z-index:1250!important}

.rv353-player-car-toggle{display:flex!important;align-items:center!important;gap:8px!important;margin:8px 0!important;font-size:11px!important;color:#e6edf2!important}.rv353-player-car-toggle input{width:16px!important;height:16px!important;accent-color:#e10600!important}

/* V19.2.359 camera presets and three equal columns */
.rv354-camera-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
.rv354-camera-grid>button{min-width:0!important;width:100%!important;white-space:normal!important}
.rv354-user-profile-hint{font:10px/1.7 Tahoma,Arial,sans-serif;color:#91a9bf;margin:5px 0 8px}
.rv354-camera-car-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:7px 0}
.rv354-camera-car-row .rv353-player-car-toggle{grid-column:1/-1;margin:0}
.rv354-traffic-count.is-disabled{opacity:.38;filter:grayscale(1)}
.rv354-traffic-count.is-disabled input{pointer-events:none}

.rv354-camera-car-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:center!important;gap:8px!important}
.rv354-camera-car-row>*{min-width:0!important;width:100%!important;box-sizing:border-box!important}
.rv354-camera-car-row .rv353-player-car-toggle{grid-column:auto!important;min-height:38px;display:flex;align-items:center;justify-content:center}
.rv354-camera-car-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;margin:9px 0!important}
.rv354-camera-car-row .rv354-camera-car-cell{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:5px!important;min-width:0!important;width:100%!important;padding:8px!important;box-sizing:border-box!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:8px!important;background:rgba(255,255,255,.025)!important;color:#b9c9d9!important;font:10px/1.5 Tahoma,Arial,sans-serif!important}
.rv354-camera-car-row .rv354-camera-car-cell select{width:100%!important;min-width:0!important;max-width:100%!important}
.rv354-camera-car-row .rv353-player-car-toggle{flex-direction:row!important;align-items:center!important;justify-content:center!important}

/* V19.2.359: compact camera heading and a single real settings card above Road Width. */
.rv354-camera-tools>.rv240-cockpit-options-head b{font-size:12px!important}
.rv354-camera-car-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:8px 0!important;padding:10px!important}
.rv354-camera-car-row .rv354-camera-car-cell{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:stretch!important;gap:6px!important;min-width:0!important;margin:0!important;padding:8px!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:8px!important;background:rgba(255,255,255,.025)!important;box-sizing:border-box!important}
.rv354-camera-car-row .rv354-camera-car-cell select{width:100%!important;min-width:0!important;max-width:100%!important}
.rv354-camera-car-row .rv353-player-car-toggle{flex-direction:row!important;align-items:center!important;justify-content:center!important}
.rv354-camera-car-row .rv353-player-car-toggle input{width:18px!important;height:18px!important;flex:0 0 18px!important}
.rv358-user-bind{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;margin:12px 0!important}
#rv358BindUserProfile{margin:4px 0!important;min-height:38px!important}
#rv358UserBindingStatus{display:block!important;width:100%!important;text-align:center!important;line-height:1.8!important;padding:5px 8px!important;box-sizing:border-box!important}
.rv299-profile-notice-popup{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;background:rgba(0,0,0,.62)!important}
.rv299-profile-notice-card{width:min(420px,94vw)!important;padding:18px!important;border:1px solid rgba(130,180,220,.28)!important;border-radius:13px!important;background:#101923!important;color:#f2f6fa!important;box-shadow:0 18px 60px rgba(0,0,0,.45)!important;text-align:center!important}
.rv299-profile-notice-card p{font:12px/2 Tahoma,Arial,sans-serif!important;margin:0 0 14px!important}
.rv299-profile-notice-card button{min-width:110px!important;padding:9px 16px!important;border:0!important;border-radius:8px!important;background:#15539b!important;color:white!important;font:700 11px Tahoma,Arial,sans-serif!important}
@media(max-width:420px){.rv354-camera-car-row{gap:5px!important;padding:7px!important}.rv354-camera-car-row .rv354-camera-car-cell{padding:6px!important;font-size:9px!important}}

.rv358-leaderboard-opacity-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;gap:8px!important;margin:8px 0!important}
.rv358-leaderboard-opacity-row .rv238-leaderboard-toggle{display:grid!important;grid-template-columns:minmax(0,1fr) 20px!important;align-items:center!important;gap:8px!important;min-width:0!important;margin:0!important;padding:9px!important;box-sizing:border-box!important}
.rv358-leaderboard-opacity-row .rv238-leaderboard-toggle input{width:18px!important;height:18px!important;min-width:18px!important;margin:0!important;justify-self:end!important}
.rv358-leaderboard-opacity-row label.rv240-choice{display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;margin:0!important;padding:8px!important;box-sizing:border-box!important}
.rv358-leaderboard-opacity-row label.rv240-choice select{width:100%!important;min-width:0!important}
