@import url('../../../loading.css');
@font-face{font-family:Outfit;src:url('../../outfit.woff2');font-weight:100 900}
:root{color-scheme:dark;--green:#59c9a5;--blue:#3fc0eb;--red:#f16d77;--muted:#a8b9b1;--line:#ffffff18}
*{box-sizing:border-box}body{margin:0;background:#1d201f;color:#eff8f3;font:13px Outfit,sans-serif;min-height:100dvh;display:grid;place-items:center;padding:18px}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);border-radius:8px;background:#ffffff04;padding:7px 10px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px}button:hover{border-color:#90b3a5;background:#ffffff0c}button:focus-visible,#view:focus-visible{outline:2px solid var(--blue);outline-offset:2px}button[aria-pressed=true]{border-color:var(--green);background:#59c9a512}button:disabled{opacity:.35;cursor:wait}main{display:grid;grid-template-columns:minmax(0,1fr) 190px;width:min(100%,920px);height:min(560px,calc(100dvh - 36px));min-height:420px;border:1px solid #ffffff20;border-radius:15px;overflow:hidden}.workspace{position:relative;min-width:0;overflow:hidden;background:radial-gradient(ellipse at 45% 40%,#24403966,transparent 70%),#192722}.toolbar{position:absolute;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;gap:10px;z-index:5;pointer-events:none}.toolbar>*{pointer-events:auto}.mode-tabs,.zoom{display:flex;gap:2px;background:#1b2b25e8;border:1px solid var(--line);padding:3px;border-radius:20px}.mode-tabs button,.zoom button{border-color:transparent;border-radius:16px;font-size:12px;min-height:30px}.mode-tabs button[aria-pressed=true]{background:#59c9a51a;border-color:#59c9a54a}.toolbar>#transparent,.view-bottom>#rotation{background:#22362be8;border-radius:50%;width:38px;height:38px;padding:9px}.icon{width:18px;height:18px;display:inline-flex}.icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}#view{position:absolute;inset:38px 0 40px;cursor:grab;touch-action:none;background-image:radial-gradient(#b6e1ca16 .7px,transparent .7px);background-size:24px 24px}#view:active{cursor:grabbing}canvas{width:100%;height:100%;display:block}.view-bottom{position:absolute;bottom:12px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:center;z-index:5;pointer-events:none}.view-bottom>*{pointer-events:auto}.zoom button{min-width:30px;padding:4px}.zoom #fit{font-size:11px}aside{background:#1a2a23;border-left:1px solid var(--line);padding:12px 10px;overflow:auto;scrollbar-width:thin}.hierarchy-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.hierarchy-heading h1{font-size:14px;margin:0;font-weight:500}.hierarchy-heading button{font-size:11px;min-height:28px;padding:4px 9px}.floor{border-left:1px solid #8ea59844;padding:0 0 13px 9px;position:relative}.floor-label{display:flex;align-items:center;padding-bottom:6px}.floor-label:before{content:'';position:absolute;left:-1px;width:6px;height:1px;background:#8ea59888}.floor-label button{border:0;padding:0;min-height:23px;background:transparent;justify-content:flex-start;font-size:11px;gap:6px}.floor-label button:before{content:'';width:6px;height:6px;border:1px solid #f4a712;transform:rotate(45deg);margin-left:2px}.floor-label button[aria-pressed=true]{color:var(--green)}.unit-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.unit{min-width:0;border:1px solid #6b817550;background:#1b221e;border-radius:5px;padding:7px 8px;text-align:left;justify-content:space-between;gap:4px;min-height:34px}.unit span{font-size:12px}.unit svg{width:11px;height:11px;flex-shrink:0;stroke:var(--green);fill:none;stroke-width:1.5}.unit[data-connected=false]{border-left:2px solid var(--red)}.unit[data-connected=false] svg{stroke:var(--red)}.unit[aria-pressed=true]{background:#163b2e;border-color:var(--green)}.unit[data-connected=false][aria-pressed=true]{background:#542c31;border-color:var(--red)}#selection{border-top:1px solid var(--line);padding-top:11px;margin-top:3px}.selection-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}.selection-header h2{font-size:12px;margin:0;font-weight:500}.selection-header strong{font-size:15px;font-weight:500}.selection-header.red{color:var(--red)}.route-breakdown{margin:0;display:grid;gap:5px}.route-breakdown div{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.route-breakdown dd{margin:0;color:#d6e5dc}.estimate{font-size:9px;color:#89a095;margin:8px 0 0}#scan-progress{position:absolute;bottom:0;left:0;right:0;height:2px}#scan-progress>div,#scan-progress i{height:100%}#scan-progress i{display:block;background:var(--blue);width:0}#cable-tip{position:absolute;z-index:6;pointer-events:none;background:#10211ef5;border:1px solid var(--green);border-radius:7px;padding:8px 10px;box-shadow:0 5px 20px #0005;max-width:210px;white-space:nowrap;font-size:11px}#cable-tip strong{font-size:14px;margin-left:12px;font-weight:500}#cable-tip small{display:block;color:#a7beb2;font-size:9px;margin-top:3px}#cable-point{position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #59c9a599;pointer-events:none;z-index:5;transform:translate(-50%,-50%)}[hidden]{display:none!important}
@media(max-width:600px){body{padding:0}main{width:100%;height:100dvh;min-height:480px;border:0;border-radius:0;grid-template-columns:1fr;grid-template-rows:minmax(260px,1fr) auto}aside{border-left:0;border-top:1px solid var(--line);overflow:visible;padding:8px 10px}.hierarchy-heading{margin-bottom:7px}.hierarchy-heading h1{font-size:12px}.hierarchy-heading button{min-height:28px}#floors{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.floor{padding:0 0 0 6px}.floor-label button{font-size:10px;white-space:nowrap}.floor-label button:before{display:none}.unit{padding:5px;min-height:32px}.unit span{font-size:11px}.unit-grid{gap:4px}#selection{padding-top:7px;margin-top:8px}.selection-header{margin-bottom:5px}.route-breakdown{display:flex;gap:14px;flex-wrap:wrap}.route-breakdown div{gap:6px}.estimate{margin-top:4px}#cable-tip{max-width:190px;font-size:10px}#cable-tip strong{font-size:12px}}

/* In an embed the parent chooses Scan or Plan. The tabs are only for local review. */
.toolbar>#replay{background:#22362be8;border-radius:50%;width:38px;height:38px;padding:9px}
.toolbar .mode-tabs{margin-right:auto}.toolbar #transparent{margin-left:auto}
body[data-view=scan] main{grid-template-columns:minmax(0,1fr);grid-template-rows:1fr}
body[data-view=scan] aside{display:none}

/* One quiet control strip, kept clear of the model. */
.view-bottom{justify-content:flex-start;gap:5px;right:auto;max-width:calc(100% - 24px)}
.view-bottom>button,.view-bottom>#rotation{width:34px;height:34px;min-height:34px;padding:7px;background:#1b2b25ee;border:1px solid var(--line);border-radius:10px}
.view-bottom>button[aria-pressed=true]{border-color:#59c9a56b;background:#224438}
.view-bottom .zoom{border-radius:10px;padding:0;height:34px;gap:0}
.view-bottom .zoom button{min-width:25px;padding:3px 5px;border-radius:8px}
.view-bottom #fit{min-width:42px;font-size:11px}
.view-bottom #flow{width:auto;gap:4px;font-size:10px;min-width:62px}
.view-bottom #flow[data-state=follow]{border-color:var(--blue);color:#b8efff}
.view-bottom #flow[data-state=off]{color:#82958c}
@media(max-width:600px){.view-bottom{left:8px;bottom:10px;gap:4px;max-width:calc(100% - 16px)}.view-bottom>button,.view-bottom>#rotation{width:32px;padding:6px}.view-bottom #flow{min-width:58px}}

.equipment-list{display:grid;gap:4px;margin-top:9px;font-size:10px;color:var(--muted)}
.equipment-list span{display:flex;align-items:center;gap:6px}.equipment-list span:before{content:'';width:6px;height:6px;border:1px solid var(--green);border-radius:1px;flex:none}
@media(max-width:600px){.equipment-list{display:flex;flex-wrap:wrap;gap:5px 14px;margin-top:6px}}

@media(min-width:601px){.hierarchy-heading{margin-bottom:10px}.floor{padding-bottom:9px}.equipment-list{font-size:9px}}

/* Readable detail takes priority over keeping the hierarchy on one screen. */
.selection-header{display:grid;gap:5px;margin-bottom:14px}.selection-header h2{font-size:14px;line-height:1.4}.selection-header strong{font-size:19px}
.route-breakdown{display:grid;gap:10px}.route-breakdown div{font-size:13px;line-height:1.4;gap:8px}.route-breakdown dd{white-space:nowrap}
.equipment-list{display:grid;gap:9px;font-size:13px;line-height:1.4;margin-top:15px}.equipment-list span:before{width:8px;height:8px}
.estimate{font-size:12px;line-height:1.5;margin-top:14px;color:#a8b9b1}
#view{background-image:radial-gradient(circle,#82c9b13d 1px,transparent 1.2px);background-size:22px 22px}
body[data-view=scan] .workspace{background:radial-gradient(ellipse at 45% 40%,#244c6066,transparent 75%),#142830}
body[data-view=scan] #view{background-image:radial-gradient(circle,#76cae845 1px,transparent 1.2px)}
body[data-view=scan] .mode-tabs,body[data-view=scan] .view-bottom>button,body[data-view=scan] .zoom{background:#173642ed;border-color:#75cce733}
body[data-view=scan] button:hover{border-color:#70cee9;background:#214958}
body[data-view=scan] button[aria-pressed=true]{border-color:#3fc0eb;background:#3fc0eb25;color:#c4f2ff}
#plan-intro{position:absolute;left:14px;bottom:56px;display:flex;align-items:center;gap:9px;font-size:13px;color:#dcf7eb;padding:9px 12px;border:1px solid #59c9a53b;border-radius:18px;background:#172b25eb;pointer-events:none}
#plan-intro > i{height:7px;width:7px;border-radius:50%;background:#59c9a5;box-shadow:0 0 10px #59c9a5}
@media(max-width:600px){aside{max-height:42dvh;overflow:auto}.route-breakdown{display:grid;gap:10px}.route-breakdown div{font-size:13px}.equipment-list{display:grid;font-size:13px}.estimate{font-size:12px}.selection-header h2{font-size:14px}}

#plan-intro[data-stage=routes] > i{width:16px;height:2px;border-radius:1px;box-shadow:0 0 6px #59c9a5}

/* Fill the host panel. Dashboard previews use their own floor and unit controls. */
.materials-scope{font-size:12px;color:var(--muted)}
.route-breakdown .materials-total{border-top:1px solid var(--line);padding-top:10px;color:#eff8f3}
.materials-total dd{color:var(--green)}
.floor-label,.unit{transition:opacity .65s ease,transform .65s ease,visibility .65s}
.floor-label.route-pending,.unit.route-pending{opacity:0;transform:translateY(7px);visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){.floor-label,.unit{transition:none;transform:none}}
body{padding:0;min-height:0;height:100dvh;overflow:hidden}
main{width:100%;height:100dvh;min-height:0;border:0;border-radius:0}
#view{top:0;bottom:52px}
body[data-compact] main{grid-template-columns:1fr;grid-template-rows:1fr}
body[data-compact] aside{display:none}
@media(max-width:600px) and (max-height:450px){.view-bottom{bottom:8px}#plan-intro{bottom:52px}main{grid-template-rows:minmax(180px,1fr) auto}aside{max-height:38dvh}}
