/* Shared PlotBrix suite controls. One stylesheet for Main, Admin, Engineering shell and previews. */
.pb-suite-app-switcher,.pb-suite-settings-menu{position:relative;flex:none}
.pb-suite-app-switcher summary,.pb-suite-settings-menu summary{
 display:grid;place-items:center;width:42px;height:42px;
 background:transparent;color:inherit;border:1px solid transparent;border-radius:50%;
 cursor:pointer;list-style:none;user-select:none;
}
.pb-suite-app-switcher summary::-webkit-details-marker,.pb-suite-settings-menu summary::-webkit-details-marker{display:none}
.pb-suite-app-switcher summary:hover,.pb-suite-settings-menu summary:hover,
.pb-suite-app-switcher[open] summary,.pb-suite-settings-menu[open] summary{
 background:color-mix(in srgb,currentColor 9%,transparent);
}
.pb-suite-app-switcher summary:focus-visible,.pb-suite-settings-menu summary:focus-visible,
.pb-suite-app-tile:focus-visible{outline:3px solid #3b99e5;outline-offset:2px}
.pb-suite-app-panel,.pb-suite-settings-panel{
 position:absolute;top:calc(100% + 8px);z-index:1200;color:#263a50;background:#fff;
 border:1px solid #dae3ec;border-radius:18px;box-shadow:0 18px 52px #102a4338;
 padding:17px;max-height:min(79dvh,660px);overflow:auto;
}
.pb-suite-app-panel{left:0;width:min(445px,calc(100vw - 18px));}
.pb-suite-app-panel>strong,.pb-suite-settings-panel>strong{display:block;margin:0 0 13px 5px;font-size:14px;font-weight:750;letter-spacing:-.01em}
.pb-suite-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
.pb-suite-app-tile{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
 min-height:111px;border:1px solid transparent;border-radius:13px;
 color:#26394f;text-decoration:none!important;font-size:12px;font-weight:650;
 line-height:1.35;text-align:center;padding:11px 5px;
}
.pb-suite-app-tile:hover,.pb-suite-app-tile:focus-visible{background:#f0f6fb;border-color:#e1eaf3;color:#142e45}
.pb-suite-app-label{max-width:100%;word-wrap:break-word;overflow-wrap:anywhere}
.pb-suite-app-icon{
 --icon-bg:#247ca9;--icon-ink:#fff;
 display:grid;place-items:center;width:53px;height:53px;flex:0 0 53px;
 border-radius:15px;background:var(--icon-bg);color:var(--icon-ink);
 box-shadow:inset 0 1px 1px #ffffff55,0 3px 9px #10233719;
}
.pb-suite-app-icon svg{width:33px;height:33px;display:block}
.pb-suite-app-tile[data-pb-app="main"] .pb-suite-app-icon{--icon-bg:#079783}
.pb-suite-app-tile[data-pb-app="land"] .pb-suite-app-icon{--icon-bg:#237e6d}
.pb-suite-app-tile[data-pb-app="planning"] .pb-suite-app-icon{--icon-bg:#e3654f}
.pb-suite-app-tile[data-pb-app="layout"] .pb-suite-app-icon{--icon-bg:#398be6}
.pb-suite-app-tile[data-pb-app="architectural"] .pb-suite-app-icon{--icon-bg:#7258ce}
.pb-suite-app-tile[data-pb-app="engineering"] .pb-suite-app-icon{--icon-bg:#3e599f}
.pb-suite-app-tile[data-pb-app="landscape"] .pb-suite-app-icon{--icon-bg:#4d9b46}
.pb-suite-app-tile[data-pb-app="commercial"] .pb-suite-app-icon{--icon-bg:#cf7932}
.pb-suite-app-tile[data-pb-app="finance"] .pb-suite-app-icon{--icon-bg:#167dbe}
.pb-suite-app-tile[data-pb-app="customer-services"] .pb-suite-app-icon{--icon-bg:#c45a9c}
.pb-suite-app-tile[data-pb-app="admin"] .pb-suite-app-icon{--icon-bg:#465f7e}
.pb-suite-top-tools{display:flex;align-items:center;gap:9px}
.pb-suite-app-version{font-size:11px;white-space:nowrap;opacity:.86;font-variant-numeric:tabular-nums}
.pb-suite-settings-panel{right:0;width:270px;max-width:calc(100vw - 24px)}
.pb-suite-settings-panel a,.pb-suite-settings-panel button{
 font:inherit;display:block;width:100%;border:0;text-align:left;border-radius:9px;
 background:transparent;color:#284c66;padding:12px;text-decoration:none;font-size:13px;cursor:pointer
}
.pb-suite-settings-panel a:hover,.pb-suite-settings-panel button:hover{background:#eef5fc}
.pb-suite-top-tools+.pb-shared-account-menu{margin-left:0}
.pb-suite-header-brand{display:flex;align-items:center;flex:0 0 auto;gap:9px;
 font-size:20px;font-weight:800;letter-spacing:-.05em;white-space:nowrap;text-decoration:none}
.pb-suite-header-mark{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;
 background:#087c70;color:#fff;font-size:18px;font-weight:750;letter-spacing:0}
.pb-suite-header-brand strong{color:inherit}
.pb-suite-header-brand strong span{color:#dc8520}
/* Main: topbar spans the entire screen; project explorer begins beneath it. */
.pb-explorer.pb-suite-grid{
 display:grid;grid-template-columns:var(--pb-sidebar-width,340px) minmax(0,1fr);
 grid-template-rows:56px minmax(0,1fr);align-items:stretch;min-height:100dvh;
}
.pb-explorer.pb-suite-grid>.topbar{
 grid-column:1/-1;grid-row:1;position:sticky;top:0;z-index:105;
 width:100%;min-width:0;display:flex;height:56px;padding:0 17px;
 border-bottom:1px solid var(--pb-suite-line,#d6e3ec);
}
.pb-explorer.pb-suite-grid>.sidebar{
 grid-column:1;grid-row:2;width:100%;height:calc(100dvh - 56px);
 max-height:calc(100dvh - 56px);position:sticky;top:56px;min-width:0;
 /* The grid track already owns the sidebar width. The legacy independent
    width transition otherwise animates from 44px to 100% after the track
    expands, leaving a temporary gap and moving the navigation control. */
 transition:none
}
.pb-explorer.pb-suite-grid>.main-area{
 grid-column:2;grid-row:2;min-width:0;width:100%;display:flex;flex-direction:column;
}
.pb-explorer.pb-suite-grid.pb-tree-hidden:not(.pb-site-design){grid-template-columns:44px minmax(0,1fr)}
/* The sidebar control belongs inside the navigation panel, not the suite
   header. Keep the panel's original content and scroll state while collapsed. */
.pb-explorer.pb-suite-grid>.sidebar>.pb-navigation-content{
 display:flex;flex-direction:column;flex:1 1 auto;min-height:0;min-width:0;width:100%;overflow:hidden
}
.pb-explorer.pb-suite-grid>.sidebar>.pb-navigation-content[hidden]{display:none!important}
.pb-explorer.pb-suite-grid>.sidebar>.pb-navigation-header{
 display:flex!important;align-items:center;justify-content:space-between;gap:4px;
 flex:0 0 auto;width:100%;min-width:0;padding:2px 7px!important;margin:0 0 4px!important;
}
.pb-navigation-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-explorer.pb-suite-grid .pb-navigation-header .tree-toggle{
 flex:0 0 36px;display:grid;place-items:center;width:36px;height:36px;
 padding:0;color:inherit;background:transparent;font-size:21px;line-height:1;
}
.pb-explorer.pb-suite-grid .pb-navigation-header .tree-toggle:hover{
 background:color-mix(in srgb,currentColor 13%,transparent)
}
.pb-explorer.pb-suite-grid .pb-navigation-header .tree-toggle:focus-visible{
 outline:2px solid currentColor;outline-offset:-3px
}
.pb-navigation-rail-label{display:none}
.pb-explorer.pb-suite-grid.pb-tree-hidden:not(.pb-site-design)>.sidebar{
 display:flex!important;visibility:visible;overflow:hidden;width:44px!important;
 min-width:44px;min-height:0;padding:4px 2px 10px;border-right-width:1px;
 flex-direction:column;align-items:center;gap:10px;
}
.pb-explorer.pb-suite-grid.pb-tree-hidden>.sidebar>.pb-navigation-header{
 justify-content:center;padding:0!important;width:100%;margin:0!important;
}
.pb-explorer.pb-suite-grid.pb-tree-hidden>.sidebar>.pb-navigation-header>.pb-navigation-title,
.pb-explorer.pb-suite-grid.pb-tree-hidden>.sidebar>.pb-navigation-content,
.pb-explorer.pb-suite-grid.pb-tree-hidden>.sidebar>.pb-sidebar-resizer{display:none!important}
.pb-explorer.pb-suite-grid.pb-tree-hidden>.sidebar>.pb-navigation-rail-label{
 display:block;writing-mode:vertical-rl;transform:rotate(180deg);
 white-space:nowrap;letter-spacing:.12em;font-size:11px;font-weight:700;
}
.pb-explorer.pb-suite-grid.pb-site-design{grid-template-columns:0 minmax(0,1fr)}
.pb-explorer.pb-suite-grid .topbar-left{flex-wrap:nowrap;gap:12px}
.pb-explorer.pb-suite-grid .pb-module-tabs{flex-wrap:nowrap}
.pb-explorer.pb-suite-grid .topbar-right{margin-left:auto;gap:10px}
@media(max-width:1120px){
 .pb-explorer.pb-suite-grid{--pb-sidebar-width:280px;grid-template-columns:var(--pb-sidebar-width) minmax(0,1fr)}
 .pb-explorer.pb-suite-grid>.topbar{padding:0 10px}
 .pb-explorer.pb-suite-grid .topbar-left,.pb-explorer.pb-suite-grid .topbar-right{gap:6px}
 .pb-suite-header-brand{font-size:17px}
}
@media(max-width:900px){
 .pb-suite-app-version{display:none}
 .pb-suite-top-tools{gap:3px}
 .pb-suite-header-brand strong{display:none}
 .pb-explorer.pb-suite-grid .pb-suite-header-brand strong{display:inline}
 .pb-explorer.pb-suite-grid{--pb-sidebar-width:220px;grid-template-columns:var(--pb-sidebar-width) minmax(0,1fr)}
 .pb-explorer.pb-suite-grid .pb-module-tabs{overflow-x:auto;scrollbar-width:none}
}
@media(max-width:720px){
 .pb-explorer.pb-suite-grid{
  display:flex;flex-direction:column;min-width:0;
 }
 .pb-explorer.pb-suite-grid>.topbar{
  order:0;width:100%;max-width:100%;flex:0 0 auto;
  padding:0 6px;position:relative;min-height:55px;height:auto;
 }
 .pb-explorer.pb-suite-grid>.sidebar{
  order:1;width:100%;max-width:100%;min-height:0;
  max-height:320px;height:auto;position:relative;top:auto;
 }
 .pb-explorer.pb-suite-grid.pb-site-design>.sidebar{display:none}
 .pb-explorer.pb-suite-grid>.main-area{order:2;width:100%;display:flex}
 .pb-explorer.pb-suite-grid:not(.pb-site-design).pb-tree-hidden{
  display:grid;grid-template-columns:44px minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr);
 }
 .pb-explorer.pb-suite-grid.pb-tree-hidden:not(.pb-site-design)>.sidebar{
  position:sticky;top:0;height:calc(100dvh - 56px);
  max-height:calc(100dvh - 56px);
 }
 .pb-explorer.pb-suite-grid>.sidebar>.pb-navigation-content{flex:1 1 auto;overflow:auto}
 .pb-explorer.pb-suite-grid .pb-suite-header-brand{font-size:15px}
 .pb-explorer.pb-suite-grid .topbar-left{flex:1 1 auto;min-width:0}
 .pb-explorer.pb-suite-grid .pb-module-tabs{max-width:100%;min-width:0}
 .pb-explorer.pb-suite-grid .topbar-right{flex:0 0 auto}
 .pb-suite-app-panel{left:-6px}
 .pb-suite-app-icon{width:48px;height:48px;flex-basis:48px;border-radius:13px}
 .pb-suite-app-icon svg{width:29px;height:29px}
 .pb-suite-app-tile{min-height:100px}
}
@media(max-width:420px){
 .pb-explorer.pb-suite-grid .pb-suite-header-brand{display:none}
 .pb-suite-app-panel{width:min(390px,calc(100vw - 10px));padding:10px}
 .pb-suite-app-grid{gap:3px}
 .pb-suite-app-tile{font-size:11px;padding:6px 2px;min-height:93px}
 .pb-suite-settings-menu summary,.pb-suite-app-switcher summary{width:37px;height:37px}
}
