.dv50-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;background:#171c21;color:var(--white,#f7f1e9);border:0;border-radius:16px;box-shadow:0 24px 80px #000a;overscroll-behavior:contain}.dv50-dialog::backdrop{background:#080b11b8}.dv50-dialog h2,.dv50-dialog h3{font-family:inherit;text-transform:none;letter-spacing:-.02em;line-height:1.2}.dv50-dialog h2{font-size:1.65rem;margin:0 0 6px}.dv50-dialog h3{font-size:1.18rem;margin:22px 0 10px}.dv50-dialog p{font-size:.94rem;line-height:1.55;max-width:68ch}.dv50-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.dv50-dialog-header p{margin:0;color:#b7c0c9}.dv50-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 14px}.dv50-tabs [aria-pressed=true]{background:#3d3028;color:#ffcf9c;border-color:#d29b6a}.dv50-notice{min-height:1.5em;margin:8px 0 16px;color:#f3c58f;font-size:.9rem}.dv50-label{display:grid;gap:8px;margin:16px 0}.dv50-dialog .field{width:100%;box-sizing:border-box;background:#10161d;color:#f7f1e9;border:1px solid #54616b;font-size:16px;caret-color:#ffd09a}.dv50-dialog textarea{resize:vertical;min-height:120px}.dv50-dialog .field::placeholder{color:#aeb8c1}.dv50-dialog :focus-visible{outline:2px solid #ffc884;outline-offset:3px}.dv50-check{display:flex;align-items:flex-start;gap:10px;margin:20px 0 10px;font-size:.94rem;line-height:1.5}.dv50-check input{flex:0 0 auto;width:20px;height:20px;accent-color:#e6ab73}.dv50-backup-list{list-style:none;padding:0;margin:22px 0}.dv50-backup-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-top:1px solid #3e4952}.dv50-backup-list li div{display:grid;gap:5px;min-width:0}.dv50-backup-list li span{font-size:.8rem;color:#b7c0c9}.dv50-table-wrap{overflow-x:auto}.dv50-table{border-collapse:collapse;width:100%;font-size:.9rem;font-variant-numeric:tabular-nums}.dv50-table th,.dv50-table td{padding:12px 8px;border-bottom:1px solid #3e4952;text-align:right}.dv50-table th:first-child{text-align:left}.dv50-table thead{color:#f3c58f}.dv50-restore-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.dv50-diagnostics{white-space:pre-wrap;background:#10161d;padding:16px;border-radius:12px;font-size:.82rem;overflow-wrap:anywhere}.dv50-dialog .button{min-height:44px;touch-action:manipulation;user-select:none}.dv50-dialog ::selection{background:#c68b5c;color:#101215}.dv50-dialog *{scrollbar-color:#64717c #171c21}.dv50-dialog .muted{color:#b7c0c9}@media(max-width:520px){.dv50-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:20px 16px calc(20px + env(safe-area-inset-bottom))}.dv50-dialog-header{gap:8px}.dv50-dialog-header .button{padding-inline:12px}.dv50-table th,.dv50-table td{padding:10px 5px;font-size:.8rem}.dv50-restore-actions{display:grid}.dv50-backup-list li{gap:8px}.dv50-tabs .button{flex:1;min-width:0;padding-inline:8px}}@media(hover:hover) and (pointer:fine){.dv50-tabs .button:hover{background:#303b45}}@media(prefers-reduced-motion:reduce){.dv50-dialog{scroll-behavior:auto}}

.drive-performance50{margin:20px 0;padding:16px;background:#10161d;border-radius:12px}.drive-performance50 summary{cursor:pointer;min-height:32px;font-weight:700}.drive-diagnostics50{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;margin:20px 0;font-size:.88rem;font-variant-numeric:tabular-nums}.drive-diagnostics50 dt{color:#b7c0c9}.drive-diagnostics50 dd{margin:0;text-align:right}

.dv50-cloud{overflow-wrap:anywhere}.dv50-safety-footer{margin-top:28px;padding-top:16px;border-top:1px solid #3e4952}

.adventure-menu50{margin:24px 0;padding:22px;background:#171c21;border-radius:14px}.adventure-menu50>summary{font-size:1.15rem;font-weight:700;cursor:pointer;min-height:44px}.adventures50{display:grid;gap:14px}.adventures50 h3{font-family:inherit;text-transform:none;font-size:1.3rem}.adventures50 article{padding:18px 0;border-top:1px solid #3e4952}.adventures50 p{line-height:1.5;color:#b7c0c9}.adventures50 button{min-height:44px;max-width:100%;padding:12px 18px;background:#29343f;color:#f7f1e9;border:1px solid #64717b;border-radius:9px;cursor:pointer;font:inherit;font-size:.9rem;font-weight:600;touch-action:manipulation;margin-right:8px}.adventures50 button:focus-visible{outline:2px solid #ffc884;outline-offset:3px}.adventure-board50{overflow-wrap:anywhere}.adventure-board50 h2{font-size:1.8rem}.adventure-board50 .adventures50{margin-top:18px}

.dv50-livery-dialog{width:min(1080px,calc(100vw - 24px));padding:0}.garage-livery50{margin-top:24px;padding:24px;background:#171c21;border-radius:14px}.garage-livery50 h2{font-family:inherit;font-weight:700;font-size:1.6rem;line-height:1.2;text-transform:none}.garage-livery50 label{display:grid;gap:10px;margin:20px 0;max-width:480px}.garage-livery50 .field{font-size:16px;min-height:44px}.shop-livery50{margin:22px 0;padding-top:20px;border-top:1px solid #54616b}.shop-livery50 h3{font-family:inherit;text-transform:none;font-size:1.2rem}

.rivals50-menu{margin:24px 0;padding:22px;background:#171c21;border-radius:14px}.rivals50-menu>summary{cursor:pointer;min-height:44px;font-size:1.2rem;font-weight:700}.rivals50-menu article{padding:18px 0;border-top:1px solid #3e4952}.rivals50-menu h3,.rivals50-result h2{font-family:inherit;text-transform:none;line-height:1.25}.rivals50-menu h3{font-size:1.2rem}.rivals50-menu p{color:#b7c0c9;line-height:1.5;max-width:65ch}.rivals50-menu ol{padding-left:22px;line-height:1.6}.rivals50-menu .dv50-table caption,.rivals50-result .dv50-table caption{text-align:left;padding:16px 0 8px;font-weight:700}.rivals50-result h2{font-size:1.6rem}
/* Replay: the existing world remains visible beneath a native modal dock. */
.drive-replay50{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:calc(12px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));border:0;background:transparent;color:#f7f1e9;overflow:auto;pointer-events:none}.drive-replay50::backdrop{background:transparent}.drive-replay50-dock{box-sizing:border-box;width:min(100%,960px);margin:0 auto;padding:12px 16px;background:#141a20f5;border:1px solid #586267;border-radius:14px;box-shadow:0 10px 36px #0007;pointer-events:auto}.drive-replay50-heading{display:flex;align-items:center;gap:14px}.drive-replay50-heading h2{margin:0;font:700 18px/1.3 system-ui;letter-spacing:0;text-transform:none}.drive-replay50-heading [data-replay50-time]{color:#c1c9cd;font:14px/1.3 system-ui;font-variant-numeric:tabular-nums}.drive-replay50-heading button{margin-left:auto}.drive-replay50-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:6px}.drive-replay50 button,.drive-replay50 select{box-sizing:border-box;min-height:44px;padding:9px 13px;border:1px solid #667178;border-radius:8px;background:#253038;color:#f7f1e9;font:600 16px/1.25 system-ui;touch-action:manipulation;cursor:pointer}.drive-replay50 [data-replay50=play]{background:#d19c70;color:#161b20;border-color:#d19c70;min-width:76px}.drive-replay50 button:disabled{opacity:.5;cursor:default}.drive-replay50 input{min-width:100px;flex:1;width:160px;height:44px;margin:0;accent-color:#7fd8c4;font-size:16px;touch-action:pan-x}.drive-replay50 :focus-visible{outline:2px solid #f2c599;outline-offset:3px}.drive-replay50 [data-replay50-notice]{margin:8px 0 0;color:#bfc9ce;font:13px/1.5 system-ui;min-height:20px}.driving-play.is-replay50>:not(.driving-canvas):not(.drive-replay50){visibility:hidden!important;pointer-events:none!important}.drive-replay50-entry{margin-top:22px;padding:18px 0;border-top:1px solid #4b565e}.drive-replay50-entry>button{min-height:44px}.drive-replay50-entry p{margin:10px 0}.drive-replay50-setting{display:flex;align-items:center;gap:10px;min-height:44px;font-size:16px}.drive-replay50-setting input{width:20px;height:20px;accent-color:#d19c70}.drive-replay50-entry button:disabled{opacity:.5}@media(max-width:900px){.drive-replay50{padding-top:calc(6px + env(safe-area-inset-top));padding-bottom:6px}.drive-replay50-dock{padding:8px 10px}.drive-replay50-controls{gap:6px}.drive-replay50 button,.drive-replay50 select{padding-inline:10px}.drive-replay50 [data-replay50-notice]{margin-top:4px}.drive-replay50-controls input{min-width:100px;width:100px}}@media(prefers-reduced-motion:reduce){.drive-replay50{scroll-behavior:auto}}
.drive-replay50{border-radius:0;box-shadow:none}.drive-replay50::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
