:root{--navy:#14263a;--copper:#b8763e;--grey:#5a5a5a;--pale:#f4f6f9;--line:#d5dbe3;--ink:#1a1f26;--red:#a8201a;--green:#1d7a3e;--pick:#e8750a;--joint:#1b3a6b;--cm:#2f7fd6}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--pale);color:var(--ink);font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;display:flex;flex-direction:column}
button{font:inherit;border:1px solid var(--line);background:#fff;border-radius:3px;padding:5px 10px;cursor:pointer;color:var(--ink)}
button:hover{border-color:var(--navy)}
button.primary{background:var(--navy);color:#fff;border-color:var(--navy)}
button.on{background:var(--navy);color:#fff;border-color:var(--navy)}
button.danger{color:var(--red)}
button:disabled{opacity:.45;cursor:default}
input,textarea,select{font:inherit;padding:5px 7px;border:1px solid var(--line);border-radius:3px;width:100%;background:#fff}
textarea{min-height:70px;resize:vertical}
input:disabled,select:disabled,textarea:disabled{background:var(--pale);color:var(--grey)}
label{display:block;font-size:12px;color:var(--grey);margin:8px 0 3px}
.muted{color:var(--grey)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;padding:6px 14px;border-bottom:3px solid var(--navy);flex:none}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.homelink{display:flex;flex:none}.toproj{flex:none}.toproj button{white-space:nowrap}.logo{height:29px;width:141px;flex:none}   /* (Panel mode's bar's mark: "PanelHQ" centred on it, no tagline — push1747; push1750) */
.name{padding-left:12px;border-left:1px solid var(--line);font-weight:600;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.barright{display:flex;align-items:center;gap:12px;white-space:nowrap}
.chip{font-size:12px;border:1px solid var(--line);border-radius:10px;padding:1px 9px;background:var(--pale)}
#banner{background:#fff6e5;border-bottom:1px solid #f0d9a8;padding:8px 14px;flex:none}
#banner b{color:#7a4b00}
.wrap{flex:1;display:flex;min-height:0}
.left,.right{width:250px;flex:none;background:#fff;border-right:1px solid var(--line);overflow:auto;padding:8px 12px}
aside.right{border-right:0;border-left:1px solid var(--line);width:300px}
h2{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--grey);margin:12px 0 6px}
h3{font-size:14px;margin:4px 0 8px;color:var(--navy)}
.sheet{padding:6px 8px;border:1px solid transparent;border-radius:3px;cursor:pointer;margin-bottom:2px}
.sheet:hover{border-color:var(--line)}
.sheet.cur{background:#e8eef6;border-color:#c5d3e6}
.sheet small{display:block;color:var(--grey)}
.file{font-size:12.5px;margin:3px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.center{flex:1;display:flex;flex-direction:column;min-width:0}
.tools{display:flex;gap:6px;align-items:center;padding:6px 10px;background:#fff;border-bottom:1px solid var(--line);flex-wrap:wrap}
.tools .sep{width:10px}
#view{flex:1;position:relative;overflow:hidden;background:#e4e8ee;cursor:default;touch-action:none}
#view.draw{cursor:crosshair}
#paper{position:absolute;left:0;top:0;transform-origin:0 0;box-shadow:0 2px 10px rgba(0,0,0,.18);background:#fff}
#paper img{display:block;width:100%;height:100%;user-select:none;-webkit-user-drag:none;opacity:.65}
/* (the architect's drawing halftoned on screen as on the submittal PDF — push1839; Justin, 2026-11-20: "I know we already halftone the
   architectural backgrounds on the pdf but we need that on screen also": the PDF lays white at 0.35 over it, core/submittal.py; the
   picture at 0.65 over the white paper is the same) */
#ov{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
#empty[hidden]{display:none}
#empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:30px}
.jt{stroke:var(--joint);fill:none;stroke-linecap:round}
.jt.sel{stroke:var(--pick)}
.hit{stroke:transparent;fill:none;cursor:pointer}
.tag{font:bold 11px sans-serif;fill:var(--joint)}
.tagbox{fill:#fff;stroke:var(--joint)}
.grip{fill:var(--pick);fill-opacity:.14;stroke:var(--pick);cursor:move}
.snap{fill:none;stroke:#1d7a3e}
.rub{stroke:var(--pick);stroke-dasharray:6 4;fill:none}
.cm{fill:var(--cm);stroke:#fff;cursor:pointer}
.scl{stroke:#1d7a3e;stroke-dasharray:4 3}
.props-empty{color:var(--grey);font-size:13px}
.row{display:flex;gap:6px;align-items:center;margin:6px 0;flex-wrap:wrap}
.row>*{flex:none}
.approx{font-size:11px;color:#7a4b00;letter-spacing:.03em}
.pick{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:3px;padding:6px;margin:6px 0;background:var(--pale)}
.pick img{width:64px;height:40px;object-fit:contain;background:#fff;border:1px solid var(--line)}
.lib{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;max-height:56vh;overflow:auto;margin-top:8px}
.lib .it{border:1px solid var(--line);border-radius:3px;padding:6px;cursor:pointer;font-size:12px;background:#fff}
.lib .it:hover,.lib .it.on{border-color:var(--pick);box-shadow:0 0 0 1px var(--pick)}
.lib .it img{width:100%;height:84px;object-fit:contain;display:block;margin-bottom:4px}
.lib .it b{display:block}
.tabs{display:flex;gap:4px;margin-bottom:8px}
.tabs button{flex:1;font-size:12.5px}
.cmt{border-bottom:1px solid var(--line);padding:6px 0;font-size:13px;cursor:pointer}
.cmt small{color:var(--grey);display:block}
.cd{border:1px solid var(--line);border-radius:3px;padding:8px;margin:6px 0;background:var(--pale)}
.cd b{color:var(--navy)}
.dlg-head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line)}
.dlg-head button{border:0;font-size:16px;padding:2px 6px}
.pp{min-width:min(420px,80vw)}
.pp-head{font-weight:600;margin-bottom:8px}
.pp-bar{height:12px;border-radius:6px;background:var(--line);overflow:hidden}
.pp-fill{height:100%;width:0;background:var(--navy);transition:width .3s}
.pp-count{margin:6px 0;font-size:12px}
.pp-list{max-height:220px;overflow:auto;margin:0;padding-left:22px;font-size:12px;color:#2a6b3a}
.dlg-foot{padding:10px 14px;border-top:1px solid var(--line);text-align:right}
.pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.pages label{border:1px solid var(--line);border-radius:3px;padding:6px;margin:0;color:var(--ink);cursor:pointer}
.pages img{width:100%;display:block;margin:4px 0;border:1px solid var(--line)}
.err{color:var(--red)}
#busy{position:fixed;left:50%;top:60px;transform:translateX(-50%);background:var(--navy);color:#fff;font-size:12.5px;padding:4px 14px;border-radius:12px;z-index:60}
#busy[hidden]{display:none}
body.ro .edit-only{display:none}
body.closed{align-items:center;justify-content:center}
.card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--navy);border-radius:6px;padding:30px 32px;max-width:420px;text-align:center;box-shadow:0 6px 24px rgba(20,38,58,.08);margin:16px}
.card-logo{height:40px;margin-bottom:10px}
.card h1{font-size:18px;color:var(--navy);margin:4px 0 10px}
.card p{color:var(--grey);margin:0}
@media (max-width:900px){.left{width:180px}aside.right{width:240px}}
.dim line{stroke:#1f5fbf}
.dim text{fill:#1f5fbf;stroke:#fff;paint-order:stroke;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.dim.live line{stroke:var(--pick)}
.dim.live text{fill:var(--pick)}
.op rect{fill:rgba(47,127,214,.13);stroke:#2f7fd6;cursor:pointer}
.op rect.pane{fill:none;stroke:#2f7fd6;stroke-dasharray:3 2}
.op text{fill:#1f4f8f;stroke:#fff;paint-order:stroke;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;cursor:pointer}
.op.sel rect{stroke:var(--pick);fill:rgba(232,117,10,.12)}
.ar .fill{fill:rgba(29,122,62,.08);stroke:none;pointer-events:none}
.ar .edge{fill:none;stroke:#1d7a3e;pointer-events:none}
.ar .hit{fill:none;stroke:transparent;cursor:pointer}
.ar text,.ar-live{fill:#145a2d;stroke:#fff;paint-order:stroke;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.ar text{cursor:pointer}
.ar.sel .edge{stroke:var(--pick)}
.agrip{fill:var(--pick);fill-opacity:.14;stroke:var(--pick);cursor:move}
.agrips .agrip{fill:#fff;fill-opacity:1;pointer-events:none}
.agrips .gpick{fill:transparent;stroke:none;cursor:move}       /* (a grip's wide round pick zone, over everything — push1833) */
.agrips .acorner:hover .agrip{fill:var(--pick)}
.amid-c{fill:#fff;stroke:var(--pick);pointer-events:none}.amid-p{stroke:var(--pick);pointer-events:none}
.agrips .amid .gpick{cursor:copy}.agrips .amid:hover .amid-c{fill:var(--pick)}.agrips .amid:hover .amid-p{stroke:#fff}
.sw{display:inline-block;width:11px;height:11px;border-radius:2px;margin-right:6px;vertical-align:-1px;flex:none}
table.lay{width:100%;border-collapse:collapse;margin:4px 0}
table.lay th{text-align:left;font-size:12px;color:var(--grey);font-weight:600;padding:3px 4px}
table.lay td{padding:2px 4px}
table.lay td:first-child input{min-width:220px}
.dl{display:flex;gap:10px;height:56vh;margin-top:8px}
.dl-list{flex:1;overflow:auto;border:1px solid var(--line);border-radius:3px;padding:4px 8px}
.dl-h{font-weight:700;margin:8px 0 2px;color:var(--navy)}
.dl-row{display:flex;gap:6px;align-items:baseline;margin:0;padding:2px 2px;color:var(--ink);font-size:13px;cursor:pointer}
.dl-row b{min-width:34px}
.dl-row.on{background:#e3eefc;border-radius:3px}
.dl-pv{width:45%;border:1px solid var(--line);border-radius:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;background:#fafbfc}
.dl-pv img{max-width:100%;max-height:85%;object-fit:contain;background:#fff}
.dl-pvt{font-weight:600;margin-bottom:6px;text-align:center}
.ko circle{fill:#fff;stroke:#1a5276;cursor:move}
.ko line{stroke:#1a5276}
.ko text{fill:#1a5276;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;cursor:move}
.ko.sel circle{stroke:var(--pick)}
/* a callout whose detail is gone: red and dashed, as every callout bubble (shared/static/callout.js, push1855) */
.ko .kempty circle,.ko .kempty line{stroke:#c00000}.ko .kempty text{fill:#c00000}
/* the hint on its own line, one line high: a longer hint never moves the sheet under the cursor */
.hintrow{background:#fff;border-bottom:1px solid var(--line);padding:2px 10px 4px;height:24px;flex:none;overflow:hidden}
#hint{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.dl-row input{width:auto;flex:none;margin:0}
.dl-row span{flex:1}
#prefs{position:fixed;inset:0;background:rgba(20,38,58,.35);display:flex;align-items:center;justify-content:center;z-index:40}
#prefs[hidden]{display:none}
.pf-box{background:#fff;border-radius:6px;width:min(900px,96vw);height:92vh;display:flex;flex-direction:column;box-shadow:0 10px 40px rgba(0,0,0,.25)}
.pf-box .dlg-foot{display:flex;justify-content:space-between;align-items:center}
.pf-box .dlg-head button{border:0;font-size:16px;padding:2px 6px}
#pf-body{overflow:auto;padding:10px 18px 30px;flex:1}
.pf-q{border-bottom:1px solid var(--line);padding:12px 0}
.pf-q .qt{font-weight:600;margin-bottom:6px}
.pf-q .qt .star{color:var(--red)}
.pf-opt{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin:4px 0}
.pf-opt>label{display:flex;gap:6px;align-items:flex-start;margin:0;color:var(--ink);font-size:13.5px;cursor:pointer}
.pf-opt>label input{width:auto;margin-top:3px}
.pf-f{display:inline-flex;gap:4px;align-items:center;font-size:12px;color:var(--grey);margin:0}
.pf-f input{width:150px}
.pf-wide{display:block;margin:6px 0}
.pf-wide input,.pf-wide textarea{width:100%}
.pf-g{font-size:12px;color:var(--grey);margin:8px 0 2px;font-weight:600}
.pf-fig{max-width:100%;border:1px solid var(--line);margin:6px 0}
.pf-note{margin-top:6px}
table.pf-wt{border-collapse:collapse;margin:6px 0;font-size:13px}
table.pf-wt th,table.pf-wt td{border:1px solid var(--line);padding:3px 8px;text-align:left}
table.pf-wt th{background:var(--pale);font-weight:600}

/* ---- the side panels (push669, Justin: "make them easier to read … better contrast"): a grey panel, each part a white
   card with a header bar; lists of rows; Properties as a heading, groups, label | value rows */
.left,aside.right{background:#e9edf2;padding:10px}
.side-title{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#fff;background:var(--navy);margin:-10px -10px 10px;padding:7px 12px}
.pb{background:#fff;border:1px solid #d3dae3;border-radius:5px;margin-bottom:10px;overflow:hidden}
.pb-h{display:flex;align-items:center;gap:6px;padding:6px 8px 6px 10px;background:#f4f6f9;border-bottom:1px solid #dfe4ea}
.pb-t{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--navy)}
.cnt{font-size:11px;font-weight:600;color:#fff;background:#7a8696;border-radius:9px;padding:0 6px;min-width:18px;text-align:center}
.cnt:empty{display:none}
.pb-add{margin-left:auto;font-size:12px;padding:2px 8px;border-color:#c9d2dd;color:var(--navy);font-weight:600}
.pb-list{padding:2px 0}
.pb-note{padding:8px 10px;font-size:12.5px;color:var(--ink)}
.pb-empty{padding:8px 10px;font-size:12.5px;color:var(--grey);font-style:italic}
.item{display:flex;gap:8px;align-items:flex-start;padding:7px 10px;border-top:1px solid #eef1f4;cursor:pointer;line-height:1.3}
.pb-list .item:first-child{border-top:0}
.item:hover{background:#f2f6fb}
.item.cur{background:#e3ecf7;box-shadow:inset 3px 0 0 var(--navy)}
.item .main{flex:1;min-width:0}
.item .t1{font-size:13px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item .t1 b{color:var(--navy);margin-right:4px}
.item .t2{font-size:11.5px;color:var(--grey);margin-top:1px}
.item .tag{font-size:10.5px;font-weight:700;color:#4a5563;background:#e9edf2;border-radius:3px;padding:1px 5px;flex:none;margin-top:1px}
.item .sw{margin-top:3px}
.item a{color:var(--navy)}
.progress{height:6px;background:#e3e8ee;border-radius:3px;margin:6px 0 4px;overflow:hidden}
.progress>div{height:100%;background:var(--green)}
.need{color:#8a5a00;font-size:12px}
/* Properties */
#props{font-size:13px}
.p-head{background:#fff;border:1px solid #d3dae3;border-radius:5px;padding:8px 10px;margin-bottom:10px}
.p-kind{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--grey)}
.p-title{font-size:15px;font-weight:700;color:var(--navy);margin-top:2px;display:flex;align-items:center;gap:6px}
.p-group{background:#fff;border:1px solid #d3dae3;border-radius:5px;margin-bottom:10px;overflow:hidden}
.p-group h4{margin:0;padding:5px 10px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#4a5563;background:#f4f6f9;border-bottom:1px solid #dfe4ea}
.p-group>.fld,.p-group>.p-body{display:block;padding:6px 10px}
.fld span{display:block;font-size:11.5px;font-weight:600;color:#4a5563;margin-bottom:3px}
.kv{display:flex;gap:10px;padding:6px 10px;border-top:1px solid #eef1f4}
.p-group h4+.kv{border-top:0}
.kv .k{width:42%;flex:none;color:#4a5563;font-size:12.5px}
.kv .v{flex:1;color:var(--ink);font-weight:600;font-size:13px}
.kv.total .v{color:var(--navy);font-size:14px}
.approx-tag{display:inline-block;margin:6px 10px 8px;font-size:10.5px;font-weight:700;letter-spacing:.04em;color:#7a4b00;background:#fff3d6;border:1px solid #f0d9a8;border-radius:10px;padding:1px 8px}
.p-hint{padding:6px 10px;font-size:12px;color:var(--grey)}
.p-actions{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 10px}
.p-actions button{font-size:12.5px}
button.danger{border-color:#e8b8b5;color:var(--red);background:#fff}
button.danger:hover{background:#fdf1f0;border-color:var(--red)}
.p-group .tabs{padding:6px 8px 0;margin:0}
.p-group .cd,.p-group .cmt{margin:6px 10px}
.p-group>p.muted{padding:0 10px;font-size:12.5px}
.p-group>button,.p-group>.row{margin:6px 10px}
.fld{margin:0}
.p-group>.fld{padding:7px 10px 3px}
.p-group>.fld:last-child{padding-bottom:9px}
.p-group .tabs+div{padding:4px 10px 10px}
.p-group .tabs+div>p.muted{font-size:12.5px;margin:6px 0}
.pb-h .pb-t{white-space:nowrap}
/* the submittal PDF (push670) */
.pdf-dlg{min-width:380px}
.logo-box{display:flex;align-items:center;justify-content:center;height:90px;border:1px dashed var(--line);border-radius:3px;background:#fff;margin:6px 0;padding:6px}
.logo-box img{max-width:100%;max-height:78px;object-fit:contain}
/* the tool's options (one-click joints, the floor offset, a text note's leader and size, placing an opening type) */
.optsrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#f7f9fb;border-bottom:1px solid var(--line);padding:4px 10px;font-size:12.5px}
.optsrow .seg{display:inline-flex}
.optsrow .seg button{border-radius:0;margin-left:-1px}
.optsrow .seg button:first-child{border-radius:4px 0 0 4px}
.optsrow .seg button:last-child{border-radius:0 4px 4px 0}
.optsrow input[type=text]{width:80px}
.optsrow label{display:inline-flex;gap:4px;align-items:center}
/* text notes */
.nt text{fill:var(--navy);font-family:Arial,Helvetica,sans-serif;cursor:move}
.nt .nbg{fill:#fff;fill-opacity:.85;stroke:none;cursor:move}
.nt.sel .nbg{stroke:var(--pick);stroke-dasharray:4 2}
.nt .ld{stroke:var(--navy);fill:none}
.nt .ah{fill:var(--navy);stroke:none}
.nt.sel .ld{stroke:var(--pick)}
.nt.sel .ah{fill:var(--pick)}
.ngrip{fill:#fff;stroke:var(--pick);cursor:grab}
.ngrip.wgrip{fill:var(--pick);cursor:ew-resize}
/* a text note typed in place (push1834) */
/* not panelized */
.ar.np .edge{stroke:#d0021b}
.ar.np text{fill:#a8201a}
/* placing an opening type */
.ghost rect{fill:rgba(47,127,214,.10);stroke:#2f7fd6;stroke-dasharray:5 3}
.lay td button{padding:2px 6px}
/* nothing on the sheet is selected as text or dragged by the browser (a note's words, selected by a drag, were picked up
   by the browser's own drag on the next one: it cancelled ours — a leader's bend stopped after its first move) */
#view, #view text{user-select:none;-webkit-user-select:none}
.lvl{stroke:#16a085;stroke-opacity:.55;fill:none}
.npghost{fill:url(#nph);fill-opacity:.6;stroke:#d0021b;stroke-dasharray:5 3}
/* inside a placing tool, nothing under the cursor turns it into a hand or a move arrow: it stays the tool's crosshair
   (Justin, 2026-11-16: "confusing when the mouse cursor changes when we hover over another panel joint") */
#view.draw #ov, #view.draw #ov *{cursor:crosshair !important}
.kstem{stroke:#1a5276;fill:none}
.ko line.hit{stroke:transparent}                 /* (a stem's wide pick line: invisible, as every other) */
.ko.sel .kstem{stroke:var(--pick)}
.ko .kstem{cursor:move}
/* the wall type editor: the layers, and its section beside */
.wt-row{display:flex;gap:16px;align-items:flex-start}
.wt-tab{flex:1;min-width:0}
.wt-pv{flex:none;padding-top:4px}
.lay tr.lsel td{background:#fff3e6}
.lay tr.lsel td:first-child{box-shadow:inset 3px 0 0 var(--pick)}
.lay tr{cursor:pointer}
/* the elevations' crops, previewed */
.crop-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}
.crop-row{display:flex;gap:14px;align-items:flex-start}
.crop-src{flex:1;min-width:0}
.crop-svg{width:100%;height:auto;max-height:62vh;background:#fff;border:1px solid var(--line);touch-action:none;user-select:none}
.crop-shade{fill:rgba(20,38,58,.35);pointer-events:none}
.crop-box{fill:transparent;stroke:#2f7fd6;stroke-dasharray:6 4;cursor:move}
.crop-box.set{stroke:var(--pick);stroke-dasharray:none}
.crop-h{fill:#fff;stroke:var(--pick);cursor:pointer}
.crop-pv{flex:1;min-width:0}
.crop-pv img{width:100%;height:auto;border:1px solid var(--line);background:#fff}
.lay select{min-width:170px}
.wt-col{align-items:center;gap:8px;margin:2px 0 8px}
input[type=color]{width:44px;min-width:44px;height:28px;padding:1px 2px;flex:none}
.wt-col b{white-space:nowrap}
/* the colour check */
#cmap{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;image-rendering:pixelated}
#cleg{position:absolute;left:10px;bottom:10px;background:rgba(255,255,255,.95);border:1px solid var(--line);border-radius:4px;padding:6px 10px;font-size:12px;max-width:260px;z-index:5;box-shadow:0 2px 8px rgba(0,0,0,.12)}
#cleg div{display:flex;gap:6px;align-items:center;margin-top:3px}
#cleg .sw{width:14px;height:14px;border-radius:2px;flex:none;display:inline-block}
#cleg .muted{display:block;font-size:11px}
.wsel{fill:rgba(47,127,214,.08);stroke:#2f7fd6}
.wsel.cross{stroke-dasharray:6 4;fill:rgba(29,122,62,.08);stroke:#1d7a3e}

/* a detail of the client's own, open in the canvas (push1714): the drafting page in a frame where the sheet was */
.pb-sub{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#667);padding:6px 10px 2px}
.pb-add{white-space:nowrap}
.pb-add + .pb-add{margin-left:0}
.pb-h.pb-wrap{flex-wrap:wrap;row-gap:4px}
/* a detail open in the canvas: the editor's own Properties are its only ones (push1715) */

/* ---- THE PLATFORM'S NEW LOOK ON THE LAYOUT TOOL'S PAGES (push2068; Justin's mock-ups 5–7 and 9, 2026-11-24: "Yes they look great"):
   the viewers' and the hub's top bar (the mark, the breadcrumb, the actions at the right), rounded 8px buttons, the tools in labelled
   groups on a soft segment each, the side panels soft white cards on a light ground, Properties the same; the drawing on a soft ground. */
:root{--navy:#1e3a5f;--line:#d5dce5;--pale:#f3f5f8;--ink:#1b2a3d;--grey:#5b6878}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#f3f5f8;color:#1b2a3d}
button{border-radius:8px;border-color:#d5dce5;padding:0 12px;height:32px;font-size:13px}
button:hover{border-color:#d5dce5;background:#eef2f6}button.primary:hover,button.on:hover{background:#0f2440}
.bar{height:56px;padding:0 20px;border-bottom:2px solid #1e3a5f;box-sizing:border-box}
.bar.hq .brand{gap:16px}.hqBrand{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:600;color:#1b2a3d;text-decoration:none;flex:none}
.hqBrand svg{display:block}.hqSep{width:1px;height:24px;background:#dde3ea;flex:none}
.hqCr{display:flex;align-items:center;gap:8px;font-size:14px;color:#5b6878;min-width:0;white-space:nowrap;overflow:hidden}.hqCr b{color:#1b2a3d;font-weight:600}
.bar.hq .name{border:0;padding:0;font-weight:400;color:#5b6878}
.bar.hq .barright{gap:10px}.bar.hq .barright button{height:36px;font-size:14px;font-weight:500;padding:0 14px}.bar.hq .barright button.primary{font-weight:600}
.bar.hq .chip:not(:empty){display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:12px;background:#e8f5ec;color:#15803d;font-size:12px;font-weight:600}
/* the tools, each group its label over a soft segment */
.tools{gap:14px;padding:8px 16px 10px;align-items:flex-end;border-bottom:1px solid #e1e6ec}
.tools .tg{display:flex;flex-direction:column;gap:5px}.tools .tg+.tg{padding-left:14px;border-left:1px solid #e1e6ec}
.tools .tgl{font-size:11px;font-weight:600;letter-spacing:.7px;color:#5b6878;text-transform:uppercase}
.tools .tgb{display:flex;gap:3px;background:#f3f5f8;border-radius:9px;padding:3px}
.tools .tgb button{border:0;background:transparent;height:32px;padding:0 12px;border-radius:7px;color:#1b2a3d}
.tools .tgb button:hover{background:#e6ebf1}
.tools .tgb button.on{background:#fff;color:#1e3a5f;font-weight:600;box-shadow:0 1px 2px rgba(15,36,64,.12)}
.tools .tgb button:disabled{opacity:.4}
body.ro .tools .tg.edit-only{display:none}
.hintrow{padding:4px 16px}
/* the panels at the sides: white cards on the light ground */
.left,aside.right{background:#f3f5f8;padding:12px;border:0}
.side-title{background:none;color:#5b6878;margin:0 0 8px;padding:2px 4px;font-size:11px;font-weight:600;letter-spacing:.7px}
.pb,.p-head,.p-group{border:1px solid #e1e6ec;border-radius:12px;margin-bottom:10px}
.pb-h,.p-group h4{background:#fff;border-bottom:0;padding:10px 12px 4px}
.pb-t,.p-group h4{font-size:11px;font-weight:600;letter-spacing:.7px;color:#5b6878}
.cnt{background:#eef1f5;color:#5b6878;border-radius:10px;padding:0 7px}
.pb-add{height:28px;font-size:12px;border-radius:8px}
.item{border-top:0;margin:2px 6px;border-radius:8px;padding:7px 8px}.item.cur{background:#e8eef6;box-shadow:none}.item.cur .t1{color:#1e3a5f;font-weight:600}
.p-head{padding:12px 14px}.p-title{font-size:16px;color:#1b2a3d}
.fld input,.fld select,.fld textarea,#props input:not([type=checkbox]):not([type=radio]),#props select{border:1px solid #d5dce5;border-radius:8px;min-height:34px;padding:0 10px;font:inherit;font-size:13px;box-sizing:border-box}
#props textarea{border:1px solid #d5dce5;border-radius:8px;padding:6px 10px;font:inherit}
#view{background:#e9edf2;margin:12px;border-radius:12px}
.hqBrand .logo,.hqBrand img.logo{width:26px;height:26px}
/* (the tools a ribbon across the whole page, over the panels — as the mock-up: one line at a laptop's width) */
body>.tools{flex:none;background:#fff;flex-wrap:wrap}
/* the Layout tool's other pages (the details and wall types, the client's preferences, the client's home): the same top bar */
body .hb{height:56px;padding:0 20px;gap:16px;border-bottom:2px solid #1e3a5f;box-sizing:border-box;background:#fff}
body .hb a{text-decoration:none}.hqMk{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:600;color:#1b2a3d}.hqMk .logo{width:26px;height:26px}
body .hb .nm{font-weight:400;color:#5b6878;padding-left:16px;border-left:1px solid #dde3ea;font-size:14px}
body .hb .hqGt{color:#5b6878}body .hb .hqHere{color:#1b2a3d;font-weight:600;font-size:14px}
body .hb button{height:36px;font-size:14px;font-weight:500;padding:0 14px}
/* the details' and wall types' page: tabs a segment, the list a white card */
body .pm{max-width:1100px}
body .pc{border:1px solid #e1e6ec;border-radius:12px;padding:12px 22px 20px}
body .pc h1{font-size:22px;color:#1e3a5f}
body .dtabs{display:inline-flex;gap:4px;background:#eef1f5;border-radius:9px;padding:3px;margin:8px 0 14px}
body .dtabs a{border:0;border-radius:7px;padding:7px 14px;color:#1b2a3d;font-size:13px}
body .dtabs a.on{background:#fff;color:#1e3a5f;font-weight:600;box-shadow:0 1px 2px rgba(15,36,64,.12)}
body .pc h2{font-size:11px;font-weight:600;letter-spacing:.7px;color:#5b6878;text-transform:uppercase}
.tools{gap:10px}.tools .tg+.tg{padding-left:10px}.tools .tgb button{padding:0 10px}
/* the client's preferences: each question a white card, its options as chips, the notes under them */
body .pf-q{background:#fff;border:1px solid #e1e6ec;border-radius:12px;padding:14px 18px;margin:12px 0}
body .pf-q .qt{font-weight:600;font-size:14px;color:#1b2a3d;margin-bottom:8px}
body .pf-opt{display:inline-block;margin:0 6px 6px 0}
body .pf-opt label{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid #d5dce5;border-radius:16px;background:#fff;font-size:13px;cursor:pointer}
body .pf-opt label:has(input:checked){border-color:#1e3a5f;background:#f2f6fb;color:#1e3a5f;font-weight:600}
body .pf-opt input{accent-color:#1e3a5f;margin:0}
body .pf-q textarea,body .pf-q input:not([type=checkbox]):not([type=radio]){border:1px solid #d5dce5;border-radius:8px;padding:8px 12px;font:inherit;font-size:13px;box-sizing:border-box}
body .pf-note{width:100%;min-height:38px;margin-top:6px}
body .pc .sum .progress{height:8px;border-radius:4px}body .pc .sum .progress>div{background:#0f766e}
body.closed .card{border:1px solid #e1e6ec;border-radius:14px;box-shadow:0 10px 30px rgba(15,36,64,.08)}body.closed .card h1{color:#1e3a5f}
