/* Shared workspace controls. Keep the picker separate from document actions. */
.team-workspace-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:13px 38px;background:#f4f6ee;border-bottom:1px solid #e1e5d8;min-width:0}
.team-workspace-picker{display:flex;align-items:center;gap:10px;min-width:0;color:#58654e;font-size:11px;font-weight:600}
.team-workspace-select{width:clamp(140px,23vw,270px);max-width:100%;padding:9px 30px 9px 10px;border:1px solid #d8dfcd;border-radius:7px;background:#fff;color:#35462d;font-size:12px;text-overflow:ellipsis;min-width:0}
.team-workspace-select:disabled{opacity:1;color:#52634a;background:#edf1e6;cursor:default}
.team-role-badge{flex:none;border:1px solid #dce3d1;background:#eaf0e1;border-radius:20px;padding:5px 9px;font-size:10px;color:#4f6343;font-weight:600}
.team-workspace-bar .team-open{margin-left:auto;min-height:38px;padding:8px 16px;font-size:12px;background:#fff}
.team-bar-status{width:100%;font-size:12px;color:#825039;overflow-wrap:anywhere}
.team-bar-status:empty{display:none}
.team-dialog{width:min(680px,calc(100vw - 36px));max-width:none;max-height:calc(100dvh - 44px);padding:27px 30px;border:1px solid #dce3d2;border-radius:14px;background:#fcfdf9;color:#34402e;box-shadow:0 18px 90px #24351c30;overflow:auto;overscroll-behavior:contain}
.team-dialog::backdrop{background:#22301f70;backdrop-filter:blur(3px)}
.team-dialog .dialog-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0}
.team-dialog .dialog-header h2{font-family:Manrope,sans-serif;letter-spacing:-.5px;font-size:24px;margin:0;line-height:1.35;color:#344b2b}
.team-dialog .team-close{width:36px;height:36px;flex:none;font-size:26px;line-height:1;color:#5b6852}
.team-dialog .team-summary{font-size:13px;line-height:1.7;color:#5a6851;margin:9px 0 20px;overflow-wrap:anywhere}
.team-dialog section{border-top:1px solid #e1e6d8;margin:22px 0 0;padding:21px 0 0;min-width:0}
.team-dialog h3{font-family:Manrope,sans-serif;font-size:15px;line-height:1.45;letter-spacing:-.2px;margin:0 0 13px;color:#3c5132}
.team-dialog section>p,.team-dialog .team-preview p{font-size:12px;line-height:1.8;color:#5b6752;margin:0 0 14px}
.team-dialog .button{min-height:39px;font-size:12px;padding:9px 13px}
.team-dialog .field-group{display:block;min-width:0;margin:0}
.team-dialog .field-label{display:block;color:#52624a;font-size:12px;line-height:1.5;margin-bottom:7px;font-weight:500}
.team-dialog .field-input{display:block;width:100%;min-width:0;min-height:42px;background:#fff;color:#36472d;border:1px solid #d6deca;border-radius:6px;font-size:13px;padding:10px 11px}
.team-dialog .field-input::placeholder{color:#68725f;font-size:12px}
.team-dialog .field-input:disabled{background:#f0f3e9}
.team-dialog .team-status{font-size:13px;line-height:1.65;color:#4a6240;padding:11px 13px;margin:12px 0;background:#edf3e5;border:1px solid #dce6d0;border-radius:7px;overflow-wrap:anywhere}
.team-dialog .team-status:empty{display:none}
.team-dialog .team-status.team-error{background:#fff0e8;border-color:#eed6c5;color:#86452f}
.team-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:3px}
.team-dialog .team-section-heading h3{margin:0}
.team-refresh,.team-remove{min-height:36px;font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:5px 1px}
.team-refresh{color:#576c48}
.team-remove{color:#8a4a36}
.team-member,.team-invite-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 18px;padding:16px 0;border-bottom:1px solid #e8ecdf;min-width:0}
.team-member:last-child,.team-invite-row:last-child{border-bottom:0}
.team-member-identity{flex:1;min-width:0;overflow-wrap:anywhere}
.team-member-identity strong{display:block;font-size:13px;line-height:1.5;font-weight:600;color:#3b4d32}
.team-member-identity small{display:block;font-size:12px;line-height:1.6;margin-top:3px;color:#65715b}
.team-member-current-role{display:block;font-size:11px;line-height:1.5;color:#5e6e53;margin-top:5px}
.team-member-actions{display:flex;gap:8px;align-items:center;flex:none}
.team-dialog .team-member-role{width:108px;min-height:39px;font-size:12px;padding:8px}
.team-remove-confirm{width:100%;padding:13px;background:#fff1e9;border:1px solid #ecd8c8;border-radius:8px}
.team-remove-confirm p{font-size:12px;line-height:1.7;color:#754a36;margin:0 0 12px;overflow-wrap:anywhere}
.team-remove-confirm .button+.button{margin-left:8px}
.team-empty{font-size:12px;line-height:1.7;color:#65715c;margin:15px 0 2px}
.team-invite-fields{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:14px;margin:16px 0 13px}
.team-new-link{margin-top:18px;padding:16px;background:#eef3e6;border:1px solid #dce7cf;border-radius:8px}
.team-new-link .team-copy-link{margin-top:12px;background:#fff}
.team-new-link p{font-size:12px;line-height:1.8;color:#56674b;margin:12px 0 0}
.team-dialog .team-active-invites-heading{margin:25px 0 0}
.team-role-guide dl{display:grid;grid-template-columns:74px minmax(0,1fr);gap:9px 13px;font-size:12px;line-height:1.7;margin:12px 0 15px}
.team-role-guide dt{font-weight:600;color:#415537}
.team-role-guide dd{margin:0;color:#5f6b55}
.team-rename-form,.team-create-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
@media(max-width:700px){.team-workspace-bar{padding:12px 20px;gap:10px}.team-workspace-select{width:clamp(135px,30vw,220px)}.team-dialog{padding:23px;width:calc(100vw - 28px);max-height:calc(100dvh - 28px)}.team-member-actions{width:100%;margin-top:1px}.team-dialog .team-member-role{flex:1;max-width:190px}}
@media(max-width:480px){.team-workspace-bar{padding:12px 18px;gap:8px}.team-workspace-picker{width:calc(100% - 64px);flex-wrap:wrap;gap:6px}.team-workspace-picker>span{font-size:10px}.team-workspace-select{width:100%;font-size:14px;min-height:42px}.team-role-badge{margin-left:auto;max-width:62px;font-size:10px;padding:5px 7px}.team-workspace-bar .team-open{width:100%;margin-left:0;min-height:42px}.team-dialog{padding:20px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:11px}.team-dialog .dialog-header h2{font-size:21px}.team-dialog .team-summary{font-size:12px;margin-bottom:17px}.team-dialog .button,.team-refresh,.team-remove{min-height:44px}.team-dialog .field-input,.team-dialog .team-member-role{font-size:16px;min-height:44px}.team-dialog section{padding-top:18px;margin-top:19px}.team-invite-fields{grid-template-columns:minmax(0,1fr);gap:14px}.team-rename-form,.team-create-form{grid-template-columns:minmax(0,1fr)}.team-invite-form>.button,.team-rename-form>.button,.team-create-form>.button{width:100%;margin-top:2px}.team-dialog .team-member-role{max-width:none;width:110px}.team-member-actions{gap:9px}.team-member-actions .button{padding:9px 12px}.team-role-guide dl{grid-template-columns:61px minmax(0,1fr);gap:9px 11px}.team-dialog .team-status{padding:10px;font-size:12px}.team-new-link{padding:13px}.team-section-heading{align-items:flex-start}.team-section-heading h3{padding-top:10px}.team-refresh{font-size:11px}.team-remove-confirm .button{padding-left:11px;padding-right:11px}}
