@layer interface {
  :root { --wx-navigation-height: max(66px, calc(var(--wx-type-control) * 2.8 + 20px)); }
  .floatMenuContainer {
    position: fixed;
    left: 260px;
    right: 310px;
    bottom: 14px;
    z-index: 118;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: auto;
    max-width: 760px;
    min-height: var(--wx-navigation-height);
    margin: 0 auto;
    box-sizing: border-box;
    color: var(--wx-text);
    background: var(--wx-panel-solid);
    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);
    transform: none;
  }
  .floatMenuContainer.show { display: grid; }
  .gameFocusReturn { position: fixed; top: 12px; left: 12px; z-index: 240; max-width: calc(100vw - 24px); min-height: 44px; padding: 12px 18px; transform: translateY(-160%); color: var(--wx-text); background: var(--wx-panel-solid); border: 2px solid var(--wx-action); border-radius: var(--wx-radius); font: 650 var(--wx-type-control)/1.4 var(--wx-font-ui); pointer-events: none; }
  .gameFocusReturn:focus { transform: none; pointer-events: auto; outline: 3px solid var(--wx-focus); outline-offset: 3px; }
  .floatMenuContainer:has(.floatMenu.open) { z-index: 190; }
  .floatMenuRow { display: contents; }
  .floatMenu { position: relative; display: flex; flex-direction: column; min-width: 0; pointer-events: auto; }
  .floatBtn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 44px;
    min-height: var(--wx-navigation-height);
    box-sizing: border-box;
    padding: 8px 6px;
    color: var(--wx-muted);
    background: transparent;
    border: 0;
    border-right: 1px solid var(--wx-line-soft);
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font: 650 var(--wx-type-control)/1.4 var(--wx-font-ui);
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--wx-motion-fast), background-color var(--wx-motion-fast);
  }
  .floatBtn:hover, .floatBtn[aria-expanded="true"] {
    color: var(--wx-action);
    background: var(--wx-selected);
    border-bottom-color: var(--wx-action);
  }
  .btnIcon { display: block; font: 22px/1 var(--wx-font-ui); color: inherit; }
  .btnText { display: block; font: inherit; color: inherit; white-space: normal; overflow-wrap: anywhere; }
  .floatItems {
    position: fixed;
    top: auto;
    left: auto;
    right: 16px;
    bottom: calc(var(--wx-navigation-height) + 30px);
    z-index: 190;
    display: none;
    flex-direction: column;
    gap: 0;
    width: min(420px, calc(100vw - 32px));
    min-width: 0;
    max-width: none;
    max-height: min(70dvh, calc(100dvh - var(--wx-navigation-height) - 120px));
    box-sizing: border-box;
    padding: 0 12px 12px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    color: var(--wx-text);
    background: var(--wx-panel-solid);
    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);
    box-shadow: var(--wx-shadow-panel);
    transform: none;
  }
  .floatMenu.open .floatItems { display: flex; }
  .floatMenuTitle {
    position: sticky;
    top: 0;
    z-index: 1;
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px 12px;
    color: var(--wx-action);
    background: var(--wx-panel-solid);
    border-bottom: 1px solid var(--wx-line-soft);
    font: 750 var(--wx-type-body)/1.3 var(--wx-font-ui);
    overflow-wrap: anywhere;
  }
  .floatItem {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 44px;
    min-height: 50px;
    box-sizing: border-box;
    padding: 12px;
    color: var(--wx-text);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--wx-line-soft);
    border-radius: 0;
    font: 600 var(--wx-type-control)/1.5 var(--wx-font-ui);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    touch-action: manipulation;
  }
  .floatItem:hover, .floatItem.on { color: var(--wx-action); background: var(--wx-selected); box-shadow: inset 3px 0 var(--wx-action); }
  .floatItem.recording { color: var(--wx-danger); border-color: var(--wx-danger); }
  .travel-aircraft-choice { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 12px; color: var(--wx-muted); font: 600 var(--wx-type-meta)/1.5 var(--wx-font-ui); }
  .travel-aircraft-choice select { width: 100%; min-width: 0; min-height: 44px; padding: 8px; color: var(--wx-text); background: var(--wx-panel-solid); border: 1px solid var(--wx-line); border-radius: var(--wx-radius); font: 600 var(--wx-type-control)/1.5 var(--wx-font-ui); }
  .floatItemSection { grid-column: 1 / -1; padding: 18px 12px 8px; color: var(--wx-muted); font: 650 var(--wx-type-meta)/1.5 var(--wx-font-ui); letter-spacing: .06em; }
  .contextualMenuControl .floatBtn { min-height: 58px; padding: 8px 2px; border: 1px solid var(--wx-line); border-radius: var(--wx-radius); background: var(--wx-panel-solid); }
  .contextualMenuControl .btnText { display: none; }
  .contextualMenuControl .floatBtn::after { content: 'Controls'; font: 600 var(--wx-type-meta)/1.2 var(--wx-font-ui); }

  html:is([data-we3d-text-scale="160"], [data-we3d-text-scale="200"]) .floatMenuContainer { grid-template-columns: repeat(5, minmax(160px, 1fr)); overflow-x: auto; scrollbar-width: thin; }
  html:is([data-we3d-text-scale="160"], [data-we3d-text-scale="200"]) .floatMenu:not(.contextualMenuControl) .btnIcon { display: none; }

  @media (max-width: 1100px), (pointer: coarse) {
    :root { --wx-navigation-height: max(78px, calc(var(--wx-type-control) * 2.8 + 20px)); }
    .floatMenuContainer { left: 0; right: 0; bottom: 0; max-width: none; width: 100%; margin: 0; padding-bottom: env(safe-area-inset-bottom); border-left: 0; border-right: 0; border-radius: 0; }
    .floatBtn { padding: 6px 0; gap: 4px; font-size: var(--wx-type-navigation); }
    .btnIcon { font-size: 18px; }
    .floatItems { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: calc(var(--wx-navigation-height) + env(safe-area-inset-bottom) + 8px); width: auto; max-height: min(60dvh, calc(100dvh - var(--wx-navigation-height) - env(safe-area-inset-bottom) - 24px)); grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 8px 8px; }
    .floatMenu.open .floatItems { display: grid; }
    .floatMenuTitle { padding: 14px 8px; }
    .floatItem { min-height: 50px; padding: 10px 8px; }
    .contextualMenuControl .floatBtn { width: 44px; min-height: 44px; padding: 0; }
    .contextualMenuControl .floatBtn::after { display: none; }
    html:is([data-we3d-text-scale="160"], [data-we3d-text-scale="200"]) .floatItems { grid-template-columns: minmax(0, 1fr); }
  }
}

.vehicle-garage { position:fixed; inset:0; margin:auto; box-sizing:border-box; color:var(--wx-text); background:var(--wx-panel-solid); border:1px solid var(--wx-line); border-radius:var(--wx-radius); width:min(900px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:24px; font-family:var(--wx-font-ui); }
.vehicle-garage::backdrop { background:color-mix(in srgb, var(--wx-panel-solid) 72%, transparent); }
.vehicle-garage header { display:flex; justify-content:space-between; align-items:start; gap:16px; }
.vehicle-garage header p { color:var(--wx-muted); letter-spacing:.08em; font-size:12px; }
.vehicle-garage h2,.vehicle-garage h3 { margin:8px 0 16px; }
.vehicle-garage-layout { display:grid; grid-template-columns:minmax(220px,1fr) minmax(220px,1fr); gap:24px; }
.vehicle-garage nav { max-height:55dvh; overflow:auto; display:flex; flex-direction:column; gap:8px; }
.vehicle-garage button,.vehicle-garage select { min-height:44px; border:1px solid var(--wx-line); border-radius:var(--wx-radius); padding:10px 12px; background:var(--wx-panel-solid); color:var(--wx-text); font:inherit; }
.vehicle-garage button:focus-visible,.vehicle-garage select:focus-visible { outline:3px solid var(--wx-action); outline-offset:2px; }
.vehicle-garage button[aria-pressed="true"],.vehicle-garage [data-garage-drive] { border-color:var(--wx-action); }
.vehicle-garage .vehicle-garage-row { display:flex; flex:0 0 auto; height:auto; min-height:72px; flex-direction:column; text-align:left; white-space:normal; line-height:1.35; gap:4px; }
.vehicle-garage-row span,.vehicle-garage section p { font-size:14px; color:var(--wx-muted); line-height:1.6; }
.vehicle-garage select { width:100%; margin:8px 0; }
.vehicle-garage-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.vehicle-garage button:disabled { opacity:.55; }
@media(max-width:600px){.vehicle-garage{padding:16px}.vehicle-garage-layout{grid-template-columns:1fr;gap:16px}.vehicle-garage nav{max-height:30dvh}.vehicle-garage-actions button{flex:1}}

/* Racing uses the shared Roam tokens: an event list and one preview. */
.racing-hub { --race-accent:var(--wx-action); box-sizing:border-box; color-scheme:dark; background:var(--wx-bg); color:var(--wx-text); font-family:var(--wx-font-ui); border:1px solid var(--wx-line-soft); border-radius:var(--wx-radius); padding:24px; margin:auto; width:min(1080px,94vw); max-height:90dvh; box-shadow:0 20px 80px #0009; }
.racing-hub[open] {display:flex;flex-direction:column;height:min(880px,92dvh);overflow:hidden;}
.racing-hub::backdrop {background:color-mix(in srgb, var(--wx-panel-solid) 73%, transparent);}
.racing-hub header {display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;}
.racing-hub header h2 {font-family:var(--wx-font-display);font-size:38px;letter-spacing:.02em;font-weight:400;margin:2px 0 0;}
.racing-hub h3 {font-size:24px;font-weight:650;margin:18px 0 12px;}
.racing-hub .racing-eyebrow {font-size:11px;letter-spacing:.13em;color:var(--wx-muted);margin:0;}
.racing-hub p {line-height:1.5;margin:8px 0;color:var(--wx-muted);}
.racing-hub > p,.racing-toolbar,.racing-start-bar {flex:none;}
.racing-hub [data-race-location] {font-size:16px;margin:0;color:var(--wx-text);}
.racing-toolbar {display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px;}
.racing-hub [data-race-refresh] {width:44px;padding:6px;font-size:24px;line-height:1;}
.racing-hub button,.racing-hub select,.racing-hub input {font:inherit;color:inherit;background:var(--wx-panel-solid);border:1px solid var(--wx-line-soft);border-radius:var(--wx-radius);min-height:44px;padding:10px 14px;}
.racing-hub button {cursor:pointer;}
.racing-hub .racing-toolbar button {font-size:14px;padding:10px 12px;white-space:nowrap;}
.racing-hub .racing-toolbar [data-race-refresh] {font-size:24px;padding:6px;}
.racing-hub button:hover {background:var(--wx-panel-soft);}
.racing-hub :focus-visible,.road-race-hud :focus-visible {outline:3px solid var(--wx-focus);outline-offset:3px;}
.racing-hub button:disabled {opacity:.5;cursor:default;}
.racing-hub label {display:block;font-size:13px;margin:12px 0;}
.racing-hub select,.racing-hub input {display:block;width:100%;margin-top:6px;}
.racing-layout {display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2.7fr);align-items:start;gap:28px;flex:1;min-height:0;overflow:auto;padding:4px 5px 16px 2px;}
.racing-layout [data-race-events] {display:flex;flex-direction:column;gap:0;max-height:65dvh;overflow:auto;border-top:1px solid var(--wx-line-soft);}
.racing-layout [data-race-events] button {text-align:left;flex-shrink:0;border:0;border-bottom:1px solid var(--wx-line-soft);border-radius:0;background:transparent;padding:16px 12px 16px 16px;min-height:78px;}
.racing-layout [data-race-events] button[aria-pressed=true] {background:var(--wx-selected);box-shadow:inset 3px 0 var(--wx-action);}
.racing-layout [data-race-events] strong {font-size:15px;font-weight:600;}
.racing-layout [data-race-events] span {display:block;font-size:12px;margin-top:7px;color:var(--wx-muted);font-variant-numeric:tabular-nums;}
.racing-event-detail {min-width:0;}
.racing-setup {min-width:0;}
.racing-setup-controls {margin-top:18px;}
.racing-setup-controls .racing-options {grid-template-columns:1fr;gap:0;}
.racing-summary h3 {margin-top:0;}
.racing-view-switch {display:flex;gap:0;margin-bottom:10px;border-bottom:1px solid var(--wx-line-soft);}
.racing-view-switch button {border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:10px 12px;color:var(--wx-muted);}
.racing-view-switch button[aria-pressed=true] {border-color:var(--wx-action);color:var(--wx-text);}
.racing-course-view {min-height:220px;}
.racing-location-view {position:relative;margin:0;background:var(--wx-panel-solid);height:clamp(190px,22vw,240px);overflow:hidden;}
.racing-location-view img {display:block;width:100%;height:100%;object-fit:cover;}
.racing-location-view figcaption {position:absolute;bottom:0;left:0;right:0;padding:24px 12px 10px;background:linear-gradient(transparent,color-mix(in srgb, var(--wx-panel-solid) 73%, transparent));color:var(--wx-text);font-size:12px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.racing-location-view figcaption a {color:var(--wx-text);font-size:11px;}
.racing-location-view figcaption[hidden] {display:none;}
.racing-location-view figcaption:empty {display:none;}
.racing-location-view > p {padding:32px;}
.racing-map {background:var(--wx-input);overflow:hidden;min-height:220px;}
.racing-map svg {display:block;width:100%;height:clamp(196px,calc(22vw - 24px),216px);touch-action:manipulation;}
.racing-map-credit {display:block;padding:4px 8px;color:var(--wx-muted);font-size:11px;text-align:right;}
.racing-hub :is(.racing-map,.racing-location-view,.racing-location-view img,.racing-location-view p)[hidden] {display:none;}
.racing-course-facts {display:flex;flex-wrap:wrap;gap:12px 28px;margin:0 0 12px;}
.racing-course-facts div {display:flex;flex-direction:column;gap:4px;}
.racing-course-facts dt {font-size:12px;color:var(--wx-muted);}
.racing-course-facts dd {margin:0;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;}
.racing-hub [data-race-detail],.racing-hub [data-race-record] {font-size:13px;}
.racing-options {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.racing-options label {margin:12px 0;}
.racing-hub [hidden] {display:none!important;}
.racing-hub details {border-top:1px solid var(--wx-line-soft);margin-top:12px;padding-top:8px;}
.racing-hub summary {cursor:pointer;min-height:44px;padding:12px 0;font-size:14px;font-weight:600;}
.racing-hub [data-race-status] {min-height:24px;font-size:12px;margin:4px 0 10px;}
.racing-hub [data-race-status]:empty {display:none;}
.racing-start-bar {padding-top:12px;border-top:1px solid var(--wx-line-soft);}
.racing-hub .racing-primary {width:100%;background:var(--wx-action);color:var(--wx-action-text);font-weight:700;margin:0;}
.racing-hub .racing-primary:hover {background:var(--wx-action-hover);}
.racing-start-bar .racing-note {font-size:11px;margin:6px 0 0;}
.racing-lobby-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.racing-lobby-actions[hidden] {display:none;}
.racing-lobby-actions button {padding:10px 6px;}
.racing-hub[data-race-view="lobby"] :is([data-race-start],.racing-note,.racing-setup-controls,.racing-extra) {display:none;}
.racing-hub[data-race-view="lobby"] .racing-setup {display:none;}
.racing-hub[data-race-view="lobby"] .racing-layout {grid-template-columns:1fr;}
.racing-online {border-top:1px solid var(--wx-line-soft);margin-top:12px;}
.racing-hub[data-race-view="results"] {height:auto;max-height:90dvh;}
.racing-hub[data-race-view="results"][open] {height:fit-content;}
.racing-hub[data-race-view="results"] :is(.racing-layout,.racing-toolbar,.racing-start-bar,[data-race-status]) {display:none;}
.racing-hub [data-race-results] {border-top:1px solid var(--wx-line-soft);padding-top:16px;overflow:auto;min-height:0;}
.racing-hub ol {padding-left:24px;line-height:2;}
.racing-result-actions {display:flex;flex-wrap:wrap;gap:8px;flex:none;border-top:1px solid var(--wx-line-soft);padding-top:10px;}
.racing-result-actions[hidden] {display:none;}
.flowerChallengePanel {color-scheme:dark;}
.flowerChallengeBody {min-height:0;overflow-y:auto;overscroll-behavior:contain;}
.flowerChallengeBody > * {flex-shrink:0;}
.flowerLeaderboardTabs {display:flex;overflow-x:auto;flex-wrap:nowrap;}
.flowerLeaderboardTab {flex:0 0 auto;min-height:44px;}
.flowerChallengePanel[data-leaderboard-view="racing"] {max-height:calc(100dvh - 94px);}
.rankings-close {flex:none;width:44px;height:44px;color:var(--wx-text);background:transparent;border:1px solid var(--wx-line);border-radius:var(--wx-radius);font:inherit;font-size:22px;cursor:pointer;}
.rankings-close:focus-visible,.flowerLeaderboardTab:focus-visible {outline:3px solid var(--wx-focus);outline-offset:-3px;}
.racing-record-filters {display:grid;gap:12px;margin:12px 0;}
.racing-record-filters[hidden] {display:none;}
.racing-record-filters label {font-size:13px;color:var(--wx-muted);}
.racing-record-filters select {display:block;width:100%;min-height:44px;background:var(--wx-input);color:var(--wx-text);border:1px solid var(--wx-line);border-radius:var(--wx-radius);font:inherit;padding:8px;margin-top:4px;}
.racing-record-filters select:focus-visible {outline:3px solid var(--wx-focus);outline-offset:2px;}
.racing-hub #racingResultHeading {outline:none;}
.road-race-hud {position:fixed;top:calc(env(safe-area-inset-top,0px) + 86px);left:50%;transform:translateX(-50%);z-index:120;display:grid;grid-template-columns:auto auto;gap:4px 18px;min-width:210px;padding:12px 16px;border-radius:12px;background:color-mix(in srgb, var(--wx-panel-solid) 91%, transparent);border:1px solid var(--wx-success);color:var(--wx-text);pointer-events:auto;}
.road-race-hud[hidden] {display:none;}
.road-race-hud p {font-size:12px;color:var(--wx-success);margin:0;}
.road-race-hud strong {grid-column:1;grid-row:2;font-size:24px;font-variant-numeric:tabular-nums;}
.road-race-hud span {grid-column:1/-1;font-size:12px;}
.road-race-hud button {grid-column:2;grid-row:1/3;min-height:44px;border:1px solid var(--wx-action);border-radius:7px;background:var(--wx-selected);color:white;padding:8px;font:inherit;font-size:12px;}
.road-race-actions {grid-column:2;grid-row:1/5;display:flex;flex-direction:column;gap:6px;}
.road-race-actions button {flex:1;}
.road-race-hud {box-sizing:border-box;min-width:0;grid-template-columns:minmax(0,1fr) auto;}
.road-race-hud span {grid-column:1;}
/* The existing activity-layer owner scopes racing's compact status view. */
body.activity-racing-open :is(#hudBox,#hudMap,#hudUtilities,#floatMenuContainer,#urbanVehiclePrompt,#discoveryContextPrompt,#discoveryQuickToolBtn) {display:none!important;}
.road-race-hud {max-width:calc(100vw - 32px);}
.road-race-hud [data-race-speed] {font-variant-numeric:tabular-nums;}

@media(max-width:650px) {
 .racing-hub {padding:16px;max-height:calc(100dvh - 24px);}
 .racing-hub[open] {height:calc(100dvh - 24px);}
 .racing-hub header h2 {font-size:30px;}
 .racing-layout {grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:max-content;align-content:start;gap:12px;}
 .racing-setup,.racing-event-detail {display:contents;}
 .racing-layout [data-race-events] {order:1;}
 .racing-summary {order:2;}
 .racing-preview-panel {order:3;}
 .racing-setup-controls {order:4;margin-top:0;}
 .racing-setup-controls .racing-options {grid-template-columns:1fr 1fr;gap:12px;}
 .racing-extra {order:5;}
 .racing-online {order:6;}
 .racing-layout [data-race-events] {flex-direction:row;max-height:none;min-height:82px;}
 .racing-layout [data-race-events] button {box-sizing:border-box;width:auto;min-width:140px;flex:1 0 140px;min-height:78px;}
 .racing-layout [data-race-events] button[aria-pressed=true] {box-shadow:inset 0 -3px var(--wx-action);}
 .racing-course-view,.racing-map {min-height:190px;}
 .racing-location-view {height:210px;}
 .racing-map svg {height:186px;}
 .racing-course-facts {gap:10px 24px;}
 .racing-hub h3 {font-size:22px;}
 .racing-hub[data-race-view="results"] {height:auto;}
 .road-race-hud {top:calc(env(safe-area-inset-top,0px) + 68px);padding:8px 12px;}
}
@media(orientation:landscape) and (max-height:500px) {
 .racing-hub[open] {height:94dvh;padding:12px 18px;}
 .racing-hub header h2 {font-size:24px;}
 .racing-hub .racing-eyebrow {display:none;}
 .racing-hub > p {margin:3px 0;font-size:12px;}
 .racing-toolbar {margin:5px 0;}
 .racing-hub [data-race-status] {font-size:12px;min-height:18px;margin:2px 0;}
 .racing-layout {grid-template-columns:180px minmax(0,1fr);gap:16px;}
 .racing-setup,.racing-event-detail {display:block;}
 .racing-layout [data-race-events] {flex-direction:column;max-height:55dvh;}
 .racing-layout [data-race-events] button {width:auto;flex:0 0 auto;}
 .racing-start-bar .racing-note {display:none;}
 .racing-start-bar {padding-top:6px;}
 .racing-hub[data-race-view="results"] {height:auto;}
 .road-race-hud {top:calc(env(safe-area-inset-top,0px) + 10px);}
}

.racing-hub[data-race-view="career"] :is(.racing-layout,.racing-toolbar,.racing-start-bar,[data-race-status]) {display:none;}
.racing-career-view {flex:1;min-height:0;overflow:auto;padding:4px 5px 16px 2px;}
.racing-career-actions {flex:none;padding-top:10px;border-top:1px solid var(--wx-line-soft);}
.racing-career-view[hidden],.racing-career-actions[hidden] {display:none;}

/* A single creator workspace keeps its overhead layout beside the draft. */
.racing-hub[data-race-view="creator"] :is(.racing-setup,.racing-summary,.racing-online,.racing-start-bar,.racing-view-switch,.racing-extra > details:not([data-race-creator])) {display:none;}
.racing-hub[data-race-view="creator"] .racing-layout {grid-template-columns:1fr;}
.racing-hub[data-race-view="creator"] .racing-event-detail {display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:24px;align-items:start;}
.racing-hub[data-race-view="creator"] .racing-preview-panel {position:sticky;top:0;}
.racing-hub[data-race-view="creator"] .racing-map svg {height:clamp(300px,48dvh,520px);}
.racing-hub[data-race-view="creator"] [data-race-creator] {margin-top:0;}
.racing-hub[data-race-view="creator"] [data-race-creator] > p {font-size:13px;line-height:1.55;}
@media(max-width:650px){
 .racing-hub[data-race-view="creator"] .racing-event-detail {display:flex;flex-direction:column;gap:12px;}
 .racing-hub[data-race-view="creator"] .racing-preview-panel {position:relative;width:100%;}
 .racing-hub[data-race-view="creator"] .racing-map svg {height:230px;}
 .racing-hub[data-race-view="creator"] .racing-extra {width:100%;}
}

@media(orientation:landscape) and (max-height:500px){
 .racing-hub[data-race-view="creator"] :is(.racing-map,.racing-course-view) {min-height:0;}
 .racing-hub[data-race-view="creator"] .racing-map svg {height:clamp(110px,calc(100dvh - 250px),180px);}
}
