/* Quick build (quick.js, 2026-11-12): the guided screens over the same design. Uses builder.css tokens. */

.quick,.loader,#zipDialog,.guide-pins{--ease-out:cubic-bezier(.23,1,.32,1);--ease-io:cubic-bezier(.77,0,.175,1)}
/* The 3D gives up some width to the questions (owner: "si tienes que achicar el espacio del 3D… hazlo"). */
@media (min-width:901px){body.quick-on{--panel:500px}}
@media (min-width:1200px){body.quick-on{--panel:560px}}

/* Quick build | All options: always at the top of the panel, in both modes. */
.qmode{display:flex;gap:3px;margin:12px 16px 0;padding:3px;border-radius:var(--r);background:var(--bg)}
.qmode button{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 10px;border:0;border-radius:4px;background:transparent;color:var(--ink-2);font:700 16px/1.1 var(--font);white-space:nowrap;transition:background .2s,color .2s}
.qmode button svg{width:18px;height:18px;flex:none}
.qmode button[aria-pressed=true]{background:var(--navy);color:#fff}
@media (hover:hover){.qmode button[aria-pressed=false]:hover{background:#fff}}

/* The full editor's parts step aside while the quick build is on (and the other way round). */
.quick-on .panel>.steps,.quick-on .panel>.panes,.quick-on .panel>.finder{display:none!important}
.quick{flex:1;min-height:0;display:flex;flex-direction:column}

/* Where you are: one animated icon per step (builder-quick partial $stepIcons). Grey ahead, navy done, orange here.
   Each icon acts out its step once when the step opens, and on hover: the roof drops on, the plan stretches, the roof
   ribs draw in, the panels rise, the door rolls up, the swatches fan out, the tag swings. */
.q-head{padding:10px 8px 0;border-bottom:1px solid var(--line-soft);background:#fff}
.q-steps{display:flex;margin:0;padding:0;list-style:none}
.q-steps li{flex:1 1 0;min-width:0}
.q-steps button{width:100%;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:60px;padding:2px 1px 10px;border:0;background:none;color:#97a1ad;font:700 13.5px/1.1 var(--font);letter-spacing:-.01em;position:relative;transition:color .2s}
.q-steps button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qi{width:32px;height:32px;overflow:visible;--qi-fill:#fff}
.qi *{transform-box:fill-box}
.q-steps .done button{color:var(--navy)}
.q-steps [aria-current=step]{color:var(--ink)}
.q-steps [aria-current=step] .qi{color:var(--accent);--qi-fill:#fff1e6}
.q-steps [aria-current=step]::after{content:"";position:absolute;left:20%;right:20%;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--navy)}
.q-steps button:active .qi{transform:scale(.92);transition:transform .12s var(--ease-out)}
.qi-sw1{transform-origin:50% 95%;transform:rotate(-24deg)}
.qi-sw3{transform-origin:50% 95%;transform:rotate(24deg)}
.qi-tag{transform-origin:78% 22%}
.qi-pan{transform-origin:50% 100%}
.qi-plan{transform-origin:50% 50%}
@media (prefers-reduced-motion:no-preference){
  .q-steps [aria-current=step] .qi-roof{animation:qiDrop .55s var(--ease-out) both}
  .q-steps [aria-current=step] .qi-door,.q-steps [aria-current=step] .qi-tri,.q-steps [aria-current=step] .qi-rib{stroke-dasharray:1;animation:qiDraw .5s var(--ease-out) .12s both}
  .q-steps [aria-current=step] .qi-rib{animation-delay:var(--d,.12s)}
  .q-steps [aria-current=step] .qi-l{animation:qiOutL .6s var(--ease-out) both}
  .q-steps [aria-current=step] .qi-r{animation:qiOutR .6s var(--ease-out) both}
  .q-steps [aria-current=step] .qi-plan{animation:qiStretch .6s var(--ease-out) both}
  .q-steps [aria-current=step] .qi-pan{animation:qiRise .45s var(--ease-out) both}
  .q-steps [aria-current=step] .qi-pan{animation-delay:var(--d,0s)}
  .q-steps [aria-current=step] .qi-slats{animation:qiRoll 1.1s var(--ease-io) both}
  .q-steps [aria-current=step] .qi-sw1{animation:qiFanL .6s var(--ease-out) both}
  .q-steps [aria-current=step] .qi-sw3{animation:qiFanR .6s var(--ease-out) both}
  .q-steps [aria-current=step] .qi-tag{animation:qiSwing .9s var(--ease-out) both}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine){
  .q-steps button:hover .qi-roof{animation:qiDrop .55s var(--ease-out) both}
  .q-steps button:hover .qi-l{animation:qiOutL .6s var(--ease-out) both}
  .q-steps button:hover .qi-r{animation:qiOutR .6s var(--ease-out) both}
  .q-steps button:hover .qi-plan{animation:qiStretch .6s var(--ease-out) both}
  .q-steps button:hover .qi-rib,.q-steps button:hover .qi-tri{stroke-dasharray:1;animation:qiDraw .5s var(--ease-out) both}
  .q-steps button:hover .qi-pan{animation:qiRise .45s var(--ease-out) both}
  .q-steps button:hover .qi-slats{animation:qiRoll 1.1s var(--ease-io) both}
  .q-steps button:hover .qi-sw1{animation:qiFanL .6s var(--ease-out) both}
  .q-steps button:hover .qi-sw3{animation:qiFanR .6s var(--ease-out) both}
  .q-steps button:hover .qi-tag{animation:qiSwing .9s var(--ease-out) both}
  .q-steps button:hover{color:var(--ink)}
}
@keyframes qiDrop{from{transform:translateY(-6px);opacity:0}to{transform:none;opacity:1}}
@keyframes qiDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes qiOutL{from{transform:translateX(4px)}to{transform:none}}
@keyframes qiOutR{from{transform:translateX(-4px)}to{transform:none}}
@keyframes qiStretch{from{transform:scaleX(.72)}to{transform:none}}
@keyframes qiRise{from{transform:scaleY(.15)}to{transform:none}}
@keyframes qiRoll{0%{transform:none}45%,55%{transform:translateY(-13px)}100%{transform:none}}
@keyframes qiFanL{from{transform:rotate(0)}to{transform:rotate(-24deg)}}
@keyframes qiFanR{from{transform:rotate(0)}to{transform:rotate(24deg)}}
@keyframes qiSwing{0%{transform:rotate(-18deg)}40%{transform:rotate(10deg)}70%{transform:rotate(-4deg)}100%{transform:none}}
.q-count{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:-1px}

.q-body{flex:1;overflow-y:auto;padding:20px 20px 26px;overscroll-behavior:contain}
.q-pane h2{font:800 26px/1.05 var(--display);font-stretch:94%;text-transform:uppercase;letter-spacing:0;margin:0 0 16px;outline:0}
.q-pane h3{font:700 15px/1.2 var(--font);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:18px 0 10px;display:flex;justify-content:space-between;align-items:baseline}
@media (prefers-reduced-motion:no-preference){
  .q-in-fwd{animation:qInFwd .3s var(--ease) both}
  .q-in-back{animation:qInBack .3s var(--ease) both}
}
@keyframes qInFwd{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@keyframes qInBack{from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:none}}

/* Shared: a picked tile gets the navy ring and the check, like the building types. */
.q-tile,.q-size,.q-dsz{position:relative;border:1.5px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);text-align:left;transition:border-color .2s,box-shadow .2s,transform .15s var(--ease)}
.q-tile:active,.q-size:active,.q-dsz:active,.q-use:active,.q-roof:active{transform:scale(.985)}
@media (hover:hover){.q-tile:hover,.q-size:hover,.q-dsz:hover{border-color:#8d97a3}}
.q-tile[aria-pressed=true],.q-size[aria-pressed=true],.q-dsz[aria-pressed=true]{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy)}
.q-tile[aria-pressed=true]::after,.q-size[aria-pressed=true]::after{content:"";position:absolute;top:7px;right:7px;width:20px;height:20px;border-radius:50%;background:var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}

/* 0 · What it is for: the building pictures. */
.q-uses{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.q-use .type-text{padding:8px 10px 10px}
.q-use .type-text strong{font-size:16.5px;line-height:1.15}

/* 1 · Size cards + the exact size. */
.q-sizes{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.q-size{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px 14px 12px}
.q-size b{font:800 23px/1 var(--display);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.q-plan{display:block;width:100%;height:46px}
.q-plan rect{fill:rgba(0,34,99,.07);stroke:var(--navy);stroke-width:1.3;transition:fill .2s,stroke .2s}
.q-plan path{stroke:var(--navy);stroke-width:1;stroke-dasharray:2 2;opacity:.55}
.q-size[aria-pressed=true] .q-plan rect{fill:rgba(211,100,31,.16);stroke:var(--accent)}
.q-exact{margin-top:18px;border-top:1px solid var(--line-soft)}
.q-stepper{display:flex;align-items:center;gap:8px}
.q-exact .q-stepper{padding:10px 0;border-bottom:1px solid var(--line-soft)}
.q-stepper-label{flex:1;font-size:17.5px;font-weight:600}
.q-stepper output{min-width:58px;text-align:center;font:800 22px/1 var(--display);font-variant-numeric:tabular-nums}
.q-step{width:44px;height:44px;flex:none;display:grid;place-items:center;border:1px solid var(--line);border-radius:var(--r);background:#fff;color:var(--ink);font:500 24px/1 var(--font);transition:background .2s}
@media (hover:hover){.q-step:hover:not(:disabled){background:var(--bg)}}
.q-step:disabled{opacity:.35;cursor:default}

/* 2 · Roof styles in a row. */
.q-roofs{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px}
.q-roofs .style{padding:10px 10px 12px}
.q-roofs .style svg{width:100%;max-width:88px;height:auto}
.q-roofs .style-name{flex-direction:column;gap:2px}
.q-roofs .style-name strong{font-size:16px}

/* 3 · Walls and 5 · colors: the little building. */
.q-walls,.q-combos{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.q-tile{display:flex;flex-direction:column;padding:0;overflow:hidden}
.q-art{display:block;aspect-ratio:96/66;padding:8px 10px 2px;background:linear-gradient(180deg,#f7f9fb,#e8ecf1)}
.q-art svg{display:block;width:100%;height:100%}
.q-tile b{display:block;padding:8px 10px 10px;font:800 16px/1.15 var(--display);font-stretch:94%;text-transform:uppercase;letter-spacing:.01em}
.q-combo b{font-size:14.5px;text-transform:none;font-family:var(--font);font-weight:700;letter-spacing:-.005em}
/* Round 5 (owner: "mejora la calidad… animaciones de última generación"): the walls drawn in 3D (quick.js house()),
   lit faces, ribbed panels, tube posts, soft shadow; picking one builds it. */
.qa-defs{position:absolute;width:0;height:0;overflow:hidden}
.q-walls .q-art{padding:6px 6px 0;background:radial-gradient(120% 90% at 50% 30%,#fdfdfe 0%,#eef1f5 62%,#e2e7ee 100%);transition:background-color .2s ease}
.q-walls .q-tile[aria-pressed=true] .q-art{background:radial-gradient(120% 90% at 50% 30%,#fbfcff 0%,#e9effa 62%,#dae3f2 100%)}
.q-walls .q-art svg{overflow:visible;transform-origin:50% 60%;transition:transform .45s var(--ease-out)}
.qa-cast{fill:rgba(14,26,50,.2);filter:url(#qaSoft)}
.qa-floor{fill:rgba(14,26,50,.14)}
.qa-face{stroke:rgba(12,18,30,.32);stroke-width:.3;stroke-linejoin:round}
.qa-post polygon{stroke:rgba(12,18,30,.3);stroke-width:.18}
.qa-rib{fill:none;stroke:rgba(0,0,0,.17);stroke-width:.3}
.qa-crest{fill:none;stroke:rgba(255,255,255,.34);stroke-width:.3}
.qa-ao{fill:url(#qaAO);pointer-events:none}
.qa-sheen{fill:url(#qaSheen);pointer-events:none}
.qa-glint{fill:#fff;opacity:0}
.qa-trim{fill:none;stroke-width:.85;stroke-linecap:round;stroke-linejoin:round}
.qa-ridge{stroke-width:1.15}
/* The tiles come in one after another when the screen opens; the check lands when one is picked. */
@keyframes qaTileIn{from{opacity:0;transform:translateY(10px)}}
@keyframes qaCheck{from{opacity:0;transform:scale(.7)}}
.q-pane:not([hidden]) .q-walls>.q-tile{animation:qaTileIn .45s var(--ease-out) backwards}
.q-pane:not([hidden]) .q-walls>.q-tile:nth-child(2){animation-delay:50ms}
.q-pane:not([hidden]) .q-walls>.q-tile:nth-child(3){animation-delay:100ms}
.q-pane:not([hidden]) .q-walls>.q-tile:nth-child(4){animation-delay:150ms}
.q-walls .q-tile[aria-pressed=true]::after{animation:qaCheck .3s var(--ease-out) backwards}
/* The build: posts stand up, the walls rise from the ground one after the other, light runs across the roof. */
@keyframes qaPost{from{opacity:0;transform:scaleY(.3)}}
@keyframes qaRise{from{clip-path:inset(100% 0 0 0);opacity:.5}to{clip-path:inset(0 0 0 0);opacity:1}}
@keyframes qaGlint{0%{opacity:0;transform:translate(0,0)}30%{opacity:.5}100%{opacity:0;transform:translate(58px,-21px)}}
.qa-post{transform-box:fill-box;transform-origin:50% 100%}
.u-build .qa-post{animation:qaPost .36s var(--ease-out) backwards;animation-delay:calc(var(--n) * 26ms)}
.u-build .qa-w{animation:qaRise .46s var(--ease-out) backwards;animation-delay:calc(var(--n) * 80ms)}
.u-build .qa-glint{animation:qaGlint .75s var(--ease-io) .38s backwards}
@media (prefers-reduced-motion:reduce){
  .q-pane:not([hidden]) .q-walls>.q-tile,.q-walls .q-tile[aria-pressed=true]::after,.u-build .qa-post,.u-build .qa-w,.u-build .qa-glint{animation:none}
  .q-walls .q-art svg{transition:none}
}

/* 4 · Doors and windows: pick one (big tiles); the building shows where it goes; what was added is listed. */
.q-lead{margin:-8px 0 14px;font-size:17px;font-weight:600;color:var(--ink-2)}
.q-adds{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.q-add{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:118px;padding:14px 6px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-align:center;transition:border-color .2s,box-shadow .2s,transform .15s var(--ease-out)}
.q-add:active{transform:scale(.97)}
@media (hover:hover){.q-add:hover{border-color:#8d97a3}}
.q-add b{font:800 15.5px/1.15 var(--display);font-stretch:94%;text-transform:uppercase;letter-spacing:.01em}
.q-add-icon{position:relative;width:56px;height:56px;display:grid;place-items:center;border-radius:50%;background:var(--bg);color:var(--navy);transition:background .2s,color .2s}
.q-add-icon svg{width:34px;height:34px}
.q-add[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.q-add[aria-pressed=true] .q-add-icon{background:var(--accent);color:#fff}
.q-add[aria-pressed=true] .q-add-icon::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid var(--accent);opacity:0}
@media (prefers-reduced-motion:no-preference){.q-add[aria-pressed=true] .q-add-icon::after{animation:qRing 1.4s var(--ease-out) infinite}}
@keyframes qRing{from{opacity:.8;transform:scale(.9)}to{opacity:0;transform:scale(1.35)}}
.q-add-n{position:absolute;top:8px;right:8px;min-width:24px;height:24px;padding:0 6px;border-radius:12px;background:var(--navy);color:#fff;font:800 14px/24px var(--font);text-align:center}
.q-door-sizes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.q-dsz{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:52px;padding:7px 4px;text-align:center}
.q-dsz b{font:800 17px/1.1 var(--display);font-variant-numeric:tabular-nums;white-space:nowrap}
.q-dsz small{font-size:14.5px;font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums}
.q-dsz small:empty{display:none}
/* The coach while placing: a hand tapping, and what to do. */
.q-coach{display:flex;align-items:center;gap:12px;margin-top:12px;padding:12px 14px;border:1.5px solid var(--accent);border-radius:10px;background:#fff6ef}
.q-coach p{flex:1;margin:0;display:flex;flex-direction:column;gap:2px}
.q-coach b{font-size:17px;line-height:1.25}
.q-coach span{font-size:15px;font-weight:600;color:var(--ink-2)}
.q-hand{flex:none;width:46px;height:46px;color:var(--navy);overflow:visible}
.q-tap{fill:none;stroke:var(--accent);stroke-width:2.6;transform-box:fill-box;transform-origin:center;opacity:0}
@media (prefers-reduced-motion:no-preference){
  .q-coach:not([hidden]) .q-hand>path{animation:qPress 1.3s var(--ease-io) infinite;transform-box:fill-box;transform-origin:30% 0}
  .q-coach:not([hidden]) .q-tap{animation:qTap 1.3s var(--ease-out) infinite}
  .q-coach:not([hidden]){animation:qCoachIn .25s var(--ease-out) both}
}
@keyframes qPress{0%,100%{transform:none}40%{transform:translateY(3px) scale(.96)}}
@keyframes qTap{0%,30%{opacity:0;transform:scale(.4)}45%{opacity:.9}100%{opacity:0;transform:scale(1.5)}}
@keyframes qCoachIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.q-fix{min-height:40px;padding:0 12px;border:1.5px solid var(--navy);border-radius:var(--r);background:#fff;color:var(--navy);font:700 15.5px/1 var(--font)}
@media (hover:hover){.q-fix:hover{background:#eef2f9}}
/* What was added: tap a row to see it on the building, the cross removes it. */
.q-placed{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.q-placed:empty{display:none}
.q-placed li{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.q-pl{flex:1;display:flex;align-items:center;gap:12px;min-height:54px;padding:6px 12px;border:0;background:none;text-align:left}
@media (hover:hover){.q-pl:hover{background:var(--bg)}}
.q-pl-icon{flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:8px;background:var(--bg);color:var(--navy)}
.q-pl-icon svg{width:26px;height:26px}
.q-pl-t{display:flex;flex-direction:column;gap:1px}
.q-pl-t b{font-size:16.5px}
.q-pl-t small{font-size:14.5px;font-weight:600;color:var(--muted)}
.q-pl-x{width:52px;border:0;border-left:1px solid var(--line-soft);background:none;color:var(--muted);display:grid;place-items:center}
.q-pl-x svg{width:20px;height:20px}
@media (hover:hover){.q-pl-x:hover{background:#fdecec;color:var(--err)}}
@media (prefers-reduced-motion:no-preference){.q-placed li{animation:qCoachIn .25s var(--ease-out) both}}

/* Text links: to the full editor and the like. */
.q-link{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin-top:10px;padding:0 2px;border:0;background:none;color:var(--navy);font:700 16.5px/1.2 var(--font)}
.q-link svg{width:18px;height:18px;transition:transform .2s var(--ease)}
@media (hover:hover){.q-link:hover svg{transform:translateX(3px)}}

/* 5 · Each color yourself. */
.q-own{margin-top:14px;border-top:1px solid var(--line-soft)}
.q-own summary{display:flex;align-items:center;min-height:48px;cursor:pointer;color:var(--navy);font:700 16.5px/1.2 var(--font);list-style:none}
.q-own summary::-webkit-details-marker{display:none}
.q-own summary::after{content:"";width:9px;height:9px;margin-left:10px;border-right:2.2px solid currentColor;border-bottom:2.2px solid currentColor;transform:rotate(45deg) translateY(-3px);transition:transform .2s var(--ease)}
.q-own[open] summary::after{transform:rotate(-135deg) translateY(-1px)}
.q-own h3:first-of-type{margin-top:4px}

/* 6 · Your building: what you picked, each row opens its step. */
.q-chips{margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.q-chips li+li{border-top:1px solid var(--line-soft)}
.q-chips button{width:100%;display:flex;align-items:center;gap:12px;min-height:50px;padding:8px 14px;border:0;background:#fff;text-align:left}
@media (hover:hover){.q-chips button:hover{background:var(--bg)}}
.q-chips button::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid var(--muted);border-top:2px solid var(--muted);transform:rotate(45deg)}
.q-chip-k{flex:0 0 76px;font-size:14.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.q-chip-v{flex:1;display:flex;align-items:center;gap:6px;font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.q-chip-v i{width:20px;height:20px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.q-zip{margin-top:14px}
.q-pay .paystep{margin-top:16px;grid-template-columns:minmax(0,1fr)}
.q-pay .plan{grid-template-columns:auto minmax(0,1fr) auto}
.q-pay .plan span{min-width:0;overflow-wrap:anywhere}
.q-done-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.q-done-actions .btn{flex:1 1 180px;gap:8px;letter-spacing:.05em}
.q-done-actions .btn svg{width:20px;height:20px;flex:none}
.q-more{display:flex;flex-wrap:wrap;gap:0 18px;margin-top:6px}

/* The price bar: Back and Next while building; pricing actions on the last screen. */
.q-only{display:none}
.quick-on .q-only{display:inline-flex}
.quick-on #next,.quick-on .extras-summary{display:none!important}
.quick-on:not(.q-last) .pricebar :is([data-open-quote],[data-buy],[data-qs-proxy]){display:none!important}
.quick-on.q-last #qNext{display:none!important}
.quick-on #qNext{min-width:132px}

/* Phones: a shorter 3D so the question shows under it, one row of price and buttons. */
@media (max-width:900px){
  .quick-on .stage{height:36vh;min-height:230px}
  /* Placing a door: the building gets the room, to tap the spot. */
  .quick-on.placing-2d .stage{height:56vh}
  .quick-on .cam-seg{display:none}
  .quick-on .q-body{overflow:visible;padding:18px 16px 22px}
  .quick-on .q-head{position:sticky;top:0;z-index:3}
  .qmode{margin:14px 14px 0}
  /* One row when it fits; on a very narrow phone the buttons take their own row instead of widening the page. */
  .quick-on .pricebar{flex-wrap:wrap;gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))}
  .quick-on .pricebar>div:first-child{flex:1 1 auto;min-width:0}
  .quick-on .pricebar .price{font-size:25px}
  .quick-on .pricebar .fine{font-size:12px;white-space:normal;line-height:1.25}
  .quick-on .pricebar .zip-cta{white-space:normal;text-align:left}
  .quick-on .pricebar-actions{flex:0 1 auto;gap:6px;margin-left:auto;max-width:100%}
  .quick-on .pricebar .btn{padding:0 11px;font-size:15px;letter-spacing:.03em}
  .quick-on #qNext{min-width:0}
  .q-pane h2{font-size:23px;margin-bottom:14px}
}
@media (max-width:380px){
  .q-steps button{font-size:11.5px}
  .quick-on #qBack{padding:0 9px}
  .quick-on .pricebar .price{font-size:22px}
  .q-size{padding:10px 11px}
  .q-size b{font-size:19px}
  .q-add{min-height:104px;padding:12px 4px 10px}
  .q-add-icon{width:48px;height:48px}
  .q-add b{font-size:14px}
  .q-dsz b{font-size:15px}
  .q-chip-k{flex-basis:64px;font-size:13px}
  .q-chip-v{font-size:16px}
  .qmode button{gap:5px;padding:0 6px;font-size:14.5px;white-space:normal;text-align:center;line-height:1.1}
  .qmode button svg{width:16px;height:16px}
  .q-pay .paystep{padding:14px 12px}
  .q-pay .plan{gap:8px;padding:10px}
  .q-pay .plan strong{font-size:17px}
}
@media (prefers-reduced-motion:reduce){.q-tile,.q-size,.q-dsz,.q-step,.q-link svg,.q-add,.q-plan rect{transition:none}}

/* "Tap here" pins over the 3D while placing (app.js guideTick moves each one over its spot). */
.guide-pins{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.guide-pin{position:absolute;left:0;top:0;width:0;height:0;padding:0;border:0;background:none;pointer-events:auto;cursor:pointer}
.gp-body{position:absolute;left:0;top:0;display:flex;flex-direction:column;align-items:center;gap:1px;transform:translate(-50%,-100%)}
.gp-label{padding:9px 15px;border-radius:999px;background:var(--accent);color:#fff;font:800 16px/1 var(--font);white-space:nowrap;box-shadow:0 8px 22px -6px rgba(140,60,10,.55);transition:transform .15s var(--ease-out)}
.guide-pin:active .gp-label{transform:scale(.96)}
.gp-arrow{width:30px;height:30px;color:var(--accent);filter:drop-shadow(0 2px 2px rgba(0,0,0,.25))}
.guide-pin:focus-visible{outline:0}
.guide-pin:focus-visible .gp-label{outline:3px solid var(--navy);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){
  .gp-body{animation:gpIn .35s var(--ease-out) calc(var(--i, 0) * 120ms + .5s) both}
  .gp-arrow{animation:gpBob .9s var(--ease-io) infinite alternate}
}
@keyframes gpIn{from{opacity:0;transform:translate(-50%,-100%) translateY(-10px) scale(.94)}to{opacity:1;transform:translate(-50%,-100%)}}
@keyframes gpBob{from{transform:translateY(-3px)}to{transform:translateY(5px)}}

/* Loading: our logo's roof draws itself while a steel shine runs over the name (owner: "colocar el logo con loading
   animado"). The small version (a roof drawing in) marks anything else that is on its way: the price, the ZIP check. */
.loader{gap:18px;background:radial-gradient(120% 80% at 50% 40%,#fff,var(--bg))}
.loader:not(.done){z-index:6}
.loader .brand-load,.loader .bl-shine,.loader .bl-text{width:auto;height:auto;border:0;border-radius:0;animation:none}
.loader .brand-load{position:relative;display:block;width:min(260px,56vw);aspect-ratio:2/1}
.brand-load img{display:block;width:100%;height:100%;clip-path:inset(35% 0 0 0)}
.brand-load svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.bl-roof{fill:none;stroke:#1d2733;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0}
.loader .bl-shine{position:absolute;inset:0;-webkit-mask:url(/logo.png) center/100% 100% no-repeat;mask:url(/logo.png) center/100% 100% no-repeat;background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.9) 50%,transparent 58%) 0 0/300% 100% no-repeat}
.loader .bl-text{font:700 16px/1.2 var(--font);color:var(--muted)}
@media (prefers-reduced-motion:no-preference){
  .bl-roof{animation:blRoof 2.2s var(--ease-io) infinite}
  .loader .bl-shine{animation:blShine 2.2s linear infinite}
}
@keyframes blRoof{0%{stroke-dashoffset:1}45%,72%{stroke-dashoffset:0}100%{stroke-dashoffset:-1}}
@keyframes blShine{0%,25%{background-position:110% 0}100%{background-position:-10% 0}}
.mini-load{display:inline-block;flex:none;width:24px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cstyle%3Epath{fill:none;stroke:%23002263;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;animation:d 1.4s cubic-bezier(.77,0,.175,1) infinite}%40keyframes d{0%25{stroke-dashoffset:1}50%25,62%25{stroke-dashoffset:0}100%25{stroke-dashoffset:-1}}%40media (prefers-reduced-motion:reduce){path{animation:none;stroke-dashoffset:0}}%3C/style%3E%3Cpath pathLength='1' d='M2 16.5V9l10-7 10 7v7.5'/%3E%3C/svg%3E") center/contain no-repeat}
.pricebar .price.pending::after,.q-boot .pricebar .price::after{content:"";display:inline-block;width:26px;height:20px;margin-left:10px;vertical-align:middle;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cstyle%3Epath{fill:none;stroke:%23002263;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;animation:d 1.4s cubic-bezier(.77,0,.175,1) infinite}%40keyframes d{0%25{stroke-dashoffset:1}50%25,62%25{stroke-dashoffset:0}100%25{stroke-dashoffset:-1}}%40media (prefers-reduced-motion:reduce){path{animation:none;stroke-dashoffset:0}}%3C/style%3E%3Cpath pathLength='1' d='M2 16.5V9l10-7 10 7v7.5'/%3E%3C/svg%3E") center/contain no-repeat}

/* Installation location dialog */
#zipDialog{width:min(550px,calc(100vw - 24px))}
.zipdlg .dialog-body{gap:0;padding:24px 24px 18px}
.zipdlg .dialog-body p{margin:0}
.zip-title{margin:0 0 8px;font:800 clamp(23px,5vw,29px)/1.12 var(--display);font-stretch:94%;text-transform:uppercase}
.zip-intro,.zip-hint{font:500 15px/1.42 var(--font);color:var(--ink-2)}
.zip-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;min-width:0;margin:18px 0 12px;padding:4px;border:1px solid var(--line-soft);border-radius:var(--r);background:var(--bg)}
.zip-methods label{position:relative;display:flex;cursor:pointer}
.zip-visually-hidden,.zip-methods input{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.zip-methods span{display:grid;place-items:center;width:100%;min-height:42px;padding:7px 8px;border:1px solid transparent;border-radius:calc(var(--r) - 2px);color:var(--ink-2);font:700 15px/1.25 var(--font);text-align:center}
.zip-methods label:hover span{background:#fff}
.zip-methods input:checked + span{border-color:#a6b8d1;background:#fff;color:var(--navy);box-shadow:0 1px 3px #0022631a}
.zip-methods input:focus-visible + span,.zip-skip:focus-visible,.price-warn:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.zipdlg .zip-field select{width:100%;min-height:46px;padding:8px 11px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:var(--r);font:600 16px var(--font)}
.zipdlg [aria-invalid="true"]{border-color:#ac2424}
.zipdlg .dialog-body .zip-hint{margin:7px 0 9px}
.zip-map{position:relative;overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--r);background:#f0f4fa}
.zip-map svg{display:block;width:100%;aspect-ratio:1.9;height:auto;max-height:230px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.zip-map-picks{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;padding:0 7px 7px}
.zip-map-picks button{min-width:44px;min-height:44px;padding:5px 8px;border:1px solid #afc0d5;border-radius:6px;background:#fff;color:var(--navy);font:700 13px var(--font);cursor:pointer}
.zip-map-picks button:hover{background:#e0e9f5}
.zip-map-picks button[aria-pressed="true"]{border-color:var(--navy);background:var(--navy);color:#fff}
.zip-map-picks button:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.zm-st{fill:#b5cae6;stroke:white;stroke-width:1;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.zm-st[data-st]{cursor:pointer}
.zm-st.is-picked{fill:var(--navy);stroke:var(--navy);stroke-width:1.5}
.zm-lbl{font:800 20px var(--font);fill:#3d506d;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.zm-pin-shadow{fill:#fff;stroke:var(--navy);stroke-width:3}
.zm-pin-mark path{fill:#bf5417;stroke:#fff;stroke-width:2}
.zm-pin-mark circle{fill:#fff}
@media (hover:hover){
  .zm-st[data-st]:hover{fill:#729fd7}
  .zm-st.is-picked[data-st]:hover{fill:var(--navy)}
}
@media (prefers-reduced-motion:no-preference){
  .zm-st{transition:fill .16s}
  #zipStateFields:not([hidden]) .zip-map{animation:zipMapIn .28s var(--ease-out) both}
}
@keyframes zipMapIn{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){#zipDialog[open]{animation:none}}
.zipdlg .dialog-body .form-msg{margin:8px 0 0}
.zipdlg .dialog-body .form-msg:empty{min-height:0;margin:0}
.zip-reference{display:flex;gap:9px;align-items:flex-start;margin:15px 0 12px;padding:10px 12px;border:1px solid #ead3a1;border-radius:var(--r);background:#fff7e5;color:#66430b;font:500 14px/1.4 var(--font)}
.zip-reference svg,.price-warn svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.zip-skip{min-height:44px;margin:0;padding:0;border:0;background:transparent;color:var(--navy);font:700 15px/1.25 var(--font);text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.zip-reference + .fine,.zipdlg #zipStartMsg + .fine{margin-top:10px}
.zipdlg .fine a{font-weight:700;text-underline-offset:2px}
#zipDialog .dialog-actions{flex-wrap:wrap;gap:8px;padding:12px 24px calc(12px + env(safe-area-inset-bottom,0px))}
#zipDialog .dialog-actions .btn{white-space:normal;text-align:center}
.price-warn{display:inline-flex;max-width:100%;align-items:center;gap:6px;margin-top:6px;padding:6px 10px;border:1px solid #dcb261;border-radius:var(--r);background:#fff5dc;color:#6e4300;font:700 14px/1.2 var(--font);text-align:left;cursor:pointer}
.price-warn:hover{background:#ffeec2}
#buyNeedsZip{justify-self:start;white-space:normal;text-align:center}
@media (max-width:420px){
  .zipdlg .dialog-body{padding:18px 16px 14px}
  #zipDialog .dialog-actions{padding-inline:16px}
}

/* ---------- One way to build (owner 2026-11-12, round 3: "todo pero fácil… menos letras… 1 solamente") ----------
   Nine steps; the full editor's controls live inside them (quick.js adopt()), each option shown by name and price. */
.q-steps{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}
.q-steps::-webkit-scrollbar{display:none}
.q-steps li{flex:1 0 58px;scroll-snap-align:center}
.q-steps li[data-q-step="5"]{flex-basis:72px}
.q-steps button{font-size:12.5px}
/* Fit Lean-tos without cutting the preceding labels on narrow phones. */
@media (max-width:380px){
  .q-head{padding-inline:3px}
  .q-steps li{flex-basis:max-content;min-width:44px}
}
@media (max-width:319px){.q-steps{flex-wrap:wrap}}
.qi-lean{transform-origin:0 50%}
.qi-plus{transform-origin:50% 50%}
@media (prefers-reduced-motion:no-preference){
  .q-steps [aria-current=step] .qi-lean{animation:qiLean .6s var(--ease-out) both}
  .q-steps [aria-current=step] .qi-plus{animation:qiPlus .5s var(--ease-out) both}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .q-steps button:hover .qi-lean{animation:qiLean .6s var(--ease-out) both}
  .q-steps button:hover .qi-plus{animation:qiPlus .5s var(--ease-out) both}
}
@keyframes qiLean{from{transform:translateX(-9px);opacity:0}to{transform:none;opacity:1}}
@keyframes qiPlus{from{transform:scale(.4) rotate(-90deg);opacity:0}to{transform:none;opacity:1}}

/* Moved-in controls: empty slots take no room; an option is its name, its price under it, its switch. */
.u-slot:empty{display:none}
.u-desc{position:absolute;top:0;left:0;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.q-body .u-slot .opt{padding:11px 0;font-size:16.5px}
.q-body .u-slot .opt small{font-size:15px;font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums}
.q-body .u-slot .opt small [data-pr]{white-space:normal}
.q-body .u-slot .opt[title]{cursor:help}
.q-body .u-slot .opt[title] input+i,.q-body .u-slot label.opt[title]{cursor:pointer}
.q-body .u-slot .optbox{margin:0;padding:0;border:0;background:none}
.q-pane .u-h{margin-top:22px}
[data-u-slot="layouts"]{margin-top:16px}
[data-u-slot="roofNotes"],[data-u-slot="sizeNotes"]{margin-top:12px}

/* Size: what the size brings with it (posts inside past 30′ wide, ladder legs), one line with a drawing. */
.u-auto{display:flex;align-items:center;gap:10px;margin:14px 0 0;padding:10px 12px;border-radius:10px;background:#eef3fb;color:var(--navy);font-size:16px;font-weight:700;line-height:1.3}
.u-auto svg{flex:none;width:28px;height:28px;transform-origin:50% 100%}
@media (prefers-reduced-motion:no-preference){
  .u-auto.u-new{animation:qCoachIn .3s var(--ease-out) both}
  .u-auto.u-new svg{animation:qiRise .5s var(--ease-out) .1s both}
}

/* Walls: each wall's row under the four usual sets. */
.u-walls .wall-row,.u-walls .end-row{padding:8px 0}
.u-walls .storage{margin-top:6px}

/* Doors: four buttons; the one picked opens its sizes or kinds under it. */
.q-adds{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.q-add{min-height:108px;padding:12px 4px 10px}
.q-add-icon{width:50px;height:50px}
.q-add-icon svg{width:30px;height:30px}
.q-add b{font-size:14px}
.u-variants>div{margin-top:12px}
@media (prefers-reduced-motion:no-preference){.u-variants>div:not([hidden]){animation:qCoachIn .25s var(--ease-out) both}}
.u-kinds .adders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.u-kinds .fo-row{margin:0 0 10px}
.q-placed li.on{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy)}
.q-placed li.on .q-pl-icon{background:var(--navy);color:#fff}
.u-item .pos{margin:10px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.u-item .pos-title{margin:0 0 6px;font-weight:800}
.u-item .u-pr{font-weight:700;color:var(--navy)}
@media (prefers-reduced-motion:no-preference){.u-item .pos:not([hidden]){animation:qCoachIn .25s var(--ease-out) both}}

/* Lean-tos: each side drawn from above; the lean-to fills in orange when it is on. */
.u-leans .lean>.opt{grid-template-columns:54px minmax(0,1fr) auto;column-gap:12px}
.u-leans .lean>.opt .u-lean-art{grid-column:1;grid-row:1/3;width:54px;height:37px}
.u-leans .lean>.opt b,.u-leans .lean>.opt small{grid-column:2}
.u-leans .lean>.opt i{grid-column:3}
.u-lean-b{fill:var(--bg);stroke:var(--ink-2);stroke-width:1.3}
.u-lean-r{fill:none;stroke:var(--ink-2);stroke-width:1;stroke-dasharray:2 2;opacity:.6}
.u-lean-l{fill:#fff;stroke:var(--accent);stroke-width:1.5;stroke-dasharray:3 2;transform-box:fill-box;transform-origin:center;transition:fill .2s ease}
.u-leans .lean>.opt:has(input:checked) .u-lean-l{fill:var(--accent);stroke-dasharray:none}
@media (prefers-reduced-motion:no-preference){.u-leans .lean>.opt:has(input:checked) .u-lean-l{animation:uLeanIn .35s var(--ease-out)}}
@keyframes uLeanIn{from{transform:scale(.55);opacity:.4}to{transform:none;opacity:1}}
.u-leans .lean-body{padding:2px 0 8px}

/* Price: the cost first, every line folded under it. */
[data-u-slot="cost"]{margin-top:14px}
.u-break{margin-top:10px}
[data-u-slot="breakdown"] .certified{margin-top:14px}

/* Narrow phones: a wall's (or a lean-to's) name over its buttons, the buttons sharing the width; the pitch and
   overhang buttons too. Long words wrap inside their button instead of pushing the page sideways. */
.q-body .u-slot .seg button{min-width:0}
.q-body .opt.as-seg .seg{display:flex;width:100%;justify-self:stretch}
.q-body .opt.as-seg .seg button{flex:1 1 0;padding:6px 2px}
@media (max-width:480px){
  .q-body .u-slot .wall-row{flex-wrap:wrap;row-gap:6px}
  .q-body .u-slot .wall-row>.seg{display:flex;flex:1 1 100%}
  .q-body .u-slot .wall-row>.seg button{flex:1 1 0;padding:7px 2px}
  .q-body .u-slot .seg.fill button{white-space:normal;line-height:1.1;padding:7px 2px;font-size:14.5px}
  .q-body .opt.as-seg .seg button{font-size:14.5px}
  .q-body .opt.as-seg .seg button small{font-size:12.5px}
  /* Selects outside the Extras cards (a lean-to's roof insulation) go under their label, as wide as the card. */
  .q-body .u-slot:not(.u-opts) .opt.as-select{grid-template-columns:minmax(0,1fr)}
  .q-body .u-slot:not(.u-opts) .opt.as-select select{grid-column:1;grid-row:3;width:100%;max-width:100%;margin-top:6px}
}

/* ---------- Round 4 (owner 2026-11-12: "usemos los colores… los extras pusiste muchas palabras… cuando le doy no hace
   nada… pónmelo animado… al final el PDF en 3D y 2D como una PreQuote") ---------- */

/* Extras: cards with a drawing, a short name and the price; the whole card is the switch. */
.q-body .u-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
/* Owner 2026-11-12 ("necesito que esté simétrico… mira cómo está pegado"): room between the foundation and the
   cards, a card left alone takes its whole row (quick.js pack()), and the five foundations sit three over two,
   each row filling the width. */
.q-body .u-slot.u-opts+.u-slot.u-opts{margin-top:16px}
.q-body .u-opts .opt.u-full{grid-column:1/-1}
.q-body .u-opts>.seg.bases{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:4px}
.q-body .u-opts>.seg.bases>button{grid-column:span 2;min-height:46px;padding:8px 6px;line-height:1.15}
.q-body .u-opts>.seg.bases>button:nth-child(4):nth-last-child(2),.q-body .u-opts>.seg.bases>button:nth-child(5):last-child{grid-column:span 3}
.q-body .u-opts>h3,.q-body .u-opts>.seg,.q-body .u-opts>p{grid-column:1/-1;margin-bottom:0}
.q-body .u-opts>h3{margin-top:18px}
.q-body .u-opts>h3:first-child{margin-top:14px}
.q-body .u-opts .optbox{display:contents}
.q-body .u-opts .opt{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto 1fr;align-content:start;gap:2px 10px;min-height:74px;padding:11px 12px;border:1.5px solid var(--line);border-bottom-width:1.5px;border-radius:10px;background:#fff;font-size:15.5px;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease,transform .15s var(--ease-out)}
.q-body .u-opts .opt[hidden]{display:none}
.q-body .u-opts .opt[title]{cursor:pointer}
.u-x-ico{grid-column:1;grid-row:1/3;align-self:start;width:38px;height:38px;display:grid;place-items:center;border-radius:9px;background:var(--bg);color:var(--navy);transition:background-color .2s ease,color .2s ease}
.u-x-ico svg{width:26px;height:26px}
.q-body .u-opts .opt>b{grid-column:2;grid-row:1;align-self:start;line-height:1.2;padding-right:18px}
.q-body .u-opts .opt>small{grid-column:2;grid-row:2;align-self:start;font-size:14px}
.q-body .u-opts .opt>i{display:none}
.q-body .u-opts label.opt:has(input:checked),.q-body .u-opts .opt.as-stepper.on{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy);background:#f6f8fc}
.q-body .u-opts label.opt:has(input:checked) .u-x-ico,.q-body .u-opts .opt.as-stepper.on .u-x-ico{background:var(--navy);color:#fff}
.q-body .u-opts label.opt::after{content:"";position:absolute;top:9px;right:9px;width:18px;height:18px;border-radius:50%;border:1.5px solid var(--line);background:#fff center/11px no-repeat;transition:background-color .2s ease,border-color .2s ease}
.q-body .u-opts label.opt:has(input:checked)::after{border-color:var(--navy);background-color:var(--navy);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.q-body .u-opts label.opt:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
.q-body .u-opts label.opt:active{transform:scale(.98)}
@media (hover:hover) and (pointer:fine){.q-body .u-opts .opt:hover{border-color:#8d97a3}}
/* Counted ones: the count under the name; pitch, overhang and insulation take the whole row. */
.q-body .u-opts .opt.as-stepper{grid-template-rows:auto auto auto;cursor:default}
.q-body .u-opts .opt.as-stepper .stepper{grid-column:1/-1;grid-row:3;justify-self:end;margin-top:6px}
.q-body .u-opts .opt.as-seg,.q-body .u-opts .opt.as-select{grid-column:1/-1;cursor:default}
.q-body .u-opts .opt.as-seg .seg{grid-column:1/-1;grid-row:3;margin-top:8px}
.q-body .u-opts .opt.as-select select{grid-column:1/-1;grid-row:3;width:100%;margin-top:8px}
/* Power at the site (owner 2026-11-15): a question the customer answers, not a part to buy. The line under the name
   stays amber ("Please confirm") until they pick Yes or No; then the card reads as answered, like a picked extra. */
.power-says{display:inline-flex;align-items:flex-start;gap:6px;font-weight:700;color:#9a5b00}
.power-says::before{content:"";flex:none;width:8px;height:8px;margin-top:.45em;border-radius:50%;background:currentColor}
#power[data-power=yes] .power-says,#power[data-power=no] .power-says{color:var(--ok)}
#power .seg{display:flex;width:100%}
#power .seg button{flex:1 1 0;min-height:44px}
.q-body .u-opts #power[data-power=yes],.q-body .u-opts #power[data-power=no]{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy);background:#f6f8fc}
.q-body .u-opts #power[data-power=yes] .u-x-ico,.q-body .u-opts #power[data-power=no] .u-x-ico{background:var(--navy);color:#fff}
/* Picked: the card answers, and a copy of it flies into the building. */
@media (prefers-reduced-motion:no-preference){
  .q-body .u-opts .opt.u-pop .u-x-ico{animation:uPop .45s var(--ease-out)}
  .q-body .u-opts .opt.u-pop .u-x-ico svg{animation:uPopIco .55s var(--ease-out)}
}
@keyframes uPop{0%{transform:scale(.86)}100%{transform:none}}
@keyframes uPopIco{0%{transform:translateY(5px) scale(.8);opacity:.3}100%{transform:none;opacity:1}}
.u-fly{position:fixed;z-index:80;display:flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border-radius:999px;background:var(--navy);color:#fff;font:700 14.5px/1.1 var(--font);box-shadow:0 10px 26px rgba(0,22,70,.32);pointer-events:none;white-space:nowrap}
.u-fly .u-x-ico{width:30px;height:30px;border-radius:50%;background:#fff;color:var(--navy)}
.u-fly .u-x-ico svg{width:20px;height:20px}
/* An extra lands on its own piece of the building (quick.js showExtra(), 2026-11-27): the chip keeps a tip pointing at
   it and two rings mark the spot while the piece glows. */
.u-fly{will-change:transform,opacity}
.u-fly.landed{box-shadow:0 0 0 2px #fff,0 10px 26px rgba(0,22,70,.4)}
.u-fly.landed::after{content:"";position:absolute;left:50%;bottom:-6px;width:13px;height:13px;margin-left:-6.5px;background:var(--navy);transform:rotate(45deg);border-radius:0 0 3px 0;box-shadow:2px 2px 0 #fff}
.u-ring{position:fixed;z-index:79;left:0;top:0;width:0;height:0;pointer-events:none}
.u-ring::before,.u-ring::after{content:"";position:absolute;left:-22px;top:-22px;width:44px;height:44px;border-radius:50%;border:3px solid #ffb347;box-shadow:0 0 0 1.5px rgba(0,22,70,.45),inset 0 0 0 1.5px rgba(0,22,70,.45);animation:uRing 1.25s var(--ease-out) both}
.u-ring::after{animation-delay:.45s}
@keyframes uRing{from{transform:scale(.3);opacity:1}to{transform:scale(1.5);opacity:0}}

/* Colors: little buildings painted in each popular set, then every swatch (no names to read). */
.u-combos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:6px}
.u-combo{position:relative;display:grid;place-items:center;aspect-ratio:1.2;padding:6px;border:1.5px solid var(--line);border-radius:10px;background:linear-gradient(#f6f8fb,#eef1f5);transition:border-color .2s ease,box-shadow .2s ease,transform .15s var(--ease-out)}
.u-combo svg{width:100%;height:100%;max-height:60px}
.u-combo:active{transform:scale(.96)}
@media (hover:hover) and (pointer:fine){.u-combo:hover{border-color:#8d97a3}}
.u-combo[aria-pressed=true]{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy)}
.u-combo[aria-pressed=true]::after{content:"";position:absolute;top:5px;right:5px;width:16px;height:16px;border-radius:50%;background:var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat}
/* Round 8 (owner: "simétrico"): 17 colors in rows of 9 (6 on phones), the short last row centered under the others
   instead of one swatch left alone on the left. */
.q-pane[data-q="7"] .swatch-row{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;--cols:9}
.q-pane[data-q="7"] .swatch-row>button{flex:0 0 calc((100% - (var(--cols) - 1) * 7px) / var(--cols))}
@media (max-width:420px){.q-pane[data-q="7"] .swatch-row{--cols:6}}

/* The Pre-Quote: a sheet of paper with the building in 3D and 2D, a few lines, the price. */
.u-pq{margin:4px 0 12px;padding:16px 16px 14px;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.06),0 12px 28px -14px rgba(16,24,40,.28)}
.u-pq-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:2px solid var(--navy)}
.u-pq-head img{width:118px;height:auto}
.u-pq-head span{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.u-pq-head b{font:800 19px/1 var(--display);letter-spacing:.06em;color:var(--navy)}
.u-pq-head small{font-size:12.5px;font-weight:600;color:var(--muted)}
.u-pq-title{margin:12px 0 10px!important;font:800 17px/1.2 var(--font)!important;letter-spacing:0!important;text-transform:none!important;color:var(--ink)!important;display:block!important}
/* Round 5 (owner: "no se ve el 2D, ponlo más grande"): the 3D and the plan one under the other, each as wide as the sheet. */
.u-pq-views{display:grid;grid-template-columns:1fr;gap:8px}
.u-pq-views figure{position:relative;margin:0;aspect-ratio:16/10;border-radius:4px;background:#f1f4f8;overflow:hidden}
.u-pq-views img{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .35s ease}
.u-pq-2d img{object-fit:contain;background:#fff}
.u-pq.u-ready .u-pq-views img{opacity:1}
.u-pq-views figcaption{position:absolute;left:6px;top:6px;padding:2px 7px;border-radius:4px;background:rgba(0,34,99,.85);color:#fff;font:800 11.5px/1.3 var(--font);letter-spacing:.06em}
.u-pq-views figure::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.7) 50%,transparent 70%) -100% 0/200% 100% no-repeat}
@media (prefers-reduced-motion:no-preference){.u-pq:not(.u-ready) .u-pq-views figure::before{animation:uShimmer 1.2s linear infinite}}
@keyframes uShimmer{to{background-position:100% 0}}
.u-pq-rows{margin:10px 0 0;display:grid}
.u-pq-rows>div{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;border-bottom:1px solid var(--line-soft)}
.u-pq-rows dt{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.u-pq-rows dd{margin:0}
.u-pq-rows button{width:100%;display:flex;align-items:center;gap:5px;min-height:38px;padding:5px 2px;border:0;background:none;text-align:left;font-size:14.5px;font-weight:600;color:var(--ink)}
.u-pq-rows button i{flex:none;width:13px;height:13px;border-radius:3px;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.u-pq-rows button span{flex:1;min-width:0}
/* Each line's amount on the right, as a quote lists it; the discount line is text, not a button. */
.u-pq-rows .u-amt{flex:none;margin-left:8px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink)}
.u-pq-rows dd>p{display:flex;align-items:center;gap:5px;min-height:38px;margin:0;padding:5px 2px;font-size:14.5px;font-weight:600;color:var(--ink)}
.u-pq-rows dd>p span{flex:1;min-width:0}
@media (hover:hover) and (pointer:fine){.u-pq-rows button:hover{color:var(--navy);text-decoration:underline;text-underline-offset:3px}}
.u-pq-total{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:10px 12px;border-radius:6px;background:#eef2f9}
.u-pq-total span{font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.u-pq-total b{font:800 24px/1 var(--display);color:var(--navy);font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:no-preference){.q-pane[data-q="8"]:not([hidden]) .u-pq{animation:uSheet .45s var(--ease-out) both}}
@keyframes uSheet{from{opacity:0;transform:translateY(14px) rotate(-.6deg)}to{opacity:1;transform:none}}
.u-pdf{width:100%;justify-content:center;gap:8px;min-height:50px}
.u-pdf svg{width:20px;height:20px}
.u-pdf.busy{opacity:.7;pointer-events:none}
@media (prefers-reduced-motion:no-preference){.u-pdf.busy svg{animation:qiRise .8s var(--ease-io) infinite alternate}}
/* Buying online: the fine print under one line. */
.u-how{margin-top:8px}
.u-how summary{cursor:pointer;color:var(--navy);font-size:14.5px;font-weight:700;list-style:none}
.u-how summary::-webkit-details-marker{display:none}
.u-how summary::after{content:" +"}
.u-how[open] summary::after{content:" −"}
@media (max-width:420px){.u-pq{padding:12px}.u-pq-views{grid-template-columns:1fr}.u-pq-rows>div{grid-template-columns:82px minmax(0,1fr)}.u-combos{gap:6px}}

/* Round 8 (owner 2026-11-12: "necesito que esté simétrico", applied to every screen). */
/* Each wall: the sides read like the ends, the name on the left, its price on the right, the choices across under them. */
.q-body .u-walls .wall-row:has(>.seg){flex-wrap:wrap;row-gap:8px}
.q-body .u-walls .wall-row:has(>.seg)>span{display:flex;flex:1 1 100%;justify-content:space-between;align-items:baseline}
.q-body .u-walls .wall-row>.seg{display:flex;flex:1 1 100%}
.q-body .u-walls .wall-row>.seg button{flex:1 1 0}
/* Garage door sizes: up to five sit in one row of equal buttons; more, or on a phone, three to a row with the last
   row shared evenly (4 = 2 + 2, 5 = 3 + 2, 7 = 3 + 2 + 2), never one left alone. */
.q-body .dsz-grid:not(:has(>:nth-child(6))){grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.q-body .dsz-grid:has(>:nth-child(6)){grid-template-columns:repeat(6,minmax(0,1fr))}
.q-body .dsz-grid:has(>:nth-child(6))>*{grid-column:span 2}
.q-body .dsz-grid:has(>:nth-child(6))>:nth-last-child(2):nth-child(3n+1),.q-body .dsz-grid:has(>:nth-child(6))>:nth-last-child(2):nth-child(3n+1)+*,
.q-body .dsz-grid:has(>:nth-child(6))>:nth-last-child(4):nth-child(3n+1),.q-body .dsz-grid:has(>:nth-child(6))>:nth-last-child(4):nth-child(3n+1)~*{grid-column:span 3}
@media (max-width:480px){
  .q-body .dsz-grid,.q-body .dsz-grid:not(:has(>:nth-child(6))){grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:row}
  .q-body .dsz-grid>*{grid-column:span 2}
  .q-body .dsz-grid>:nth-last-child(2):nth-child(3n+1),.q-body .dsz-grid>:nth-last-child(2):nth-child(3n+1)+*,
  .q-body .dsz-grid>:nth-last-child(4):nth-child(3n+1),.q-body .dsz-grid>:nth-last-child(4):nth-child(3n+1)~*{grid-column:span 3}
  .q-body .dsz-grid>:only-child{grid-column:1/-1}
}
/* The Pre-Quote's plan: its "2D" tag sits in a white band over the sheet instead of on the sheet's title. */
.u-pq-views figure.u-pq-2d{aspect-ratio:auto;padding-top:26px;background:#fff;border:1px solid var(--line-soft)}
.u-pq-2d img{height:auto;aspect-ratio:17/11}

/* Loading (2026-11-13, owner on a slow connection: "¿por qué sale así y va al otro?"): the server paints the guided
   screens from the first frame (body.quick-on.q-boot, builder.blade.php $quickBoot), so the old tabs and "$0" never
   flash while three.js and app.js download. quick.js removes q-boot once the screens work. The Type pictures show
   at once (a tap is kept); a visitor coming back to a later step sees a still sketch (q-boot-later) until it is ready. */
.q-skel{display:none}
.q-boot .q-steps,.q-boot #qNext{pointer-events:none}
.q-boot #qNext{opacity:.5}
.q-boot #qBack{display:none!important}
.q-boot .pricebar .price{position:relative;color:transparent}
.q-boot .pricebar .price::after{position:absolute;left:0;top:50%;margin:-10px 0 0}
.q-boot-later .q-pane{display:none!important}
.q-boot-later .q-skel{display:block}
.q-boot-later .q-steps [aria-current=step]{color:#97a1ad}
.q-boot-later .q-steps [aria-current=step] .qi{color:inherit;--qi-fill:#fff}
.q-boot-later .q-steps [aria-current=step]::after{content:none}
.q-boot-later .q-steps .qi *{animation:none!important}
.q-skel i{display:block;border-radius:8px;background:#eef1f5}
.q-skel-h{width:56%;height:26px;margin:0 0 16px}
.q-skel-g{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.q-skel-g i{aspect-ratio:16/13}
@media (prefers-reduced-motion:no-preference){
  .q-skel i{animation:qSkel 1.2s ease-in-out infinite alternate}
  .q-skel-g i:nth-child(2),.q-skel-g i:nth-child(3){animation-delay:.2s}
  .q-skel-g i:nth-child(4){animation-delay:.4s}
  .q-wake{animation:qWake .28s var(--ease-out) both}
}
@keyframes qSkel{to{opacity:.5}}
@keyframes qWake{from{opacity:0}}

/* A design left in 2D (builder.blade.php m2d-boot, until app.js takes over): the blue model space and a white logo
   from the first frame, not the white 3D stage turning blue. */
.m2d-boot .stage,.m2d-boot .loader{background:#13294b}
.m2d-boot .loader .brand-load img{filter:brightness(0) invert(1)}
.m2d-boot .loader .bl-roof{stroke:#fff}
.m2d-boot .loader .bl-text{color:rgba(255,255,255,.78)}
@media (max-width:900px){.m2d-boot .stage{height:64vh}}

/* The 3D tools under the building (owner 2026-11-13: "estos iconos no se sabe qué hacen"): each one shows its name
   under the icon at every width. builder.css hid the names once the stage was under 1200px, and the guided panel
   made that the usual case. On a narrow stage the names wrap to two lines, and Spin and Backdrop step out (the
   building stops spinning as soon as it is touched anyway) so nothing scrolls off the edge. What sits above the bar
   (hint, What fits menu, 2D palette and zoom, coordinates, phone watermark) follows its height:
   --tools-bottom + --tools-h. */
.stage{--tools-bottom:20px;--tools-h:60px}
@media (max-width:900px){.stage{--tools-bottom:28px}}
.hud.bottom{bottom:var(--tools-bottom);align-items:stretch;gap:2px;padding:4px}
.hud.bottom .tool{flex-direction:column;justify-content:center;gap:4px;min-width:58px;padding:7px 8px 6px;font-size:12.5px;line-height:1.15;text-align:center}
.hud.bottom .tool svg{width:21px;height:21px}
.hud.bottom .tool span{display:block;white-space:nowrap}
.hint{bottom:calc(var(--tools-bottom) + var(--tools-h) + 6px)}
.fit-menu,.kit2d{bottom:calc(var(--tools-bottom) + var(--tools-h) + 10px)}
@container stage (max-width:1100px){.cad-coords{bottom:calc(var(--tools-bottom) + var(--tools-h) + 10px)}}
@media (max-width:900px){
  /* The logo under the size chips, as on a computer: beside the tools it lay over the building's corner (2026-11-27). */
  .stage-wm::after{left:12px;right:auto;top:58px;bottom:auto;width:84px}
  .zoom2d{bottom:calc(var(--tools-bottom) + var(--tools-h) + 72px)}
}
@container stage (max-width:640px){
  .stage>*{--tools-h:70px}
  #tSpin,#tScene{display:none}
  .hud.bottom .tool{min-width:50px;padding:6px 4px 5px;font-size:11.5px;gap:3px}
  .hud.bottom .tool svg{width:19px;height:19px}
  .hud.bottom .tool span{white-space:normal;max-width:62px;text-wrap:balance}
}
@container stage (max-width:440px){
  .hud.bottom{gap:0;padding:3px;max-width:calc(100% - 12px)}
  .hud.bottom .tool{min-width:44px;padding:6px 3px 5px;font-size:11px}
  .hud.bottom .tool span{max-width:58px}
}
@container stage (max-width:380px){
  .hud.bottom .tool{min-width:40px;padding:6px 2px 5px;font-size:10.5px}
  .hud.bottom .tool svg{width:18px;height:18px}
  .hud.bottom .tool span{max-width:54px}
}
/* Frame only (owner 2026-11-13: "quitarle el metal que se vea solo la estructura"): the sheets step out and the steel
   frame stays. Its icon is a truss frame whose webs show themselves once when pointed at. Open doors rests while
   there are no doors to see, and the 2D drawing has no use for it. */
.mode-2d #tFrame{display:none!important}
.hud.bottom .tool:disabled{opacity:.38;cursor:default;background:transparent}
@media (prefers-reduced-motion:no-preference){#tFrame:hover .fr-in{animation:t-webs .6s var(--ease)}}
@keyframes t-webs{from{opacity:.1}}
/* Nine tools need about 780px with the names on one line (Spanish "Solo estructura" is the longest): on a stage under
   840px (a 1280 screen with the guided panel open) the names wrap to two lines, so Spin and Backdrop can stay. On a
   phone each name is only as wide as its longest word ("Qué / cabe"), the yard button keeps two lines, and all seven
   fit from 360px up without scrolling, in English and Spanish. */
@container stage (min-width:641px) and (max-width:840px){
  .stage>*{--tools-h:70px}
  .hud.bottom .tool{min-width:54px;padding:7px 5px 6px;gap:3px}
  .hud.bottom .tool span{white-space:normal;max-width:66px;text-wrap:balance}
}
@container stage (max-width:440px){
  .hud.bottom .tool{min-width:40px;padding:6px 2px 5px}
  .hud.bottom .tool span{max-width:52px}
  .hud.bottom .tool:not(.accent) span{width:min-content;max-width:none}
}
@container stage (max-width:380px){
  .hud.bottom .tool{min-width:38px;font-size:10px}
  .hud.bottom .tool span{max-width:50px}
}

/* ---------------------------------------------------------------------------------------------------------------
   Drawings beside the choices that were words only (owner 2026-11-27: "meterle iconos, más entendible para el
   usuario"): camera views, the foundation, how each wall is closed, which wall a row is about, width / length /
   height, roof pitch (App\Support\BuilderIcons, <x-builder-icon>). The same line family as the step icons. The name
   always stays: where a row gets too narrow the drawing steps out, never the name.
   --------------------------------------------------------------------------------------------------------------- */
.bi{width:22px;height:22px;flex:none;display:block}

/* camera views: 3D · Front · Side · Top · Inside */
.cam-seg button{display:inline-flex;align-items:center;gap:6px}
.cam-seg .bi{width:19px;height:19px}
@container stage (max-width:760px){.cam-seg .bi{display:none}}

/* a choice with its drawing over its name (five ways to close an end do not fit side by side with a drawing beside
   each name, in the detailed tabs either) */
.seg[data-wall] button,.seg.bases button{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.15}
.seg[data-wall] button{padding:6px 8px 5px}
.seg.fill[data-wall] button{flex:1 1 0;padding:6px 2px 5px}
.seg.bases button{min-width:92px;padding:7px 8px 6px}
.seg.pitch button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.q-body .u-walls .seg[data-wall] button,.q-body .seg.bases>button{gap:4px}
.q-body .u-walls .seg[data-wall] button{min-height:68px;padding:7px 3px 6px}
.q-body .u-walls .seg[data-wall] .bi{width:32px;height:32px}
.q-body .u-opts>.seg.bases>button{min-width:0;min-height:74px;padding:7px 6px 7px}
.seg.bases .bi{width:36px;height:19.5px}
.q-body .seg.bases .bi{width:48px;height:26px}
/* roof pitch: the slope, the figure, what it adds */
.q-body .opt.as-seg .seg.pitch button{display:grid;justify-items:center;align-content:center;gap:2px;min-height:76px}
.seg.pitch .bi-pitch{width:40px;height:21.7px}
/* (builder.css puts every <small> inside an option on its second row: not this one) */
.seg.pitch button>small{grid-row:auto;grid-column:auto}

/* which wall a row is about */
.wall-name{display:inline-flex;align-items:center;gap:8px}
.wall-name .bi{width:26px;height:26px;color:var(--navy)}
.q-body .u-walls .wall-row:has(>.seg)>span{align-items:center}
.end-head{align-items:center}

/* width · length · height */
.q-stepper-label{display:flex;align-items:center;gap:10px}
.q-stepper-label .bi{width:30px;height:30px;color:var(--navy)}
/* the size cards' floor plans, large enough to compare */
.q-plan{height:58px}

/* the three switches on the Walls screen: a drawing in front, like the extras */
.q-body .opt.u-ico-row{grid-template-columns:38px minmax(0,1fr) auto;column-gap:12px}
.q-body .opt.u-ico-row>.u-x-ico{grid-column:1;grid-row:1/3;align-self:center}
.q-body .opt.u-ico-row>b,.q-body .opt.u-ico-row>small{grid-column:2}
.q-body .opt.u-ico-row>i{grid-column:3}
.q-body .opt.u-ico-row:has(input:checked)>.u-x-ico{background:var(--navy);color:#fff}

/* Messages on the stage (2026-11-27, owner: "mira los mensajes cómo se traslapan"): the placing banner, a notice and
   the short messages are one stack under the size chips and the view buttons (app.js messagesBelowHud() measures where
   those end), so none lies over a button or over another message. A notice that is not showing takes no room. */
.placement-guide{top:calc(var(--hud-bottom,56px) + 10px);left:var(--msg-left,12px);right:var(--msg-right,12px);width:auto;transform:none}
/* In 2D the stack keeps clear of the Add column and the zoom buttons (--msg-left/--msg-right); where a short phone
   stage leaves no room, the zoom buttons step aside while a message is up (app.js zoomYieldsToMessages). */
.zoom2d{transition:opacity .16s}
.zoom2d.yield{opacity:0;pointer-events:none}
.placement-guide .toast{position:static;left:auto;top:auto;transform:translateY(-10px);max-width:100%;box-shadow:0 10px 30px rgba(8,22,58,.28);line-height:1.3;text-wrap:balance}
.placement-guide .toast.show{transform:none}
.placement-notice:not(.show){display:none}
@media (prefers-reduced-motion:reduce){.placement-guide .toast{transform:none;transition:opacity .2s}}

/* undo and redo say what they are once the header has the room */
.ib-label{display:none}
@media (min-width:1360px){
  .icon-btn:has(.ib-label){width:auto;display:inline-flex;align-items:center;gap:6px;padding:0 10px;font:700 15.5px/1 var(--font)}
  .icon-btn:has(.ib-label):disabled{opacity:.42}
  .ib-label{display:inline}
}
@media (max-width:420px){
  .q-body .u-walls .seg[data-wall] .bi{width:24px;height:24px}
  .q-stepper-label .bi{width:24px;height:24px}
  .q-stepper-label{gap:8px}
}

/* ---- 2D workspace (2026-11-27, owner: "ahora mejora el 2D en todo") ----
   The drawing gets the room. On a computer the palette is a narrow column whose names wrap (it was 270px of an 880px
   stage, and the plan lost its sizes for it). On a narrow stage (a phone) the drawing was a speck under four rows of
   controls: the stage is taller in 2D, the palette opens from "Add to a wall" in the tools instead of lying over the
   drawing as a strip that showed two of its eight tools, the views sit on the first row and the zoom shows only the
   buttons that can be used (app.js pads2d() measures what room is left). */
.kit2d{width:164px}
.kit2d button{white-space:normal;line-height:1.2;padding:6px 10px 6px 8px}
.mode-2d .kit2d button{font-family:var(--font);font-weight:700;font-size:15px}
.kit2d button span{text-wrap:balance}
/* the door's menu under it (app.js placePop2d()): its pointer, which points down, is left out */
.pop.under::after,.pop.under::before{display:none}
.pop::after{left:var(--arrow-x,50%)}
/* The door menu on a narrow stage: its name and its three buttons share the first row and the choices go under
   them. One row less, so on a small phone the menu no longer reaches the view buttons. */
@container stage (max-width:620px){
  .pop:not(.fit-pop) .pop-head{flex:1 1 calc(100% - 160px);min-width:0}
  .pop:not(.fit-pop) .pop-btn,.pop:not(.fit-pop) .pop-del{order:1}
  .pop:not(.fit-pop)>select,.pop:not(.fit-pop)>.pop-fo,.pop:not(.fit-pop)>.pop-check{order:2}
}
#kitToggle{display:none}
/* (builder.css turned the palette into a strip along the bottom from 760px down: it stays a column down to 601px, where
   a small laptop still drags a door from it, and is a menu below that.) */
@container stage (min-width:601px) and (max-width:760px){
  .kit2d{display:grid;left:12px;right:auto;bottom:calc(var(--tools-bottom) + var(--tools-h) + 10px);max-height:calc(100% - 170px);overflow:hidden auto}
}
@container stage (max-width:600px){
  .kit2d{display:none;width:auto}
  .stage.kit-open .kit2d:not([hidden]){display:grid;grid-template-columns:1fr 1fr;left:12px;right:12px;bottom:calc(var(--tools-bottom) + var(--tools-h) + 10px);max-height:calc(100% - var(--tools-bottom) - var(--tools-h) - 22px);overflow:hidden auto;z-index:5;padding:6px;gap:4px}
  .stage.kit-open .kit2d button{min-height:48px;font-size:14.5px}
  .mode-2d #kitToggle{display:flex;background:var(--accent);color:#fff}
  .mode-2d #kitToggle:hover{background:var(--accent)}
  .mode-2d #kitToggle[aria-expanded=true]{background:#fff;color:#0c1d38}
  .mode-2d #tVector{display:none}
  .mode-2d .dims{display:none}
  .mode-2d .zoom2d{top:auto;bottom:calc(var(--tools-bottom) + var(--tools-h) + 10px);transform:none}
  .mode-2d .zoom2d button:disabled{display:none}
}
@container stage (min-width:381px) and (max-width:600px){.mode-2d .top-right{top:12px}}
/* In 2D the size is on the drawing: its chip steps out before it runs under the views (their names are long in Spanish). */
@container stage (max-width:860px){.mode-2d .dims{display:none}}
@media (max-width:900px){
  .quick-on.mode-2d .stage,.m2d-boot .stage{height:58vh;height:58svh;min-height:380px}
}
