.mc-construction{--mc-blue:#2055d9;--mc-coral:#ee6b59;--mc-ink:#17304c;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--mc-ink);background:#fff;border:1px solid #dce5f1;border-radius:20px;box-shadow:0 12px 36px #193d7110;overflow:hidden;isolation:isolate;width:100%;box-sizing:border-box}.mc-construction *{box-sizing:border-box}.mc-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 18px;border-bottom:1px solid #e6edf7}.mc-badge{font-size:11px;font-weight:800;letter-spacing:.04em;color:#2455aa;background:#edf3ff;border-radius:20px;padding:7px 10px}.mc-head p{font-size:12px;line-height:1.5;flex:1;margin:0;min-width:180px;color:#627087}.mc-history{display:flex;gap:4px}.mc-construction button{font:inherit;border:1px solid transparent;border-radius:11px;background:#fff;color:var(--mc-ink);min-width:44px;min-height:44px;cursor:pointer;touch-action:none;transition:background .15s,border-color .15s,box-shadow .15s}.mc-construction button:hover:not(:disabled){background:#edf3ff;border-color:#cad9f5}.mc-construction button:focus-visible,.mc-canvas:focus-visible,.mc-snap input:focus-visible{outline:3px solid #e7a64c;outline-offset:2px}.mc-construction button:disabled{opacity:.34;cursor:default}.mc-icon{font-size:25px;line-height:1;display:block;pointer-events:none}.mc-button-label{display:block;font-size:10px;font-weight:650;line-height:1.2;pointer-events:none}.mc-history .mc-button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.mc-snap{font-size:11px;display:flex;align-items:center;gap:6px;min-height:44px;cursor:pointer}.mc-snap input{accent-color:var(--mc-blue);width:18px;height:18px}.mc-layout{display:grid;grid-template-columns:70px minmax(0,1fr) 164px;min-width:0}.mc-palette{padding:10px 6px;display:flex;flex-direction:column;gap:4px;border-right:1px solid #e6edf7;background:#f9fbff}.mc-palette button{width:56px;min-height:55px;padding:5px 2px}.mc-palette button[aria-pressed=true]{color:var(--mc-blue);background:#eaf0ff;border-color:#b8cdf9;box-shadow:inset 3px 0 var(--mc-blue)}.mc-stage{position:relative;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff;min-height:360px}.mc-canvas{display:block;width:100%;height:100%;min-height:360px;aspect-ratio:20/13;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair;background:#fff}.mc-canvas[data-tool=select]{cursor:default}.mc-context{position:absolute;z-index:3;top:10px;left:10px;display:flex;gap:3px;padding:4px;background:#ffffffee;border:1px solid #dbe5f5;border-radius:14px;box-shadow:0 5px 18px #1b3b6420;max-width:calc(100% - 20px)}.mc-context[hidden]{display:none}.mc-context button{width:44px;min-width:44px;height:44px;padding:3px}.mc-context .mc-icon{font-size:22px}.mc-context .mc-button-label{font-size:8px}.mc-inspector{border-left:1px solid #e6edf7;background:#fbfcff;padding:16px 13px}.mc-inspector h3{font-size:12px;margin:0 0 14px;font-weight:750}.mc-counts{font-size:11px;line-height:1.7;color:#607089;margin:0 0 16px}.mc-selected-name{font-size:11px;color:#3d5a87;font-weight:650;overflow-wrap:anywhere;margin:0 0 12px}.mc-metric{font-size:11px;display:flex;flex-direction:column;gap:5px;margin-bottom:15px;color:#687a92}.mc-metric strong{font-size:16px;color:#163d76;font-variant-numeric:tabular-nums}.mc-hint,.mc-selection-empty{font-size:11px;color:#61748d;line-height:1.7}.mc-hint{border-top:1px solid #e2eaf6;margin:18px 0 0;padding-top:13px}.mc-warning{font-size:11px;line-height:1.6;color:#a44624;background:#fff1e8;border-radius:8px;padding:8px}.mc-footer{border-top:1px solid #e6edf7;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 18px;background:#fff;font-size:11px;color:#687b94;line-height:1.5}.mc-footer small{font-size:10px}.mc-status{max-width:60%}.mc-object{--shape-color:var(--mc-blue);--shape-fill:#2055d91b;cursor:move}.mc-object.mc-coral{--shape-color:var(--mc-coral);--shape-fill:#ee6b592b}.mc-object>circle,.mc-object>polygon,.mc-object>polyline:not(.mc-stroke-hit){stroke:var(--shape-color);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;fill:var(--shape-fill)}.mc-object>polyline{fill:none!important}.mc-object.is-selected>circle,.mc-object.is-selected>polygon,.mc-object.is-selected>polyline:not(.mc-stroke-hit){stroke-width:3.5}.mc-material-counter>circle{fill:var(--mc-coral);stroke:#c94f40;stroke-width:1.5}.mc-material-square>polygon{fill:#2055d947}.mc-material-rod>polygon{fill:#ee6b594d}.mc-object-label{fill:#193858;text-anchor:middle;font-size:16px;font-weight:600}.mc-preview{opacity:.65}.mc-preview .mc-object{pointer-events:none}.mc-handles{cursor:grab}.mc-handle-dot{fill:#fff;stroke:var(--mc-blue);stroke-width:2;vector-effect:non-scaling-stroke}.mc-draftbar{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:6px;white-space:nowrap}.mc-draftbar button{font-size:11px;box-shadow:0 3px 12px #16345e1a;border-color:#c7d8f3;padding:7px 12px}.mc-draftbar button[hidden]{display:none}.mc-finish{background:var(--mc-blue)!important;color:#fff!important}.mc-cancel{background:#fff!important}
.mc-circle-hit{fill:transparent!important;stroke:none!important}.mc-viewport{position:absolute;right:10px;bottom:10px;z-index:2;display:flex;gap:1px;border:1px solid #dbe5f5;border-radius:12px;background:#fffffff0;box-shadow:0 3px 12px #16345e10;padding:2px}.mc-viewport button{min-width:44px;width:44px;height:44px}.mc-viewport .mc-button-label{display:none}.mc-viewport button[aria-pressed=true]{color:var(--mc-blue);background:#eaf0ff}.mc-canvas[data-tool=pan]{cursor:grab}.mc-draftbar{bottom:66px}
@media(min-width:1200px){.mc-layout{grid-template-columns:76px minmax(0,1fr) 180px}.mc-palette{align-items:center}.mc-stage{min-height:480px}.mc-canvas{min-height:480px}}
@media(max-width:760px){.mc-head{padding:12px;gap:8px}.mc-head p{flex-basis:100%;order:3}.mc-history{margin-left:auto}.mc-layout{grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto}.mc-palette{padding:5px 2px;gap:2px}.mc-palette button{width:48px;min-height:49px}.mc-palette .mc-icon{font-size:22px}.mc-palette .mc-button-label{font-size:8px}.mc-stage{min-height:420px}.mc-canvas{min-height:420px}.mc-inspector{grid-column:1/-1;border-left:0;border-top:1px solid #e6edf7;padding:12px;display:grid;grid-template-columns:1fr 1.5fr;gap:4px 16px}.mc-inspector h3{margin:0;font-size:11px}.mc-counts{grid-row:2;margin:0}.mc-metrics{grid-column:2;grid-row:1/3;display:flex;gap:14px;flex-wrap:wrap;align-items:center}.mc-selected-name{flex-basis:100%;margin:0}.mc-metric{margin:0;font-size:10px;gap:2px}.mc-metric strong{font-size:14px}.mc-hint{grid-column:1/-1;margin:6px 0 0;padding-top:6px;line-height:1.5}.mc-context{left:5px;top:5px;gap:0;max-width:calc(100% - 10px)}.mc-context button{width:44px;min-width:44px}.mc-context .mc-button-label{display:none}.mc-footer{padding:10px 12px;gap:5px}.mc-status{max-width:100%}.mc-selection-empty{font-size:10px;margin:0}.mc-badge{font-size:9px}.mc-snap{font-size:10px}}
@media(prefers-reduced-motion:reduce){.mc-construction *{transition:none!important;animation:none!important}}
/* A host-owned height is a hard boundary, including inside legacy activity CSS. */
.mc-construction{height:100%;min-height:0;display:flex;flex-direction:column;max-width:100%;position:relative}
.mc-construction .mc-head{flex:0 0 52px;min-height:52px;max-height:52px;padding:4px 8px;gap:5px;flex-wrap:nowrap;overflow:hidden}
.mc-construction .mc-head>p{display:none!important}
.mc-construction .mc-badge{min-width:0;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto}
.mc-construction .mc-history{flex:0 0 auto;margin-left:auto;gap:0}
.mc-construction .mc-head .mc-snap{font-size:14px!important;line-height:1.4!important;letter-spacing:normal!important;display:flex!important;align-items:center;flex:0 0 auto;gap:5px;padding:0!important;margin:0!important;min-height:44px;white-space:nowrap}
.mc-construction .mc-snap input{width:18px!important;min-width:18px!important;height:18px!important;margin:0!important;flex:0 0 18px}
.mc-construction .mc-layout{flex:1 1 0%;min-height:0;overflow:hidden;grid-template-columns:56px minmax(0,1fr) 180px;grid-template-rows:minmax(0,1fr)}
.mc-construction .mc-palette{min-height:0;max-height:100%;height:100%;padding:6px 4px;gap:4px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;align-items:center;scrollbar-width:thin}
.mc-construction .mc-palette button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:3px!important;flex:0 0 44px}
.mc-construction .mc-palette .mc-button-label,.mc-construction .mc-context .mc-button-label,.mc-construction .mc-viewport .mc-button-label{display:none!important}
.mc-construction .mc-icon{font-size:25px!important;line-height:1!important}
.mc-construction .mc-stage{min-height:0!important;height:100%;max-height:100%;overflow:hidden;min-width:0}
.mc-construction .mc-canvas{min-height:0!important;height:100%!important;max-height:100%;width:100%;aspect-ratio:auto}
.mc-construction .mc-inspector{min-height:0;max-height:100%;overflow:auto;padding:12px}
.mc-construction .mc-inspector h3{font-size:14px!important;line-height:1.4!important;margin:0 0 12px!important}
.mc-construction .mc-inspector p,.mc-construction .mc-inspector .mc-metric{font-size:14px!important;line-height:1.4!important;letter-spacing:normal!important}
.mc-construction .mc-metric strong{font-size:17px!important;line-height:1.4!important}
.mc-construction .mc-counts,.mc-construction .mc-selected-name{margin:0 0 12px!important}
.mc-construction .mc-inspector .mc-hint,.mc-construction .mc-inspector .mc-selection-empty{display:none!important}
.mc-construction .mc-footer{position:relative;flex:0 0 30px;height:30px;min-height:30px;max-height:30px;display:block;padding:5px 10px;overflow:hidden}
.mc-construction .mc-footer small{display:block;font-size:14px!important;line-height:1.4!important;letter-spacing:normal!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-construction .mc-status{position:absolute;width:1px;height:1px;max-width:none;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mc-construction .mc-context{top:6px;left:6px;padding:3px;gap:0}
.mc-construction .mc-context button,.mc-construction .mc-viewport button,.mc-construction .mc-history button{min-width:44px!important;min-height:44px!important;width:44px;height:44px;padding:3px!important;flex:0 0 44px}
.mc-construction .mc-draftbar button{font-size:14px!important;line-height:1.4!important}
@media(max-width:760px){
 .mc-construction .mc-head{padding:4px 6px;gap:4px}
 .mc-construction .mc-badge{max-width:92px;font-size:11px;padding:6px 8px}
 .mc-construction .mc-layout{grid-template-columns:52px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 .mc-construction .mc-palette{grid-column:1;grid-row:1;padding:4px 2px}
 .mc-construction .mc-stage{grid-column:2;grid-row:1}
 .mc-construction .mc-inspector{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-height:40px;max-height:72px;padding:7px 10px;border-left:0;border-top:1px solid #e6edf7;overflow:auto;overscroll-behavior:contain}
 .mc-construction .mc-inspector h3,.mc-construction .mc-inspector .mc-selected-name{display:none!important}
 .mc-construction .mc-inspector .mc-counts{white-space:nowrap;flex:0 0 auto;margin:0!important}
 .mc-construction .mc-inspector:has(.mc-selected-name) .mc-counts{display:none!important}
 .mc-construction .mc-metrics{display:flex;flex-wrap:nowrap;align-items:center;gap:14px;min-width:0;flex:1}
 .mc-construction .mc-metric{min-width:78px;flex:0 0 auto;margin:0!important;gap:1px}
 .mc-construction .mc-metric strong{font-size:16px!important;white-space:nowrap}
 .mc-construction .mc-warning{margin:0!important;padding:4px 7px;min-width:200px;max-width:270px}
 .mc-construction .mc-viewport{right:6px;bottom:6px}
}
