.tdraw{width:min(1080px,100vw - 32px);max-height:calc(100dvh - 32px)}.tdraw__views{flex-wrap:wrap;gap:8px;display:flex}.tdraw__stage{aspect-ratio:3/2;border:1px solid var(--line,#d8d4cc);border-radius:var(--radius-sm);touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;background:#fff;width:100%;max-height:62dvh;position:relative;overflow:hidden}.tdraw__stage:active{cursor:grabbing}.tdraw__canvas,.tdraw__overlay{width:100%;height:100%;display:block;position:absolute;inset:0}.tdraw__overlay{pointer-events:none}.tdraw__info{color:#1b1b1b;background:#fff;border:1px solid #1b1b1b;flex-wrap:wrap;gap:4px 20px;margin:0;padding:6px 12px;font-size:.78rem;display:flex}.tdraw__info div{gap:8px;display:flex}.tdraw__info dt{color:#555}.tdraw__info dd{margin:0;font-weight:650}.tdraw__bom h3{margin:0 0 8px;font-size:1rem;font-weight:650}.tdraw__bom table{border-collapse:collapse;width:100%;font-size:.85rem}.tdraw__bom th,.tdraw__bom td{border:1px solid var(--line,#d8d4cc);text-align:left;padding:5px 10px}.tdraw__bom th{background:var(--surface-2,#f3f1ec);font-weight:650}.tdraw__count{font-variant-numeric:tabular-nums;text-align:right!important}.dims-overlay{z-index:1;pointer-events:none;position:absolute;inset:0;overflow:visible}.dims-overlay__halo{fill:none;stroke:#ffffffbf;stroke-width:3px;stroke-linecap:round}.dims-overlay__line{fill:none;stroke-width:1.2px;stroke-linecap:round}.dims-overlay__label{text-anchor:middle;dominant-baseline:central;paint-order:stroke;stroke:#ffffffe6;stroke-width:3px;stroke-linejoin:round;font:600 12px/1 system-ui,Segoe UI,Arial,sans-serif}.dims-overlay__label--total{font-weight:700}.btn.is-on{color:#c0392b;background:#c0392b14;border-color:#c0392b}.modules-manager{flex-direction:column;gap:16px;height:100%;padding:20px;display:flex;overflow-y:auto}.modules-manager__bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 24px;padding:18px 22px;display:flex}.modules-manager__intro{flex:360px;min-width:0}.modules-manager__intro .modules-step__hint{margin:4px 0 0}.modules-manager__actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.modules-manager__add{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.modules-manager__add .field__input input,.module-section__rename .field__input input{width:220px;padding:7px 12px;font-size:.95rem}.modules-manager__add .field__error,.module-section__rename .field__error{flex-basis:100%}.module-board{flex-direction:column;gap:14px;display:flex}.module-section{border:1.5px solid #0000;flex-direction:column;gap:12px;padding:14px 18px 18px;transition:border-color .15s,box-shadow .15s;display:flex}.module-section.is-drop-target{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}.module-section.is-cat-drop-before{box-shadow:0 -4px 0 0 var(--accent)}.module-section.is-dragging{opacity:.55}.module-board__cat-drop-end{background:var(--accent);border-radius:2px;height:4px}.module-section--hidden{background:var(--surface-2)}.module-section__head{flex-wrap:wrap;align-items:center;gap:8px;min-height:36px;display:flex}.module-section__title{flex:1;min-width:0;margin:0;font-size:1rem;font-weight:650}.module-section__count{color:var(--muted);font-weight:500}.module-section__tools{gap:4px;display:flex}.module-section__rename{flex-wrap:wrap;flex:1;align-items:center;gap:6px;display:flex}.module-section__head .module-row__confirm{flex-basis:100%}.module-section__grip,.module-card__grip{width:36px;height:36px;color:var(--line-strong);touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;border-radius:8px;flex:none;place-items:center;display:grid}.module-section__grip:hover,.module-card__grip:hover{color:var(--muted);background:var(--surface-2)}.module-section__grip:active,.module-card__grip:active{color:var(--accent);background:var(--accent-soft);cursor:grabbing}.module-section__grip circle,.module-card__grip circle{fill:currentColor}.module-section__empty{border:1.5px dashed var(--line-strong);border-radius:var(--radius-sm);color:var(--muted);text-align:center;margin:0;padding:18px;font-size:.88rem}.module-section__empty.is-drop-target{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong)}.module-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.module-grid.is-drop-end:after{content:"";border:1.5px dashed var(--accent);border-radius:var(--radius-sm);background:var(--accent-soft);min-height:60px}.module-card{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);flex-direction:column;gap:8px;padding:10px 10px 10px 12px;display:flex;position:relative}.module-card.is-dragging{opacity:.4}.module-card.is-drop-before:before{content:"";background:var(--accent);border-radius:2px;width:4px;position:absolute;top:6px;bottom:6px;left:-7px}.module-card__top{align-items:center;gap:10px;display:flex}.module-card__info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.module-card__name{overflow-wrap:anywhere;font-weight:600}.module-card__dims{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.82rem}.module-card__badges{flex-wrap:wrap;gap:4px;display:flex}.badge{letter-spacing:.02em;background:var(--surface-2);color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 8px;font-size:.72rem;font-weight:650}.badge--fbx{background:var(--warn-soft);color:var(--warn);border-color:#0000}.badge--edited{background:var(--accent-soft);color:var(--accent-strong);border-color:#0000}.module-card__actions{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.module-card__delete:hover{background:var(--danger-soft);color:var(--danger)}.module-card__move{color:var(--muted);align-items:center;gap:6px;margin-left:auto;font-size:.82rem;display:flex}.module-card__move select{border:1px solid var(--line-strong);background:var(--surface);max-width:140px;height:30px;color:var(--text);border-radius:8px;padding:0 6px}.module-card__error{margin:0;padding:6px 10px;font-size:.85rem}.module-glyph{background:var(--surface-2);border-radius:8px;flex:none}.module-glyph rect,.module-glyph circle{fill:var(--wall);stroke:var(--muted);stroke-width:.8px}.module-glyph .module-glyph__back{fill:var(--surface);stroke:var(--line-strong)}.module-glyph .module-glyph__front{fill:none;stroke:var(--accent);stroke-dasharray:2 2}.module-glyph__custom rect{fill:var(--warn-soft);stroke:var(--warn)}.module-glyph__custom line{stroke:var(--warn);stroke-width:.6px;opacity:.5}.module-edit{width:min(640px,100vw - 32px);max-height:calc(100dvh - 32px)}.module-edit__preview{border-radius:var(--radius-sm);background:var(--surface-2);align-items:center;gap:16px;padding:10px;display:flex}.module-edit__preview .module-glyph{background:var(--surface)}.module-edit__preview-text{font-variant-numeric:tabular-nums;flex-direction:column;gap:2px;display:flex}.module-edit__kind{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-size:.8rem}.module-edit__row3{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.module-edit .field__input input{padding:9px 12px;font-size:.98rem}.module-edit__fieldset{border:0;flex-direction:column;gap:6px;margin:0;padding:0;display:flex}.module-edit__fieldset legend{margin-bottom:6px;padding:0}.module-edit__checks-row{flex-wrap:wrap;gap:6px 16px;display:flex}.module-edit__checks{gap:4px}.check{cursor:pointer;align-items:center;gap:6px;min-height:30px;font-size:.92rem;display:inline-flex}.check input{width:17px;height:17px;accent-color:var(--accent)}.check input:disabled+span{color:var(--muted)}.module-edit__reset{margin-right:auto}@media (width<=640px){.modules-manager{padding:12px 16px}.module-edit__row3,.module-grid{grid-template-columns:1fr}}
