/* Plugin-owned document: independent of the active WordPress theme. */
body.vnd-owned-document { margin:0; padding:0; background:#f8fbff; color:#24364b; font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
html[data-vnd-theme=dark] body.vnd-owned-document { background:#1b232d; color:var(--vnd-text); }
body.vnd-owned-document .vnd-company-shell { display:flex; flex-direction:column; width:100%; max-width:var(--vnd-workspace-max-width,2400px); min-height:0; margin:0 auto; padding:12px 12px 0; gap:12px; box-sizing:border-box; }
.vnd-app.vnd-company-shell .vnd-shell-header { position:relative; width:100%; box-sizing:border-box; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px 20px; padding:4px 0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.vnd-app.vnd-company-shell .vnd-shell-brand { display:inline-flex; align-items:center; width:160px; min-height:40px; }
.vnd-app.vnd-company-shell .vnd-shell-brand img { display:block; width:100%; height:auto; max-height:40px; object-fit:contain; }
html[data-vnd-theme=dark] .vnd-shell-brand img { filter:brightness(0) invert(1); }
.vnd-app.vnd-company-shell .vnd-shell-account { min-width:0; justify-self:end; }
.vnd-app.vnd-company-shell .vnd-shell-account .vnd-topbar-title { display:none; }
.vnd-app.vnd-company-shell .vnd-shell-menu { grid-column:1/-1; border:0; margin:0; padding:0; min-width:0; }
.vnd-app.vnd-company-shell .vnd-shell-menu > summary { display:none; }
.vnd-app.vnd-company-shell .vnd-shell-menu .vnd-navigation { margin:0; }
.vnd-app.vnd-company-shell .vnd-main { flex:0 0 auto; width:100%; }
.vnd-app.vnd-company-shell .vnd-shell-footer { flex:0 0 1px; width:100%; height:1px; min-height:1px; max-height:1px; border:0; background:transparent; margin:0; padding:0; overflow:hidden; }
html[data-vnd-theme=dark] .vnd-app.vnd-company-shell .vnd-shell-header { background:transparent; }
.vnd-shell-menu > summary:focus-visible,.vnd-shell-brand:focus-visible { outline:2px solid #527ba6; outline-offset:3px; }
@media(max-width:1024px){
 body.vnd-owned-document .vnd-company-shell { padding:8px 10px env(safe-area-inset-bottom,0px); gap:10px; }
 .vnd-app.vnd-company-shell .vnd-shell-header { grid-template-columns:minmax(0,1fr) 44px; gap:8px; padding:4px 0; }
 .vnd-app.vnd-company-shell .vnd-shell-brand { width:138px; grid-column:1; grid-row:1; }
 .vnd-app.vnd-company-shell .vnd-shell-account { grid-column:1/-1; grid-row:2; width:100%; }
 .vnd-app.vnd-company-shell .vnd-topbar-account { justify-content:space-between; width:100%; flex-wrap:nowrap; gap:8px; }
 .vnd-app.vnd-company-shell .vnd-topbar-meta { min-width:0; overflow:hidden; text-align:right; }
 .vnd-app.vnd-company-shell .vnd-topbar-meta span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }
 .vnd-app.vnd-company-shell .vnd-shell-menu { grid-column:2; grid-row:1; }
 .vnd-app.vnd-company-shell .vnd-shell-menu > summary { display:flex; align-items:center; justify-content:center; width:44px; height:40px; box-sizing:border-box; cursor:pointer; list-style:none; border:1px solid var(--vnd-border,#ced9e4); border-radius:9px; background:var(--vnd-soft,#edf3f8); color:var(--vnd-text,#24364b); }
 .vnd-shell-menu > summary::-webkit-details-marker { display:none; }
 .vnd-shell-menu > summary svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
 .vnd-app.vnd-company-shell .vnd-shell-menu[open] > summary { background:#365f91; color:white; border-color:#729cc4; }
 .vnd-app.vnd-company-shell .vnd-shell-menu .vnd-navigation-bar { position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:1000; max-height:calc(100dvh - 160px); overflow:auto; border-radius:12px; box-shadow:0 12px 30px #10243c30; }
 .vnd-app.vnd-company-shell .vnd-shell-menu .vnd-navigation { padding:8px; border-radius:12px; }
 .vnd-app.vnd-company-shell .vnd-shell-menu .vnd-navigation-tabs { height:auto; min-height:0; flex-wrap:wrap; overflow:visible; gap:6px; padding:0 0 8px; }
 .vnd-app.vnd-company-shell .vnd-shell-menu .vnd-navigation-panel { height:auto; min-height:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; padding:4px 0 0; gap:6px; }
 .vnd-app.vnd-company-shell .vnd-shell-menu .vnd-navigation-panel[hidden] { display:none; }
 .vnd-app.vnd-company-shell .vnd-shell-menu .vnd-navigation-panel a { min-width:0; max-width:100%; white-space:normal; justify-content:flex-start; min-height:44px; padding:9px 10px; border-color:var(--vnd-border,#ced9e4); }
 .vnd-app.vnd-company-shell .vnd-shell-menu .vnd-navigation-tab { min-height:40px; }
}
@media(max-width:1024px) and (prefers-reduced-motion:no-preference){ .vnd-shell-menu[open] .vnd-navigation-bar { animation:vnd-menu-in .14s ease-out; } @keyframes vnd-menu-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } } }

.vnd-shell-menu .screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Page-level overflow belongs to local lists, never to the document canvas. */
html:has(body.vnd-owned-document),body.vnd-owned-document{overflow-x:clip;overscroll-behavior-y:none;}
.vnd-app.vnd-company-shell>:is(.vnd-main,.vnd-shell-header,.vnd-shell-footer){min-width:0;max-width:100%;}
.vnd-app.vnd-company-shell .vnd-main :is(button,.vnd-button,.button){max-width:100%;white-space:normal;overflow-wrap:anywhere;}
.vnd-app.vnd-company-shell .vnd-main :is(h1,h2,h3,p,label){overflow-wrap:anywhere;}
@media(max-width:1024px){
 .vnd-app.vnd-company-shell>.vnd-shell-menu:not([open])>:is(.vnd-navigation-bar,.vnd-menu-shade){display:none;}
}
.vnd-app.vnd-company-shell .vnd-main :is(input,select,textarea){min-width:0;max-width:100%;box-sizing:border-box;}
.vnd-app.vnd-company-shell .vnd-directory-filters label{grid-template-columns:minmax(0,1fr);}
