/* Step e · the layout tool in the square of Structures & Site (see tools-connect.js). The mockup box is hidden, not removed. */
#structuresSiteView .site-shell.sv-tools-hidden{display:none!important}
#svToolBox{position:relative;background:#fff;border:1px solid var(--line,#DCE3DE);border-radius:24px;overflow:hidden;box-shadow:var(--shadow,0 8px 24px rgba(13,64,58,.08))}
#svToolBox iframe{display:block;width:100%;height:var(--sv-tool-h,760px);border:0;background:#fff}
#svToolBox .sv-tool-note{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:7px 14px;border-radius:999px;background:#0D403A;color:#fff;font-size:12px;box-shadow:0 8px 24px rgba(13,64,58,.25);pointer-events:none}
@media(max-width:900px){#svToolBox iframe{height:520px}}

/* 5 Nov 2026 · "Project tools" in the project bar: open the 2D Builder, Client Brief, Design Library, Farmnet or Project Visualization */
#ecoProjectContext{position:relative;z-index:40}
#ecoProjectContext.sv-pt-on{z-index:260}
.sv-pt{position:relative;display:inline-flex;margin:0 auto 0 8px}
.sv-pt-btn{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 12px;border:1.5px solid #0D403A;border-radius:8px;background:#fff;color:#0D403A;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.sv-pt-btn:hover,.sv-pt-btn[aria-expanded=true]{background:#E9F1EE}
.sv-pt-btn[aria-expanded=true] .sv-pt-chev{transform:rotate(180deg)}
.sv-pt-menu{position:absolute;left:0;top:calc(100% + 6px);z-index:60;min-width:280px;background:#fff;border:1px solid #DCE6DF;border-radius:14px;box-shadow:0 16px 40px rgba(13,64,58,.16);padding:6px;display:flex;flex-direction:column}
.sv-pt-menu[hidden]{display:none}
.sv-pt-menu button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:10px;min-height:44px}
.sv-pt-menu button:hover,.sv-pt-menu button:focus-visible{background:#F1F7F3;outline:none}
.sv-pt-menu button[aria-current=true]{background:#E9F1EE}
.sv-pt-menu button[aria-current=true] strong::after{content:" · open";font-weight:400;color:#0B6F55}
.sv-pt-menu strong{font-size:14px;color:#102A22;font-weight:600}
.sv-pt-menu small{font-size:12px;color:#5F7369}
@media(max-width:900px){.sv-pt{margin-left:0}.sv-pt-menu{left:auto;right:0}}

/* 5 Nov 2026 · Structures & Site uses the whole width beside the menus (the other pages keep their 1200 px reading width) */
@media (min-width:1000px){
body.sv-wide-tool:not(.workspace-mode) .page{max-width:none!important;margin-left:calc(244px + 24px)!important;margin-right:24px!important}
body.sv-wide-tool.sidebar-collapsed:not(.workspace-mode) .page{margin-left:calc(76px + 24px)!important}
body.sv-wide-tool.sv-rail-pinned.pr-rail-open:not(.workspace-mode) .page{margin-left:calc(406px + 12px)!important;margin-right:24px!important}
[dir=rtl] body.sv-wide-tool:not(.workspace-mode) .page{margin-right:calc(244px + 24px)!important;margin-left:24px!important}
[dir=rtl] body.sv-wide-tool.sidebar-collapsed:not(.workspace-mode) .page{margin-right:calc(76px + 24px)!important}
[dir=rtl] body.sv-wide-tool.sv-rail-pinned.pr-rail-open:not(.workspace-mode) .page{margin-right:calc(406px + 12px)!important;margin-left:24px!important}
}

/* 5 Nov 2026 · D-077: a saved version shown read-only in the square */
#svToolBox .sv-ver-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;background:#0D403A;color:#fff;font-size:13px}
#svToolBox .sv-ver-banner span{flex:1 1 320px}
#svToolBox .sv-ver-banner button{font:inherit;font-size:12.5px;border-radius:8px;padding:7px 12px;border:1px solid rgba(255,255,255,.75);background:transparent;color:#fff;cursor:pointer;min-height:36px;white-space:nowrap}
#svToolBox .sv-ver-banner button:hover{background:rgba(255,255,255,.12)}
#svToolBox .sv-ver-banner button.sv-vb-main{background:#fff;color:#0D403A;border-color:#fff}

/* D-079 (6 Nov 2026) · the working copy's status in the project bar, and the choice when someone else saved first */
.sv-wc{display:inline-flex;align-items:center;gap:6px;margin-left:8px;padding:4px 10px;border-radius:999px;font:500 12px/1.2 'Varela Round',system-ui,sans-serif;white-space:nowrap;border:1px solid #E1E8E4;background:#fff;color:#4a5d55}
.sv-wc::before{content:'';width:7px;height:7px;border-radius:50%;background:#9AA9A2}
.sv-wc-ok::before{background:#2E9B57}.sv-wc-saving::before{background:#E8711C}.sv-wc-offline::before,.sv-wc-error::before{background:#B8372A}
.sv-wc-offline,.sv-wc-error{color:#8A2A20;border-color:#F0CFC9;background:#FDF3F1}
.sv-wc-conflict{color:#7A4A00;border-color:#F1DCB4;background:#FDF1DD}.sv-wc-conflict::before{background:#E8711C}
#svWcConflict{position:fixed;right:24px;bottom:24px;z-index:3000;max-width:460px;padding:16px 18px;border-radius:14px;background:#fff;border:1px solid #F1DCB4;box-shadow:0 8px 28px rgba(13,64,58,.18);font:14px/1.45 'Varela Round',system-ui,sans-serif;color:#0D403A}
#svWcConflict p{margin:6px 0 12px;color:#4a5d55}
#svWcConflict div{display:flex;flex-wrap:wrap;gap:8px}
#svWcConflict button{border:1px solid #0D403A;background:#fff;color:#0D403A;border-radius:10px;padding:7px 12px;font:inherit;font-size:13px;cursor:pointer}
#svWcConflict button.sv-wc-main{background:#E8711C;border-color:#E8711C;color:#fff}
#svWcConflict button:disabled{opacity:.5;cursor:default}
