.team-access-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:8px 0 24px}
.team-access-heading>div:first-child{min-width:0;max-width:740px}
.team-access-heading h2{font-size:clamp(1.6rem,2.2vw,2.15rem);line-height:1.2;margin:0 0 14px;letter-spacing:-.025em}
.team-access-heading p:not(.eyebrow){color:var(--muted);font-size:1rem;line-height:1.7;margin:0}
.team-access-heading>.button-group{flex-wrap:wrap;flex-shrink:0;max-width:430px;justify-content:flex-end}
.team-access-current{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:17px 20px;margin-bottom:24px;border:1px solid #d4ddf6;border-radius:12px;background:#f2f5ff}
.team-access-current-label{font-size:.875rem;color:#465777}
.team-access-current strong{font-size:1rem;overflow-wrap:anywhere}
.team-access-role{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#edf0f4;color:#3b485c;font-size:.875rem;font-weight:600;line-height:1.4;white-space:nowrap}
.team-access-role-owner{background:#edf2ff;color:#203a9e}.team-access-role-editor{background:#e9f7f2;color:#0e604d}.team-access-role-viewer{background:#edf0f4;color:#3b485c}
.team-access-personal{display:flex;align-items:center;justify-content:space-between;gap:24px;background:white;border:1px solid var(--line);border-radius:16px;padding:26px;margin:24px 0}
.team-access-personal>div{min-width:0;max-width:760px}.team-access-personal h3{font-size:1.2rem;margin:12px 0 9px}.team-access-personal p{color:var(--muted);font-size:1rem;line-height:1.65;margin:0}.team-access-personal>.button{flex:none}
.team-access-personal.is-current,.team-access-card.is-current{border-color:#8099dc;box-shadow:inset 0 0 0 1px #8099dc}
.team-access-section,.team-access-roles{margin:28px 0;padding:26px;border:1px solid var(--line);border-radius:16px;background:white;min-width:0}
.team-access-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.team-access-section-heading>div:first-child{min-width:0}
.team-access-section-heading h3{font-size:1.2rem;line-height:1.4;margin:0 0 9px;overflow-wrap:anywhere}.team-access-section-heading h4{font-size:1.05rem;line-height:1.5;margin:0 0 8px}
.team-access-section-heading p{font-size:1rem;color:var(--muted);line-height:1.65;margin:0;max-width:760px}.team-access-section-heading>.button-group{flex:none;flex-wrap:wrap}
.team-access-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.team-access-card{padding:24px;border:1px solid var(--line);border-radius:13px;display:flex;flex-direction:column;align-items:start;min-width:0;background:#fff}
.team-access-card-top{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;margin-bottom:18px}
.team-access-avatar{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:12px;background:#edf2ff;color:var(--blue,#244acb);font-size:1.2rem;font-weight:650}
.team-access-card h4{font-size:1.15rem;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}.team-access-card p{font-size:1rem;line-height:1.65;color:var(--muted);margin:0 0 16px}.team-access-card .team-access-updated{font-size:.875rem;margin-bottom:18px}.team-access-card>.button-group{margin-top:auto;flex-wrap:wrap;padding-top:6px}
.team-access-empty{background:#f7f9fc;border:1px dashed #cad3e2;border-radius:12px;padding:28px;min-width:0}.team-access-empty h4,.team-access-empty h5{font-size:1.05rem;line-height:1.5;margin:0 0 10px}.team-access-empty p{font-size:1rem;color:var(--muted);line-height:1.65;margin:0;max-width:760px}.team-access-empty.compact{padding:22px}.team-access-limit-note{font-size:.875rem;color:var(--muted);margin:18px 0 0}
.team-access-request-history,.team-access-admin-list{list-style:none;padding:0;margin:0}.team-access-request-history>li{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0;border-bottom:1px solid var(--line);min-width:0}.team-access-request-history>li:first-child{padding-top:0}.team-access-request-history>li:last-child{border-bottom:0;padding-bottom:0}.team-access-request-history>li>div:first-child{min-width:0}
.team-access-request-history h4{font-size:1rem;line-height:1.5;margin:0 0 7px;overflow-wrap:anywhere}.team-access-request-history p{font-size:1rem;line-height:1.6;color:var(--muted);margin:0 0 7px}.team-access-request-history small{font-size:.875rem;color:var(--muted);line-height:1.6;display:block}.team-access-request-state{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end;flex:none;max-width:340px}
.team-access-status{font-size:.875rem;line-height:1.4;padding:6px 10px;border-radius:6px;background:#edf0f4;color:#3b485c;font-weight:600}.team-access-status-pending{background:#fff4dd;color:#735018}.team-access-status-approved{background:#e9f7f2;color:#0e604d}
.team-access-management{padding:28px;margin:32px 0;border:1px solid #bdcbea;border-top:4px solid var(--blue,#244acb);border-radius:16px;background:#fff;min-width:0;scroll-margin-top:20px}.team-access-management>h3{font-size:1.2rem;line-height:1.4;margin:0 0 10px}.team-access-management>p{font-size:1rem;line-height:1.65;color:var(--muted)}.team-access-management .eyebrow{margin:0 0 8px;font-size:.875rem;color:var(--blue,#244acb)}
.team-access-managing-scope{padding:14px 16px;border-radius:10px;background:#f3f6fd;margin:0 0 24px;overflow-wrap:anywhere;font-size:.9375rem!important}
.team-access-code-panel{padding:22px;border:1px solid #d5deef;border-radius:12px;background:#fafbff;margin:24px 0}.team-access-code-panel .team-access-section-heading{margin-bottom:14px}.team-access-code-panel .team-access-section-heading p{font-size:.9375rem}.team-access-code-note{font-size:.9375rem;line-height:1.65;color:var(--muted);margin:14px 0 0;max-width:840px}
.team-access-code-reveal{border:1px solid #acbedf;background:#fff;border-radius:10px;padding:20px;margin:20px 0;min-width:0}.team-access-code-reveal label{font-size:.875rem;font-weight:600;display:block;min-width:0}.team-access-code-reveal textarea{display:block;margin-top:10px;width:100%;max-width:100%;min-width:0;min-height:88px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;resize:vertical;overflow-x:hidden;background:#f6f8fd;border-color:#c2d0ea}.team-access-code-reveal>.button-group{margin-top:14px;flex-wrap:wrap}.team-access-code-reveal>p{font-size:.9375rem;line-height:1.65;color:var(--muted);margin:16px 0 0}
.team-access-admin-section{padding-top:28px;margin-top:28px;border-top:1px solid var(--line)}.team-access-admin-section .team-access-section-heading{margin-bottom:18px}.team-access-admin-list>li{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0;border-bottom:1px solid var(--line);min-width:0}.team-access-admin-list>li:first-child{padding-top:0}.team-access-admin-list>li:last-child{border-bottom:0;padding-bottom:0}
.team-access-person{display:grid;gap:6px;min-width:0;flex:1}.team-access-person>strong{font-size:1rem;line-height:1.5;overflow-wrap:anywhere}.team-access-person>span{font-size:.9375rem;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.team-access-person>small{font-size:.875rem;line-height:1.6;color:var(--muted)}.team-access-you{font-size:.875rem;color:var(--muted);font-weight:400;margin-left:5px}
.team-access-request-actions,.team-access-member-actions{width:330px;max-width:100%;flex:0 0 auto;min-width:0;display:grid;gap:12px}.team-access-request-actions>label,.team-access-member-actions>label{display:grid;gap:7px;font-size:.875rem;color:var(--muted);min-width:0}.team-access-request-actions select,.team-access-member-actions select{width:100%;max-width:100%;min-width:0;min-height:44px;font-size:1rem;background:white}.team-access-request-actions>.button-group,.team-access-member-actions>.button-group{flex-wrap:wrap;gap:8px}.team-access-owner-fixed{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:0}.team-access-owner-fixed>span:last-child{font-size:.875rem;color:var(--muted)}
.team-access-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.team-access-role-grid>article{padding:22px;border:1px solid var(--line);border-radius:12px;min-width:0}.team-access-role-grid h4{font-size:1.05rem;line-height:1.5;margin:16px 0 10px}.team-access-role-grid p{font-size:1rem;line-height:1.7;color:var(--muted);margin:0}.team-access-boundary{font-size:.9375rem;line-height:1.7;color:var(--muted);margin:22px 0 0;padding:16px 18px;border-radius:10px;background:#f4f6fa}
.team-access-alert{padding:20px 22px;margin:20px 0;border:1px solid #dfb99b;background:#fff8ee;border-radius:12px;color:#704222;font-size:1rem;line-height:1.65;overflow-wrap:anywhere}.team-access-alert strong{display:block;margin-bottom:6px;font-size:1rem}.team-access-alert p{margin:0 0 14px}.team-access-notice{padding:16px 20px;border:1px solid #b4d7ca;background:#f0faf5;color:#23543e;border-radius:10px;margin:20px 0;font-size:1rem;line-height:1.65;overflow-wrap:anywhere}.team-access-inline-alert{padding:14px 16px;border:1px solid #dfb99b;border-radius:9px;background:#fff8ee;color:#704222;font-size:.9375rem;line-height:1.65;margin:16px 0}
.team-access-loading{display:flex;align-items:center;gap:12px;font-size:1rem;line-height:1.6;color:var(--muted);padding:14px 0}.team-access-loading>span{height:18px;width:18px;flex:none;border:2px solid #d0d9ee;border-top-color:var(--blue,#244acb);border-radius:50%;animation:team-access-spin 1s linear infinite}
.team-access-signin{display:flex;align-items:flex-start;gap:24px;padding:34px;background:white;border:1px solid var(--line);border-radius:16px;margin:28px 0}.team-access-signin>div:last-child{min-width:0;max-width:740px}.team-access-signin h3{font-size:1.3rem;line-height:1.4;margin:0 0 12px}.team-access-signin p{font-size:1rem;line-height:1.7;color:var(--muted);margin:0 0 24px}.team-access-symbol{width:68px;height:68px;display:grid;place-items:center;flex:none;border-radius:18px;background:#edf2ff;color:var(--blue,#244acb)}.team-access-symbol svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.team-access-editor-note{margin:20px 0;padding:16px 18px;border:1px solid #d6dfef;background:#f5f8ff;border-radius:10px;font-size:1rem;line-height:1.7;color:var(--muted)}.team-access-editor-note p{margin:0 0 12px}.team-access-editor-note p:last-child{margin-bottom:0}
#team-access-content .button{min-height:44px;max-width:100%;white-space:normal;line-height:1.4}#team-access-content .button[disabled]{opacity:1;background:#f4f6fa;border-color:#d4dbe6;color:#687489;cursor:not-allowed;box-shadow:none}#team-access-content .danger-text{color:#9a332c}
#team-access-content select:focus-visible,#team-access-content textarea:focus-visible,#team-access-content button:focus-visible,#team-access-content a:focus-visible{outline:3px solid #7796e8;outline-offset:3px}
@keyframes team-access-spin{to{transform:rotate(360deg)}}
@media(max-width:1200px){.team-access-heading{flex-direction:column;gap:20px}.team-access-heading>.button-group{max-width:none;justify-content:flex-start}.team-access-role-grid{grid-template-columns:1fr}.team-access-role-grid>article{padding:20px}.team-access-code-panel .team-access-section-heading{flex-direction:column;gap:16px}}
@media(max-width:900px){.team-access-card-grid{grid-template-columns:1fr}.team-access-admin-list>li{align-items:flex-start;flex-direction:column;gap:18px}.team-access-request-actions,.team-access-member-actions{width:100%}.team-access-owner-fixed{justify-content:flex-start}.team-access-section-heading{flex-wrap:wrap}.team-access-section-heading>.button-group{max-width:100%}.team-access-request-history>li{align-items:flex-start;flex-direction:column;gap:14px}.team-access-request-state{justify-content:flex-start;max-width:100%}}
@media(max-width:640px){.team-access-heading h2{font-size:1.6rem}.team-access-heading>.button-group{width:100%;gap:10px}.team-access-heading>.button-group>.button{flex:1 1 150px}.team-access-current{padding:15px 16px;gap:10px}.team-access-current-label{flex-basis:100%}.team-access-personal{align-items:flex-start;flex-direction:column;padding:22px;gap:20px}.team-access-personal>.button{width:100%}.team-access-section,.team-access-roles{padding:20px;margin:24px 0}.team-access-card{padding:20px}.team-access-card>.button-group{width:100%;gap:10px}.team-access-card>.button-group>.button{flex:1 1 120px}.team-access-management{padding:20px;margin:26px 0}.team-access-code-panel{padding:16px}.team-access-code-reveal{padding:16px}.team-access-code-reveal textarea{font-size:.9375rem;min-height:120px}.team-access-code-panel .button-group{width:100%}.team-access-code-panel .button-group>.button{flex:1 1 150px}.team-access-admin-section{padding-top:22px;margin-top:22px}.team-access-admin-list>li{padding:20px 0}.team-access-request-actions>.button-group>.button,.team-access-member-actions>.button-group>.button{flex:1 1 130px}.team-access-role-grid>article{padding:18px}.team-access-boundary{padding:15px}.team-access-alert,.team-access-notice{padding:16px}.team-access-signin{padding:24px;flex-direction:column;gap:20px}.team-access-signin .button{width:100%}.team-access-empty,.team-access-empty.compact{padding:20px}.team-access-section-heading{gap:14px}.team-access-section-heading>.button{width:100%}}
@media(prefers-reduced-motion:reduce){.team-access-loading>span{animation:none}}
@media print{#team-access-content .button,.team-access-code-reveal,.team-access-code-panel,.team-access-loading,.team-access-request-actions,.team-access-member-actions{display:none}.team-access-card,.team-access-role-grid>article,.team-access-personal,.team-access-admin-list>li{break-inside:avoid}.team-access-section,.team-access-management,.team-access-roles{padding:16px;margin:16px 0}.team-access-card-grid,.team-access-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
