/* Global apps above; native product navigation stays isolated and unchanged in its frame. */
.layout.top-app-layout{display:block;min-height:100dvh}
.top-app-layout>.main{width:100%;min-width:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.top-app-layout .topbar{position:relative;flex:0 0 auto;height:auto;min-height:76px;padding:14px 24px;background:var(--rail);color:#f5f2eb;gap:14px;z-index:25}
.top-app-layout .topbar .brand{padding:0;letter-spacing:.5px;white-space:nowrap;font-size:18px}
.suite-company{display:flex;align-items:center;gap:10px;min-width:0;max-width:250px;border-left:1px solid #55584f;padding-left:18px}
.suite-company label{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.suite-company select{background:#282b29;color:#f5f2eb;border-color:#55584f;font-size:13px;text-overflow:ellipsis;min-width:0}
.top-app-layout .topbar .search-trigger{flex:0 1 auto;max-width:none;color:var(--ink);background:var(--panel);white-space:nowrap}
.top-app-layout .topbar .role-chip{color:#d1d4cc}
.global-apps{display:flex;gap:6px;align-items:center;flex:0 0 auto;background:var(--rail);color:#f5f2eb;padding:6px 24px 12px;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid #41443e;min-height:60px}
.global-apps .nav-item{flex:0 0 auto;white-space:nowrap;min-height:44px;gap:8px;border-radius:7px}
.global-apps .nav-item.active{background:#f5f2eb;color:#25251f;box-shadow:inset 0 -3px #ee795c}
.global-apps .nav-item[aria-disabled=true]{color:#d1d4cc}
.global-apps .nav-state{opacity:1;color:inherit;margin-left:8px}
.suite-menu,.suite-open-apps{position:relative;font-size:13px;flex:0 0 auto}
.suite-menu summary,.suite-open-apps summary{cursor:pointer;padding:12px 10px;min-height:44px;border:1px solid #55584f;border-radius:7px;white-space:nowrap}
.suite-menu summary:focus-visible,.suite-open-apps summary:focus-visible{outline:3px solid #ee795c;outline-offset:3px}
.suite-menu>nav,.suite-open-apps>.product-tabs{position:absolute;top:calc(100% + 8px);left:0;width:280px;max-width:calc(100vw - 32px);max-height:65dvh;overflow-y:auto;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 16px 40px #0003;padding:10px;z-index:30}
.suite-menu .nav-item:hover{background:var(--soft)}
.suite-menu .nav-group,.suite-menu .suite-test-modules summary{color:var(--muted)}
.suite-open-apps>.product-tabs{left:auto;right:0}
.top-app-layout .banner{flex:0 0 auto;padding:6px 24px;font-size:11px}
.top-app-layout #content{flex:1;overflow:auto;min-height:0;width:100%}
#content[hidden],#product-workspace[hidden],#product-workspace [hidden]{display:none!important}
#product-workspace{min-width:0;background:var(--panel);min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}
.product-tabs{display:flex;flex-direction:column;gap:4px;align-items:stretch}
.product-tabs:empty:before{content:'No apps opened yet. Choose one from the top bar.';padding:12px;font-size:13px;color:var(--muted)}
.product-tab-group{display:flex;align-items:center;border:1px solid transparent;border-radius:7px}
.product-tab-group:has([aria-selected=true]){border-color:var(--line);background:var(--soft)}
.product-tab-group [role=tab]{flex:1;text-align:left;background:none;border:0;padding:12px;color:var(--muted);font-size:13px;white-space:nowrap}
.product-tab-group [role=tab][aria-selected=true]{color:var(--ink)}
.product-tab-group [role=tab].is-dirty:after{content:' •';color:var(--accent)}
.product-tab-close{border:0;background:none;border-radius:0;padding:10px 12px;color:var(--muted);font-size:18px}
.product-tab-close:hover{color:var(--ink)}
.product-panels{min-width:0;min-height:0;flex:1;overflow:hidden}
.product-panels>[data-product-panel]{height:100%;display:flex;flex-direction:column;min-height:0}
.product-toolbar{display:flex;align-items:center;gap:14px;min-height:44px;padding:6px 20px;border-bottom:1px solid var(--line);font-size:12px;flex:0 0 auto}
.product-toolbar>button{margin-left:auto}
.product-panels iframe{display:block;border:0;width:100%;height:100%;flex:1;min-height:0;background:var(--bg)}
.product-notice{padding:56px 32px;text-align:center;max-width:680px;margin:auto}
.product-notice p{color:var(--muted)}
.product-notice button{margin:8px}
.product-panels [data-state=loading] iframe{position:absolute;visibility:hidden;height:1px}
.product-panels [data-state=unavailable] iframe,.product-panels [data-state=error] iframe{display:none}
.suite-test-modules{margin-top:18px;font-size:12px}
.suite-test-modules summary{cursor:pointer;padding:10px 4px;color:#c9ccc6}
.suite-test-modules .nav-item{font-size:12px}
.suite-mobile-assistant{display:none}
@media(max-width:1100px){.top-app-layout .topbar{flex-wrap:wrap;gap:8px;padding:12px 16px}.suite-company{max-width:210px}.top-app-layout .topbar .spacer{display:none}.top-app-layout .topbar .avatar,.top-app-layout .topbar .role-chip{display:none}.top-app-layout .topbar .search-trigger{margin-left:auto}.global-apps{padding-inline:16px}}
@media(max-width:650px){.top-app-layout .topbar .brand{font-size:15px}.suite-company{max-width:calc(100% - 145px);padding-left:8px;margin-left:auto}.top-app-layout .topbar .search-trigger{order:2;margin:0;font-size:12px;flex:1}.top-app-layout .topbar [data-do=pip]{order:3;font-size:12px}.top-app-layout .topbar [data-do=theme]{order:4}.suite-menu,.suite-open-apps{font-size:12px}.suite-menu{order:1}.suite-open-apps{order:1}.top-app-layout .topbar .brand,.suite-company{margin-bottom:4px}.top-app-layout .topbar{gap:7px}.suite-menu>nav{left:0}.suite-open-apps>.product-tabs{left:0;right:auto}.global-apps{padding:4px 12px 8px;min-height:54px}.global-apps .nav-item{font-size:12px;padding:10px}.top-app-layout .banner{padding:5px 12px;font-size:10px}.product-toolbar{padding:6px 12px;gap:8px}.product-toolbar .muted{font-size:11px}.product-notice{padding:28px 20px}}
@media(max-width:650px){.top-app-layout .topbar [data-do=pip]{display:none}.suite-menu .suite-mobile-assistant{display:block;margin-top:10px;width:100%}}
@media(prefers-reduced-motion:reduce){#product-workspace *{scroll-behavior:auto!important}}
.workspace-actions{display:flex;gap:6px;align-items:center;flex:0 0 auto}
.workspace-action{font-size:11px;padding:5px 8px;border:1px solid #55584f;background:#282b29;color:#f5f2eb;cursor:pointer;white-space:nowrap}
.workspace-action:hover{background:#3a3d38}
@media(max-width:650px){.workspace-actions{display:none}}
.ws-access{margin:14px 0;border:1px solid #ddd8cc;border-radius:8px;padding:10px 12px;background:#faf7f0}
.ws-access>summary{cursor:pointer;font-weight:600}
.ws-access fieldset{border:0;border-top:1px solid #e7e1d4;margin:12px 0 0;padding:12px 0 0}
.ws-access legend{font-size:12px;font-weight:600;padding:0 6px;color:#6b6459}
.ws-apps{display:flex;flex-wrap:wrap;gap:8px 16px}
.ws-app{display:flex;align-items:center;gap:6px;font-size:13px}
.ws-member-row{display:flex;gap:8px;align-items:center;margin:6px 0}
.ws-member-row input{flex:1;min-width:0}
.ws-member-row select{width:110px}
.ws-member-head{font-size:12px;color:#6b6459;font-weight:600}
.ws-member-head span:first-child{flex:1}
@media(max-width:650px){.ws-member-row{flex-wrap:wrap}.ws-member-row select{width:100%}}
