.tech2-construction-dialog { width: min(1180px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #cbd5d7; border-radius: 6px; color: #233235; background: #fff; }
.tech2-construction-dialog::backdrop { background: #14212570; }
.tech2-construction-dialog form { display: flex; flex-direction: column; height: min(800px, calc(100dvh - 28px)); margin: 0; }
.tech2-construction-dialog header, .tech2-construction-dialog footer { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex: 0 0 auto; }
.tech2-construction-dialog header { justify-content: space-between; border-bottom: 1px solid #d8e0e2; }
.tech2-construction-dialog h3 { font-size: 16px; margin: 0; }
.tech2-construction-dialog footer { border-top: 1px solid #d8e0e2; justify-content: flex-end; }
.tech2-construction-dialog [role=alert] { color: #bc303c; margin: 0 auto 0 0; font-size: 12px; overflow-wrap: anywhere; }
.tech2-construction-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 0; flex: 1; }
.tech2-construction-settings { overflow: auto; padding: 16px; border-right: 1px solid #d8e0e2; }
.tech2-construction-settings label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 12px; font-weight: 600; min-width: 0; }
.tech2-construction-settings input, .tech2-construction-settings select, .tech2-construction-settings textarea { width: 100%; min-width: 0; font: inherit; font-weight: 400; }
.tech2-construction-settings fieldset { border: 0; border-top: 1px solid #d8e0e2; padding: 12px 0 0; margin: 8px 0 16px; min-width: 0; }
.tech2-construction-settings legend { font-size: 12px; font-weight: 700; padding-right: 8px; }
.tech2-construction-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.tech2-construction-fields button { align-self: center; }
.tech2-construction-views { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tech2-construction-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px; border-bottom: 1px solid #d8e0e2; }
.tech2-construction-tabs button[aria-pressed=true] { background: #e7f2f1; border-color: #13776f; color: #075f58; }
.tech2-construction-tabs [data-fit] { margin-left: auto; }
.tech2-construction-preview { position: relative; flex: 1; min-height: 200px; overflow: hidden; background: #fff; }
.tech2-construction-preview > svg, .tech2-construction-preview > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tech2-construction-size { padding: 10px; text-align: center; font-size: 12px; border-top: 1px solid #d8e0e2; font-variant-numeric: tabular-nums; }
.tech2-construction-parts { padding: 8px 10px; text-align: center; font-size: 12px; border-top: 1px solid #d8e0e2; }
.tech2-construction-part-geometry { font-size: 11px; font-weight: 400; color: #566569; font-variant-numeric: tabular-nums; }
.tech2-construction-dialog button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 7px 10px; border: 1px solid #cbd5d7; border-radius: 4px; background: #fff; color: #233235; font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, Arial, sans-serif; cursor: pointer; }
.tech2-construction-dialog button:hover { background: #f0f5f5; }
.tech2-construction-dialog button.primary { background: #11776f; border-color: #11776f; color: #fff; }
.tech2-construction-dialog button:disabled { opacity: .5; cursor: default; }
.tech2-construction-dialog button:focus-visible { outline: 2px solid #2173c1; outline-offset: 2px; }
.tech2-construction-dialog header button { width: 34px; flex: 0 0 34px; padding: 6px; }
.tech2-construction-dialog .tech2-construction-tabs button[aria-pressed=true] { background: #e7f2f1; border-color: #13776f; color: #075f58; }
.production-theme #technical2 #tech2EditConstruction { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid #cbd5d7; border-radius: 4px; background: #fff; font-size: 12px; }
.production-theme #technical2 #tech2EditConstruction svg { width: 16px; height: 16px; }
.production-theme #technical2 .tech2-dialog-fields select { min-width: 0; width: 100%; max-width: 100%; }
.production-theme #technical2 .tech2-drawing-dialog:has([name=part0]) .tech2-dialog-fields { grid-template-columns: minmax(0,1fr); }
.tech2-construction-dialog button svg { width: 16px; height: 16px; flex-shrink: 0; }
.tech2-construction-dialog button svg, .warehouse-construction-tools button svg { pointer-events: none; }
.warehouse-construction-tools [hidden], #warehouseEditConstruction[hidden] { display: none !important; }
.tech2-distance-actions { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.tech2-cad-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.tech2-cad-dialog { width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 16px; border: 1px solid #cbd5d7; border-radius: 6px; background: #fff; color: #233235; overflow: auto; }
.tech2-cad-dialog::backdrop { background: #14212570; }
.tech2-cad-dialog header, .tech2-cad-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tech2-cad-dialog h3 { margin: 0; font-size: 17px; }
.tech2-cad-dialog header { margin-bottom: 16px; }
.tech2-cad-dialog footer { justify-content: flex-end; margin-top: 14px; }
.tech2-cad-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tech2-cad-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; min-width: 0; }
.tech2-cad-fields input, .tech2-cad-fields select { width: 100%; min-width: 0; }
.tech2-cad-fields .tech2-cad-check, .tech2-construction-settings .tech2-cad-check { display: flex; flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; }
.tech2-cad-check input[type=checkbox], .tech2-construction-settings input[type=checkbox] { width: 16px; height: 16px; flex: 0 0 16px; }
.tech2-cad-preview { height: 190px; border-top: 1px solid #d8e0e2; margin-top: 14px; }
.tech2-cad-preview svg { width: 100%; height: 100%; }
.tech2-cad-dialog [role=alert] { color: #b52d37; font-size: 12px; }
.tech2-cad-dialog button { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; }
.tech2-cad-dialog button svg { width: 16px; height: 16px; }
.tech2-cad-inspector { padding: 10px; font-size: 12px; border-top: 1px solid #d8e0e2; }
.tech2-cad-inspector:empty { display: none; }
.tech2-cad-inspector button { display: flex; align-items: center; gap: 6px; }
.tech2-cad-inspector svg { width: 16px; height: 16px; }
.tech2-part-highlight > path, .tech2-part-highlight > polyline { stroke: #1575dc; }
.tech2-construction-settings [data-part-row].is-selected { background: #edf5ff; outline: 1px solid #82afe0; }
.tech2-construction-exports { display: grid; gap: 8px; margin-bottom: 12px; }
.tech2-construction-exports button { width: 100%; height: auto; }
.tech2-solid-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tech2-solid-tools button[aria-pressed=true] { background: #e7f2f1; color: #075f58; border-color: #13776f; }
.tech2-solid-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid #d8e0e2; }
.tech2-solid-toolbar button[aria-pressed=true] { background: #e7f2f1; color: #075f58; border-color: #13776f; }
.tech2-solid-toolbar output { color: #526367; font-size: 11px; flex: 1 1 150px; overflow-wrap: anywhere; }
.tech2-construction-preview canvas { touch-action: none; }
.tech2-construction-dialog { width: min(1480px, calc(100vw - 24px)); }
.tech2-construction-body { grid-template-columns: 330px minmax(0,1fr); }
.construction-planner details { border-bottom: 1px solid #d8e0e2; padding: 8px 0; }
.construction-planner summary { cursor: pointer; font-size: 12px; font-weight: 600; padding: 5px 0; }
.construction-planner details > label:first-of-type { margin-top: 8px; }
.planner-tree { max-height: 260px; overflow: auto; margin: 8px 0; }
.planner-tree-row { display: grid; grid-template-columns: 18px minmax(0,1fr) 28px 28px; align-items: center; gap: 3px; min-height: 34px; border-bottom: 1px solid #edf0f1; }
.planner-tree-row.is-selected { background: #eaf3ff; }
.planner-tree-row button { border: 0; background: transparent; padding: 4px; min-height: 28px; height: 28px; }
.planner-tree-row [data-name] { justify-content: flex-start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; text-align: left; font-weight: 400; }
.planner-tree-row input { margin: 0; }
.planner-tree-group { width: 100%; text-align: left; justify-content: flex-start !important; background: #f1f4f5 !important; border: 0 !important; }
.planner-presets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; padding: 8px 0; }
.planner-presets button { justify-content: flex-start; }
.planner-transform-tools { margin: 0; align-items: center; flex-wrap: wrap; }
.planner-transform-tools label { font-size: 11px; display: flex; align-items: center; gap: 5px; }
.planner-transform-tools select { max-width: 175px; min-width: 0; font-size: 11px; }
.planner-recovery { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 16px; background: #f5f8f8; border-bottom: 1px solid #d8e0e2; font-size: 11px; }
.planner-recovery select { width: auto; max-width: 260px; font-size: 11px; }
.planner-recovery output { margin-right: auto; }
.planner-recovery button { min-height: 28px; padding: 4px 8px; }
.tech2-spatial-toolbar { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 5px; background: #ffffffed; border: 1px solid #cad6db; border-radius: 4px; }
.tech2-spatial-toolbar button { width: 34px; height: 34px; padding: 7px; }
.tech2-spatial-toolbar svg { width: 18px; height: 18px; }
.tech2-spatial-toolbar button[aria-pressed=true] { background: #e3f2f0; color: #076c60; }
.tech2-spatial-toolbar output { font-size: 12px; margin: 0 6px; }
.warehouse-construction-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.tech2-solid-editor [data-solid-cursor] { display: block; font-size: 11px; color: #416679; overflow-wrap: anywhere; }
.production-theme #technical2 .tech2-canvas-frame.is-3d { width: 100%; height: 100%; min-width: 0; flex: 1; align-self: stretch; }
.production-theme #technical2 .tech2-canvas-frame.is-3d > svg { display: none !important; }
@media(max-width:500px) { .tech2-cad-fields { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px) {
  .tech2-construction-body { grid-template-columns: 1fr; grid-template-rows: minmax(180px, 1fr) minmax(220px, 1fr); }
  .tech2-construction-preview { min-height: 100px; }
  .tech2-construction-settings { border-right: 0; border-bottom: 1px solid #d8e0e2; }
  .tech2-construction-dialog footer { gap: 6px; flex-wrap: wrap; padding: 8px; }
  .tech2-construction-dialog footer [role=alert] { flex-basis: 100%; }
  .tech2-construction-tabs { padding: 5px; }
  .tech2-construction-tabs button { padding: 6px 8px; font-size: 12px; }
  .tech2-construction-views { grid-row: 1; }
  .tech2-construction-settings { grid-row: 2; }
  .tech2-construction-body { grid-template-rows: minmax(270px,1fr) minmax(180px,1fr); }
  .planner-recovery select { max-width: 160px; }
}
