/* Rallyver V19.2.364 — manual placement controls. */
#rv350ManualLayoutSettings{margin-top:10px;padding:10px;border:1px solid rgba(220,235,245,.12);border-radius:8px;background:rgba(255,255,255,.025)}
.rv350-layout-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.rv350-layout-actions button{min-height:36px;border:1px solid rgba(225,6,0,.45);border-radius:6px;background:rgba(225,6,0,.14);color:#fff;font:700 11px Tahoma,sans-serif;padding:7px}
.rv350-layout-actions button[aria-pressed="true"]{background:rgba(0,190,110,.18);border-color:rgba(0,220,130,.5)}
@media(max-height:420px) and (orientation:landscape){
 #rvV6GameHud #rvV6StatusRibbon{height:30px!important;min-height:30px!important;max-height:30px!important;overflow:hidden!important;padding:2px 5px!important;box-sizing:border-box!important}
 #rvV6GameHud #rvV6StatusRibbon>*{font-size:clamp(5px,1.3vw,8px)!important;line-height:1.2!important}
}


body.rv350-manual-layout #rvV6GameHud .rv6-ranking-card,body.rv350-manual-layout #rvV6GameHud .rv6-speed-pod,body.rv350-manual-layout #rvV6GameHud .rv6-session-chip,body.rv350-manual-layout #rvV6GameHud .rv6-status-ribbon,body.rv350-manual-layout #rvV6GameHud .rv6-race-telemetry,body.rv350-manual-layout #rvV6GameHud .rv6-topbar,body.rv350-manual-layout #touchControls .tc-left,body.rv350-manual-layout #touchControls .tc-right,body.rv350-manual-layout #touchControlsMedium #tcSteerZoneMedium,body.rv350-manual-layout #touchControlsMedium #tcThrottleZoneMedium,body.rv350-manual-layout #touchControlsAdvanced #tcSteerZone,body.rv350-manual-layout #touchControlsAdvanced .tc-throttle-wrap{cursor:grab!important}

#rv350ManualApply:disabled,#rv350ManualCancel:disabled{opacity:.42;cursor:not-allowed}
body.rv350-manual-layout #rvV6GameHud .rv6-ranking-card,body.rv350-manual-layout #rvV6GameHud .rv6-speed-pod,body.rv350-manual-layout #rvV6GameHud .rv6-session-chip,body.rv350-manual-layout #rvV6GameHud .rv6-status-ribbon,body.rv350-manual-layout #rvV6GameHud .rv6-topbar,body.rv350-manual-layout #touchControls .tc-left,body.rv350-manual-layout #touchControls .tc-right,body.rv350-manual-layout #touchControlsMedium #tcSteerZoneMedium,body.rv350-manual-layout #touchControlsMedium #tcThrottleZoneMedium,body.rv350-manual-layout #touchControlsAdvanced #tcSteerZone,body.rv350-manual-layout #touchControlsAdvanced .tc-throttle-wrap{touch-action:none!important}

/* Rallyver V19.2.364 — in-game manual-layout actions, camera row and traffic layout. */
#rv354ManualFloatingActions{display:none;position:fixed!important;left:50%!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;top:auto!important;right:auto!important;transform:translateX(-50%)!important;z-index:2147483001!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:max-content!important;max-width:calc(100vw - 16px)!important;padding:8px 10px!important;border:1px solid rgba(160,205,225,.34)!important;border-top:2px solid #ff2638!important;border-radius:8px!important;background:rgba(5,12,19,.96)!important;box-shadow:0 8px 30px rgba(0,0,0,.55)!important;backdrop-filter:blur(10px)!important;direction:rtl!important;pointer-events:auto!important;box-sizing:border-box!important}
#rv354ManualFloatingActions span{font:800 10px/1.3 Tahoma,Arial,sans-serif!important;color:#d7e6ee!important;white-space:nowrap!important}
#rv354ManualFloatingActions button{min-height:34px!important;padding:6px 12px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:5px!important;background:#14222d!important;color:#fff!important;font:800 10px Tahoma,Arial,sans-serif!important;white-space:nowrap!important;touch-action:manipulation!important}
#rv354ManualApplyGame{border-color:rgba(0,220,135,.55)!important;background:rgba(0,145,90,.28)!important}
#rv354ManualCancelGame{border-color:rgba(255,100,110,.48)!important;background:rgba(140,30,40,.24)!important}
/* The speed pod now owns its LAP/time strip; in manual mode the outer pod receives the pointer. */
body.rv350-manual-layout #rvV6GameHud .rv6-topbar,body.rv350-manual-layout #rvV6GameHud .rv6-ranking-card,body.rv350-manual-layout #rvV6GameHud .rv6-speed-pod,body.rv350-manual-layout #rvV6GameHud .rv6-session-chip,body.rv350-manual-layout #rvV6GameHud .rv6-status-ribbon{pointer-events:auto!important;touch-action:none!important;cursor:grab!important}
body.rv350-manual-layout #rvV6GameHud .rv6-speed-pod>*{pointer-events:none!important}
body.rv350-manual-layout #rvV6GameHud .rv6-topbar .rv6-top-actions,body.rv350-manual-layout #rvV6GameHud .rv6-topbar .rv6-driver-pill{pointer-events:auto!important}
/* A blank raceHUDStatus is not a visible HUD component. */
#rvV6StatusRibbon[aria-hidden="true"]{display:none!important}
/* Correct the preview's touch-action override and allow reliable one-finger capture. */
#rv299LiveSettingPreview.rv299-live-setting-preview,#rv299LiveSettingPreview .rv299-live-preview-head{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important}
#rv299LiveSettingPreview .rv299-live-preview-head{cursor:grab!important}
#rv299LiveSettingPreview.is-dragging .rv299-live-preview-head{cursor:grabbing!important}
/* Camera and image options: a single three-column row immediately beneath Live Changes. */
#rv349PhotoTools.rv354-camera-tools{width:100%!important;max-width:100%!important;margin:6px 0 9px!important;padding:9px 10px!important;box-sizing:border-box!important}
#rv349PhotoTools .rv354-camera-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(112px,1.15fr)!important;align-items:stretch!important;gap:8px!important;width:100%!important;direction:ltr!important;margin-top:8px!important}
#rv349PhotoTools .rv354-camera-grid>button{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:39px!important;padding:7px 6px!important;border:1px solid rgba(255,255,255,.17)!important;border-radius:5px!important;background:rgba(255,255,255,.055)!important;color:#e8f0f5!important;font:800 10px/1.45 Tahoma,Arial,sans-serif!important;text-align:center!important;white-space:normal!important;touch-action:manipulation!important}
#rv349PhotoTools .rv354-camera-grid>button[aria-pressed="true"]{border-color:rgba(255,38,56,.7)!important;background:rgba(225,6,0,.19)!important;color:#fff!important;box-shadow:inset 0 -2px 0 #ff2638!important}
#rv349PhotoTools .rv353-player-car-toggle{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:0!important;margin:0!important;padding:6px!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:5px!important;background:rgba(255,255,255,.025)!important;color:#e8eef2!important;font:700 9px/1.6 Tahoma,Arial,sans-serif!important;direction:rtl!important;text-align:center!important}
#rv349PhotoTools .rv353-player-car-toggle input{flex:0 0 16px!important;width:16px!important;height:16px!important;margin:0!important;accent-color:#e10600!important}
#rv349PhotoTools #rv349PhotoStatus{min-height:14px!important;margin-top:5px!important;font-size:9px!important}
/* Solo traffic: wider count/range on the left and compact toggle on the right. */
#rallySoloTrafficSettings .rv354-traffic-row{display:grid!important;grid-template-columns:minmax(0,2.2fr) minmax(112px,.85fr)!important;align-items:stretch!important;gap:9px!important;width:100%!important;margin:8px 0 6px!important;direction:ltr!important}
#rallySoloTrafficSettings .rv354-traffic-count{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:7px!important;min-width:0!important;width:100%!important;margin:0!important;padding:8px 10px!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:6px!important;background:rgba(255,255,255,.025)!important;direction:rtl!important;box-sizing:border-box!important}
#rallySoloTrafficSettings .rv354-traffic-count input[type=range]{display:block!important;width:100%!important;min-width:0!important;margin:2px 0!important}
#rallySoloTrafficSettings .rv354-traffic-count output{float:left!important;color:#e3edf3!important;font-size:10px!important}
#rallySoloTrafficSettings .rv354-traffic-toggle{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:0!important;width:100%!important;margin:0!important;padding:8px 6px!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:6px!important;background:rgba(255,255,255,.025)!important;direction:rtl!important;text-align:center!important;box-sizing:border-box!important;font-size:9px!important;line-height:1.65!important}
#rallySoloTrafficSettings .rv354-traffic-toggle input{width:18px!important;height:18px!important;margin:0!important;accent-color:#e10600!important}
@media(max-width:560px){#rv349PhotoTools .rv354-camera-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(96px,1.05fr)!important;gap:5px!important}#rv349PhotoTools .rv354-camera-grid>button{font-size:9px!important;padding:5px 3px!important}#rv349PhotoTools .rv353-player-car-toggle{font-size:8px!important;gap:4px!important}#rallySoloTrafficSettings .rv354-traffic-row{grid-template-columns:minmax(0,2fr) minmax(98px,.9fr)!important;gap:6px!important}#rallySoloTrafficSettings .rv354-traffic-count,#rallySoloTrafficSettings .rv354-traffic-toggle{padding:6px 5px!important}}
@media(max-width:360px){#rv354ManualFloatingActions{gap:5px!important;padding:6px!important}#rv354ManualFloatingActions span{display:none!important}#rv354ManualFloatingActions button{padding:6px 9px!important;font-size:9px!important}}

/* V19.2.364 — status ribbon is a message, not an empty grey HUD tile. */
#rvV6GameHud #rvV6StatusRibbon{width:max-content!important;max-width:min(290px,34vw)!important;min-width:0!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;gap:0!important;pointer-events:none!important}
#rvV6GameHud #rvV6StatusRibbon[aria-hidden="true"]{display:none!important}
#rvV6GameHud #rvV6StatusRibbon.rv354-has-message{display:flex!important}
#rvV6GameHud #rvV6StatusRibbon #raceHUDStatus{display:block!important;position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:max-content!important;min-width:150px!important;max-width:100%!important;min-height:28px!important;height:auto!important;margin:0!important;padding:6px 10px!important;box-sizing:border-box!important;border:1px solid rgba(130,205,230,.22)!important;border-left:2px solid #61c6ff!important;border-radius:4px!important;background:rgba(5,13,20,.92)!important;color:#e4edf3!important;font:700 10px/1.65 Tahoma,Arial,sans-serif!important;white-space:normal!important;overflow-wrap:anywhere!important;box-shadow:0 4px 14px rgba(0,0,0,.22)!important}
@media(max-width:560px){#rvV6GameHud #rvV6StatusRibbon{max-width:min(220px,45vw)!important}#rvV6GameHud #rvV6StatusRibbon #raceHUDStatus{min-width:120px!important;min-height:25px!important;padding:5px 7px!important;font-size:8px!important}}

/* V19.2.359 manual-layout floating actions */
#rv354ManualFloatingActions>span{font:700 9px/1.35 Tahoma,Arial,sans-serif!important;white-space:normal!important;text-align:center!important;max-width:55px!important}
#rv354ManualFloatingActions>#rv358OpenLivePreview{width:30px!important;min-width:30px!important;height:30px!important;padding:0!important}


/* V19.2.360: enforce the three controls as three equal columns in one row. */
#uiPanelInner .rmt-card.rv354-camera-car-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;align-items:stretch!important;width:100%!important;box-sizing:border-box!important}
#uiPanelInner .rmt-card.rv354-camera-car-row>.rv354-camera-car-cell{grid-column:auto!important;grid-row:1!important;display:flex!important;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important}
#uiPanelInner .rmt-card.rv354-camera-car-row>.rv354-camera-car-cell select{width:100%!important;min-width:0!important;max-width:100%!important}
#uiPanelInner .rmt-card.rv354-camera-car-row>.rv353-player-car-toggle{grid-column:auto!important;grid-row:1!important}
.rv358-user-bind{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:center!important;gap:8px!important;margin:12px 0!important}
#rv358BindUserProfile{width:100%!important;min-width:0!important;margin:0!important;min-height:38px!important}
#rv358UserBindingStatus{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:38px!important;text-align:center!important;line-height:1.65!important;padding:5px 8px!important;box-sizing:border-box!important}
body.rv238-hud-minimal[data-rv240-leaderboard-position="top-right"] #rvV6GameHud #rvV6RankingCard{top:calc(8px + var(--rv6-safe-t))!important;right:calc(8px + var(--rv6-safe-r))!important;left:auto!important;bottom:auto!important}
.rv299-profile-notice-card{position:relative!important}
.rv299-profile-notice-card .rv299-profile-notice-close{position:absolute!important;top:5px!important;left:7px!important;min-width:28px!important;width:28px!important;height:28px!important;padding:0!important;border-radius:50%!important;background:rgba(255,255,255,.1)!important;font-size:17px!important}
.rv299-profile-notice-card .rv299-profile-notice-ack{min-width:110px!important}
@media(max-width:560px){#uiPanelInner .rmt-card.rv354-camera-car-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:7px!important}#uiPanelInner .rmt-card.rv354-camera-car-row>.rv354-camera-car-cell{padding:5px!important;font-size:8px!important}.rv358-user-bind{gap:6px!important}}
