/* หลังคาสวย · มุมมอง 2 มิติ/3 มิติ */
.gv-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:12px}
.gv-tabs button,.gv-tools button{min-height:44px;border:1px solid var(--edge);border-radius:8px;background:var(--paper);padding:4px 6px;font-size:.86rem!important}
.gv-tabs button[aria-pressed=true],.gv-tools button[aria-pressed=true]{background:var(--pale);border-color:var(--leaf);color:var(--leaf)!important;font-weight:600!important}
.gv-tools{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.gv-tools button{min-width:44px}
.gv-caption{margin:8px 0 0!important;font-size:.85rem;color:var(--muted)}
.gv-wait{margin:6px 0 0!important;padding:7px 10px;border-radius:8px;background:var(--estimate-bg);color:var(--estimate-ink);font-size:.82rem}
.asm-stage svg{max-height:440px}
.asm-stage[data-view=iso]{cursor:grab;touch-action:pan-y}
.asm-stage[data-view=iso].gv-dragging{cursor:grabbing}
.gv-house{fill:#d9dcd4;stroke:#7d857f;stroke-width:1.4;fill-opacity:.85}
.gv-ground{fill:#e9e8de;stroke:#7d8a84;stroke-width:1.2}
.gv-slab{fill:#dfe9e2;stroke:#2f4a4a;stroke-width:1}
.gv-post{fill:#54697a;stroke:#2c3d4b;stroke-width:.7}
.gv-post.gv-concrete{fill:#b6b0a0;stroke:#6f6957}
.gv-post.gv-tube{fill:#2c3d4b;stroke:#17222b}
.gv-post.gv-plate{fill:#8d9089;stroke:#5a665f}
.gv-frame{stroke-width:3;stroke-linecap:round;stroke:#33403d}
.gv-frame.gv-old{stroke:#8b958f}
.gv-roof{stroke:#1f3e42;stroke-width:1.4}
.gv-xray .gv-roof,.gv-xray .gv-ceiling,svg[data-view=top] .gv-roof,svg[data-view=top] .gv-ceiling{fill-opacity:.2}
.gv-ceiling{fill:#f6f4e9;stroke:#68716f;stroke-width:1.2}
.gv-gutter{stroke:#21788c;stroke-width:4.5;stroke-linecap:round}
.gv-wall{fill:#8d9089;fill-opacity:.35;stroke:#4d514c}
.gv-item circle{fill:#e5f5fc;stroke:#27677d;stroke-width:1.2}
.gv-lamp circle{fill:#fbd975;stroke:#6e521a}
.gv-item text{font:600 10px Tahoma,Arial,sans-serif;fill:#243d43;paint-order:stroke;stroke:#fff;stroke-width:3px}
.gv-pred{stroke:#b4580f!important;stroke-dasharray:5 3;fill-opacity:.4}
polygon.gv-pred{fill:#f6dcbc}
.gv-pred.gv-item circle{stroke:#b4580f;stroke-dasharray:2 2}
.gv-hide-pred .gv-pred{display:none}
.gv-dim line{stroke:#3b637f;stroke-width:.7}
.gv-dim .gv-dim-main{stroke-width:1.2}
.gv-dim text{font:600 11px Tahoma,Arial,sans-serif;fill:#294d69;text-anchor:middle;paint-order:stroke;stroke:#f1f5f0;stroke-width:3px}
.gv-dim-wait line{stroke:#b4580f}
.gv-dim-wait text{fill:#8a3f08}

.gv-steel{stroke-width:2;stroke-linecap:round}
.gv-steel-purlin,.gv-steel-gsup,.gv-steel-cap{stroke-width:1.1}
.gv-elec{fill:none;stroke:#8a2be2;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gv-elec.gv-flex{stroke:#c026d3}
.asm-layer.gv-elec.gv-pred{fill:none;stroke:#8a2be2!important}
.gv-downpipe{stroke:#21788c;stroke-width:2}
.gv-shift{stroke-width:1.2}
.gv-arrow{fill:#b4580f}
.gv-flow line{stroke:#17658a;stroke-width:1.6}
.gv-flow path{fill:#17658a}
.gv-flow text{font:700 11px Tahoma,Arial,sans-serif;fill:#17658a;text-anchor:middle;paint-order:stroke;stroke:#fff;stroke-width:3px}
.gv-on-steel .gv-roof{fill-opacity:.3}
.gra-panel{margin-top:12px;border:1px solid var(--edge);border-radius:10px;padding:10px 12px}
.gra-panel h3{margin:0 0 6px!important;font-size:1rem;font-weight:600}
.gra-panel ul{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:.86rem}
.gra-panel li{padding-left:10px;border-left:3px solid var(--leaf)}
.gra-panel li[data-lvl=wait],.gra-panel li[data-lvl=stop]{border-left-color:#c4651a;color:var(--estimate-ink)}
.gra-panel li[data-lvl=stop]{font-weight:600}
.gra-panel li[data-lvl=red]{border-left-color:#c62828;color:var(--error-ink);font-weight:600}
.gra-red{color:#b3261e!important;font-weight:700}
.gra-over{margin-top:10px;padding:10px 12px;border:1px solid var(--edge);border-radius:10px}
.gra-over label{display:grid;gap:4px;font-size:.92rem;font-weight:600}
.gra-over-row{display:grid;grid-template-columns:48px 1fr 48px;gap:8px;align-items:center;margin-top:6px}
.gra-over button{min-height:44px;border:1px solid var(--edge);border-radius:8px;background:var(--paper);color:var(--leaf)!important;font-weight:600!important}
.gra-over button:disabled{opacity:.45}
.gra-over input{width:100%;min-height:44px;accent-color:var(--leaf)}
.gra-over small{display:block;font-size:.8rem;color:var(--muted)}
.gra-panel li small{display:block;font-size:.8rem;font-weight:400;color:var(--muted)}
.gra-panel table{width:100%;border-collapse:collapse;font-size:.82rem;margin-top:4px}
.gra-panel td,.gra-panel th{padding:4px 3px;border-bottom:1px solid var(--edge);text-align:left;vertical-align:top}
.gra-panel details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--leaf)}
.gra-upgrade{min-height:44px;margin-top:8px}
.gra-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:16px}
.gra-fig{display:grid;gap:8px;align-content:start}
.gra-view svg{width:100%;height:auto;max-height:105mm;display:block}
.gra-side{display:grid;gap:8px;align-content:start;min-width:0}
.gra-notes{margin:0;padding-left:18px;font-size:9.5pt}
@media(max-width:740px){.gra-layout{grid-template-columns:minmax(0,1fr)}}
@media print{.gra-layout{grid-template-columns:1.35fr 1fr}}

/* Thin outlines keep the visible depth tied to the projected geometry. */
.gv-cut-steel{stroke:#3c505b;stroke-width:.32;stroke-linejoin:round}
.gv-cut-skin,.gv-cut-core{stroke:#596f76;stroke-width:.32;stroke-linejoin:round}
.gv-xray .gv-cut-core,svg[data-view=top] .gv-cut-core{fill-opacity:.2}
.gv-section-card .gv-panel{fill:#f8faf9;stroke:#cad7d3;stroke-width:.8}
.gv-section-card text{font:9px Tahoma, sans-serif;fill:#294350;text-anchor:start;stroke:none}
.gv-section-card .gv-section-title{font-weight:700;font-size:10.5px}
.gv-section-card .gv-section-note{fill:#8d440c;font-size:9px}

.gv-roof.gv-rib{stroke:#768e97;stroke-width:.15;stroke-linejoin:round}

svg[data-view=iso]:not(.gv-xray) .gv-roof:not(.gv-pred){fill-opacity:1}
