/* Page layout and model drawing only. Controls and window chrome are HDUI.*. */
html,body { margin:0; width:100%; height:100%; overflow:hidden; }
#app { height:100%; }
.page-scroll { height:100%; }
.workspace { display:flex; flex-direction:column; gap:8px; padding:8px; width:100%; max-width:720px; margin:0 auto; }
.workspace-header { justify-content:space-between; flex-wrap:wrap; }
.workspace-header .hd-subtitle { flex:1; min-width:140px; }
.workspace [hidden] { display:none!important; }
.windows { display:grid; grid-template-columns:minmax(280px,1fr) 336px; align-items:start; gap:8px; }
.tool-mount,.demo-mount { min-width:0; }
.demo-mount { position:sticky; top:16px; }
.demo-header { flex-direction:column; align-items:stretch; }
.demo-header .hd-row { justify-content:space-between; flex-wrap:wrap; }
.tool-window,.demo-window { max-width:100%; }
.full-row { width:100%; min-width:0; }

.full-button { width:100%; min-width:0; }
.fit-choice { width:100%; min-width:0; }
.field-stretch { flex:1; min-width:0; }
.action-row { display:flex; gap:8px; width:100%; align-items:center; }
.action-row>.main-action { flex:1; min-width:0; }
.tool-footer { flex-direction:column; align-items:stretch; gap:8px; }
.tool-footer .hd-status { white-space:normal; min-height:13px; }
.tool-help { line-height:16px; }
.manual-row { display:flex; gap:4px; width:100%; }
.manual-row>.hd-btn { flex:1; min-width:0; }
.demo-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.demo-source { flex:1 1 190px; min-width:0; max-width:100%; }
.offset-row { width:100%; }
.offset-row>.hd-formrow { min-width:0; justify-content:space-between; }
.demo-body { width:100%; min-width:0; }
.model-scene { position:relative; aspect-ratio:1; width:100%; border:1px solid var(--b-Level1Border); background:#fff; overflow:hidden; }
.model-scene svg { width:100%; height:100%; display:block; font-family:Tahoma,sans-serif; }
.scene-description { white-space:normal; }
.drawing { color:#333; }
.drawing .axis-line { stroke:#333; stroke-width:1; stroke-dasharray:12 4 2 4; fill:none; }
.drawing .axis-hit { stroke:transparent; stroke-width:18; fill:none; cursor:pointer; }
.drawing .axis-bubble { stroke:#333; fill:white; stroke-width:1; }
.drawing .axis-text { font-size:13px; fill:#333; text-anchor:middle; dominant-baseline:central; }
.drawing .axis-picked .axis-line,.drawing .axis-picked .axis-bubble { stroke:#333; stroke-width:1.6; }
.drawing .axis-picked .axis-text { fill:#333; }


.drawing .host { cursor:pointer; outline:none; }
.drawing .host-body { fill:#fff; stroke:#333; stroke-width:1.4; fill-rule:evenodd; transition:fill .2s,stroke .2s; }
.drawing .host:hover .host-body,.drawing .host:focus .host-body { stroke:#333; }
.drawing .host.chosen .host-body { fill:#fff; stroke:#333; stroke-width:1.7; }
.drawing .host-label { font-size:12px; fill:#333; pointer-events:none; }
.drawing .hole-edge { fill:#fff; stroke:#333; stroke-width:1.3; transition:stroke .2s; }
.drawing .chosen .hole-edge { stroke:#333; stroke-width:1.8; }
.drawing .hole-id { font-size:10px; fill:#333; pointer-events:none; }
.drawing .dimension { stroke:#333; fill:none; stroke-width:1; pointer-events:none; }
.drawing .dimension.built { stroke:#333; }
.drawing .dim-label { stroke:white; stroke-width:5; paint-order:stroke; fill:#333; font-size:var(--demo-dim-font,12px); text-anchor:middle; dominant-baseline:central; }
.drawing .no-ticks .dim-tick { display:none; }
.drawing .built .dim-label { fill:#333; }
.drawing .binding { stroke:#333; stroke-dasharray:3 3; }
.drawing .binding.built { stroke:#333; stroke-dasharray:none; }
.drawing .centre-mark { stroke:#333; stroke-width:1; fill:none; }
.drawing .hole-hit { fill:transparent; cursor:pointer; }
.drawing .selected-reference { stroke:#333; stroke-width:2; fill:white; }
.model-scene.picking { cursor:crosshair; }
.legend { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.legend-item { display:flex; gap:8px; align-items:center; }
.legend-mark { width:9px; height:9px; flex:none; border:1px solid currentColor; }
.legend-element { color:var(--hd-plan-idle); background:#e9f0fc; }
.legend-hole { color:var(--hd-plan-idle); }
.legend-dimension { color:#347850; border-width:0 0 1px; height:1px; }
.page-footer { flex-wrap:wrap; }
.result-success { color:var(--b-TextStrong); }
@media(max-width:720px) {
  .windows { grid-template-columns:minmax(0,1fr); }
  .tool-mount { justify-self:center; width:min(336px,100%); }
  .demo-mount { position:static; width:min(336px,100%); justify-self:center; }
}
@media(max-width:480px) {
  .workspace { padding:8px; gap:8px; }
  .windows { gap:8px; }
}
@media(prefers-reduced-motion:reduce) { .drawing * { transition:none!important; } }
