:root{--ground: #000;--surface: #111;--raised: #2a2a2a;--well: #1b1b1b;--line: #262626;--control: #3a3a3a;--control-hover: #555;--text: #fff;--muted: #b4b4b4;--faint: #949494;--accent: #f2b33d;--negative: #e5566f;--pill-bg: #222;--radius-card: 20px;--radius-inner: 12px;--gap: 12px;--margin: 8px;--card-pad: 20px;--control-height: 36px;--control-sm: 30px;--panel-width: 360px;--font: "Inter", system-ui, sans-serif;--t-hover: .12s;--ease-out: cubic-bezier(.2, .7, .2, 1);color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--ground);color:var(--text);font:400 14px/20px var(--font);-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:2px solid #fff;outline-offset:2px}.num,.val{font-variant-numeric:tabular-nums}[hidden]{display:none!important}#app{display:grid;grid-template-rows:44px minmax(0,1fr);height:100svh}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 var(--margin) 0 16px;min-width:0}.crumb{display:flex;align-items:center;gap:10px;min-width:0}.mark{flex:none}.product{color:var(--muted);font-weight:500;white-space:nowrap}.sep{color:var(--control-hover)}#buildName{font-size:16px;line-height:24px;font-weight:600;padding:2px 6px;margin:0 0 0 -6px;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px;cursor:text}#buildName:hover{background:var(--surface)}#buildName:focus{outline:1px solid var(--control-hover);background:var(--surface);text-overflow:clip}.pill{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:var(--pill-bg);color:var(--muted);font-size:12px;font-weight:500;white-space:nowrap;flex:none}.pill.saved{color:var(--text)}.actions{display:flex;align-items:center;gap:4px;flex:none}.actions .divider{width:1px;height:20px;background:var(--line);margin:0 6px}.work{display:grid;grid-template-columns:var(--panel-width) minmax(0,1fr);gap:var(--gap);padding:0 var(--margin) var(--margin);min-height:0}.panel{background:var(--surface);border-radius:var(--radius-card);display:flex;flex-direction:column;min-height:0;overflow:hidden}.tabs{display:flex;gap:2px;padding:12px 12px 0;flex:none}.tab{height:36px;padding:0 12px;border:0;background:none;border-radius:999px;color:var(--muted);font-weight:500;font-size:14px;transition:color var(--t-hover) ease}.tab:hover,.tab[aria-selected=true]{color:var(--text)}.panel-body{flex:1;overflow-y:auto;padding:0 var(--card-pad) 24px;scrollbar-width:thin;scrollbar-color:#333 transparent}.stage{position:relative;min-width:0;min-height:0;border-radius:var(--radius-card);overflow:hidden;background:#232323;touch-action:none}.stage canvas{display:block;position:absolute;top:0;right:0;bottom:0;left:0}.stage.picking canvas{cursor:crosshair}.stage.over canvas{cursor:pointer}.stage-foot{position:absolute;left:16px;right:16px;bottom:16px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;pointer-events:none}.stage-foot>*{pointer-events:auto}.status{color:var(--muted);font-size:12px;line-height:16px;white-space:nowrap;min-width:0;overflow:hidden;display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:999px;background:#0000008c}.status.error{color:var(--text)}.status.error:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--negative);flex:none}.status .link{color:var(--text);font-weight:500;text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:0;font-size:12px}.views{margin-left:auto;display:flex;gap:2px;padding:3px;border-radius:999px;background:var(--surface)}.views button{height:28px;padding:0 10px;border:0;border-radius:999px;background:none;color:var(--muted);font-size:12px;font-weight:500}.views button:hover{color:var(--text);background:var(--raised)}.tag{position:absolute;top:16px;padding:4px 10px;border-radius:999px;background:var(--surface);font-size:12px;font-weight:500;pointer-events:none}.stage-hint{position:absolute;top:16px;left:50%;transform:translate(-50%);padding:6px 12px;border-radius:999px;background:var(--surface);font-size:12px;font-weight:500;white-space:nowrap}.hover-label{position:absolute;z-index:2;pointer-events:none;padding:4px 8px;border-radius:8px;background:var(--ground);font-size:12px;line-height:16px;white-space:nowrap}.hover-label b{font-weight:600}.hover-label span{color:var(--muted)}.sec{padding:16px 0}.sec+.sec{border-top:1px solid var(--line)}.sec-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;min-height:30px}.sec-head h2{margin:0;font-size:14px;line-height:20px;font-weight:600}.meta{color:var(--faint);font-size:12px;line-height:16px}.note{color:var(--muted);font-size:12px;line-height:16px;margin:8px 0 0}.sub-label{color:var(--faint);font-size:12px;line-height:16px;margin:14px 0 8px}.stack{display:grid;gap:10px}.empty{padding:12px;border:1px dashed var(--control);border-radius:var(--radius-inner);color:var(--muted);font-size:13px}.skeleton{display:grid;gap:14px;padding-top:18px}.skeleton i{display:block;height:20px;border-radius:8px;background:var(--well)}.base{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center}.base img,.thumb-ph{width:48px;height:48px;border-radius:10px;background:var(--well);object-fit:cover;display:block}.base .name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mapblock{display:grid;grid-template-columns:148px minmax(0,1fr);gap:16px;align-items:start}.slotmap{width:148px;height:auto;display:block;overflow:visible}.slotmap .slot{cursor:pointer}.slotmap .slot>*{stroke:#3a3a3a;stroke-width:1.2;transition:opacity var(--t-hover) ease}.slotmap .slot.bare>*{fill:none;stroke:#5a5a5a;stroke-dasharray:3 3}.slotmap .slot:hover>*,.slotmap .slot:focus-visible>*{stroke:#fff}.slotmap .slot:focus{outline:none}.slotmap .ring>*{fill:none;stroke:var(--accent);stroke-width:2.4;pointer-events:none}.slotmap .ring-edge>*{fill:none;stroke:var(--surface);stroke-width:5.5;pointer-events:none}.selinfo{min-width:0;padding-top:6px}.selinfo .selname{font-size:16px;line-height:24px;font-weight:600;margin-top:2px}.selinfo .selsrc{color:var(--muted);overflow-wrap:anywhere}.selinfo .row-btns{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.selinfo .facts{margin-top:12px;display:grid;gap:2px}.srcgrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 8px}.src{display:grid;gap:4px;padding:0;border:0;background:none;text-align:left;min-width:0}.src .pic{position:relative;aspect-ratio:1;border-radius:10px;background:var(--well);overflow:hidden;display:grid;place-items:center;outline:1px solid transparent;outline-offset:2px;transition:outline-color var(--t-hover) ease}.src img{width:100%;height:100%;object-fit:cover;display:block}.src .bare-glyph{width:46%;height:60%;border:1px dashed #5a5a5a;border-radius:6px}.src.more-src .pic .i{width:22px;height:22px;color:var(--muted)}.src .lbl{font-size:12px;line-height:15px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:30px}.src:hover .pic{outline-color:var(--control-hover)}.src[aria-pressed=true] .pic{outline-color:#fff}.src[aria-pressed=true] .lbl{color:var(--text)}.src:focus-visible{outline:none}.src:focus-visible .pic{outline:2px solid #fff}.rows{display:grid;gap:2px}.lrow{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:4px;height:36px;padding:0 2px 0 0;border-radius:10px}.lrow.sel{background:var(--raised)}.lrow .pick{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;height:100%;padding:0 0 0 10px;border:0;border-radius:10px;background:none;text-align:left;min-width:0}.lrow .dot{width:10px;height:10px;border-radius:50%;border:1px solid rgb(255 255 255 / .18)}.lrow .dot.bare{border:1px dashed #5a5a5a}.lrow .dot.failed{background:var(--negative);border:0}.lrow .src-name.faint{color:var(--faint)}.lrow .src-name .link{font-size:13px;cursor:pointer}.slotmap .slot.loading>*{opacity:.4}.lrow .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lrow .src-name{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;text-align:right}.lrow:hover:not(.sel){background:#1a1a1a}.optrow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:36px;padding:0 10px;border-radius:10px;border:0;background:none;text-align:left;width:100%}.optrow:hover{background:#1a1a1a}.optrow[aria-pressed=true]{background:var(--raised)}.optrow .meta{text-align:right}.group-label{color:var(--faint);font-size:12px;margin:12px 10px 4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:var(--control-height);padding:0 14px;border-radius:999px;border:1px solid var(--control);background:transparent;font-weight:500;white-space:nowrap;transition:background-color var(--t-hover) ease,border-color var(--t-hover) ease,transform 80ms var(--ease-out)}.btn:hover{border-color:var(--control-hover);background:#1a1a1a}.btn:active{transform:translateY(1px)}.btn:disabled{color:var(--faint);cursor:default;background:transparent;border-color:var(--line)}.btn.sm{height:var(--control-sm);padding:0 12px;font-size:13px}.btn.primary{background:#fff;color:#000;border-color:#fff}.btn.primary:hover{background:#e6e6e6;border-color:#e6e6e6}.btn.wide{width:100%}.btn[aria-pressed=true]{background:var(--raised);border-color:var(--raised)}.btn .i{width:16px;height:16px}.ibtn{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:999px;border:0;background:none;color:var(--muted);transition:color var(--t-hover) ease,background-color var(--t-hover) ease}.ibtn:hover{color:var(--text);background:var(--surface)}.ibtn:disabled{color:#4a4a4a;background:none;cursor:default}.ibtn[aria-pressed=true]{color:var(--text);background:var(--raised)}.panel .ibtn:hover{background:var(--raised)}.ibtn.sm{width:28px;height:28px}.i{display:block;width:16px;height:16px;flex:none}.link{background:none;border:0;padding:0;color:var(--text);font-weight:500;font-size:13px;text-decoration:underline;text-decoration-color:#555;text-underline-offset:3px}.link:hover{text-decoration-color:#fff}.seg{display:inline-flex;flex-wrap:wrap;gap:2px;padding:3px;border-radius:999px;background:var(--well);max-width:100%}.seg button{height:28px;padding:0 11px;border:0;border-radius:999px;background:none;color:var(--muted);font-size:13px;font-weight:500;white-space:nowrap}.seg button:hover{color:var(--text)}.seg button[aria-pressed=true]{background:var(--raised);color:var(--text)}.seg.full{display:flex}.seg.full button{flex:1;padding:0 6px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:999px;border:1px solid var(--control);background:none;color:var(--muted);font-size:13px;font-weight:500;white-space:nowrap}.chip:hover{color:var(--text);border-color:var(--control-hover)}.chip[aria-pressed=true]{background:var(--raised);border-color:var(--raised);color:var(--text)}.chip .sw{display:inline-flex}.chip .sw i{width:8px;height:14px;display:block}.chip .sw i:first-child{border-radius:4px 0 0 4px}.chip .sw i:last-child{border-radius:0 4px 4px 0}.chip .bd{width:12px;height:12px;border-radius:50%;border:1px solid rgb(255 255 255 / .25)}.slider{display:grid;grid-template-columns:112px minmax(0,1fr) 46px;align-items:center;gap:10px;min-height:28px}.slider .nm{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slider .val{color:var(--faint);font-size:12px;text-align:right}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:20px;background:none;margin:0;cursor:pointer}input[type=range]::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:#444}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-6px;border-radius:50%;background:#fff;border:0}input[type=range]::-moz-range-track{height:2px;background:#3a3a3a}input[type=range]::-moz-range-progress{height:2px;background:#fff}input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:0}input[type=range]:focus-visible{outline:none}input[type=range]:focus-visible::-webkit-slider-thumb{outline:3px solid #555}.switch-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:40px}.switch-row .t{font-weight:500}.switch-row .d{color:var(--faint);font-size:12px;line-height:16px}.switch{position:relative;width:32px;height:18px;border-radius:999px;border:0;background:var(--control);padding:0;transition:background-color var(--t-hover) ease}.switch:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:var(--faint);transition:transform .16s var(--ease-out),background-color var(--t-hover) ease}.switch[aria-checked=true]{background:#fff}.switch[aria-checked=true]:after{transform:translate(14px);background:#000}.nested{display:grid;gap:8px;padding:4px 0 12px 12px;margin-left:2px;border-left:1px solid var(--line)}select.sel{height:var(--control-sm);padding:0 30px 0 12px;border-radius:999px;border:1px solid var(--control);background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b4b4b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:13px;max-width:100%;min-width:0}select.sel:hover{border-color:var(--control-hover)}select.sel.full{width:100%}.field{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:10px;min-height:36px}.field>span{color:var(--muted);font-size:13px}input[type=color].well{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;flex:none}input[type=color].well::-webkit-color-swatch-wrapper{padding:0}input[type=color].well::-webkit-color-swatch{border:1px solid rgb(255 255 255 / .2);border-radius:50%}input[type=color].well::-moz-color-swatch{border:0;border-radius:50%}.colours{display:grid;gap:2px}.crow{display:grid;grid-template-columns:28px minmax(0,1fr) 112px 22px;align-items:center;gap:10px;min-height:44px;padding:4px 6px;margin:0 -6px;border-radius:12px}.crow .nm{line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crow .share{color:var(--faint);font-size:12px;line-height:16px}.crow select.sel{width:112px}.crow input[type=checkbox]{width:16px;height:16px;accent-color:#fff;margin:0 auto}.crow.picked{background:#1a1a1a}.crow.picked input[type=color].well{outline:2px solid var(--accent);outline-offset:2px;border-radius:50%}.colours .head{display:grid;grid-template-columns:28px minmax(0,1fr) 112px 22px;gap:10px;color:var(--faint);font-size:12px;padding:0 0 4px}details.more>summary{list-style:none;cursor:pointer;color:var(--text);font-weight:500;font-size:13px;display:flex;align-items:center;gap:6px;height:32px}details.more>summary::-webkit-details-marker{display:none}details.more>summary:after{content:"";width:12px;height:12px;background:var(--muted);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;transition:transform .16s var(--ease-out)}details.more[open]>summary:after{transform:rotate(180deg)}details.more>.stack{padding-top:6px}.scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#0009}.sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:21;margin:auto;height:fit-content;width:min(760px,calc(100vw - 32px));max-height:min(780px,calc(100svh - 64px));padding:0;border:0;border-radius:var(--radius-card);background:var(--surface);color:var(--text);box-shadow:0 24px 64px #0009;overflow:hidden}.sheet[open]{display:flex;flex-direction:column}body.dragging-mech .sheet,body.dragging-mech .scrim{opacity:.08;pointer-events:none;transition:opacity .15s ease}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 0 var(--card-pad)}.sheet-head h2{margin:0;font-size:16px;line-height:24px;font-weight:600}.sheet-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px var(--card-pad) 0}.sheet-body{overflow-y:auto;padding:16px var(--card-pad) var(--card-pad)}.search{flex:1;min-width:180px;display:flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--control);color:var(--muted)}.search:focus-within{border-color:var(--control-hover)}.search input{flex:1;min-width:0;border:0;background:none;outline:none;color:var(--text)}.search input::placeholder{color:var(--faint)}.pgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 12px}.pcard{display:grid;gap:8px;padding:0;border:0;background:none;text-align:left;min-width:0}.pcard .pic{aspect-ratio:1;border-radius:var(--radius-inner);background:var(--well);overflow:hidden;display:grid;place-items:center;outline:1px solid transparent;outline-offset:2px;transition:outline-color var(--t-hover) ease}.pcard img{width:100%;height:100%;object-fit:cover;display:block}.pcard .nm{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pcard .meta{margin-top:-6px}.pcard:hover .pic{outline-color:var(--control-hover)}.pcard[aria-pressed=true] .pic{outline-color:#fff}.pcard:focus-visible{outline:none}.pcard:focus-visible .pic{outline:2px solid #fff}.pgroup+.pgroup{margin-top:20px}.pgroup>.meta{margin:0 0 10px}.brow{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:14px;padding:8px 0}.brow+.brow{border-top:1px solid var(--line)}.brow img,.brow .thumb-ph{width:56px;height:56px;border-radius:10px;background:var(--well);object-fit:cover;display:block}.brow .nm{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brow .acts{display:flex;align-items:center;gap:6px}.brow .confirm{color:var(--text);font-size:13px}.menu{display:grid;gap:2px}.menu button{display:flex;align-items:center;gap:12px;height:44px;padding:0 12px;border:0;border-radius:12px;background:none;text-align:left;font-weight:500}.menu button:hover{background:var(--raised)}.menu button:disabled{color:#555}.menu .i{color:var(--muted)}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,12px);padding:10px 16px;border-radius:999px;background:#fff;color:#000;font-weight:500;opacity:0;pointer-events:none;transition:opacity .16s ease,transform .2s var(--ease-out);z-index:10;white-space:nowrap}.toast.on{opacity:1;transform:translate(-50%)}.only-phone{display:none}@media (max-width: 1100px){:root{--panel-width: 330px}.product,.sep{display:none}.status:not(.error){display:none}}@media (max-width: 760px){#app{grid-template-rows:48px minmax(0,1fr)}.topbar{padding:0 8px 0 16px;gap:8px}#buildName{max-width:46vw;font-size:16px}.pill{display:none}.actions>:not(.keep){display:none}.only-phone{display:inline-grid}.work{grid-template-columns:minmax(0,1fr);grid-template-rows:42svh minmax(0,1fr);gap:8px}.stage{order:-1}.panel{border-radius:var(--radius-card) var(--radius-card) 0 0;margin:0 calc(-1 * var(--margin)) calc(-1 * var(--margin))}.tabs{overflow-x:auto;scrollbar-width:none;padding:8px 12px 0}.tab{height:44px;flex:none}.panel-body{padding:0 16px 24px}.stage-foot{left:12px;right:12px;bottom:12px}.status{display:none}.views button{height:32px}.pgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet{width:100vw;max-width:100vw;max-height:86svh;margin:auto 0 0;border-radius:var(--radius-card) var(--radius-card) 0 0}.seg button,.chip,.btn,.btn.sm,.views button,select.sel{height:44px}.ibtn,.ibtn.sm{width:44px;height:44px}.lrow,.optrow,.switch-row,.slider{min-height:44px}.lrow{height:44px;grid-template-columns:minmax(0,1fr) 44px}input[type=range]{height:44px}.srcgrid{grid-template-columns:repeat(5,minmax(0,1fr))}.crow{grid-template-columns:28px minmax(0,1fr) 104px 22px}.crow select.sel{width:104px}.colours .head{grid-template-columns:28px minmax(0,1fr) 104px 22px}}
