.field-label{text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:4px;font-size:10px;display:block}#editor-panel{box-sizing:border-box;flex-direction:column;width:240px;min-width:220px;min-height:140px;max-height:calc(100vh - 70px);display:none;bottom:56px;left:14px;overflow:hidden}#editor-panel .panel-body{flex:1;min-height:0;overflow-y:auto}#editor-panel .panel-head{cursor:grab;touch-action:none;flex:none;justify-content:space-between;align-items:center;gap:8px;display:flex}#editor-panel .panel-head.active{cursor:grabbing}#editor-panel .panel-head .panel-title{margin:0}#inspector-toggle{background:var(--tile);border:1px solid var(--tile-line);width:30px;height:26px;color:var(--muted);-webkit-tap-highlight-color:transparent;border-radius:7px;flex:none;padding:0;font-size:13px;line-height:1}#inspector-toggle:hover{color:var(--accent);border-color:var(--accent)}#editor-panel.collapsed .panel-body{display:none}#editor-panel.collapsed{min-height:0}#editor-grip{cursor:ne-resize;touch-action:none;border-top-right-radius:12px;width:18px;height:18px;position:absolute;top:0;right:0}#editor-grip:hover,#editor-grip.active{border-top:2px solid var(--accent);border-right:2px solid var(--accent)}#editor-resize-right{cursor:ew-resize;touch-action:none;border-bottom-right-radius:12px;width:8px;position:absolute;top:18px;bottom:0;right:0}#editor-resize-right:hover,#editor-resize-right.active{border-right:2px solid var(--accent)}#editor-panel .fields{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}#editor-panel .fields label{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);flex-direction:column;gap:3px;font-size:10px;display:flex}#editor-panel .fields input{cursor:ew-resize;width:100%}#editor-panel .fields input:focus{cursor:text}#editor-panel .fields input::-webkit-inner-spin-button{-webkit-appearance:none}#editor-panel .fields input::-webkit-outer-spin-button{-webkit-appearance:none}#editor-panel .mod-sec{border-top:1px solid var(--line);display:none}#editor-panel .mod-sec>summary{cursor:pointer;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);-webkit-tap-highlight-color:transparent;padding:8px 2px;font-size:10px;font-weight:600;list-style:none}#editor-panel .mod-sec>summary::-webkit-details-marker{display:none}#editor-panel .mod-sec>summary:before{content:"▸";margin-right:6px;transition:transform .12s;display:inline-block}#editor-panel .mod-sec[open]>summary:before{transform:rotate(90deg)}#editor-panel .mod-sec>.fields,#editor-panel .mod-sec>.group{margin-bottom:8px}#editor-panel .group{gap:6px;display:flex}#editor-panel .group>*{flex:1}#editor-panel .check-row{color:var(--muted);cursor:pointer;align-items:center;gap:6px;margin-top:8px;font-size:11px;display:none}#transform-status{background:var(--panel);border:1px solid var(--accent);-webkit-backdrop-filter:blur(12px);white-space:nowrap;border-radius:999px;align-items:baseline;gap:12px;padding:8px 18px;display:none;position:fixed;bottom:18px;left:50%;transform:translate(-50%);box-shadow:0 8px 24px #0006}#transform-status .status-label{color:var(--accent);font-size:13px;font-weight:650}#transform-status .status-hint{color:var(--muted);font-size:11px}#transform-status .status-axes{gap:4px;display:none}#transform-status .status-axes button,#transform-status .status-btn{width:30px;height:30px;font-family:var(--mono);background:var(--tile);border:1px solid var(--tile-line);color:var(--text);-webkit-tap-highlight-color:transparent;border-radius:8px;flex:none;padding:0;font-size:13px;line-height:1}#transform-status .status-axes button.active{border-color:var(--accent);color:var(--accent-bright);background:#f6b73c38}#transform-status .status-cancel{color:#ff8a8a;border-color:#ff8a8a66}#transform-status .status-confirm{color:#4fe08a;border-color:#4fe08a66}#transform-status .status-btn{display:none}#transform-status.transforming .status-btn{justify-content:center;align-items:center;display:inline-flex}#select-box{z-index:10;pointer-events:none;border:1px dashed var(--accent);background:#ffd23f1f;display:none;position:fixed}#m-topbar,#m-toolrail,#m-actionbar,#m-more-sheet{display:none}#m-topbar,#m-toolrail,#m-actionbar{z-index:22;box-sizing:border-box;-webkit-backdrop-filter:blur(12px);background:#0d1017d1;align-items:center;gap:6px;position:fixed;left:0;right:0}#m-topbar button,#m-toolrail button,#m-actionbar button,#m-more-sheet button{-webkit-tap-highlight-color:transparent;touch-action:manipulation;font-family:inherit}#m-topbar{padding:6px 8px;padding-top:max(6px, env(safe-area-inset-top));border-bottom:1px solid var(--line);gap:4px;top:0}#m-topbar .m-btn{background:var(--tile);border:1px solid var(--tile-line);width:40px;height:40px;color:var(--text);border-radius:10px;flex:none;font-size:18px}#m-topbar #m-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;padding:0 4px;font-size:14px;font-weight:600;overflow:hidden}#m-topbar .m-primary{border-color:var(--accent);color:#1a1204;background:#f6b73ce6}#m-toolrail{padding:6px;padding-bottom:max(6px, env(safe-area-inset-bottom));border-top:1px solid var(--line);bottom:0}#m-toolrail .m-tool{letter-spacing:.02em;min-width:0;height:52px;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:10px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:10px;display:flex}#m-toolrail .m-tool .m-ico{font-size:19px;line-height:1}#m-toolrail .m-tool.active{border-color:var(--accent);color:var(--accent-bright);background:#f6b73c29}#m-actionbar{bottom:calc(64px + env(safe-area-inset-bottom));scrollbar-width:none;border-top:1px solid var(--line);flex-wrap:nowrap;gap:6px;padding:6px 8px;overflow-x:auto}#m-actionbar::-webkit-scrollbar{display:none}#m-actionbar button{background:var(--tile);border:1px solid var(--tile-line);height:34px;color:var(--text);border-radius:999px;flex:none;padding:0 12px;font-size:12px}#m-actionbar button.active{border-color:var(--accent);color:var(--accent-bright);background:#f6b73c33}#m-actionbar .m-danger{color:#ff8a8a;border-color:#ff8a8a66}#m-more-sheet{z-index:40;background:#00000080;justify-content:center;align-items:flex-end;position:fixed;inset:0}#m-more-sheet.open{display:flex}#m-more-sheet .m-sheet-panel{box-sizing:border-box;background:var(--panel);border:1px solid var(--line);width:100%;max-width:520px;padding:16px 16px calc(16px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(14px);border-radius:16px 16px 0 0}#m-more-sheet .m-sheet-title{text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin-bottom:10px;font-size:11px}#m-more-sheet .m-sheet-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}#m-more-sheet .m-sheet-grid button{background:var(--tile);border:1px solid var(--tile-line);height:46px;color:var(--text);border-radius:10px;font-size:13px}#m-more-sheet .m-sheet-grid button.active{border-color:var(--accent);color:var(--accent-bright);background:#f6b73c33}#m-more-sheet .m-sheet-close{border:1px solid var(--line);width:100%;height:44px;color:var(--muted);background:0 0;border-radius:10px;margin-top:12px;font-size:14px}@media (pointer:coarse){body.edit-mode:not(.screen-open):not(.capturing) #m-topbar,body.edit-mode:not(.screen-open):not(.capturing) #m-toolrail,body.edit-mode.has-selection:not(.screen-open):not(.capturing) #m-actionbar{display:flex}body.edit-mode:not(.screen-open):not(.capturing) #hud{display:none!important}body.edit-mode:has(#transform-status.transforming) #editor-panel{display:none!important}body.drive #hotbar,body.drive #editor-panel,body.drive #env-panel,body.drive #tuning-panel,body.drive #tuning-tip,body.drive #transform-status,body.drive #validation-banner{display:none!important}body.edit-mode #editor-panel{border-radius:14px;min-width:0;max-height:40vh;width:auto!important;top:auto!important;left:8px!important;right:8px!important;bottom:calc(108px + env(safe-area-inset-bottom))!important}body.edit-mode #editor-grip,body.edit-mode #editor-resize-right{display:none}body.edit-mode #editor-panel .panel-head{cursor:default;padding:4px 2px}body.edit-mode #inspector-toggle{width:40px;height:32px;font-size:15px}body.edit-mode #editor-panel .mod-sec>summary{padding:11px 2px}body.edit-mode #editor-panel .fields input,body.edit-mode #editor-panel .mod-sec input{padding:8px;font-size:13px}body.edit-mode #editor-panel .group button,body.edit-mode #role-params button{min-height:38px}body.edit-mode #env-panel,body.edit-mode #tuning-panel{border-radius:14px;width:auto!important;top:auto!important;left:8px!important;right:8px!important;bottom:calc(70px + env(safe-area-inset-bottom))!important;max-height:62vh!important}body.edit-mode #transform-status{bottom:calc(124px + env(safe-area-inset-bottom));flex-wrap:wrap;justify-content:center;max-width:calc(100vw - 24px)}body.edit-mode:not(.screen-open) #toast-root{bottom:130px}}#env-panel{box-sizing:border-box;flex-direction:column;width:264px;min-width:220px;min-height:140px;max-height:calc(100vh - 28px);font-size:12px;display:none;top:14px;right:260px;overflow:hidden}#env-panel .env-head{cursor:grab;touch-action:none;flex:none;justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}#env-panel .env-head.active{cursor:grabbing}#env-panel .env-head button{flex:none;padding:3px 9px;font-size:12px}#env-header-row{flex:none;align-items:center;gap:6px;margin-bottom:8px;display:flex}#env-header-row #env-theme{flex:1;min-width:0;font-size:11px}#env-header-row label{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);align-items:center;gap:4px;font-size:10px;display:flex}#env-header-row #env-seed{width:60px;font-size:11px}#env-header-row #env-randomize{flex:none;padding:4px 7px}#env-actions{flex:none;gap:6px;margin-bottom:8px;display:flex}#env-actions button{flex:1}#env-fields{flex:1;min-height:0;margin:-4px;padding:4px;overflow-y:auto}#env-fields details{border-top:1px solid var(--line)}#env-fields summary{cursor:pointer;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);padding:7px 2px;font-size:10px;font-weight:600;list-style:none}#env-fields summary:before{content:"▸";margin-right:6px;transition:transform .12s;display:inline-block}#env-fields details[open] summary:before{transform:rotate(90deg)}#env-fields .tuning-row{align-items:center;gap:5px;padding:2px 0 6px;display:flex}#env-fields .tuning-row label{text-overflow:ellipsis;min-width:0;color:var(--muted);font-size:11px;font-family:var(--mono);flex:1;overflow:hidden}#env-fields input.scrub{box-sizing:border-box;border:1px solid var(--line);width:72px;color:var(--text);font-family:var(--mono);text-align:right;cursor:ew-resize;-webkit-user-select:text;user-select:text;background:#ffffff0d;border-radius:6px;flex:none;padding:4px 6px;font-size:11px}#env-fields input.scrub:focus{cursor:text}#env-fields input.scrub:disabled,#env-fields select:disabled{opacity:.5;cursor:not-allowed}#hotbar{z-index:20;pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:none;position:fixed;bottom:14px;left:50%;transform:translate(-50%)}#hotbar>*{pointer-events:auto;position:static}.hotbar-row{align-items:center;gap:6px;padding:6px 8px;display:none}.hotbar-row.open{display:flex}.hotbar-main{align-items:center;gap:8px;padding:7px 10px;display:flex}.hotbar-sep{background:var(--line);align-self:stretch;width:1px}.hotbar-slots{gap:4px;display:flex}.hotbar-slot{gap:5px}.hotbar-slot.open{border-color:var(--accent);color:var(--accent-bright)}.hotbar-icon{width:32px;font-size:15px}.hotbar-icon:disabled{opacity:.35;cursor:default}.hotbar-icon:disabled:hover{border-color:var(--line);background:#ffffff0d}.hotbar-save{color:var(--muted);font-size:11px;font-family:var(--mono)}.hotbar-save[data-state=error]{color:#ff8a8a}.hotbar-save[data-state=saved]{color:var(--green)}.hotbar-axes-label{text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-right:2px;font-size:10px;font-weight:600}.hotbar-axis{min-width:52px;color:var(--axis);border-color:color-mix(in srgb, var(--axis) 55%, transparent)}.hotbar-axis.active{background:var(--axis);border-color:var(--axis);color:#0b0d12;font-weight:700}.hotbar-axis.active kbd{color:inherit;background:#0000002e;border-color:#00000040}.hotbar-newspline{padding:7px 14px;font-weight:600}.hotbar-select{position:relative}#hotbar-mods{box-sizing:border-box;z-index:1;width:232px;display:none;position:absolute;bottom:calc(100% + 8px);right:0}#hotbar-mods.open{display:block}.mods-grid{grid-template-columns:repeat(2,1fr);gap:6px;display:grid}.mods-grid button[hidden]{display:none}.hb-menu{box-sizing:border-box;z-index:21;flex-direction:column;gap:4px;min-width:190px;padding:8px;display:none;position:fixed}.hb-menu.open{display:flex}.hb-menu-title{text-transform:uppercase;letter-spacing:.1em;color:var(--muted);padding:0 2px 2px;font-size:10px;font-weight:600}.hb-menu button.active{border-color:var(--accent);color:var(--accent-bright)}.hb-menu button:disabled{opacity:.4;cursor:default}@media (pointer:fine){body.edit-mode:not(.drive):not(.screen-open):not(.capturing):not(.ctx-race):not(.ctx-watch) #hotbar{display:flex}}@media (pointer:coarse){#hotbar{display:none!important}}body.drive #hotbar,body.screen-open #hotbar,body.capturing #hotbar,body.ctx-race #hotbar,body.ctx-watch #hotbar,body.drive #hotbar-mods,body.screen-open #hotbar-mods,body.capturing #hotbar-mods,body.drive .hb-menu,body.screen-open .hb-menu,body.capturing .hb-menu,body.drive #editor-tooltip,body.screen-open #editor-tooltip,body.capturing #editor-tooltip{display:none!important}#env-fields select{flex:none;width:84px;font-size:11px}#editor-tooltip{z-index:45;box-sizing:border-box;background:var(--panel);border:1px solid var(--line);-webkit-backdrop-filter:blur(12px);pointer-events:none;border-radius:10px;max-width:340px;padding:10px 12px;font-size:12px;line-height:1.45;display:none;position:fixed;box-shadow:0 8px 24px #00000073}#editor-tooltip.open{display:block}#editor-tooltip .tip-title{text-transform:uppercase;letter-spacing:.1em;color:var(--accent);margin-bottom:6px;font-size:10px;font-weight:600}#editor-tooltip .tip-line{color:var(--text);margin:0 0 5px}#editor-tooltip .tip-line:last-child{color:var(--muted);margin:0}
