/* Shared workspace shell. Layout belongs here; menus never style arbitrary details. */
:root{--muted:#52645b;--p2e-rail:152px;--p2e-chrome:56px;--p2e-surface:#fff;--p2e-soft:#f3f7f4;--p2e-focus:#155c48}
.p2e-icon{width:18px;height:18px;flex:0 0 18px;vertical-align:middle;pointer-events:none}
button:focus-visible,summary:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--p2e-focus);outline-offset:3px}
.workspace-chrome{height:var(--p2e-chrome);display:flex;align-items:center;gap:12px;padding:8px 20px;border-bottom:1px solid var(--line);background:#fff;color:var(--ink)}
.workspace-chrome.hidden{display:none}.shell-brand{font-size:22px;white-space:nowrap}.shell-brand span{font-size:15px;margin-left:8px}
.shell-space-label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;min-width:0}.shell-space-label select{max-width:220px;min-width:100px;font-size:14px}
.shell-top-actions{margin-left:auto;display:flex;gap:8px}
.workspace-chrome button,.workspace-home button,.shell-document-tools button,.shell-dialog button,.library-rail button[data-shell-tool],.library-rail button[data-shell-view],.shell-library-kinds button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
.workspace-chrome .primary,.workspace-home .primary,.shell-dialog .primary{background:var(--green);color:#fff;border-color:var(--green)}
.workspace-chrome button:hover,.workspace-home button:hover,.shell-document-tools button:hover{background:var(--p2e-soft)}
.workspace-chrome .primary:hover,.workspace-home .primary:hover,.shell-dialog .primary:hover{background:var(--green-2)}
.workspace-chrome #shellCreateTeam{white-space:nowrap;min-height:44px}.workspace-chrome #shellSpace{min-height:44px}
.workspace-chrome :is(button,summary){min-height:44px;min-width:44px}
#shellSpaceMenu>summary{min-height:44px;min-width:44px}
#teamCreateDialog :is(button,input,select){min-height:44px;min-width:44px}
.shell-space-menu-label,#shellCreateTeamMobile{display:none!important}
#shellSpaceHelp[hidden]{display:none!important}
.shell-space-identity{margin:0 0 4px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.shell-dialog.space-guide-dialog{width:min(560px,calc(100vw - 24px));max-height:90dvh;overflow:auto}
.space-guide-dialog h2{font-size:22px;margin:0}.space-guide-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.space-guide-dialog>p{font-size:14px;line-height:1.7;color:var(--muted)}
.space-guide-types{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.space-guide-types section{min-width:0}.space-guide-types h3{font-size:16px;margin:8px 0}.space-guide-types p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}
.space-relation{background:var(--p2e-soft);border:1px solid var(--line);border-radius:var(--p2e-radius-panel,12px);padding:16px;color:var(--ink)}
.space-relation-root{display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px}.space-relation-branches{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px;position:relative}.space-relation-branches::before{content:'';position:absolute;top:-12px;left:25%;right:25%;height:12px;border-top:1px solid var(--line);border-inline:1px solid var(--line)}
.space-relation-branches section{display:grid;justify-items:center;gap:5px;font-size:14px}.space-relation-branches span,.space-relation-branches small{font-size:12px;color:var(--muted)}
.space-guide-dialog>footer{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:20px}#spaceGuideDialog button{min-height:44px;min-width:44px}
.workspace-chrome:not(.hidden)+.app-shell{height:calc(100dvh - var(--p2e-chrome))}
.app-shell .library-rail{width:var(--p2e-rail);min-width:var(--p2e-rail);flex-basis:var(--p2e-rail);padding:16px 10px;background:var(--p2e-soft);overflow:visible}
.library-panel{grid-template-columns:var(--p2e-rail) minmax(0,1fr)}
.library-account-trigger #railAvatar{background:#e0eee6;color:var(--green)}
.shell-nav-main,.shell-nav-bottom{display:grid;gap:6px;width:100%}.shell-nav-bottom{margin-top:auto;position:relative}
.library-rail .shell-nav-main>button,.library-rail .shell-nav-bottom>.library-account-trigger{display:flex!important;align-items:center;justify-content:flex-start;flex-direction:row;gap:9px;width:100%;height:auto;min-height:44px;padding:10px 12px;border:0;background:transparent;font-size:14px;white-space:nowrap;color:var(--muted)}
.library-rail .shell-nav-main>button small,.library-rail .shell-nav-bottom>.library-account-trigger small{font-size:14px}
.library-rail .shell-nav-main>button.active,.library-rail button[aria-current=page]{background:#e0eee6;color:var(--green);font-weight:600}
.library-rail .shell-nav-main>button:hover,.library-rail .shell-nav-bottom>button:hover{background:#e6eee8}
.library-rail .shell-nav-bottom>[data-shell-tool]{justify-content:flex-start;background:transparent;border:0;color:var(--muted);font-size:13px}
#shellMore>summary{display:flex;align-items:center;gap:9px;padding:10px 12px;min-height:40px;cursor:pointer;font-size:13px;list-style:none}
#shellTools{display:grid;gap:5px}#shellTools>button{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;height:auto;min-height:40px;padding:8px;font-size:13px}
#shellTools>button[hidden],#workspaceHome [hidden]{display:none!important}
#shellTools .library-rail-item small{font-size:13px}#shellTools .library-rail-item span{font-size:14px}
#shellMore[open]>#shellTools{position:absolute;left:0;bottom:44px;min-width:208px;max-height:70dvh;overflow:auto;padding:9px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);z-index:70}
#shellTools .shell-mobile-account{display:none}
.app-shell.shell-home-active,.shell-search-active,.app-shell.shell-product-active,.app-shell.team-hub-active,.app-shell.shell-assistant-active{grid-template-columns:var(--p2e-rail) minmax(0,1fr)!important}
:is(.shell-home-active,.shell-search-active,.shell-product-active,.team-hub-active,.shell-assistant-active) .library-panel{width:var(--p2e-rail);grid-template-columns:var(--p2e-rail)}
:is(.shell-home-active,.shell-search-active,.shell-product-active,.team-hub-active,.shell-assistant-active) .library-detail,:is(.shell-home-active,.shell-search-active,.shell-product-active,.team-hub-active,.shell-assistant-active) .panel-resizer{display:none!important}
.shell-home-active .ai-panel,.shell-product-active .ai-panel{display:none!important}
.shell-home-active .workspace-panel>:not(#workspaceHome){display:none!important}
.workspace-home{flex:1;min-height:0;overflow:auto;padding:28px clamp(20px,3vw,48px);background:var(--panel,#fff)}
.workspace-home[hidden]{display:none!important}.shell-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.shell-page-heading h1{font-size:26px;font-weight:650;margin:0}.shell-page-heading small,.shell-page-heading p{display:none}
.shell-library-kinds{display:flex;gap:8px;margin:20px 0 12px;border-bottom:1px solid var(--line)}
.shell-library-kinds button{background:transparent;border:0;border-radius:0;padding:10px 14px;color:var(--muted)}
.shell-library-kinds button[aria-current=page]{color:var(--green);box-shadow:inset 0 -2px var(--green);font-weight:600}
.shell-ownership select{max-width:180px}
#shellFavorite[aria-pressed=true]{background:#e5f0e9;color:var(--green);border-color:#c5d9cb}
.shell-library-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:16px 0 12px}
.shell-library-toolbar label{display:grid;gap:6px;margin:0;font-size:12px}
.shell-library-toolbar input,.shell-library-toolbar select{height:40px;font-size:14px}
.shell-search{flex:1 1 220px;min-width:160px}
.shell-filter-disclosure{display:contents}.shell-filter-disclosure>summary{display:none}
.shell-filter-fields{display:flex;align-items:end;gap:10px;flex-wrap:wrap;position:static;min-width:0}
.shell-menu{position:relative}.shell-menu>summary{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;padding:8px 10px;min-height:36px;border:1px solid var(--line);border-radius:8px;font-size:13px;list-style:none;white-space:nowrap}
.shell-menu:not([open])>div{display:none}.shell-menu>div{position:absolute;right:0;top:calc(100% + 5px);z-index:50;min-width:208px;display:grid;padding:10px;gap:7px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);max-height:65dvh;overflow:auto}
.shell-menu>div>button{justify-content:flex-start;text-align:left;width:100%}
.shell-menu>div>a{display:flex;align-items:center;min-height:36px;padding:7px 12px;border-radius:8px;font-size:14px;color:var(--green);text-decoration:none}.shell-menu>div>a:hover{background:var(--p2e-soft)}
#shellLibraryTools>summary,#shellFavorite,.shell-heading-actions>button{background:transparent}
.shell-result-count{font-size:12px;color:var(--muted);margin:10px 0}
.shell-document{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);min-height:76px}
.shell-document>label{margin:0;min-width:32px;min-height:40px;display:flex;align-items:center;justify-content:center}
.shell-document>label input{width:16px;height:16px;accent-color:var(--green)}
.shell-document-main{display:flex;gap:12px;align-items:center;min-width:0;cursor:pointer}.shell-document-text{min-width:0;flex:1}
.shell-document-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.shell-document-heading>[data-shell-document]{display:block;flex:0 1 auto;min-width:0;min-height:32px;max-width:100%;text-align:left;background:transparent;border:0;padding:0;color:var(--ink)}
.shell-document-heading>.reading-status-trigger{min-height:32px;padding:3px 0;border:0;background:transparent}
.shell-document strong{display:block;font-size:15px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}
.shell-document small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:3px}
.shell-document .shell-document-origin{display:inline;margin-right:10px}.shell-document small:last-child{display:inline}
.shell-document:hover{background:var(--p2e-soft)}
.shell-file-type{display:inline-flex;align-items:center;justify-content:center;min-width:46px;min-height:42px;padding:8px;border-radius:8px;background:#e8f0e9;color:var(--green);font-size:12px;flex:0 0 auto}
.shell-document>[data-shell-move]{grid-column:4;display:inline-flex;align-items:center;justify-content:center;min-width:76px;min-height:36px;padding:7px 10px;margin:0;white-space:nowrap;font-size:13px}
.shell-row-meta{font-size:12px;color:var(--muted);white-space:nowrap}
.shell-selection{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:12px;background:#eaf1e8;border-radius:8px;font-size:13px}
.shell-selection>div{display:flex;gap:8px;flex-wrap:wrap}.shell-selection button:disabled{opacity:.5;cursor:not-allowed}
.shell-empty{text-align:center;padding:50px 16px;color:var(--muted)}.shell-empty h2{font-size:22px;font-weight:600;color:var(--ink)}
.shell-welcome{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:16px;margin-bottom:20px;background:#edf4ec;border:1px solid #d4e2d0;border-radius:12px}
.shell-welcome strong{font-size:16px}.shell-welcome p{font-size:13px;margin:6px 0 0;color:var(--muted);line-height:1.6}.shell-welcome>div:last-child{display:flex;gap:8px;flex-wrap:wrap}
.shell-document-tools{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 16px;border-bottom:1px solid var(--line);background:#fff;flex-shrink:0;z-index:8}
.shell-document-tools>button{border:0;background:transparent;font-size:13px}
.shell-document-access{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;margin-right:auto}
.shell-document-actions{display:flex;align-items:center;gap:6px;margin-left:auto}
.shell-document-tools [hidden]{display:none!important}.shell-document-tools #documentFolderSelect{width:100%;max-width:none;font-size:14px}
#shellDocumentAi{display:none}
.workspace-chrome~.app-shell .workspace-header{height:auto;min-height:52px;padding:6px 18px;gap:12px;flex-wrap:nowrap;background:#fff}
.workspace-header #docKind{display:none}.workspace-header #titleInput{font-family:inherit;font-size:18px;line-height:1.5;min-width:0}
.workspace-header .workspace-controls{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-width:0}
.workspace-controls .save-state{font-size:12px;color:var(--muted)}
.workspace-controls .save-state #saveText{white-space:normal;overflow-wrap:break-word}
#exportFormat{display:none}
.shell-dialog{width:min(460px,calc(100vw - 28px));border:1px solid var(--line);border-radius:14px;padding:24px;background:#fff;color:var(--ink)}
.shell-dialog::backdrop{background:#17201d66}.shell-dialog header{display:flex;justify-content:space-between;align-items:center}.shell-dialog h2{font-size:21px}
.shell-add-actions{display:grid;gap:12px;margin:20px 0}.shell-dialog .muted{font-size:13px;color:var(--muted)}
.product-center.focused>nav [hidden]{display:none!important}.product-center.focused>header small{display:none}
.product-center.single-section>nav{display:none}
.product-center.embedded{position:absolute;inset:0;width:100%;height:100%;margin:0;max-height:none;border:0;border-radius:0;box-shadow:none;z-index:4;background:var(--panel,#fff)}
.product-center.embedded>header{padding:24px 28px 16px}.product-center.embedded>header>[data-pc-action=close]{display:none}
.product-center.embedded>header p{font-size:13px;margin:6px 0 0}
.product-center.library-page>header h2{font-size:26px}.product-center.library-page .shell-library-kinds{margin:0;padding:0 28px}
.product-center.library-page>header{padding:28px clamp(20px,3vw,48px) 0;border-bottom:0}
.product-center.library-page .shell-library-kinds{margin:20px clamp(20px,3vw,48px) 0;padding:0;gap:8px}
.product-center.library-page .shell-library-kinds button{border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--muted);padding:10px 14px;min-height:40px;font-size:14px}
.product-center.library-page .shell-library-kinds button[aria-current=page]{box-shadow:inset 0 -2px var(--green);color:var(--green);font-weight:600}
.product-center.library-page>nav:not(.shell-library-kinds){padding:12px clamp(20px,3vw,48px);border-bottom:0}
.product-center.library-page .pc-toolbar{padding:4px clamp(20px,3vw,48px) 12px;align-items:end}
.product-center.library-page .pc-toolbar>label{display:grid;gap:6px;margin:0;font-size:12px}
.product-center.library-page .pc-toolbar>label:first-child{flex:1}
.product-center.library-page .pc-toolbar input{width:100%;min-height:40px;font-size:14px}
.product-center.library-page #productBody{padding:12px clamp(20px,3vw,48px) 28px}
.product-center.library-page .pc-reference-folder select{min-height:40px}
.pc-project-header-actions{margin:0;flex-shrink:0}
.product-center.library-page #productContext{display:none}
.shell-product-active .workspace-panel>:not(#productCenter){visibility:hidden;pointer-events:none}
.pc-toolbar label{white-space:nowrap}.pc-toolbar input{min-width:0}
.pc-subnav,.th-project-nav{display:flex;flex-wrap:nowrap;gap:8px;padding:0 0 10px;border-bottom:1px solid var(--line);margin:12px 0 20px}
.pc-subnav button,.th-project-nav button{font:inherit;font-size:14px;white-space:nowrap;min-height:40px;padding:8px 14px}
.pc-subnav button[aria-current=page],.th-project-nav button[aria-selected=true]{background:#e0eee6!important;color:var(--green)!important;border-color:transparent!important;border-radius:8px!important;font-weight:600}
.pc-project-start,.th-project-start{padding:28px;border:1px solid var(--line);border-radius:12px;background:#fff}
.pc-project-start h4,.th-project-start h4{font-size:20px;margin:0 0 8px}.pc-project-start p,.th-project-start p{font-size:14px;color:var(--muted);line-height:1.7;max-width:600px}
.project-steps{display:flex;flex-wrap:wrap;gap:16px;margin:24px 0;color:var(--muted);font-size:13px}
.project-steps span{display:flex;align-items:center;gap:8px}.project-steps b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e5f0e9;color:var(--green)}
.th-project-nav .th-project-more{margin-left:auto;position:relative}
.th-project-nav .th-project-more>summary{list-style:none;cursor:pointer;display:flex;gap:6px;align-items:center;min-height:40px;padding:8px 12px;font-size:14px}
.th-project-more>div{position:absolute;right:0;top:100%;z-index:20;background:white;box-shadow:var(--shadow);border:1px solid var(--line);border-radius:10px;min-width:190px;padding:8px;display:grid}
.th-project-more:not([open])>div{display:none}
.th-project-more>div>button{text-align:left;justify-content:flex-start}
#teamProjectHub>header{padding:24px 28px 16px;gap:16px;background:var(--panel,#fff)}#teamProjectHub>header h2{font-size:24px;line-height:1.45;margin:4px 0}
#teamProjectHub>header small{font-size:12px;color:var(--muted)}
#teamProjectHub .team-directory-toggle{display:none}
#teamProjectHub [data-th=close]{white-space:nowrap;display:flex;align-items:center;gap:6px;flex-shrink:0}
#teamHubBody{padding:0 28px 28px}
.th-in-project #teamHubBody>.th-notice{font-size:12px}
#shellWritingToolsBody{min-width:0;width:100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.shell-writing-tools-toggle,#shellWritingToolsClose{display:none}
#shellWritingToolsBody .writing-actions{gap:4px;flex:1 1 auto}
.word-toolbar-tabs{padding-bottom:4px}.word-toolbar.grouped{gap:5px}
.workspace-chrome~.app-shell .writing-toolbar{padding:6px 12px;gap:5px}
.app-shell.library-collapsed{--library-column:var(--p2e-rail)}
.app-shell.ai-collapsed{--ai-display-width:0px;--ai-column:0px}.app-shell.ai-collapsed .ai-panel{display:none}
.workspace-chrome~.app-shell .word-editor-host{padding:16px}
.shell-assistant-active .workspace-panel{display:none!important}
.app-shell.shell-assistant-active>.ai-panel{display:flex!important;position:static!important;grid-column:2;grid-row:1;width:100%!important;height:100%!important;min-width:0;max-width:none!important;transform:none!important;border-left:0;box-shadow:none;inset:auto}
.shell-assistant-active .ai-header,.shell-assistant-active #assistantControls,.shell-assistant-active #chatMessages,.shell-assistant-active .chat-form{width:min(860px,100%);margin-left:auto;margin-right:auto}
.shell-assistant-active .chat-form{width:min(820px,calc(100% - 32px));margin-bottom:20px}
.shell-assistant-active #aiCollapseButton{display:none}
.shell-assistant-active .message{max-width:90%}
body:has(dialog[open]:not(.embedded)):not(:has(#companionDialog[open])) #companionFloating,body:has(#writingSelectionMenu:not(.hidden)) #companionFloating,body:has(#wordEditorHost:focus-within) #companionFloating{visibility:hidden}
.au-config-fields>details{border:1px solid var(--line,#e4e8ee);border-radius:10px;padding:12px}.au-config-fields>details>summary{font-weight:600;cursor:pointer;padding:8px}.au-config-fields label[hidden]{display:none}
.th-diff-line p{margin:0;white-space:normal}.th-compare pre{white-space:normal}.th-compare .th-diff-line{display:block;min-height:1.7em}
.issue-screenshot{max-width:100%;max-height:650px;object-fit:contain}#issueScreenshotPreview{display:flex;gap:10px;flex-wrap:wrap}#issueScreenshotPreview figure{margin:0;width:120px}#issueScreenshotPreview img{width:120px;height:90px;object-fit:contain}.pc-form-dialog canvas[data-mfa-qr]{display:block;margin:auto}
@media(min-width:681px){
 #shellWritingToolsBody{container-type:inline-size;position:relative}
 @container(min-width:740px){#wordToolbar:not(.hidden)~.writing-actions{position:absolute;right:0;top:0;margin:0;background:#fbfdfb}#wordToolbar:not(.hidden) .word-toolbar-tabs{padding-right:340px}}
}
@media(max-width:1100px){.shell-brand span{display:none}.workspace-chrome{gap:10px;padding:8px 14px}.shell-welcome{align-items:flex-start;flex-direction:column}.shell-filter-fields{gap:8px}}
@media(max-width:680px){
 :root{--p2e-chrome:52px;--p2e-rail:0px}
 .workspace-chrome{height:52px;min-height:52px;padding:4px 10px;gap:6px;flex-wrap:nowrap}
 .shell-brand{font-size:21px}.shell-space-label{flex:1}.shell-space-label>span{display:none}.shell-space-label select{width:100%;min-width:0;max-width:none;height:44px;font-size:14px;padding:7px}
 .shell-top-actions{margin:0}.workspace-chrome button,.workspace-chrome summary{min-width:44px;min-height:44px;padding:10px}
 #shellAi,#shellAdd>span{display:none}
 #shellCreateTeam{display:none!important}#shellCreateTeamMobile{display:inline-flex!important}.shell-space-menu-label{display:inline!important}#shellSpaceMenu>summary>.p2e-icon,#shellSpaceIcon{display:none}
 #shellSpaceMenu>summary{padding:8px;font-size:13px}#shellSpaceMenu>div{max-width:calc(100vw - 20px)}
 .space-guide-types{gap:12px;margin:20px 0}.space-guide-dialog{padding:16px}.space-relation{padding:12px}
 .app-shell:is(.shell-home-active,.shell-search-active,.shell-product-active,.team-hub-active,.shell-assistant-active){grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important}
 :is(.shell-home-active,.shell-search-active,.shell-product-active,.team-hub-active,.shell-assistant-active)>.library-panel{display:block!important;position:static!important;width:100%;height:auto;max-height:none;min-height:0;grid-column:1;grid-row:1;box-shadow:none;overflow:visible;z-index:30}
 :is(.shell-home-active,.shell-search-active,.shell-product-active,.team-hub-active,.shell-assistant-active) .library-rail{display:flex;flex-direction:row;width:100%;height:56px;min-width:0;padding:6px 8px;gap:4px;border:0;border-bottom:1px solid var(--line)}
 .shell-nav-main{display:flex;flex:1;width:auto;gap:2px}
 .library-rail .shell-nav-main>button{font-size:12px!important;min-height:44px;padding:8px 6px!important;gap:4px!important;justify-content:center!important}
 .library-rail .shell-nav-main>button small{font-size:12px}.shell-nav-main .p2e-icon{width:16px;height:16px;flex-basis:16px}
 .shell-nav-main .notification-trigger>span{display:none}
 .shell-nav-bottom{display:flex;width:auto;margin:0}.library-rail .shell-nav-bottom>button.library-account-trigger,.library-rail .shell-nav-bottom>button{display:none!important}
 #shellMore>summary{min-width:44px;min-height:44px;padding:10px}#shellMore>summary>span{display:none}
 #shellMore[open]>#shellTools{left:auto;right:0;top:46px;bottom:auto;max-height:65dvh}
 #shellTools .shell-mobile-account{display:flex}
 :is(.shell-home-active,.shell-search-active,.shell-product-active,.team-hub-active)>.workspace-panel{grid-column:1!important;grid-row:2;min-height:0}
 .app-shell.shell-assistant-active>.ai-panel{grid-column:1;grid-row:2}
 .workspace-home{padding:16px}.shell-page-heading h1{font-size:24px}.shell-page-heading>button{font-size:13px}
 .shell-library-kinds{margin-top:12px}.shell-library-kinds button{min-height:44px}
 .shell-heading-actions{gap:8px}.shell-heading-actions>button,.shell-heading-actions summary{min-height:44px;padding:8px;font-size:14px}
 .shell-library-toolbar{margin:12px 0;gap:8px;flex-wrap:nowrap;align-items:end}.shell-library-toolbar input,.shell-library-toolbar select{min-height:44px;max-width:100%;width:100%;font-size:16px}
 .shell-search{flex:1;min-width:0}.shell-filter-disclosure{display:block;flex:0 0 auto;width:auto;align-self:end}
 .shell-filter-disclosure>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:14px;cursor:pointer;list-style:none}
 .shell-filter-disclosure:not([open])>.shell-filter-fields{display:none}
 .shell-filter-disclosure[open]{flex:1 0 100%;width:100%}.shell-library-toolbar:has(.shell-filter-disclosure[open]){flex-wrap:wrap}.shell-library-toolbar:has(.shell-filter-disclosure[open])>.shell-search{flex-basis:100%}
 .shell-filter-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);position:static;padding:12px;background:var(--p2e-soft);border-radius:8px;margin-top:6px;gap:10px}
 .shell-filter-fields>button,.shell-filter-fields summary{min-height:44px}
 .shell-menu>div>a{min-height:44px}.shell-heading-actions .shell-menu>div>button{min-height:44px}
 .shell-document{grid-template-columns:32px minmax(0,1fr) 44px;gap:8px;padding:12px 0}
 .shell-document .shell-row-meta{display:none}.shell-document>[data-shell-move]{grid-column:3;min-width:44px;min-height:44px;padding:10px}
 .shell-document>[data-shell-move]>span{display:none}.shell-document>label{min-height:44px}
 .shell-document-main{gap:8px}.shell-document strong{font-size:14px}.shell-document-heading{gap:0 8px}.shell-document-heading>[data-shell-document],.shell-document-heading>.reading-status-trigger{min-height:44px}
 .shell-file-type{min-width:40px;min-height:40px;padding:6px;font-size:12px}
 .shell-document small{font-size:12px}.shell-document .shell-document-origin{display:block;margin-right:0}
 .shell-selection>span{max-width:100%}.shell-selection button{min-height:44px}
 .shell-welcome{padding:12px;margin-bottom:12px;gap:10px}.shell-welcome p{display:none}
 .shell-document-tools{min-height:44px;height:44px;padding:0 8px;gap:4px}
 .shell-document-tools button,.shell-document-tools summary{min-height:44px;min-width:44px;padding:7px 8px;font-size:12px;border:0}
 .shell-document-tools .shell-document-access{display:none}
 .shell-document-actions{gap:0}.shell-document-actions #shellDocumentAi{display:inline-flex}
 .shell-document-tools #shellLibraryToggle span{display:none}
 .shell-document-tools .shell-menu>div{max-width:calc(100vw - 24px);min-width:220px}
 .shell-document-tools .shell-menu>div>button{border:1px solid var(--line);font-size:14px}
 .workspace-chrome~.app-shell .workspace-header{min-height:48px;padding:4px 12px;gap:8px;flex-wrap:nowrap;align-items:center}
 .workspace-header #titleInput{font-size:16px;min-width:0}
 .workspace-header .workspace-controls{width:auto;margin:0;max-width:42%;flex-wrap:nowrap!important;gap:4px}
 .workspace-header .save-state{font-size:12px;min-width:0;display:flex!important}
 .workspace-header .save-state #saveDot{display:none}.workspace-header .save-state #saveText{max-width:135px;line-height:1.4}
 .workspace-header .save-state:has(#saveRetryButton:not(.hidden)){flex-wrap:wrap}
 .workspace-header #mobileLibraryButton,.workspace-header #mobileAiButton{display:none}
 .workspace-header .realtime-presence{display:none}
 .workspace-chrome~.app-shell .writing-toolbar{min-height:44px;padding:0 12px;overflow:visible;z-index:10}
 .shell-writing-tools-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;background:#fff;color:var(--green);border:1px solid var(--line);border-radius:8px;font-size:14px;cursor:pointer}
 #shellWritingToolsBody{display:none;position:fixed;inset:auto 0 0;max-height:65dvh;overflow:auto;padding:12px 14px max(16px,env(safe-area-inset-bottom));background:#fff;border:1px solid var(--line);border-radius:16px 16px 0 0;box-shadow:0 -15px 55px #1b33283b;z-index:80;overscroll-behavior:contain}
 .shell-tools-open #shellWritingToolsBody{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 .shell-tools-open #shellWritingToolsClose{display:block;align-self:flex-end;padding:8px 14px;min-height:44px;border:1px solid var(--line);background:#ecf3eb;color:var(--green);border-radius:8px}
 #shellWritingToolsBody .writing-actions{margin:0;flex-basis:auto;gap:8px;padding-top:10px;border-top:1px solid var(--line)}
 #shellWritingToolsBody .writing-tool-group{flex-wrap:wrap;white-space:normal}
 #shellWritingToolsBody button,#shellWritingToolsBody select{min-width:44px;min-height:44px}
 #shellWritingToolsBody .word-toolbar-tabs{flex-wrap:nowrap;overflow:auto}#shellWritingToolsBody .word-toolbar-tabs button{flex-shrink:0}
 .workspace-chrome~.app-shell .word-editor-host{padding:8px}.workspace-chrome~.app-shell .word-editor-content{padding:16px}
 .workspace-chrome~.app-shell .mobile-panel-backdrop{top:52px}.workspace-chrome~.app-shell .library-panel.mobile-open{top:52px}
 .product-center.embedded>header{padding:16px}.product-center.embedded>header p{display:none}
 .product-center.library-page>header{padding:16px 16px 0}
 .product-center.library-page .shell-library-kinds{padding:0;margin:12px 16px 0}
 .product-center.library-page>nav:not(.shell-library-kinds){padding:8px 16px}
 .product-center.library-page .pc-toolbar{padding:8px 16px;flex-wrap:wrap;gap:8px}
 .product-center.library-page .pc-toolbar>label:first-child{flex:1 0 100%}
 .product-center.library-page .pc-toolbar input,.product-center.library-page .pc-toolbar select{min-height:44px;font-size:16px}
 .product-center.library-page #productBody{padding:12px 16px 24px}
 .product-center.embedded>header:has(.pc-project-header-actions){flex-wrap:wrap;gap:8px}
 .pc-project-header-actions button{min-height:44px}
 .pc-subnav,.th-project-nav{gap:2px;margin:8px 0 16px;padding-bottom:8px;align-items:center}
 .pc-subnav button,.th-project-nav button{min-height:44px;padding:8px 10px;font-size:14px;flex-shrink:0}
 .th-project-nav .th-project-more>summary{min-height:44px;min-width:44px;padding:8px;justify-content:center}
 .th-project-more>summary>span{display:none}.th-project-more>div>button{min-height:44px}
 #teamProjectHub>header{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:16px;gap:10px}
 #teamProjectHub>header h2{font-size:20px;line-height:1.5;overflow-wrap:anywhere}
 #teamProjectHub [data-th=close]{min-height:44px;min-width:44px;padding:10px}
 #teamProjectHub [data-th=close]>span{display:none}
 #teamHubBody{padding:0 16px 20px}
 .pc-project-start,.th-project-start{padding:20px}.project-steps{display:grid;gap:12px}
 .shell-assistant-active .chat-form{width:calc(100% - 20px);margin-bottom:max(10px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.workspace-chrome *,.workspace-home *,.shell-dialog *{scroll-behavior:auto;transition:none!important}}

.th-project-start>h3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.th-project-start>[data-th=materials]{background:var(--green);color:#fff;border-color:var(--green)}

.shell-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* The assistant already occupies this page; contextual document entry remains available. */
#workspaceChrome[data-view="assistant"] #shellAi{display:none}
