/* Scoped team navigation: document work first, management on demand. */
.team-workspace-pane{padding:14px!important;display:grid;gap:10px}
.team-space-heading{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}
.team-space-menu,.team-doc-menu{position:relative}
.team-space-menu summary,.team-doc-menu summary{list-style:none;cursor:pointer;padding:5px 10px;border-radius:7px;font-weight:700;font-size:18px}
.team-space-menu summary::-webkit-details-marker,.team-doc-menu summary::-webkit-details-marker{display:none}
.team-space-menu[open]>div,.team-doc-menu[open]>div{position:absolute;right:0;top:100%;z-index:30;min-width:160px;max-width:240px;padding:6px;background:var(--panel,#fff);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #173e2620}
.team-space-menu button,.team-doc-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:10px;color:var(--text,#20352f);cursor:pointer}
.team-space-menu button:hover,.team-doc-menu button:hover{background:var(--surface-soft)}
.team-workspace-pane .workspace-picker-wrap{display:block;padding:0}
.team-workspace-pane .workspace-picker-wrap select{height:44px;font-size:14px;font-weight:600;width:100%;min-width:0}
.team-create-details>summary{font-size:12px;color:var(--green);cursor:pointer;padding:4px 0}
.team-create-details form{padding:10px 0 4px}.team-create-details small{display:block;font-size:11px;line-height:1.6;color:var(--muted)}
.team-workspace-pane .workspace-summary{margin:0;padding:12px;background:var(--surface-soft);gap:5px}
.team-workspace-pane .workspace-summary small{font-size:12px}
.team-workspace-pane .workspace-detail{gap:12px}
#teamWorkbenchEntry>button{width:100%;min-height:40px;color:var(--green)}
.team-material-actions{display:grid;gap:9px;padding-top:12px;border-top:1px solid var(--line)}
.team-material-actions button{width:100%;min-height:42px}
.team-material-actions small{font-size:11px;line-height:1.65;color:var(--muted)}
.team-material-actions input,.team-material-actions select{width:100%;max-width:100%;min-width:0;height:38px;font-size:12px}
.team-material-actions button:disabled{opacity:.55;cursor:not-allowed}
.team-current-document{font-size:12px;color:var(--muted)}
.team-current-document summary{cursor:pointer;padding:8px 0}
.team-current-document button{width:100%;margin:4px 0;white-space:normal}
.team-workspace-pane .workspace-subheading{display:none}
[data-library-active="team"] .doc-item{align-items:start;overflow:visible;position:relative}
[data-library-active="team"] .doc-select{min-width:0;align-items:start}
[data-library-active="team"] .doc-summary strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}
[data-library-active="team"] .doc-summary small{line-height:1.6}
.team-doc-menu{flex-shrink:0}
.th-materials .th-destination{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.th-materials label select{width:100%;min-width:0}
.th-materials [data-rows]>label:not(.th-material-row){padding:12px;background:#f0f6f3;border-radius:10px;overflow-wrap:anywhere}
.th-materials [data-manage-categories]{margin-top:8px}
@media(max-width:600px){.th-materials .th-destination{grid-template-columns:1fr}.th-materials{max-height:90dvh;overflow:auto}}
.team-doc-menu[open]{z-index:10}
.team-space-menu summary:focus-visible,.team-doc-menu summary:focus-visible{outline:2px solid var(--green)}
@media(max-width:680px){.team-workspace-pane{padding:12px!important}.team-space-menu summary,.team-doc-menu summary{min-height:44px;min-width:40px}}
