.eave-steps{display:flex;flex-wrap:wrap;gap:4px;margin:9px 0 6px}
.eave-steps button{flex:1 1 auto;min-height:44px;padding:5px 9px;border:1px solid var(--edge);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;font-size:.84rem}
.eave-steps button[aria-pressed=true]{color:var(--leaf);border-color:var(--leaf);background:var(--pale);font-weight:650}
.eave-title{margin:8px 0 0;font-size:.92rem;color:var(--ink)}
.eave-state{margin:3px 0 7px;color:var(--muted);font-size:.86rem}
.eave-state[data-wait=true]{color:var(--estimate-ink)}
.gv-hidden-channel{stroke:#426874;stroke-width:.32;stroke-linejoin:round}
.gv-hidden-channel.asm-focus{fill:#48aab6!important;stroke:#196777!important}
.asm-stage.gutter-solid svg[data-view=iso]:not(.gv-xray) .gv-rib:not(.gv-pred),
.asm-stage.gutter-solid svg[data-view=iso]:not(.gv-xray) .gv-cut-skin:not(.gv-pred){fill-opacity:1}
.asm-stage[data-phase=frame] .gv-section-card,.asm-stage[data-phase=gutter] .gv-section-card,
.asm-stage[data-phase=early] .gv-section-card{display:none}
.eave-cross{display:flex;align-items:center;gap:10px;margin-top:7px;padding:7px 10px;border-radius:8px;background:var(--soft);border:1px solid var(--edge)}
.eave-cross svg{flex:0 0 44%;width:44%;height:74px;border-radius:5px;background:#f1f5f3}
.eave-cross p{margin:0;line-height:1.45;color:var(--ink);font-size:.82rem}
.eave-cross b{display:block;color:var(--leaf)}
.eave-cross[hidden],#eave-controls[hidden]{display:none}
.asm-stage.gutter-solid[data-current="4"] .asm-layer:not(.asm-off):not(.gv-pred){opacity:1}
@media screen {
  .gq-title-row{margin-bottom:12px}
  .gq-page{padding-top:14px}
  #live-preview{position:relative;isolation:isolate;border-radius:18px;padding:0;overflow:hidden;background:var(--paper);border:1px solid var(--edge);box-shadow:0 8px 28px #17392710}
  #live-preview .gq-preview-heading{background:#123d33;color:#f5faf4;padding:13px 16px 5px;display:flex;align-items:center;gap:10px;padding-right:74px}
  #live-preview .gq-preview-heading h2{color:inherit;font-size:1.04rem;font-weight:650}
  .uq-size{color:#c8dfce;font:500 .82rem/1.4 system-ui}
  #guide-app .uq-fold{display:none}
  #live-preview .gq-view-picker{display:flex;gap:4px;flex-wrap:wrap;margin:0;padding:6px 12px 9px;background:#123d33}
  #live-preview .gq-view-picker button,#guide-app .uq-fold{background:transparent;color:#dfefe6;border:1px solid #668a78;border-radius:8px;padding:4px 10px;min-height:36px;font-size:.83rem!important}
  #live-preview .gq-view-picker button[aria-pressed=true]{background:#eff6e9;color:#193c30!important;border-color:#eff6e9}
  #live-preview .gq-view-picker button:last-child{margin-inline-start:auto}
  #live-preview .gq-preview-image{margin:0;border:none;border-radius:0;background-color:var(--soft);background-image:linear-gradient(90deg,#6285721c 1px,transparent 1px),linear-gradient(#6285721c 1px,transparent 1px);background-size:18px 18px}
  #live-preview .gq-preview-image svg{display:block;width:100%;height:clamp(180px,22vw,260px);margin:auto}
  #live-preview #preview-caption{padding:5px 14px;font-size:.8rem}
  #live-preview .gq-total{border-top:1px solid var(--edge);padding:10px 15px;background:var(--paper);display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px}
  #live-preview .gq-total strong{font-size:1.22rem;font-variant-numeric:tabular-nums;color:var(--estimate-ink,#a6551e)}
  #live-preview .gq-total small{grid-column:1/-1}
  #live-preview .gq-total small:empty{display:none}
  #live-preview #preview-scope{display:none}
  .gq-form-column>.ws-intro{margin:1rem 0}
  .gq-form-column #ws-gallery>summary{min-height:44px}
  .uq-bill{box-sizing:border-box;width:min(550px,calc(100% - 20px));max-height:88dvh;padding:0;border:1px solid var(--edge);border-radius:18px;box-shadow:0 20px 70px #0004;background:var(--paper,#fff);color:var(--ink,#20372e);font:400 14px/1.55 PlexThai,system-ui,sans-serif}
  .uq-bill::backdrop{background:#112a23a6}
  .uq-bill-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px;position:sticky;top:0;background:#123d33;color:white;z-index:1}
  .uq-bill-head h2{margin:0;font-size:1.13rem}
  .uq-bill button{min-width:44px;min-height:44px;color:white;background:transparent;border:1px solid #87a397;border-radius:8px;font:inherit}
  .uq-bill-body{padding:5px 16px 15px}.uq-line{border-bottom:1px solid var(--edge,#ccd6cd)}
  .uq-line summary{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;padding:11px 0;cursor:pointer}
  .uq-line summary span{min-width:0}.uq-line summary strong,.uq-line summary small{display:block}.uq-line summary b{white-space:nowrap;font-variant-numeric:tabular-nums}
  .uq-line summary strong:after{content:' ⌄';color:var(--muted)}.uq-line[open] summary strong:after{content:' ⌃'}
  .uq-line summary small,.uq-date,.uq-line-info{color:var(--muted,#506357);font-size:.82rem}
  .uq-line-info{margin:0 0 11px;padding:6px 10px;border-left:2px solid #9bb79f;overflow-wrap:anywhere}
  .uq-totals{margin:12px 0}.uq-totals>div{display:flex;justify-content:space-between;gap:8px;padding:3px 0}
  .uq-grand{margin-top:6px;border-top:1px solid var(--edge);font-size:1rem}
  .uq-wait{color:var(--estimate-ink,#985019);font-weight:650}
  .uq-date{display:block}.uq-bill :focus-visible,#live-preview :focus-visible{outline:3px solid #c87b32;outline-offset:2px}
}
@media screen and (max-width:740px){
  #live-preview.gq-preview{display:block;position:relative;inset:auto;max-height:none;overflow:hidden;margin:0 0 12px;z-index:0}
  #mobile-preview.gq-mobile-preview{display:none!important}
  #guide-app .uq-fold{display:block;position:absolute;right:11px;top:3px;min-height:42px;border:0;text-decoration:underline}
  #live-preview .gq-view-picker button{min-height:44px}
  #live-preview .gq-preview-image svg{height:clamp(110px,18svh,166px)}
  #live-preview #symbol-key,#live-preview #plan-actions{margin:0 10px}
  #live-preview.uq-small .gq-preview-image,#live-preview.uq-small #preview-caption,#live-preview.uq-small #cad-controls,#live-preview.uq-small #plan-actions,#live-preview.uq-small #symbol-key{display:none}
  #live-preview .gq-total span,#live-preview .gq-total small{font-size:.78rem}
  .gq-page>.gq-title-row h1{font-size:1.22rem}
}

@media screen {
  .uq-examples{margin:-5px 0 10px;font-size:.84rem;color:var(--muted)}
  .uq-examples:has(#ws-starters[hidden]){display:none}
  .uq-examples summary{cursor:pointer;display:inline-flex;align-items:center;min-height:38px;color:var(--leaf);text-decoration:underline;text-underline-offset:3px}
  .uq-examples summary::before{content:'▸';margin-inline-end:5px}.uq-examples[open] summary::before{content:'▾'}
  .uq-examples #ws-starters{margin:0 0 8px;padding:8px 12px;background:var(--paper);border:1px solid var(--edge);border-radius:10px}
  .uq-examples #ws-starters>strong{display:none}
  #live-preview .gq-view-picker button{flex:1 1 auto;white-space:nowrap;padding-inline:8px}
  #guide-app .uq-bill-head button{color:#fff}
  #guide-app .uq-bill .uq-bill-body{color:var(--ink)}
  #ws-example-tag:not([hidden]){font-size:.82rem}
}
@media screen and (max-width:740px) {
  #question-panel #geometry-illustration{display:none}
}

@media screen {
  #live-preview .uq-expand{display:block;float:right;position:relative;margin:-36px 7px 0 0;min-height:32px;padding:2px 9px;border-radius:7px;border:1px solid var(--control-edge,var(--edge));background:var(--paper);color:var(--leaf);font-size:.8rem;font-weight:600}
  #live-preview.uq-small .uq-expand{display:none}
  #live-preview #preview-caption{clear:both}
  #guide-app .uq-drawing{width:min(94vw,1000px);max-height:92dvh;box-sizing:border-box;padding:0;border-radius:14px;border:1px solid var(--edge);background:var(--paper);color:var(--ink)}
  .uq-drawing::backdrop{background:#102c24b5}
  .uq-drawing-tools{display:flex;align-items:center;gap:8px;padding:7px 10px;background:#143e32;color:white}
  #guide-app .uq-drawing-tools button{min-width:44px;min-height:44px;background:transparent;border:1px solid #9bb3a7;border-radius:7px;color:white}
  .uq-drawing-tools button:last-child{margin-inline-start:auto}
  .uq-drawing-scroll{overflow:auto;max-height:74dvh;background:var(--soft);overscroll-behavior:contain}
  .uq-drawing-scroll #preview-image{display:block;width:var(--uq-drawing-width);max-width:none;margin:0;border:0}
  .uq-drawing-scroll #preview-image svg{display:block;width:100%;height:auto;max-height:none}
}
.cad-pack{background:var(--soft,#edf4ee);border:1px solid var(--edge,#b5c8bd);border-radius:14px;padding:16px;margin:8px 0 16px;color:var(--ink,#17372f)}
.cad-pack h3{margin:0;font-size:1.13rem}.cad-measure{margin:.35rem 0 .9rem;color:var(--leaf);font-variant-numeric:tabular-nums}.cad-pack small{display:block;font-size:.8rem;color:var(--muted);margin-top:.6rem}
.cad-files{display:flex;flex-wrap:wrap;gap:7px}.cad-files button{min-height:44px}.cad-feedback:empty{display:none}.cad-feedback{margin:.5rem 0 0}
.cad-sheet-menu{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:6px;background:var(--paper,#fff);color:var(--ink,#183b2f);font:500 14px/1.4 system-ui}
.cad-sheet-menu select{max-width:95vw;min-height:38px;font:inherit;color:inherit;background:inherit;border:1px solid currentColor;border-radius:5px}
@media screen{#document-output .cad-other-sheet{display:none}}
@media screen and (max-width:740px){body:has(#question-panel[data-question=review]) #pv-dock,body:has(#question-panel[data-question=geometry]) #pv-dock{display:none}
body:has(#question-panel:not([data-question=review]):not([data-question=geometry])) #live-preview:not(.mobile-open){display:none}
}

.gqd-layer-off {display:none!important}
.gq-k-access-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(12em,1fr));gap:.4rem;margin:0 0 .7rem;padding:.5rem;border:1px solid #ccd8d1}.gq-k-access-options button[aria-pressed=true]{outline:2px solid var(--leaf,#146348);font-weight:700}.gq-access-opening{stroke:#f6f5ee;stroke-width:4}.gq-access-leaf{stroke:#275f57;stroke-width:1.8}
.gqd-reference-wall {stroke:#687378;stroke-width:2;fill:none}
.gqd-layer-options {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.1rem 1rem;width:100%}
.gqd-layer-option {display:flex;align-items:center;justify-content:space-between;gap:.3rem;border-bottom:1px solid #d3dcd4}
.gqd-layer-option label {min-height:44px;flex:1}
.gqd-layer-option button,.gqd-layers [data-action=layer-default] {min-height:44px}
.gqd-view-settings {width:100%}.gqd-view-settings summary {cursor:pointer;min-height:44px;align-content:center}.gqd-view-settings[open] .gqd-layer-options {margin-bottom:.4rem}
.gqd-layer-state {align-self:center;font-size:.88rem}
@media screen {.gqd-screen-hidden {display:none!important}}

.gq-counter-base {stroke:#894a24;stroke-width:1.7;stroke-dasharray:5 3}
.cad-sheet-menu label {min-width:0}
.cad-sheet-menu select {max-width:min(95vw,32rem)}
.gqd-layers {display:flex;flex-wrap:wrap;gap:4px 12px;margin:0;min-width:0;border:1px solid #b9c7be;border-radius:6px;padding:3px 8px}
.gqd-layers[hidden] {display:none}
.gqd-layers legend {font-size:.8rem}
.gqd-layers label {display:inline-flex;align-items:center;min-height:30px}
@media screen and (max-width:650px) {
  .cad-sheet-menu {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);text-align:left}
  .cad-sheet-menu select {width:100%;display:block}
  .cad-sheet-menu small,.gqd-layers {grid-column:1/-1}
}
@media print {
  #document-output .gqd-print-excluded {display:none!important}
  #document-output .gqd-print-last {break-after:auto;page-break-after:auto}
}

.gqd-crew-trades {
  flex-basis:100%; grid-column:1/-1; min-width:0; max-width:48rem;
  margin:0 auto; padding:.25rem .6rem .5rem; width:100%; box-sizing:border-box;
  border:1px solid var(--edge,#b5c8bd); border-radius:.5rem;
}
.gqd-crew-trades legend {padding:0 .3rem;font-weight:650}
.gqd-crew-grid {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12.5rem),1fr));
  gap:0 .75rem;max-height:32vh;overflow:auto;overscroll-behavior:contain;
}
.gqd-crew-grid label {display:flex;gap:.4rem;align-items:center;min-height:44px;cursor:pointer}
.gqd-crew-grid input {flex:none;width:1rem;height:1rem;accent-color:var(--leaf,#246447)}
.gqd-crew-total {margin-left:auto;white-space:nowrap;font-size:.8rem}
.gqd-print-status {display:flex;grid-column:1/-1;align-items:center;justify-content:center;gap:.5rem;flex-wrap:wrap}
.gqd-print-status button {min-height:44px}
.gqd-crew-trades[hidden], .gqd-print-status button[hidden] {display:none}
