@font-face{font-family:PlexArabic;src:url('/fonts/arabic.woff2') format('woff2');font-display:swap;font-weight:100 500}
@font-face{font-family:PlexArabic;src:url('/fonts/arabic-bold.woff2') format('woff2');font-display:swap;font-weight:600 900}
@font-face{font-family:Space;src:url('/fonts/space.woff2') format('woff2');font-display:swap;font-weight:100 900}
:root{--ink:#193b30;--paper:#f7f5ecef;--muted:#75846b;--line:#37533119;--orange:#f26a3f;--lime:#dbe8b6;--shadow:0 8px 26px #3645250b}
*{box-sizing:border-box}
button,a,input{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{opacity:.38;cursor:default;filter:saturate(.45);transform:none!important;box-shadow:none!important}
button:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.bmc-ui{position:fixed;inset:0;z-index:5;font:400 12px/1.6 PlexArabic,Arial,sans-serif;color:var(--ink);pointer-events:none;-webkit-font-smoothing:antialiased}
.bmc-ui [hidden]{display:none!important}
.bmc-ui button,.bmc-ui a,.bmc-ui input{pointer-events:auto}
.bmc-ui [dir=ltr],.bmc-ui kbd{font-family:Space,Arial,sans-serif}
.screen{position:absolute;inset:0;pointer-events:none}
.icon{height:18px;width:18px;display:block;flex:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;padding:0;border:1px solid #d9e2cf;background:#f7f8ef;border-radius:8px;color:#718465;box-shadow:none;transition:background .15s,color .15s,border-color .15s}
.icon-button>.icon{height:15px;width:15px}
.icon-button:hover:not(:disabled){background:#e6efda;border-color:#a9bd92;color:#42623b}
.icon-button[aria-pressed=true]{background:#e2edcf;border-color:#a5bd85;color:#4f743a}
.primary-button,.secondary-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:35px;padding:8px 13px;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:500;line-height:1.5;text-decoration:none;transition:background .15s,box-shadow .15s}
.primary-button{color:#243d2b;background:var(--orange);box-shadow:0 3px 8px #a0653012}
.primary-button:hover:not(:disabled){background:#f57850;box-shadow:0 4px 12px #a0653020}
.secondary-button{color:#617c4d;background:#e9efde;border-color:#d9e3cb}
.secondary-button:hover:not(:disabled){background:#dfeacd;border-color:#b6c99d}
.primary-button>.icon,.secondary-button>.icon{width:15px;height:15px}
.quiet-button,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;color:var(--muted);font-size:10px;line-height:1.6;padding:5px 8px;border-radius:6px}
.quiet-button:hover:not(:disabled),.text-button:hover:not(:disabled){color:#3d6038;background:#e3edd34f}
.quiet-button>.icon,.text-button>.icon{width:13px;height:13px}
.full-width{width:100%}
kbd{font-size:10px;line-height:1.3;font-weight:400;opacity:.6}
.topbar{position:absolute;top:22px;left:26px;right:26px;display:flex;align-items:center;gap:18px;direction:ltr;pointer-events:auto}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink);flex:none}
.brand-mark{display:grid;grid-template-columns:repeat(2,7px);gap:3px;padding:8px;border-radius:9px;background:#214a3b;box-shadow:inset 0 -2px 0 #112e22}
.brand-mark i{height:7px;width:7px;border-radius:50%;background:#e1e9bf;box-shadow:inset 0 -1px 0 #a3b479}
.brand-wordmark{font:600 21px/.95 Space,Arial,sans-serif;letter-spacing:2px}
.brand-wordmark>span{display:block;font:500 6px/1.4 Space,Arial,sans-serif;letter-spacing:2.5px;margin-top:5px}
.mode-nav{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;direction:rtl;gap:3px;padding:5px;background:#faf8eff0;border:1px solid #fff9;border-radius:12px;box-shadow:var(--shadow)}
.mode-tab{display:flex;align-items:center;justify-content:center;gap:8px;min-width:107px;padding:9px 13px;border:0;background:transparent;border-radius:8px;font-size:11px;color:#80906e;line-height:1.4;white-space:nowrap}
.mode-tab>.icon{height:14px;width:14px}
.mode-tab.active{background:#244b3a;color:#f0f4d8;box-shadow:0 2px 4px #19392513}
.step-no{font:8px Space,Arial,sans-serif;opacity:.45}
.mode-tab.active .step-no{color:#d2e5a3;opacity:.7}
.step-divider{display:none}
.step-complete{height:11px;width:11px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#dcebc3;color:#6d9050}
.step-complete>.icon{height:8px;width:8px}
.top-tools{display:flex;gap:5px;margin-left:auto;direction:rtl}
.top-tools>.icon-button{background:#f6f7ead9;border-color:#fffffff2;height:33px;width:33px;backdrop-filter:blur(10px)}
.bmc-ui[data-mode=intro] .mode-nav{display:none}
.intro-copy{position:absolute;left:6.5%;top:30%;width:290px;pointer-events:auto;direction:rtl;text-align:right}
.intro-copy h1{font-size:56px;line-height:1.23;letter-spacing:-1.6px;font-weight:600;margin:0;color:#244a38}
.intro-copy h1>span{color:#647f4f}
.intro-copy p{font-size:14px;color:#839170;margin:16px 0 23px;line-height:1.7}
.intro-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px}
.big-button{padding:13px 20px;min-height:47px;font-size:14px;border-radius:10px}
.big-button>.icon{width:18px;height:18px}
.intro-actions>.primary-button{justify-content:space-between}
.intro-actions>.quiet-button{font-size:11px;padding:5px}
.intro-actions>.demo-button{color:#899779}
.inspector{position:absolute;top:101px;right:26px;width:246px;padding:14px;border:1px solid #fff9;border-radius:13px;background:var(--paper);box-shadow:var(--shadow);backdrop-filter:blur(14px);pointer-events:auto;max-height:calc(100dvh - 307px);overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c4d1b0 transparent}
.vehicle-switcher{padding-bottom:9px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.vehicle-switcher-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0;border:0;background:transparent;min-height:25px;text-align:right}
.vehicle-switcher-toggle>span{display:flex;align-items:center;gap:6px;min-width:0}
.vehicle-switcher-toggle b{font-size:12px;font-weight:500}
.vehicle-switcher-toggle small{font:7px Space,Arial,sans-serif;letter-spacing:.5px;color:#96a184}
.vehicle-switcher-toggle .icon{height:14px;width:14px;color:#7f9469}
.vehicle-menu-meta>.icon{width:10px;height:10px;transform:rotate(-90deg)}
.vehicle-switcher[data-expanded=true] .vehicle-menu-meta>.icon{transform:rotate(90deg)}
.vehicle-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:10px}
.vehicle-card{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;padding:6px 4px 7px;border:1px solid #e0e6d4;border-radius:8px;background:#edf1e3}
.vehicle-card:hover{border-color:#a5ba8b;background:#eaf1de}
.vehicle-card.active{border-color:#8caa6c;background:#e7efda}
.vehicle-card-visual{width:100%;height:37px;pointer-events:none}
.vehicle-card-visual>img,.vehicle-card-visual>svg{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #28412d10)}
.vehicle-card>strong{font-size:10px;font-weight:500;color:#688053;line-height:1.5;margin-top:3px}
.vehicle-progress{height:2px;width:70%;background:#d6e1c8;border-radius:3px;overflow:hidden;margin-top:6px;direction:ltr}
.vehicle-progress>i{height:100%;display:block;background:#8daa6b}
.vehicle-selected{position:absolute;top:4px;right:4px;display:flex;align-items:center;justify-content:center;width:11px;height:11px;border-radius:50%;background:#82a35f;color:#f4f8e7}
.vehicle-selected>.icon{height:7px;width:7px}
.assembly-card{position:relative;min-width:0}
.assembly-card-top{display:flex;align-items:center;gap:10px;min-height:46px}
.assembly-thumb{display:flex;align-items:center;justify-content:center;flex:none;width:57px;height:46px;border:1px solid #e4e9d8;border-radius:8px;background:linear-gradient(140deg,#f7f9ed,#e9efdc);overflow:hidden}
.assembly-thumb img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 4px #2a442318)}
.assembly-thumb .mini-brick{transform:scale(.75) rotateX(28deg) rotateZ(-25deg)}
.assembly-thumb .mini-wheel{transform:scale(.85)}
.assembly-identity{min-width:0;padding-left:5px}
.assembly-identity h3{font-size:13px;font-weight:500;line-height:1.5;margin:0;color:#4e6d3f}
.part-role{display:block;font-size:8px;line-height:1.5;color:#9b926c;margin-bottom:2px}
.assembly-check{position:absolute;left:0;top:0;height:12px;width:12px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#8ba96e;color:#fff}
.assembly-check>.icon{height:8px;width:8px}
.assembly-controls{display:flex;align-items:center;gap:5px;margin-top:9px}
.assembly-button{flex:1;min-width:0;min-height:34px;font-size:12px;padding:7px 10px;justify-content:flex-start}
.assembly-button>kbd{margin-right:auto}
.assembly-controls>.icon-button{width:29px;height:34px;flex:none;border-radius:7px}
.assembly-controls>.icon-button>.icon{width:13px;height:13px}
.assembly-card.is-attached .assembly-button{background:#e2ecd5;color:#5d7d44;box-shadow:none}
.assembly-card.is-attached .assembly-button:hover{background:#d7e5c5}
.assembly-hint{font-size:9px;line-height:1.7;margin:7px 0 0;color:#a0854e}
.snap-status{display:flex;align-items:center;gap:5px;position:relative;color:#739155;font-size:9px;line-height:1.5;margin:6px 0 0;padding-bottom:3px}
.snap-status[data-phase=free],.snap-status[data-phase=blocked],.assembly-card.is-attached .snap-status{display:none}
.snap-status-mark{height:4px;width:4px;border-radius:50%;background:#91ae70;flex:none}
.snap-status[data-phase=aligning]{color:#ac8c51}
.snap-status[data-phase=aligning] .snap-status-mark{background:#c5a060}
.snap-status-progress{position:absolute;bottom:0;left:0;right:0;height:2px;background:#dbe5cc;border-radius:3px;overflow:hidden;opacity:0}
.snap-status-progress>i{height:100%;display:block;background:#93ad72}
.snap-status[data-phase=seating] .snap-status-progress{opacity:1}
.snap-status[data-phase=seating]{min-height:5px;padding-bottom:2px}
.snap-status[data-phase=seating] .snap-status-mark{display:none}
.snap-status[data-phase=seating] .snap-status-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.assembly-card.snap-ready .assembly-thumb{border-color:#9ab67c;background:#eaf3dc}
.empty-assembly h3{font-size:14px;font-weight:500;margin:2px 0 12px}
.empty-assembly .primary-button{font-size:11px;min-height:34px}
.customization{margin-top:11px}
.customization-toggle{display:flex;align-items:center;gap:7px;width:100%;padding:6px 9px;min-height:31px;border:1px solid #e0e6d3;border-radius:7px;background:#eff3e6;font-size:11px;color:#6e8559}
.color-preview{height:14px;width:14px;flex:none;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #56704117}
.disclosure-icon{margin-right:auto;width:10px;height:10px;transform:rotate(-90deg);color:#97a783}
.customization-toggle[aria-expanded=true]>.disclosure-icon{transform:rotate(90deg)}
.customization-body{padding-top:11px}
.color-swatches{display:flex;justify-content:space-between;gap:6px;margin-bottom:12px}
.color-swatch{height:23px;width:23px;flex:none;display:flex;align-items:center;justify-content:center;border:3px solid #fff9;border-radius:50%;background:var(--swatch);padding:0;box-shadow:0 0 0 1px #586c3912;color:white}
.color-swatch.selected{box-shadow:0 0 0 1.5px #6b8350}
.color-swatch>.icon{width:12px;height:12px}
.tuning-block{display:flex;flex-direction:column;gap:9px}
.tuning-row{display:flex;align-items:center;gap:7px;font-size:9px;color:#7b8d67}
.tuning-row>span{width:35px;flex:none}
.tuning-row>div{display:flex;gap:2px;flex:1;padding:2px;border-radius:6px;background:#e7eddd}
.tuning-row button{flex:1;padding:4px 2px;font-size:8px;border:0;background:transparent;color:#899b73;border-radius:4px}
.tuning-row button.active{color:#5c793e;background:#fbfbf0;box-shadow:0 1px 3px #28411b0b}
.car-stats{display:flex;flex-direction:column;gap:6px;margin-top:11px}
.car-stats>div{display:flex;align-items:center;gap:6px;font-size:9px;color:#879972}
.car-stats .icon{width:11px;height:11px}
.stat-dots{display:flex;gap:4px;margin-right:auto;direction:ltr}
.stat-dots>i{width:12px;height:3px;background:#dfe6d2;border-radius:2px}
.stat-dots>i.lit{background:#8eac6d}
.panel-next{display:flex;gap:6px;margin-top:10px}
.panel-next>.primary-button,.panel-next>.secondary-button{flex:1;font-size:11px;min-height:34px;padding:7px 8px;gap:6px}
.panel-next>.icon-button{height:34px;width:31px;flex:none}
.panel-next>.primary-button>.icon,.panel-next>.secondary-button>.icon{height:13px;width:13px}
.bottom-dock{position:absolute;left:26px;right:26px;bottom:22px;padding:11px 13px 9px;border:1px solid #fff9;border-radius:14px;background:var(--paper);box-shadow:var(--shadow);backdrop-filter:blur(14px);pointer-events:auto}
.bottom-dock:empty{display:none}
.dock-header{display:flex;align-items:center;gap:12px;margin-bottom:7px;min-width:0}
.dock-header.track-dock-complete{margin-bottom:0}
.track-dock-complete>.edit-track{min-height:31px;padding:5px 12px;border:1px solid #d9e3cb;background:#edf2e3;color:#617c4d;font-size:11px}
.dock-title{display:flex;align-items:center;gap:7px;white-space:nowrap}
.dock-title>strong{font-size:11px;font-weight:500;color:#6b8056}
.dock-count{font-size:8px;color:#92a17c;padding:2px 4px;line-height:1.5;border-radius:4px;background:#e8efdc}
.part-filters{display:flex;align-items:center;gap:3px;margin-left:auto;margin-right:auto}
.part-filters>button:not(.icon-button){font-size:10px;color:#8b9b77;padding:4px 9px;border:0;background:transparent;border-radius:5px;line-height:1.5}
.part-filters>button.active{color:#57773c;background:#e4edd6}
.part-filters>.icon-button{width:25px;height:26px;border:0;background:transparent}
.part-filters>.icon-button>.icon{width:13px;height:13px}
.dock-actions{display:flex;align-items:center;gap:4px;margin-right:auto;flex:none}
.dock-actions>.icon-button{height:27px;width:27px;border-radius:6px;background:#f5f7ec}
.dock-actions>.icon-button>.icon{width:13px;height:13px}
.category-menu{display:flex;align-items:center;gap:5px;overflow-x:auto;margin:0 0 8px;scrollbar-width:thin;scrollbar-color:#c0d1aa transparent}
.category-menu>button{flex:none;border:1px solid #dee6d0;border-radius:5px;background:#eff3e4;font-size:9px;color:#7d9262;padding:4px 9px}
.category-menu>button.active{background:#e2edcf;border-color:#a7c186;color:#5c7d3d}
.parts-list{display:flex;align-items:stretch;gap:7px;overflow-x:auto;overflow-y:hidden;padding:2px 1px 5px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#cbd5bc transparent;overscroll-behavior-x:contain}
.part-card{display:flex;flex-direction:column;align-items:center;position:relative;flex:0 0 93px;min-width:0;height:93px;padding:7px 6px 6px;border:1px solid #e0e6d5;border-radius:9px;background:linear-gradient(135deg,#f5f5e9,#e9eee0);scroll-snap-align:start;transition:background .15s,border-color .15s,transform .15s;overflow:hidden}
.part-card:hover:not(:disabled){border-color:#acc294;background:#edf3e2;transform:translateY(-1px)}
.part-card.selected{border-color:#86a367;background:linear-gradient(135deg,#f1f6e6,#e4ecd6);box-shadow:inset 0 -2px 0 #91ab72}
.part-visual{flex:1;display:flex;align-items:center;justify-content:center;height:61px;min-height:0;width:100%;pointer-events:none}
.part-visual>img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #28412d1a)}
.part-name{display:block;max-width:100%;margin-top:4px;font-size:9px;line-height:1.5;color:#66814e;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.part-corner{position:absolute;right:5px;top:5px;height:11px;width:11px;display:flex;align-items:center;justify-content:center;border-radius:50%;font:10px Space,Arial,sans-serif;color:#b7b695;z-index:1}
.part-corner>.icon{width:8px;height:8px}
.part-corner.done{background:#8ba96c;color:#f9fced}
.part-corner.optional{color:#b9a67b}
.mini-brick{position:relative;display:grid;grid-template-columns:repeat(2,9px);justify-content:space-between;gap:6px;width:49px;height:27px;padding:4px 6px;background:var(--brick-color,#087f73);border-radius:3px;transform:rotateX(28deg) rotateZ(-25deg);box-shadow:0 7px 0 #29493844,0 10px 7px #28422b17}
.mini-brick>i{height:8px;width:9px;border-radius:50%;background:inherit;filter:brightness(1.15);box-shadow:0 2px 1px #163d323d,inset 0 1px 0 #ffffff28}
.mini-brick.dark-brick{background:#3b4b40}
.mini-wheel{height:36px;width:36px;display:flex;align-items:center;justify-content:center;border:8px solid #2a372f;border-radius:50%;background:#8f9c86;box-shadow:2px 4px 0 #1d3026,0 7px 8px #1c392018}
.mini-wheel>i{height:10px;width:10px;border:2px solid #52684d;border-radius:50%;background:#c6cfbd}
.inventory-complete{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:86px;font-size:11px;color:#88a168}
.inventory-complete>.icon{height:21px;width:21px}
.track-tool-switch{display:flex;align-items:center;gap:2px;padding:3px;border-radius:8px;background:#e9efdd;flex:none}
.track-tool-switch>button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:28px;padding:5px 10px;border:0;border-radius:5px;background:transparent;color:#84996e;font-size:11px;line-height:1.5;white-space:nowrap}
.track-tool-switch>button>.icon{width:13px;height:13px}
.track-tool-switch>button>b{font:8px Space,Arial,sans-serif;font-weight:400;color:#97a980;background:#e1e9d4;border-radius:3px;padding:1px 3px;min-width:15px;text-align:center}
.track-tool-switch>button.active{background:#fbfbf2;color:#55763e;box-shadow:0 1px 4px #26401809}
.track-tool-switch>button.active>b{color:#7f9c5e;background:#e8f0d9}
.track-preview-card{padding:0;border:0;background:transparent}
.track-piece-preview{display:flex;align-items:center;gap:12px;margin-bottom:9px;min-height:54px}
.track-thumb{display:block;width:52px;height:58px;flex:none;filter:drop-shadow(0 3px 2px #29402510)}
.track-piece-preview h3{display:inline;font-size:14px;line-height:1.5;font-weight:500;margin:0;color:#5d7a47}
.preview-validity{display:inline-flex;align-items:center;margin-right:7px;vertical-align:middle;color:#91ad6d}
.preview-validity>.icon{width:12px;height:12px}
.preview-validity.invalid{color:#bd885f}
.placement-reason{font-size:10px;line-height:1.7;color:#a18558;margin:0 0 9px}
.track-preview-card>.primary-button{font-size:11px;padding:8px 10px;justify-content:flex-start}
.track-preview-card>.primary-button>kbd{margin-right:auto}
.closure-action{width:100%;font-size:10px;min-height:32px;margin-top:8px;padding:7px 9px;justify-content:flex-start}
.closure-action>.icon{height:12px;width:12px}
.closure-action>span{margin-right:auto;font-size:9px}
.decor-gate-note{display:flex;align-items:center;gap:5px;margin:10px 0 0;font-size:9px;line-height:1.6;color:#98a487}
.decor-gate-note>.icon{height:11px;width:11px}
.decor-gate-note>small{display:flex;align-items:center;gap:3px;margin-right:auto;font-size:7px;white-space:nowrap;color:#9aac82}
.decor-gate-note>small>.icon{height:10px;width:10px}
.track-complete-state{display:flex;align-items:center;gap:8px;padding:3px 0 12px}
.track-complete-state>.icon{height:20px;width:20px;padding:3px;background:#e3edcf;color:#7fa35c;border-radius:50%}
.track-complete-state>strong{font-size:14px;font-weight:500;color:#5a7b43}
.track-complete-state>span{font-size:8px;color:#9aac84;margin-right:auto}
.track-ready-actions{display:flex;flex-direction:column;gap:6px}
.track-ready-actions>.primary-button{min-height:39px;font-size:12px}
.track-ready-actions>.secondary-button{min-height:32px;font-size:11px}
.track-ready-actions>.quiet-button{font-size:10px;padding:2px}
.circuit-presets{margin-top:11px;border-top:1px solid var(--line);padding-top:9px}
.presets-toggle{display:flex;align-items:center;gap:6px;width:100%;padding:0;border:0;background:transparent;color:#82996b;font-size:10px;min-height:23px}
.presets-toggle>.icon{height:12px;width:12px}
.presets-toggle>.icon:last-child{margin-right:auto;width:9px;height:9px;transform:rotate(-90deg)}
.circuit-presets[data-expanded=true] .presets-toggle>.icon:last-child{transform:rotate(90deg)}
.circuit-presets>div{display:flex;gap:5px;margin-top:8px}
.circuit-presets>div>button{flex:1;min-width:0;border:1px solid #dde6d1;border-radius:6px;background:#edf3e3;color:#7f9a62;font-size:10px;min-height:29px;padding:5px 3px}
.circuit-presets>div>button:hover{background:#e3eed4;border-color:#b6cda0}
.selected-segment{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}
.selected-segment>strong{font-size:10px;font-weight:400;color:#829c68}
.selected-segment>.icon-button{height:27px;width:27px;color:#ad9269}
.track-card{height:94px;flex-basis:104px}
.track-card .track-thumb{height:55px;width:50px}
.track-card .part-name{font-size:10px}
.track-sequence{display:flex;align-items:center;gap:4px;overflow-x:auto;margin-top:7px;padding-top:8px;border-top:1px solid var(--line);scrollbar-width:thin;scrollbar-color:#c5d6af transparent;direction:ltr}
.track-sequence>button{display:flex;align-items:center;justify-content:center;gap:5px;height:26px;min-width:34px;padding:3px 5px;border:1px solid #e0e9d3;border-radius:5px;background:#edf3e4;color:#91a77a}
.track-sequence>button.selected{background:#dfedcd;border-color:#a5be85;color:#5e843f}
.track-sequence>button>span{font:8px Space,Arial,sans-serif}
.segment-glyph{height:11px;width:7px;border-right:3px solid #aab99a;display:block;transform:rotate(-20deg)}
.segment-glyph.left{border-top:3px solid #aab99a;border-top-right-radius:7px;width:11px;height:10px}
.segment-glyph.right{border-top:3px solid #aab99a;border-top-left-radius:7px;border-right:0;border-left:3px solid #aab99a;width:11px;height:10px}
.segment-glyph.boost{border-color:#c1b179}
.segment-glyph.ramp{height:8px;width:13px;border:0;border-top:3px solid #aab99a;border-radius:50%;transform:none}
.decor-kit-chooser{margin:0 0 10px;padding-bottom:9px;border-bottom:1px solid var(--line)}
.decor-kit-heading{display:flex;align-items:center;min-height:20px;margin:0;font-size:10px;font-weight:500;text-align:right;color:#62814b}
.decor-kit-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:7px}
.decor-kit-card{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:44px;min-height:56px;padding:5px 3px;border:1px solid #e0e8d2;border-radius:7px;background:#eff4e6}
.decor-kit-card:hover:not(:disabled){border-color:#a5c28b;background:#e8f2dc}
.decor-kit-card.active{background:#e3eed4;border-color:#95b573;box-shadow:inset 0 -2px 0 #a4bd85}
.decor-kit-card>div{height:27px;width:100%;pointer-events:none}
.decor-kit-card .decor-illustration{height:100%;width:100%;filter:drop-shadow(0 2px 2px #2c492015)}
.decor-kit-card>span{font-size:10px;color:#587443;line-height:1.4;white-space:nowrap}
.decor-palette-label{display:flex;align-items:center;gap:6px;margin:0 1px 5px;font-size:9px;line-height:1.5;color:#738660}
.decor-palette-label>small{font:8px Space,Arial,sans-serif;color:#8ca276}
.decor-assembly-card{padding:0;border:0;background:transparent}
.decor-part-heading{display:flex;align-items:center;gap:9px;position:relative;min-height:46px}
.decor-part-thumb{height:46px;width:49px;padding:4px;display:flex;align-items:center;justify-content:center;flex:none;border:1px solid #e1e9d4;border-radius:7px;background:linear-gradient(140deg,#f8faee,#e8f0dc)}
.decor-part-thumb>.decor-illustration,.decor-part-thumb>img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #30462713)}
.decor-part-heading>h3{font-size:13px;line-height:1.5;font-weight:500;margin:0;min-width:0;color:#597c43}
.decor-part-check{display:flex;align-items:center;justify-content:center;height:12px;width:12px;flex:none;border-radius:50%;background:#8cad6c;color:#fff;align-self:flex-start;margin-right:auto}
.decor-part-check>.icon{height:8px;width:8px}
.decor-part-description{font-size:9px;color:#a18c5c;line-height:1.7;margin:7px 0 0}
.decor-assembly-actions{display:flex;align-items:center;gap:5px;margin-top:9px}
.decor-attach{flex:1;min-width:0;min-height:34px;font-size:11px;padding:7px 9px}
.decor-attach>.icon{height:12px;width:12px}
.decor-assembly-actions>.icon-button{height:34px;width:30px;flex:none}
.decor-assembly-card.is-attached .decor-attach{background:#e0ebd1;color:#648447;box-shadow:none}
.decor-placement{padding:0;border:0;background:transparent;margin-top:9px}
.decor-inspector.is-placing .decor-placement,.decor-inspector.has-placed-selection .decor-placement{margin-top:0}
.decor-placement-reason{display:flex;align-items:flex-start;gap:5px;color:#b48e60;font-size:10px;line-height:1.7;margin:0 0 9px}
.decor-placement-reason>.icon{height:12px;width:12px;margin-top:3px}
.decor-placement.is-valid .decor-placement-reason{color:#86a767}
.decor-placement-actions{display:flex;align-items:center;gap:5px}
.decor-place{flex:1;min-width:0;font-size:11px;min-height:35px;padding:8px 7px;gap:5px}
.decor-place>.icon{height:13px;width:13px}
.decor-placement-actions>.icon-button{height:35px;width:28px;flex:none;border-radius:7px}
.decor-placement-actions>.icon-button>.icon{height:13px;width:13px}
.suggest-placement{font-size:9px;padding:7px 0 0;margin:0 auto;display:flex}
.suggest-placement>.icon{height:12px;width:12px}
.focus-decor-link{display:flex;font-size:9px;padding:6px 0 0;margin:0 auto}
.decor-parts>.part-card{flex-basis:101px}
.decor-part-card .decor-illustration{height:100%;width:85%;max-width:72px;filter:drop-shadow(0 4px 3px #2b492119)}
.decor-part-card .part-visual{padding:1px 4px}
.add-decor-card{justify-content:center;gap:8px;background:transparent;border:1px dashed #c3d5ac;box-shadow:none;color:#8eaa70}
.add-decor-card>.icon{height:24px;width:24px}
.add-decor-card>span{font-size:9px}
.decor-scene-list{display:flex;align-items:center;gap:5px;overflow-x:auto;margin-top:7px;padding-top:8px;border-top:1px solid var(--line);scrollbar-width:thin;scrollbar-color:#c5d6af transparent}
.decor-scene-list>button{display:flex;align-items:center;gap:5px;flex:none;font-size:9px;padding:3px 7px;border:1px solid #e0e9d2;border-radius:6px;background:#edf3e2;color:#829f65}
.decor-scene-list>button.selected{background:#e3efcf;border-color:#a6c086;color:#5f873f}
.decor-scene-list .decor-illustration{height:24px;width:27px}
.decor-scene-list>span{font-size:9px;color:#9cad88;padding:4px 0}
.view-tools{position:absolute;top:101px;left:26px;bottom:auto;pointer-events:none;z-index:12}
.camera-dock{width:78px;padding:5px;border:1px solid #fff9;border-radius:10px;background:#f7f7eddd;box-shadow:var(--shadow);backdrop-filter:blur(12px);pointer-events:auto}
.camera-dock[data-expanded=true]{width:166px;padding:8px}
.camera-dock-top{display:flex;align-items:center;justify-content:space-between;gap:3px}
.camera-dock-heading{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;height:30px;padding:4px;border:0;border-radius:6px;background:transparent;color:#78976a}
.camera-dock-heading>.icon{height:17px;width:17px}
.camera-dock-heading>.camera-disclosure{height:7px;width:7px;transform:rotate(-90deg)}
.camera-dock-heading[aria-expanded=true]>.camera-disclosure{transform:rotate(90deg)}
.camera-dock-top>[data-action=smartCamera]{height:29px;width:29px;border:0;background:transparent;box-shadow:none}
.camera-dock-top>[data-action=smartCamera][aria-pressed=true]{background:#e4efcf;color:#6c934d}
.camera-dock-top>[data-action=smartCamera]>.icon{height:16px;width:16px}
.camera-controls{margin-top:8px}
.camera-presets{display:flex;gap:4px}
.camera-presets>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:1;min-width:0;padding:7px 4px;min-height:46px;border:1px solid transparent;border-radius:6px;background:#eef2e3;color:#8aa370;font-size:8px}
.camera-presets>button>.icon{height:15px;width:15px}
.camera-presets>button.active{border-color:#b0c68c;background:#e4edce;color:#6b8a4a}
.camera-actions{display:flex;align-items:center;justify-content:space-between;gap:3px;margin-top:7px;padding-top:6px;border-top:1px solid var(--line);direction:ltr}
.camera-actions>.icon-button{height:28px;width:31px;border:0;background:transparent}
.camera-actions>.icon-button>.icon{height:14px;width:14px}
.project-tools{display:flex;justify-content:center;gap:8px;margin-top:6px;padding-top:5px;border-top:1px solid var(--line)}
.project-tools>.text-button{font-size:8px;padding:3px 5px;gap:5px}
.project-tools>.text-button>.icon{height:11px;width:11px}
.scene-tag,.control-hints:empty{display:none}
.scene-feedback{position:absolute;left:50%;top:45%;display:flex;justify-content:center;align-items:center;width:28px;height:28px;border-radius:50%;border:1px solid #c7dca8;background:#f2f8e6ed;color:#7b9d57;box-shadow:0 5px 15px #37582110;opacity:0;transform:translate(-50%,6px);transition:opacity .18s,transform .18s;pointer-events:none;z-index:15}
.scene-feedback>.icon{height:15px;width:15px}
.scene-feedback.visible{opacity:1;transform:translate(-50%,0)}
.toast{position:absolute;left:50%;bottom:192px;transform:translate(-50%,7px);max-width:min(510px,85vw);width:max-content;padding:9px 16px;border:1px solid #d9e4c8;border-radius:9px;background:#f8faefee;color:#6f8b51;font-size:11px;line-height:1.7;text-align:center;box-shadow:var(--shadow);opacity:0;transition:opacity .18s,transform .18s;z-index:30;pointer-events:none}
.toast.visible{opacity:1;transform:translate(-50%,0)}
.race-timing{position:absolute;top:104px;left:26px;pointer-events:auto}
.race-title{display:none}
.timing-row{display:flex;align-items:center;gap:26px;padding:12px 18px;border:1px solid #fff9;border-radius:12px;background:var(--paper);box-shadow:var(--shadow)}
.timing-row>div{display:flex;flex-direction:column;gap:3px;text-align:right}
.timing-row>div>span{font-size:10px;color:#94a27d}
.timing-row strong{font:500 24px/1.4 Space,Arial,sans-serif;letter-spacing:-.7px;color:#4f7441;white-space:nowrap}
.timing-row strong>b{font-weight:500}
.timing-row small{font-size:12px;color:#a5b391}
.lap-progress{height:3px;background:#d9e4c67d;border-radius:3px;margin:7px 9px 0;overflow:hidden;direction:ltr}
.lap-progress>i{height:100%;display:block;width:0;background:#8fae65;transition:width .1s linear}
.race-map{position:absolute;top:104px;right:26px;width:145px;height:141px;padding:10px;border:1px solid #fff9;border-radius:12px;background:var(--paper);box-shadow:var(--shadow);pointer-events:auto}
.race-map>div{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:8px;color:#92a37b}
.map-dot{height:4px;width:4px;background:#92b25f;border-radius:50%}
.race-map>svg{width:100%;height:92px;overflow:visible;padding:10px 5px 5px}
.map-road{fill:none;stroke:#71876c;stroke-width:7px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.map-centerline{fill:none;stroke:#e8efda;stroke-width:1px;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}
.map-caption{font-size:6px;color:#a6b68d;line-height:1.5;display:block;text-align:center}
.race-speed{position:absolute;bottom:28px;left:26px;width:214px;padding:16px 18px;border:1px solid #fff9;border-radius:14px;background:var(--paper);box-shadow:var(--shadow);pointer-events:auto}
.speed-eyebrow{display:flex;align-items:center;gap:5px;color:#8ba272;font:7px Space,Arial,sans-serif;letter-spacing:.7px}
.speed-live-dot{height:4px;width:4px;border-radius:50%;background:#8eaf60}
.speed-number{display:flex;align-items:baseline;gap:11px;margin-top:4px;color:#426e36}
.speed-number>b{font:500 72px/.98 Space,Arial,sans-serif;letter-spacing:-4px}
.speed-number>span{font:8px Space,Arial,sans-serif;color:#9db084}
.speed-meter{height:4px;background:#dfe9cd;border-radius:4px;overflow:hidden;margin-top:12px;direction:ltr}
.speed-meter>i{height:100%;display:block;background:#85a95b;width:0;transition:width .1s linear}
.speed-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px}
.race-status-label{font-size:9px;color:#96a97d}
.boost-state{display:flex;align-items:center;gap:3px;font:6px Space,Arial,sans-serif;color:#b6c49b}
.boost-state>.icon{width:10px;height:10px}
.boost-state.active{color:#ec9d56}
.boost-charge{height:2px;background:#e2ead5;margin-top:7px;border-radius:3px;overflow:hidden;direction:ltr}
.boost-charge>i{height:100%;display:block;background:#bccb89;transition:width .1s linear}
.race-speed.caution .race-status-label{color:#b88955}
.race-speed.caution .speed-meter>i{background:#c6a363}
.race-center-action{position:absolute;left:50%;bottom:38px;transform:translateX(-50%);pointer-events:auto}
.race-center-action>.big-button{min-width:221px;font-size:13px}
.race-center-action>.secondary-button{min-width:170px}
.bmc-ui[data-mode=race] .view-tools{top:auto;left:auto;right:26px;bottom:28px}
.bmc-ui[data-mode=race] .camera-dock[data-expanded=false]{width:42px;margin-left:auto}
.bmc-ui[data-mode=race] .camera-dock[data-expanded=false] .camera-dock-heading{width:100%}
.bmc-ui[data-mode=race] .camera-dock[data-expanded=false] .camera-disclosure{display:none}
.race-controls{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:6px}
.race-controls>.icon-button{width:28px;height:29px;background:#f7f8ece6;border-color:#fff9}
.race-controls>.icon-button>.icon{width:13px;height:13px}
.mobile-drive{display:none}
.control-hints{position:absolute;left:50%;bottom:11px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:16px;font-size:8px;color:#9fae85;white-space:nowrap;pointer-events:none}
.control-hints>span{display:flex;align-items:center;gap:5px}
.control-hints kbd{font-size:8px;border:1px solid #b6c79945;border-radius:3px;padding:1px 3px}
.countdown{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);font:600 130px/1 Space,Arial,sans-serif;letter-spacing:-6px;color:#345f32;opacity:0;pointer-events:none;text-shadow:0 4px 0 #edf5d890,0 12px 45px #34612524;z-index:25}
.countdown.visible{opacity:1}
.countdown.tick{animation:count-tick .35s ease-out}
@keyframes count-tick{from{transform:translate(-50%,-50%) scale(1.2);opacity:.4}to{transform:translate(-50%,-50%) scale(1);opacity:1}}
.modal-layer{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:#18362352;backdrop-filter:blur(9px);z-index:100;pointer-events:auto}
.game-modal{position:relative;width:440px;max-width:100%;max-height:calc(100dvh - 40px);padding:31px;border:1px solid #fff8;border-radius:19px;background:#f7f7eafc;box-shadow:0 25px 100px #102a2326;overflow:auto;text-align:right;scrollbar-width:thin;scrollbar-color:#bfcea8 transparent}
.modal-close{position:absolute;left:14px;top:14px;height:29px;width:29px;background:transparent;border:0;color:#9cb083}
.eyebrow{display:block;font:7px/1.5 Space,Arial,sans-serif;letter-spacing:1.8px;color:#9bb27e}
.game-modal h2{font-size:29px;font-weight:500;line-height:1.4;letter-spacing:-.6px;margin:15px 0 8px;color:#416a35}
.game-modal>p{font-size:12px;color:#91a879;line-height:1.9;margin:7px 0}
.help-steps{display:flex;flex-direction:column;gap:17px;margin:23px 0}
.help-steps article{display:flex;gap:12px}
.help-steps article>span{display:flex;align-items:center;justify-content:center;height:28px;width:28px;flex:none;background:#e4edd4;border-radius:8px;color:#91ac6e;font:10px Space,Arial,sans-serif}
.help-steps h3{font-size:13px;font-weight:500;color:#638949;margin:0 0 5px}
.help-steps p{font-size:11px;line-height:1.9;color:#91a77c;margin:0}
.key-guide{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:18px 0 23px;padding-top:17px;border-top:1px solid #dce6cf}
.key-guide>div{display:flex;align-items:center;gap:7px;color:#93aa7a;font-size:9px}
.key-guide kbd{font-size:8px;opacity:1;border:1px solid #d7e4c5;border-radius:4px;background:#eef4e3;padding:3px 5px;white-space:nowrap;color:#8eab6a}
.game-modal>.primary-button{min-height:40px;font-size:12px}
.game-modal .help-note{font-size:9px;color:#9fb28b;margin:14px 0 0;line-height:1.8}
.result-modal{text-align:center}
.finish-flag{display:flex;align-items:center;justify-content:center;height:57px;width:57px;border-radius:17px;background:#e2efc9;color:#82a65c;margin:0 auto 20px;transform:rotate(-7deg)}
.finish-flag>.icon{height:31px;width:31px;transform:rotate(7deg)}
.result-total{display:flex;flex-direction:column;gap:5px;padding:19px 0;color:#91a877}
.result-total>span{font-size:11px}
.result-total>strong{font:500 45px/1.2 Space,Arial,sans-serif;letter-spacing:-2px;color:#5e883f}
.lap-results{display:flex;flex-direction:column;margin:4px 0 22px;border-top:1px solid #dce7cd}
.lap-results>div{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #dce7cd;color:#9bb17e;font-size:11px}
.lap-results strong{font:500 14px Space,Arial,sans-serif;margin-right:auto;color:#739750}
.best-pill{font-size:8px;padding:2px 6px;background:#e1eec6;color:#8aa968;border-radius:4px}
.compatibility{display:grid;grid-template-columns:1.35fr 1fr;direction:ltr;gap:45px;align-items:center;padding:6vw;max-width:1500px;width:100%;box-sizing:border-box}
.compatibility img{width:100%;border-radius:20px;box-shadow:0 20px 65px #24362a10}
.compatibility section{direction:rtl;text-align:right;font-family:PlexArabic,Arial,sans-serif}
.compatibility b{font-family:Space,Arial,sans-serif;font-size:12px;letter-spacing:2px}
.compatibility h1{font-size:clamp(26px,3vw,44px);line-height:1.5;letter-spacing:-1px;font-weight:500;margin:24px 0}
.compatibility p{font-size:15px!important;line-height:1.9;opacity:.7}
.compatibility button{margin-top:23px;background:#f26a3f!important;border-radius:9px!important}
.compatibility small{display:block;font-size:11px;line-height:1.8;opacity:.5;margin-top:23px;max-width:390px}
@media(min-width:1700px){.topbar{left:38px;right:38px;top:28px}.inspector{right:38px;top:115px;width:264px;padding:16px}.bottom-dock{left:38px;right:38px;bottom:28px;padding:13px 16px 11px}.part-card{height:103px;flex-basis:106px}.part-name{font-size:10px}.view-tools{left:38px;top:115px}.track-card{flex-basis:115px;height:103px}.track-card .track-thumb{height:62px}.decor-parts>.part-card{flex-basis:112px}.vehicle-card-visual{height:41px}.intro-copy{width:325px;left:7%}.intro-copy h1{font-size:64px}.intro-copy p{font-size:16px}}
@media(max-width:1100px) and (min-width:701px){.topbar{left:20px;right:20px}.mode-tab{min-width:90px;padding:9px 10px;gap:6px;font-size:10px}.step-no{display:none}.brand-wordmark{font-size:19px}.inspector{right:20px;width:225px;padding:12px}.view-tools{left:20px}.bottom-dock{left:20px;right:20px}.part-card{flex-basis:86px;height:88px}.part-name{font-size:8px}.track-card{flex-basis:93px}.track-card .part-name{font-size:9px}.decor-parts>.part-card{flex-basis:93px}.decor-kit-heading{font-size:10px}.assembly-identity h3,.decor-part-heading>h3{font-size:12px}.intro-copy{left:5%;width:260px}.intro-copy h1{font-size:48px}.intro-copy p{font-size:13px}.race-timing{left:20px}.race-map{right:20px}.race-speed{left:20px}.bmc-ui[data-mode=race] .view-tools{right:20px}}
@media(max-height:760px) and (min-width:701px){.topbar{top:18px}.inspector{top:91px;max-height:calc(100dvh - 278px);padding:12px}.view-tools{top:91px}.bottom-dock{bottom:18px;padding-top:9px;padding-bottom:7px}.part-card{height:82px}.part-name{margin-top:3px}.vehicle-switcher{padding-bottom:7px;margin-bottom:8px}.assembly-thumb{height:41px;width:49px}.assembly-card-top{min-height:41px}.assembly-identity h3{font-size:12px}.assembly-controls{margin-top:7px}.customization{margin-top:9px}.panel-next{margin-top:8px}.track-piece-preview{min-height:47px}.track-piece-preview>.track-thumb{height:48px}.track-card .track-thumb{height:47px}.intro-copy{top:27%}.intro-copy h1{font-size:46px}.intro-copy p{margin:13px 0 18px}.race-map{top:91px}.race-timing{top:91px}.race-speed{width:197px;padding:14px 16px}.speed-number>b{font-size:64px}}
@media(max-width:700px){
  .topbar{top:14px;left:14px;right:14px;gap:10px;flex-wrap:wrap;align-items:center}
  .brand{gap:8px}.brand-mark{padding:7px;gap:3px}.brand-wordmark{font-size:18px;letter-spacing:1.5px}.brand-wordmark>span{font-size:5.5px;letter-spacing:2px}
  .top-tools{gap:4px}.top-tools>.icon-button{height:29px;width:29px;border-radius:7px}.top-tools .icon{height:14px;width:14px}
  .mode-nav{position:static;transform:none;order:3;flex:0 0 100%;padding:4px;gap:3px;border-radius:11px;justify-content:space-between}
  .mode-tab{flex:1;min-width:0;justify-content:center;font-size:11px;gap:6px;padding:9px 4px;min-height:33px}.mode-tab>.icon{height:13px;width:13px}.mode-tab .step-no,.step-complete{display:none}
  .intro-copy{top:auto;left:20px;right:20px;bottom:28px;width:auto;max-width:360px;padding:20px;border:1px solid #fff8;border-radius:17px;background:linear-gradient(135deg,#faf6eaf0,#f2eededb);backdrop-filter:blur(9px);box-shadow:var(--shadow)}
  .intro-copy h1{font-size:37px;line-height:1.25;letter-spacing:-1px}.intro-copy p{font-size:12px;margin:10px 0 16px}.intro-actions{gap:5px}.intro-actions .big-button{min-height:43px;font-size:13px;padding:11px 16px}.intro-actions>.quiet-button{font-size:10px;padding:3px}
  .inspector{top:auto;right:12px;left:12px;width:auto;bottom:var(--workbench-inspector-bottom,160px);padding:9px 10px;max-height:188px;border-radius:12px}
  .car-inspector{display:grid;grid-template-columns:minmax(0,1fr) 115px;gap:0 10px}
  .car-inspector>.vehicle-switcher{grid-column:1/-1;grid-row:1;margin:0 0 8px;padding-bottom:6px}
  .vehicle-switcher-toggle{min-height:23px}.vehicle-switcher-toggle b{font-size:11px}.vehicle-switcher-toggle small{font-size:6px}.vehicle-switcher-toggle .icon{height:13px;width:13px}.vehicle-menu-meta>.icon{height:9px;width:9px}
  .vehicle-cards{gap:6px;margin-top:8px}.vehicle-card{padding:5px 6px 6px}.vehicle-card-visual{height:38px}.vehicle-card>strong{font-size:11px;margin-top:2px}
  .car-inspector>.assembly-card{grid-column:1;grid-row:2/span 2;align-self:start}
  .assembly-card-top{gap:7px;min-height:38px}.assembly-thumb{width:42px;height:38px;border-radius:6px}.assembly-identity h3{font-size:11px;line-height:1.4}.part-role{font-size:7px;margin-bottom:1px}.assembly-check{height:10px;width:10px}.assembly-check>.icon{height:7px;width:7px}
  .assembly-controls{margin-top:7px;gap:4px}.assembly-button{font-size:11px;min-height:32px;padding:6px 8px;gap:5px}.assembly-button>.icon{height:12px;width:12px}.assembly-button>kbd{font-size:9px}.assembly-controls>.icon-button{width:26px;height:32px;border-radius:6px}.assembly-controls>.icon-button>.icon{height:12px;width:12px}
  .snap-status{font-size:8px;line-height:1.4;margin-top:4px}.assembly-hint{font-size:9px;line-height:1.5;margin:5px 0 0}
  .empty-assembly h3{font-size:12px;margin:0 0 8px}.empty-assembly .primary-button{font-size:10px;min-height:33px;padding:7px}
  .car-inspector>.customization{grid-column:2;grid-row:2;margin:0;align-self:start}.customization-toggle{font-size:10px;min-height:31px;padding:6px;gap:5px}.color-preview{height:13px;width:13px}
  .customization-body{padding-top:9px}.color-swatches{display:grid;grid-template-columns:repeat(3,1fr);justify-items:center;gap:7px;margin-bottom:10px}.color-swatch{width:21px;height:21px}
  .tuning-row{display:block;font-size:8px}.tuning-row>span{display:block;width:auto;margin-bottom:4px}.tuning-row>div{padding:2px;gap:1px}.tuning-row button{font-size:7px;padding:4px 1px}.car-stats{display:none}
  .car-inspector>.panel-next{grid-column:2;grid-row:3;margin:6px 0 0;align-self:start;gap:4px}.panel-next>.primary-button,.panel-next>.secondary-button{min-height:32px;padding:6px 5px;font-size:10px;gap:4px}.panel-next>.primary-button>.icon,.panel-next>.secondary-button>.icon{height:11px;width:11px}.panel-next>.primary-button>.icon:last-child,.panel-next>.secondary-button>.icon:last-child{display:none}.panel-next>.icon-button{width:25px;height:32px}.panel-next>.icon-button>.icon{height:12px;width:12px}
  .bottom-dock{left:12px;right:12px;bottom:16px;padding:8px 8px 6px;border-radius:12px}.dock-header{gap:6px;margin-bottom:5px}.dock-title{gap:4px}.dock-title>strong{font-size:10px}.dock-count{font-size:7px;padding:1px 3px}.part-filters{gap:1px;margin-right:auto;margin-left:auto}.part-filters>button:not(.icon-button){font-size:9px;padding:4px 6px}.part-filters>.icon-button{width:22px;height:25px}.part-filters>.icon-button>.icon{height:12px;width:12px}.dock-actions{gap:3px;margin-right:0}.dock-actions>.icon-button{height:26px;width:26px;border-radius:6px}.dock-actions>.icon-button>.icon{height:12px;width:12px}
  .category-menu{gap:4px;margin-bottom:6px}.category-menu>button{font-size:8px;padding:4px 7px}
  .parts-list{gap:6px;padding:1px 1px 3px;scrollbar-width:none}.part-card{flex-basis:73px;height:73px;padding:6px 5px 5px;border-radius:7px}.part-visual{height:45px}.part-name{font-size:8px;line-height:1.5;margin-top:3px}.part-corner{top:4px;right:4px;height:10px;width:10px}.part-corner>.icon{height:7px;width:7px}.mini-brick{transform:scale(.75) rotateX(28deg) rotateZ(-25deg)}.mini-wheel{transform:scale(.8)}.inventory-complete{min-height:70px;font-size:10px}
  .track-tool-switch{padding:3px;gap:2px}.track-tool-switch>button{padding:4px 7px;font-size:10px;gap:5px;min-height:26px}.track-tool-switch>button>.icon{width:12px;height:12px}.track-tool-switch>button>b{font-size:7px;min-width:13px;padding:1px 2px}
  .bmc-ui[data-mode=track] .dock-actions{margin-right:auto}
  .dock-header.track-dock-complete{flex-wrap:wrap;row-gap:6px}.track-dock-complete>.edit-track{order:3;flex:0 0 100%;min-height:29px;padding:4px 10px;font-size:10px}
  .track-inspector:not(.is-complete){display:grid;grid-template-columns:minmax(0,1fr) 122px;gap:7px 10px;max-height:182px}
  .track-inspector>.track-preview-card{grid-column:1;grid-row:1/span 2;min-width:0}.track-piece-preview{gap:8px;min-height:39px;margin-bottom:7px}.track-piece-preview>.track-thumb{height:39px;width:37px}.track-piece-preview h3{font-size:12px}.preview-validity{margin-right:5px}.preview-validity>.icon{height:10px;width:10px}.track-preview-card>.primary-button{min-height:32px;font-size:10px;padding:7px 9px;gap:5px}.track-preview-card>.primary-button>.icon{height:12px;width:12px}.track-preview-card>.primary-button>kbd{font-size:9px}.placement-reason{font-size:9px;line-height:1.5;margin-bottom:6px}
  .track-inspector>.closure-action{grid-column:2;grid-row:1;align-self:start;margin:0;min-height:31px;padding:6px;font-size:9px;gap:4px}.closure-action>.icon{height:11px;width:11px}.closure-action>span{font-size:8px}
  .track-inspector>.decor-gate-note{grid-column:2;grid-row:2;align-self:center;margin:0;gap:4px;font-size:8px;line-height:1.5;flex-wrap:wrap}.decor-gate-note>.icon{height:10px;width:10px}.decor-gate-note>small{font-size:7px;flex-basis:100%;padding-right:13px;margin-right:0}
  .track-inspector>.circuit-presets{grid-column:1/-1;grid-row:3;margin-top:0;padding-top:7px}.presets-toggle{font-size:9px;min-height:24px}.presets-toggle>.icon{height:11px;width:11px}.circuit-presets>div{margin-top:6px;gap:4px}.circuit-presets>div>button{font-size:9px;min-height:27px;padding:4px}
  .track-inspector:not(:has(.closure-action)):not(.is-complete)>.circuit-presets{grid-column:2;grid-row:1;border:0;padding:0;align-self:start}
  .track-inspector>.selected-segment{grid-column:1/-1;grid-row:4;margin:0;padding-top:6px}.selected-segment>strong{font-size:9px}.selected-segment>.icon-button{height:25px;width:26px}
  .track-inspector.is-complete{max-height:180px}.track-complete-state{padding:0 0 8px;gap:6px}.track-complete-state>strong{font-size:12px}.track-complete-state>.icon{height:17px;width:17px}.track-complete-state>span{font-size:8px}.track-ready-actions{flex-direction:row;flex-wrap:wrap;gap:6px}.track-ready-actions>.primary-button{flex:1;min-width:0;min-height:34px;font-size:11px;padding:7px 10px}.track-ready-actions>.secondary-button{width:100px;min-height:34px;font-size:10px;padding:7px}.track-ready-actions>.quiet-button{flex-basis:100%;font-size:9px;padding:0}.track-inspector.is-complete .circuit-presets{margin-top:8px;padding-top:6px}
  .track-card{height:75px;flex-basis:77px}.track-card .track-thumb{height:43px;width:42px}.track-card .part-name{font-size:8px}.track-sequence{margin-top:5px;padding-top:6px;gap:3px}.track-sequence>button{height:24px;min-width:31px}.track-sequence>button>span{font-size:7px}
  .decor-inspector{max-height:min(238px,calc(100dvh - var(--workbench-inspector-bottom,160px) - 145px))}.decor-kit-chooser{margin-bottom:8px;padding-bottom:7px}.decor-kit-heading{font-size:10px;min-height:19px}.decor-kit-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:7px}.decor-kit-card{min-height:60px;padding:5px 3px;gap:3px}.decor-kit-card>div{height:33px}.decor-kit-card>span{font-size:9.5px}.decor-palette-label{font-size:9px;margin-bottom:4px}.decor-palette-label>small{font-size:8px}
  .decor-assembly-card{display:grid;grid-template-columns:minmax(0,1fr) 123px;gap:6px 9px;align-items:center}.decor-part-heading{gap:6px;min-height:38px}.decor-part-thumb{height:38px;width:38px;padding:3px;border-radius:6px}.decor-part-heading>h3{font-size:11px;line-height:1.4}.decor-part-check{height:10px;width:10px;position:absolute;left:0;top:0}.decor-part-check>.icon{height:7px;width:7px}.decor-assembly-actions{margin:0;gap:4px;grid-column:2;grid-row:1}.decor-attach{font-size:10px;padding:7px 5px;min-height:33px;gap:4px}.decor-attach>.icon{height:11px;width:11px}.decor-assembly-actions>.icon-button{width:26px;height:33px}.decor-assembly-actions>.icon-button>.icon{height:12px;width:12px}.decor-part-description{grid-column:1/-1;grid-row:2;font-size:9px;line-height:1.5;margin:0}
  .decor-placement{margin-top:8px}.decor-inspector.is-placing .decor-placement{display:grid;grid-template-columns:minmax(0,1fr) 93px;column-gap:9px;row-gap:6px}.decor-placement-reason{grid-column:1/-1;font-size:9px;line-height:1.5;margin:0}.decor-placement-reason>.icon{height:11px;width:11px;margin-top:2px}.decor-placement-actions{gap:4px}.decor-place{font-size:10px;min-height:33px;padding:7px 6px;gap:5px}.decor-place>.icon{height:12px;width:12px}.decor-placement-actions>.icon-button{height:33px;width:26px;flex:none;border-radius:6px}.decor-placement-actions>.icon-button>.icon{height:12px;width:12px}.suggest-placement{font-size:9px;min-height:33px;padding:5px 4px;margin:0;border:1px solid #dfe8ce;border-radius:6px;gap:5px;background:#eff4e4;grid-column:2;grid-row:2}.suggest-placement>.icon{height:12px;width:12px}.focus-decor-link{font-size:9px;padding-top:5px}
  .decor-parts>.part-card{flex-basis:78px;height:74px}.decor-part-card .part-visual{padding:0 4px}.decor-part-card .decor-illustration{height:100%;width:100%;max-width:59px}.decor-part-card .part-name{font-size:8px}.add-decor-card>.icon{height:22px;width:22px}.add-decor-card>span{font-size:8px}.decor-scene-list{margin-top:5px;padding-top:6px}.decor-scene-list>button{font-size:8px;padding:3px 5px;gap:4px}.decor-scene-list .decor-illustration{height:23px;width:25px}
  .view-tools{left:14px;top:117px}.camera-dock{width:72px;padding:4px;border-radius:9px}.camera-dock-heading{height:29px;padding:3px;gap:2px}.camera-dock-heading>.icon{height:16px;width:16px}.camera-dock-heading>.camera-disclosure{height:7px;width:7px}.camera-dock-top>[data-action=smartCamera]{height:28px;width:27px}.camera-dock-top>[data-action=smartCamera]>.icon{height:15px;width:15px}.camera-dock[data-expanded=true]{width:158px;padding:7px}.camera-presets>button{font-size:9px;min-height:45px;padding:6px 3px}.camera-presets>button>.icon{height:15px;width:15px}.camera-actions>.icon-button{height:29px;width:29px}.project-tools{gap:8px}.project-tools>.text-button{font-size:8px}
  .toast{top:116px;bottom:auto;max-width:calc(100vw - 115px);left:auto;right:14px;transform:translateY(-5px);font-size:10px;padding:8px 11px;border-radius:8px}.toast.visible{transform:translateY(0)}.scene-feedback{top:38%;width:25px;height:25px}.scene-feedback>.icon{height:13px;width:13px}
  .race-timing{top:113px;left:14px;right:14px}.timing-row{justify-content:space-between;padding:10px 14px;gap:15px;border-radius:10px}.timing-row>div>span{font-size:9px}.timing-row strong{font-size:20px;letter-spacing:-.5px}.timing-row small{font-size:10px}.lap-progress{margin-top:5px;height:2px}
  .race-map{top:196px;right:14px;width:105px;height:103px;padding:8px;border-radius:10px}.race-map>div{font-size:7px}.race-map>svg{height:72px;padding:8px 2px 3px}.map-caption{display:none}.map-road{stroke-width:5px}.map-centerline{stroke-width:.8px;stroke-dasharray:2 3}
  .race-speed{bottom:125px;left:14px;width:139px;padding:12px 13px 10px;border-radius:11px}.speed-eyebrow{font-size:5px;letter-spacing:.35px;gap:4px}.speed-live-dot{height:3px;width:3px}.speed-number{gap:8px;margin-top:3px}.speed-number>b{font-size:51px;letter-spacing:-3px}.speed-number>span{font-size:6px}.speed-meter{height:3px;margin-top:8px}.speed-caption{margin-top:7px;gap:0}.race-status-label{font-size:8px;white-space:nowrap}.boost-state{display:none}.boost-charge{margin-top:7px}
  .bmc-ui[data-mode=race] .view-tools{top:auto;right:14px;left:auto;bottom:125px}.race-controls{gap:4px;margin-top:5px}.race-controls>.icon-button{height:27px;width:27px}.race-controls>.icon-button>.icon{height:12px;width:12px}
  .race-center-action{bottom:282px;width:206px}.race-center-action>.big-button{min-width:0;width:100%;font-size:12px;min-height:43px;padding:11px 15px}.race-center-action>.secondary-button{width:100%;font-size:11px;min-height:40px}
  .mobile-drive{display:flex;align-items:flex-end;justify-content:space-between;position:absolute;bottom:24px;left:14px;right:14px;direction:ltr;pointer-events:auto}.steering-buttons,.pedal-buttons{display:flex;align-items:flex-end;gap:7px}.mobile-drive button{display:flex;align-items:center;justify-content:center;width:48px;height:54px;touch-action:none;user-select:none;-webkit-user-select:none;border:1px solid #fff9;border-radius:10px;background:#f6f7e8e6;color:#8da872;box-shadow:var(--shadow);backdrop-filter:blur(9px)}.mobile-drive button.pressed{background:#dcebbf;transform:translateY(2px);box-shadow:none}.steering-buttons>button:nth-child(2)>.icon{transform:rotate(180deg)}.pedal-buttons>.boost-pedal{height:42px;width:37px;background:#e5efcff0;color:#91ac69}.boost-pedal>.icon{height:17px;width:17px}.pedal-buttons>.brake-pedal{height:54px;width:43px;font-size:10px}.pedal-buttons>.throttle-pedal{height:76px;width:58px;display:flex;flex-direction:column;gap:7px;background:var(--orange);color:#35472b;font-size:10px}.pedal-buttons>.throttle-pedal.pressed{background:#e2a162}.pedal-buttons>.throttle-pedal>.icon{height:20px;width:20px}
  .control-hints{bottom:4px;gap:11px;font-size:6px}.control-hints kbd{font-size:6px;padding:0 2px}.control-hints>span:nth-child(n+3){display:none}.countdown{font-size:94px;top:44%}
  .modal-layer{padding:12px}.game-modal{max-height:calc(100dvh - 24px);padding:27px 22px;border-radius:16px}.game-modal h2{font-size:26px}.game-modal>p{font-size:11px}.help-steps{gap:14px;margin:19px 0}.help-steps article{gap:10px}.help-steps article>span{width:26px;height:26px}.help-steps h3{font-size:12px}.help-steps p{font-size:10px}.key-guide{gap:9px 10px}.key-guide>div{font-size:8px}.key-guide kbd{font-size:7px}.game-modal .help-note{font-size:9px}.result-total>strong{font-size:40px}
  .compatibility{display:flex;flex-direction:column;gap:20px;padding:24px;max-height:100dvh;overflow:auto}.compatibility img{max-height:35vh;object-fit:cover}.compatibility h1{font-size:25px;margin:12px 0}.compatibility section{text-align:center}.compatibility p{font-size:12px!important}
}
@media(max-width:700px) and (max-height:750px){.topbar{top:11px;row-gap:8px}.mode-tab{padding-top:8px;padding-bottom:8px}.view-tools{top:109px}.inspector{max-height:168px}.car-inspector{padding:8px 9px}.vehicle-switcher-toggle{min-height:21px}.car-inspector>.vehicle-switcher{padding-bottom:5px;margin-bottom:7px}.assembly-thumb{height:35px;width:38px}.assembly-card-top{min-height:35px}.assembly-identity h3{font-size:10px}.assembly-controls{margin-top:6px}.bottom-dock{bottom:12px;padding-top:7px;padding-bottom:5px}.part-card{height:68px;flex-basis:70px}.part-visual{height:41px}.part-name{font-size:8px}.track-card{height:69px;flex-basis:73px}.track-card .track-thumb{height:38px}.decor-parts>.part-card{height:69px;flex-basis:74px}.track-inspector:not(.is-complete),.track-inspector.is-complete{max-height:168px}.intro-copy{bottom:23px;padding:18px}.intro-copy h1{font-size:33px}.intro-copy p{margin:9px 0 13px}.intro-actions .big-button{min-height:40px}.toast{top:109px}.race-timing{top:106px}.race-map{top:186px}.race-speed{bottom:115px;width:132px;padding:11px 12px}.speed-number>b{font-size:47px}.bmc-ui[data-mode=race] .view-tools{bottom:115px}.mobile-drive{bottom:20px}.mobile-drive button{height:50px;width:44px}.pedal-buttons>.brake-pedal{height:50px;width:41px}.pedal-buttons>.throttle-pedal{height:68px;width:55px}.pedal-buttons>.boost-pedal{height:39px;width:35px}.race-center-action{bottom:258px}}
@media(max-width:360px){.topbar{left:12px;right:12px}.top-tools>.icon-button{width:27px;height:28px}.top-tools{gap:3px}.brand-wordmark{font-size:17px}.inspector{left:10px;right:10px}.car-inspector{grid-template-columns:minmax(0,1fr) 105px;column-gap:8px}.panel-next>.primary-button,.panel-next>.secondary-button{font-size:9px;gap:3px}.panel-next>.icon-button{width:24px}.panel-next>.primary-button>.icon,.panel-next>.secondary-button>.icon{display:none}.bottom-dock{left:10px;right:10px;padding-left:7px;padding-right:7px}.dock-header{gap:4px}.dock-title>strong{font-size:9px}.dock-count{font-size:6px}.part-filters>button:not(.icon-button){font-size:8px;padding:4px 5px}.part-filters>.icon-button{width:20px}.dock-actions{gap:2px}.dock-actions>.icon-button{width:24px;height:25px}.track-tool-switch>button{font-size:9px;padding:4px 6px;gap:4px}.track-tool-switch>button>b{font-size:6px;min-width:12px}.track-tool-switch>button>.icon{height:11px;width:11px}.track-inspector:not(.is-complete){grid-template-columns:minmax(0,1fr) 111px;gap:7px 8px}.decor-assembly-card{grid-template-columns:minmax(0,1fr) 112px;gap:6px}.decor-part-heading>h3{font-size:10px}.decor-part-thumb{height:34px;width:34px}.decor-attach{font-size:9px}.decor-inspector.is-placing .decor-placement{grid-template-columns:minmax(0,1fr) 85px;column-gap:6px}.decor-place{font-size:9px}.suggest-placement{font-size:8px}.decor-kit-card>span{font-size:9px}.timing-row{padding-left:11px;padding-right:11px}.timing-row strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}.countdown.tick{animation:none!important}}

/* Photo mode leaves the scene clear; its two compact bars reserve camera space. */
.bmc-ui[data-photo-active=true]>.topbar,.bmc-ui[data-photo-active=true]>.screen,.bmc-ui[data-photo-active=true]>.scene-tag,.bmc-ui[data-photo-active=true]>.view-tools,.bmc-ui[data-photo-active=true]>.scene-feedback,.bmc-ui[data-photo-active=true]>.bottom-dock,.bmc-ui[data-photo-active=true]>.control-hints,.bmc-ui[data-photo-active=true]>.countdown{display:none!important}
.photo-layer{position:absolute;inset:0;pointer-events:none}
.photo-header{position:absolute;top:max(22px,env(safe-area-inset-top));left:26px;right:26px;display:flex;align-items:center;justify-content:space-between;gap:18px;direction:ltr}
.photo-signature{display:flex;align-items:center;gap:9px;color:#f5f6e7;background:#213f32e8;box-shadow:0 3px 18px #172b2020;border:1px solid #fff2;border-radius:12px;padding:8px 12px 8px 8px;backdrop-filter:blur(12px)}
.photo-signature .brand-mark{padding:5px;gap:3px;box-shadow:none;background:transparent}
.photo-signature .brand-mark i{width:6px;height:6px}
.photo-signature .brand-wordmark{font-size:18px;letter-spacing:1.5px;line-height:.95}
.photo-signature .brand-wordmark>span{font-size:5px;letter-spacing:2.1px;margin-top:5px}
.photo-header-actions{display:flex;align-items:center;gap:10px;direction:rtl}
.photo-subjects{display:flex;gap:3px;padding:4px;border:1px solid #ffffffa6;border-radius:11px;background:#f7f5eceb;backdrop-filter:blur(12px);box-shadow:var(--shadow)}
.photo-subjects>button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:33px;min-width:82px;padding:6px 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:#63785e;font-size:11px;transition:background .15s,color .15s}
.photo-subjects>button>.icon{width:15px;height:15px}
.photo-subjects>button[aria-pressed=true]{background:#254d3c;color:#f0f5df;box-shadow:0 2px 5px #29463312}
.photo-subjects>button:hover:not(:disabled):not([aria-pressed=true]){background:#e4ecd8}
.photo-header-actions>.icon-button{height:41px;width:41px;border-radius:11px;background:#f7f5eceb;border-color:#fff9;backdrop-filter:blur(12px)}
.photo-controls{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:15px;width:max-content;max-width:calc(100vw - 48px);padding:11px 14px;border:1px solid #fff9;border-radius:16px;background:#f7f5ecef;box-shadow:0 8px 34px #1b302317;backdrop-filter:blur(16px);pointer-events:auto}
.photo-framing,.photo-lighting{display:flex;align-items:center;gap:3px;padding-inline-end:13px;border-inline-end:1px solid #37533119}
.photo-framing>button,.photo-lighting>button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:53px;min-height:51px;padding:6px 4px;border:1px solid transparent;border-radius:8px;background:transparent;color:#718465;font-size:10px;line-height:1.4;transition:background .15s,color .15s,border-color .15s}
.photo-framing>button>.icon{width:17px;height:17px}
.photo-framing>button:hover:not(:disabled),.photo-lighting>button:hover:not(:disabled){background:#e8eedd;color:#42623b}
.photo-framing>button[aria-pressed=true],.photo-lighting>button[aria-pressed=true]{background:#e3ecd4;border-color:#c1d0af;color:#355f3a}
.light-swatch{display:block;width:18px;height:18px;border-radius:50%;border:1px solid #20382918;box-shadow:inset 0 1px 2px #fff6,0 1px 3px #283a251a}
.light-daylight{background:linear-gradient(135deg,#fff8d8 20%,#e5d4a5 57%,#b5cad6)}
.light-studio{background:linear-gradient(135deg,#fff 20%,#d6dfe5 57%,#7f98a9)}
.light-dusk{background:linear-gradient(135deg,#ffc78c 8%,#bf8d83 53%,#4c5e7f)}
.photo-output{display:flex;align-items:center;gap:9px}
.photo-output>.icon-button{width:39px;height:40px;border-radius:9px}
.photo-output>.icon-button>.icon{width:17px;height:17px}
.photo-capture{min-height:40px;padding:9px 13px;white-space:nowrap;font-size:11px;gap:7px;border-radius:9px}
.photo-capture>small{font-size:8px;letter-spacing:.6px;opacity:.65;border-inline-start:1px solid #26412b24;padding-inline-start:7px;margin-inline-start:2px}
.bmc-ui[data-photo-active=true]>.toast{top:86px;bottom:auto;max-width:min(420px,calc(100vw - 40px));left:50%;right:auto;transform:translate(-50%,-6px);background:#f7f5ecef;border:1px solid #fff8;color:#284d37}
.bmc-ui[data-photo-active=true]>.toast.visible{transform:translate(-50%,0)}
@media(max-width:700px){
  .photo-header{top:max(14px,env(safe-area-inset-top));left:14px;right:14px;gap:8px}
  .photo-signature{gap:5px;padding:7px 9px 7px 5px;border-radius:10px}
  .photo-signature .brand-mark{padding:3px;grid-template-columns:repeat(2,5px);gap:2px}
  .photo-signature .brand-mark i{width:5px;height:5px}
  .photo-signature .brand-wordmark{font-size:15px;letter-spacing:1px}
  .photo-signature .brand-wordmark>span{font-size:4px;letter-spacing:1.5px;margin-top:4px}
  .photo-header-actions{gap:6px}.photo-subjects{padding:3px;gap:1px;border-radius:9px}
  .photo-subjects>button{min-width:61px;min-height:31px;padding:5px 8px;font-size:10px;gap:5px;border-radius:6px}.photo-subjects>button>.icon{height:13px;width:13px}
  .photo-header-actions>.icon-button{width:36px;height:38px;border-radius:9px}.photo-header-actions>.icon-button>.icon{height:15px;width:15px}
  .photo-controls{bottom:max(14px,env(safe-area-inset-bottom));left:14px;right:14px;transform:none;width:auto;max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;padding:9px 11px 10px;border-radius:13px}
  .photo-framing,.photo-lighting{justify-content:space-between;padding-inline-end:0;border-inline-end:0;gap:2px}
  .photo-framing{padding-inline-end:8px;border-inline-end:1px solid #37533119}
  .photo-framing>button,.photo-lighting>button{width:auto;flex:1;min-width:0;min-height:46px;gap:4px;padding:5px 2px;font-size:9px;border-radius:7px}
  .photo-framing>button>.icon{height:15px;width:15px}.light-swatch{width:16px;height:16px}
  .photo-output{grid-column:1/-1;border-top:1px solid #37533119;padding-top:8px;gap:9px;direction:rtl}
  .photo-output>.icon-button{height:36px;width:39px;border-radius:7px}
  .photo-capture{flex:1;min-height:36px;padding:7px 12px;font-size:11px;border-radius:7px}.photo-capture>small{font-size:7px}
  .bmc-ui[data-photo-active=true]>.toast{top:68px;font-size:10px;padding:8px 12px}
}
@media(max-width:700px) and (max-height:450px){
  .photo-header{top:10px;left:12px;right:12px}.photo-controls{bottom:10px;left:12px;right:12px;display:flex;gap:8px;padding:7px 9px}
  .photo-framing,.photo-lighting{flex:1;padding:0;border:0;gap:2px}.photo-framing>button,.photo-lighting>button{min-height:43px;font-size:8px;min-width:35px}
  .photo-output{border:0;padding:0;gap:5px}.photo-output>.icon-button{height:35px;width:32px}.photo-capture{min-height:35px;padding:7px 10px;font-size:10px}.photo-capture>small{display:none}
}

/* One mobile workbench: context, inventory, and optional details share a surface.
   Its real bounds are measured by the camera; layout changes are not animated. */
.workbench,.workbench-body{display:contents}
.workbench-bar,.top-more-toggle,.compact-project-tools{display:none}
.top-overflow{display:flex;gap:5px;align-items:center}
.top-overflow>.text-button{height:33px;width:33px;padding:0;border:1px solid #fffffff2;border-radius:8px;background:#f6f7ead9;backdrop-filter:blur(10px);color:#718465}
.top-overflow>.text-button>.icon{width:15px;height:15px}
.top-overflow>.text-button>span{display:none}
.bmc-ui[data-photo-active=true]>.workbench{display:none!important}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){
  .topbar{top:max(8px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));gap:5px 10px;flex-wrap:wrap;align-items:center;z-index:25}
  .brand{gap:8px;min-height:44px}
  .brand-mark{padding:7px;gap:3px}
  .brand-wordmark{font-size:18px;letter-spacing:1.5px}
  .brand-wordmark>span{font-size:5.5px;letter-spacing:2px}
  .top-tools{position:relative;gap:5px}
  .top-tools>.icon-button{display:inline-flex;width:44px;height:44px;border-radius:11px}
  .top-tools>.icon-button>.icon{height:18px;width:18px}
  .top-overflow{display:none;position:absolute;top:51px;right:0;z-index:30;grid-template-columns:repeat(2,minmax(0,1fr));width:220px;padding:8px;gap:5px;border:1px solid #fff;border-radius:14px;background:#f7f5ecfa;box-shadow:0 12px 36px #203c3026;backdrop-filter:blur(20px)}
  .top-overflow[data-open=true]{display:grid}
  .top-overflow>.text-button,.compact-project-tools>.text-button{width:auto;min-width:44px;min-height:44px;height:auto;justify-content:flex-start;padding:8px 10px;gap:8px;border:0;background:#eaf0e0;border-radius:8px;font-size:11px;backdrop-filter:none}
  .top-overflow>.text-button>span{display:inline}
  .top-overflow>.text-button>.icon,.compact-project-tools>.text-button>.icon{height:17px;width:17px}
  .compact-project-tools{display:flex;grid-column:1/-1;gap:5px;padding-top:6px;border-top:1px solid var(--line)}
  .compact-project-tools>.text-button{flex:1}
  .mode-nav{position:static;transform:none;order:3;flex:0 0 100%;padding:3px;gap:2px;border-radius:12px;justify-content:space-between}
  .mode-tab{flex:1;min-width:0;min-height:44px;justify-content:center;padding:8px 4px;font-size:11px;gap:6px;border-radius:9px}
  .mode-tab>.icon{height:15px;width:15px}
  .mode-tab .step-no,.mode-tab .step-complete{display:none}

  .bmc-ui:is([data-mode=car],[data-mode=track]) .workbench{position:absolute;display:flex;flex-direction:column;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));max-height:min(62dvh,560px);border:1px solid #fffffff2;border-radius:17px;background:#f8f6edf5;box-shadow:0 8px 32px #25392b17;backdrop-filter:blur(18px);pointer-events:auto;overflow:hidden;isolation:isolate}
  .bmc-ui:is([data-mode=car],[data-mode=track]) .workbench-bar{display:flex;align-items:center;flex:none;gap:4px;min-height:44px;padding:0 6px;border-bottom:1px solid var(--line)}
  .bmc-ui:is([data-mode=car],[data-mode=track]) .workbench-body{display:block;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#bbcba7 transparent}
  .bmc-ui:is([data-mode=car],[data-mode=track]) .screen{position:static;display:block;inset:auto;min-width:0}
  .workbench-heading{display:flex;align-items:center;gap:7px;flex:1;min-width:0;min-height:44px;padding:0 5px;border:0;border-radius:8px;background:transparent;text-align:right;font-size:11px}
  .workbench-heading>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .workbench-heading>.icon{height:16px;width:16px;color:#82936d}
  .workbench-heading>small{font-size:9px;color:#8a9d76;white-space:nowrap}
  .workbench-heading>.workbench-chevron{height:11px;width:11px;transform:rotate(-90deg);margin-right:auto}
  .workbench-heading[aria-expanded=true]>.workbench-chevron{transform:rotate(90deg)}
  .workbench-actions{display:flex;align-items:center;flex:none;margin-right:auto;gap:2px}
  .workbench-actions>.icon-button{height:44px;width:44px;border:0;background:transparent;border-radius:9px}
  .workbench-actions>.icon-button>.icon{width:17px;height:17px}
  .workbench-actions>.icon-button[aria-pressed=true],.workbench-actions>.icon-button[aria-expanded=true]{background:#e6eed9;color:#567744}
  .workbench .inspector{display:block;position:static;inset:auto;width:auto;max-height:none;margin:0;padding:4px 10px 6px;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;overflow:visible}
  .workbench .bottom-dock{position:static;inset:auto;padding:0 10px 8px;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;min-width:0}
  .workbench .bottom-dock:empty{display:none}
  .workbench .parts-list{gap:6px;padding:2px 0 1px;scrollbar-width:none;scroll-padding-inline:0;touch-action:pan-x}
  .workbench .part-card{flex-basis:78px;height:72px;padding:5px 5px 4px;border-radius:9px}
  .workbench .part-visual{height:44px}
  .workbench .part-name{font-size:9px;margin-top:2px;line-height:1.4}
  .workbench .part-corner{height:11px;width:11px;right:4px;top:4px}
  .workbench .part-corner>.icon{height:8px;width:8px}
  .workbench .track-card .track-thumb{height:42px;width:42px}
  .workbench .decor-parts>.part-card{height:60px;flex-basis:80px}
  .workbench .decor-part-card .part-visual{height:32px;padding:0 5px}
  .workbench .decor-part-card .decor-illustration{max-width:54px}
  .workbench .add-decor-card{gap:3px}
  .workbench .add-decor-card>span{font-size:9px}
  .workbench .inventory-complete{min-height:60px}
  .workbench .track-tool-switch{flex:1;min-width:0;background:transparent;padding:0;gap:2px}
  .workbench .track-tool-switch>button{flex:1;min-width:0;min-height:44px;padding:6px 4px;font-size:10px;gap:4px;border-radius:8px}
  .workbench .track-tool-switch>button.active{background:#e7eedb;box-shadow:none}
  .workbench .track-tool-switch>button>.icon{height:14px;width:14px}
  .workbench .track-tool-switch>button>b{font-size:8px;min-width:14px;padding:1px 2px}
  .workbench .dock-header>.track-tool-switch{display:none}
  .workbench :is(.primary-button,.secondary-button,.quiet-button,.text-button){min-height:44px;font-size:11px}
  .workbench :is(.icon-button,.color-swatch){width:44px;height:44px;min-width:44px;flex:none}
  .workbench .icon-button>.icon{height:16px;width:16px}
  .workbench :is(.primary-button,.secondary-button)>.icon{height:15px;width:15px}
  .workbench .assembly-button>kbd,.workbench .track-preview-card>.primary-button>kbd{display:none}
  .workbench .assembly-card-top{min-height:44px;gap:7px;min-width:0}
  .workbench .assembly-thumb{width:38px;height:38px}
  .workbench .assembly-identity h3,.workbench .decor-part-heading>h3{font-size:11px;line-height:1.4}
  .workbench .assembly-controls{margin:0;gap:4px}
  .workbench .assembly-check,.workbench .decor-part-check{display:none}
  .workbench .assembly-hint,.workbench .decor-part-description{font-size:9px;line-height:1.5;margin:3px 0 0}
  .workbench .snap-status{grid-column:1/-1;grid-row:3;margin:3px 0 0;font-size:9px}
  .workbench .decor-kit-chooser{margin:0 0 4px;padding:0;border:0}
  .workbench .decor-kit-heading{display:none}
  .workbench .decor-kit-list{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:4px;margin:0}
  .workbench .decor-kit-card{min-width:44px;min-height:44px;padding:3px 2px;gap:0;border-radius:8px}
  .workbench .decor-kit-card>div{height:24px}
  .workbench .decor-kit-card>span{font-size:9px;line-height:1.4}
  .workbench .decor-part-heading{min-width:0;min-height:44px;gap:6px}
  .workbench .decor-part-thumb{height:36px;width:36px;padding:2px}
  .workbench .decor-assembly-card{grid-template-columns:minmax(0,1fr) auto;gap:0 7px}
  .workbench .decor-assembly-actions{grid-column:2;grid-row:1;margin:0;gap:4px}
  .workbench .decor-attach{padding:6px 10px;min-width:84px}
  .workbench .decor-placement,.workbench .decor-inspector.is-placing .decor-placement{margin:0;display:block}
  .workbench .decor-placement-actions{gap:4px}
  .workbench .decor-placement-reason{margin:0 0 4px;font-size:9px}
  .workbench .suggest-placement{margin:4px 0 0;padding:6px 10px}
  .workbench .focus-decor-link{margin:0}
  .workbench .track-preview-card{min-width:0}
  .workbench .track-piece-preview{min-height:44px;gap:6px;margin:0}
  .workbench .track-piece-preview>.track-thumb{height:36px;width:32px}
  .workbench .track-piece-preview h3{font-size:11px}
  .workbench .track-preview-card>.primary-button{padding:6px 10px;justify-content:center;white-space:nowrap}
  .workbench .track-ready-actions{display:flex;flex-direction:row;gap:6px}
  .workbench .track-ready-actions>.primary-button,.workbench .track-ready-actions>.secondary-button{flex:1;width:auto;min-width:0;padding:6px 10px}
  .workbench .track-complete-state{padding:4px 0 8px}
  .workbench .placement-reason{font-size:10px;line-height:1.5}

  .bmc-ui:not([data-workbench-view=expanded]) .workbench :is(.vehicle-switcher,.customization,.panel-next,.dock-header,.category-menu,.track-sequence,.circuit-presets,.decor-gate-note,.selected-segment,.decor-palette-label,.decor-scene-list,.track-complete-state,.focus-decor-link){display:none}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .assembly-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 9px}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .assembly-controls{grid-column:2;grid-row:1;min-width:78px}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .assembly-controls>.icon-button{display:none}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .assembly-button{justify-content:center;min-width:78px;padding:6px 12px}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .assembly-hint{grid-column:1/-1;grid-row:2}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .part-role{display:none}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .empty-assembly{grid-column:1/-1;display:flex;align-items:center;gap:10px}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .empty-assembly h3{flex:1;margin:0;font-size:11px;white-space:nowrap}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .empty-assembly>.primary-button{width:auto}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .track-preview-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;align-items:center}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .track-preview-card>.primary-button{grid-column:2;grid-row:1;width:auto}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .placement-reason{grid-column:1/-1;grid-row:2;margin:3px 0 0}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .closure-action{margin:4px 0 0;width:100%}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .track-ready-actions>.quiet-button{display:none}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .decor-assembly-actions>.icon-button{display:none}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .decor-placement.is-valid .decor-placement-reason{display:none}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .suggest-placement{display:none}
  .bmc-ui[data-tray-open=false] .workbench .bottom-dock{display:none}
  .bmc-ui[data-workbench-view=dragging] .workbench .screen{display:none}
  .bmc-ui[data-workbench-view=dragging] .workbench .decor-kit-chooser{display:none}
  .bmc-ui[data-workbench-view=dragging] .view-tools{visibility:hidden}

  .bmc-ui[data-workbench-view=expanded] .workbench .inspector{padding:8px 10px}
  .bmc-ui[data-workbench-view=expanded] .workbench .vehicle-switcher{margin:0 0 8px;padding:0 0 6px}
  .workbench .vehicle-switcher-toggle,.workbench .customization-toggle,.workbench .presets-toggle{min-height:44px;font-size:11px}
  .workbench .vehicle-switcher-toggle b{font-size:12px}
  .workbench .vehicle-switcher-toggle small{font-size:8px}
  .workbench .vehicle-cards{gap:6px;margin-top:4px}
  .workbench .vehicle-card{min-height:80px;padding:7px}
  .workbench .vehicle-card>strong{font-size:11px}
  .bmc-ui[data-workbench-view=expanded] .workbench .assembly-controls{margin-top:6px}
  .bmc-ui[data-workbench-view=expanded] .workbench .customization{margin:8px 0 0}
  .workbench .customization-toggle{padding:6px 10px}
  .workbench .color-swatches{display:flex;justify-content:space-between;gap:5px;margin-bottom:10px}
  .workbench .color-swatch{border-width:9px;background-clip:padding-box;box-shadow:none;border-color:transparent;position:relative}
  .workbench .color-swatch.selected{outline:1px solid #91aa72;outline-offset:-4px}
  .workbench .tuning-row{display:flex;align-items:center;font-size:10px}
  .workbench .tuning-row>span{width:46px;margin:0}
  .workbench .tuning-row>div{padding:2px;min-width:0}
  .workbench .tuning-row button{min-width:44px;min-height:44px;font-size:10px;padding:5px}
  .bmc-ui[data-workbench-view=expanded] .workbench .car-stats{display:flex}
  .bmc-ui[data-workbench-view=expanded] .workbench .panel-next{margin:8px 0 0;gap:5px}
  .workbench .panel-next>.primary-button,.workbench .panel-next>.secondary-button{font-size:11px;min-height:44px}
  .bmc-ui[data-workbench-view=expanded] .workbench .bottom-dock{padding-top:6px;border-top:1px solid var(--line)}
  .bmc-ui[data-workbench-view=expanded] .workbench .dock-header{flex-wrap:wrap;gap:5px;margin:0 0 7px;min-height:44px}
  .workbench .dock-header>.dock-title{display:none}
  .workbench .part-filters{margin:0;gap:2px}
  .workbench .part-filters>button:not(.icon-button){min-height:44px;min-width:44px;padding:5px 8px;font-size:10px}
  .workbench .dock-actions{gap:2px;margin-right:auto}
  .workbench .category-menu>button,.workbench .circuit-presets>div>button,.workbench .track-sequence>button,.workbench .decor-scene-list>button{min-height:44px;min-width:44px;font-size:10px}
  .bmc-ui[data-workbench-view=expanded] .workbench .circuit-presets{margin-top:8px;padding-top:7px;border-top:1px solid var(--line)}
  .workbench .track-dock-complete>.edit-track{flex:1;order:0;min-width:125px;min-height:44px;margin:0}
  .bmc-ui[data-workbench-view=expanded] .workbench .decor-kit-chooser{margin-bottom:8px}
  .bmc-ui[data-workbench-view=expanded] .workbench .decor-kit-card{min-height:54px}
  .bmc-ui[data-workbench-view=expanded] .workbench .decor-kit-card>div{height:31px}
  .bmc-ui[data-workbench-view=expanded] .workbench .decor-palette-label{font-size:10px;margin-bottom:6px}

  .view-tools{left:max(12px,env(safe-area-inset-left));top:calc(max(8px,env(safe-area-inset-top)) + 109px)}
  .camera-dock{width:96px;padding:3px;border-radius:12px}
  .camera-dock-heading{height:44px;min-width:44px;padding:5px;gap:2px}
  .camera-dock-heading>.icon{height:18px;width:18px}
  .camera-dock-heading>.camera-disclosure{height:9px;width:9px}
  .camera-dock-top>[data-action=smartCamera]{height:44px;width:44px;border:0}
  .camera-dock-top>[data-action=smartCamera]>.icon{height:18px;width:18px}
  .camera-dock[data-expanded=true]{width:202px;padding:6px}
  .camera-presets>button{min-height:50px;min-width:44px;font-size:10px}
  .camera-actions>.icon-button{height:44px;width:44px}
  .project-tools>.text-button{min-height:44px;font-size:10px}
  .toast{top:calc(max(8px,env(safe-area-inset-top)) + 111px);bottom:auto;right:12px;left:auto;max-width:calc(100vw - 126px);font-size:10px;transform:translateY(-5px)}
  .toast.visible{transform:translateY(0)}
  .scene-tag{display:none}
  .photo-header-actions>.icon-button,.photo-output>.icon-button{min-width:44px;min-height:44px}
  .photo-subjects>button,.photo-capture{min-height:44px}
  .mobile-drive button,.pedal-buttons>.boost-pedal,.pedal-buttons>.brake-pedal{min-width:44px;min-height:44px}
  .mobile-drive{bottom:max(16px,env(safe-area-inset-bottom))}
  .race-controls>.icon-button{height:44px;width:44px}
}

/* Phone landscape keeps a full-width scene above a short, single-row inventory. */
@media(min-width:701px) and (max-width:1000px) and (max-height:500px){
  .topbar{flex-wrap:nowrap;gap:10px}
  .brand-wordmark{font-size:16px}.brand-wordmark>span{font-size:5px}
  .mode-nav{position:absolute;left:50%;transform:translateX(-50%);flex:0 1 auto;width:300px;order:0}
  .view-tools{top:64px}
  .bmc-ui:is([data-mode=car],[data-mode=track]) .workbench{max-height:calc(100dvh - 205px);left:max(120px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom))}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench-body{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1fr);align-items:start}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .screen{min-width:0}
  .bmc-ui:not([data-workbench-view=expanded]) .workbench .bottom-dock{padding:4px 8px 6px;border-right:1px solid var(--line)}
  .bmc-ui:not([data-workbench-view=expanded])[data-tray-open=false] .workbench-body{display:block}
  .workbench .part-card{height:60px;flex-basis:74px}
  .workbench .part-visual{height:33px}
  .workbench .decor-part-thumb{display:none}
  .workbench .decor-kit-card{min-height:44px}
  .toast{top:66px;max-width:340px}
  .mobile-drive{display:flex;align-items:flex-end;justify-content:space-between;position:absolute;left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));direction:ltr;pointer-events:auto}
  .steering-buttons,.pedal-buttons{display:flex;align-items:flex-end;gap:7px}
  .mobile-drive button{display:flex;align-items:center;justify-content:center;width:48px;height:50px;touch-action:none;user-select:none;-webkit-user-select:none;border:1px solid #fff9;border-radius:10px;background:#f6f7e8e6;color:#6a8554;box-shadow:var(--shadow);backdrop-filter:blur(9px)}
  .mobile-drive button.pressed{background:#dcebbf;transform:translateY(2px)}
  .steering-buttons>button:nth-child(2)>.icon{transform:rotate(180deg)}
  .pedal-buttons>.throttle-pedal{height:58px;width:64px;background:var(--orange);color:#35472b;font-size:10px;gap:4px;flex-direction:column}
  .pedal-buttons>.brake-pedal{font-size:10px}
  .race-timing{top:65px;left:14px;right:auto;width:280px}
  .race-title{display:none}.timing-row{padding:8px 12px;gap:16px}.timing-row strong{font-size:20px}.timing-row>div>span{font-size:9px}
  .race-map{top:65px;right:14px;width:112px;height:105px;padding:7px}.race-map>svg{height:76px}.map-caption{display:none}
  .race-speed{bottom:79px;left:14px;width:132px;padding:9px 12px}.speed-number>b{font-size:42px}.speed-eyebrow{font-size:5px}.speed-caption{display:none}
  .bmc-ui[data-mode=race] .view-tools{top:auto;bottom:79px;right:14px;left:auto;display:flex;align-items:flex-end;gap:5px}.race-controls{display:flex;gap:2px;margin:0}
  .race-center-action{bottom:82px}.race-center-action>.big-button{min-height:44px;font-size:12px}
  .control-hints{display:none}
}
