#team-access-dialog {
  --edge: #ffffff20; --muted: #a9b5c3; --active: #94daf7;
  margin:auto; inset:0; max-width:none; color:#eff4fa; padding:0; font-family:inherit;
  width:min(910px,calc(100% - 32px)); max-height:calc(100dvh - 32px);
  border:1px solid #ffffff32; border-radius:22px; overflow:hidden;
  background:radial-gradient(ellipse at 100% 0%,#273843,transparent 55%),#11161c;
  box-shadow:0 30px 90px #0008; color-scheme:dark;
}
#team-access-dialog::backdrop {background:#05090ec9;backdrop-filter:blur(8px)}
#team-access-dialog [hidden] {display:none!important}
#team-access-form {margin:0;display:flex;flex-direction:column;height:min(650px,calc(100dvh - 36px))}
#team-access-form header,#team-access-form footer {display:flex;align-items:center;justify-content:space-between;padding:18px 26px;gap:12px;flex:none}
#team-access-form header {border-bottom:1px solid var(--edge)}
#team-access-form h2 {font-size:22px;letter-spacing:-.04em;margin:3px 0 0}
#team-access-form h3 {font-size:clamp(21px,3vw,29px);line-height:1.16;letter-spacing:-.045em;margin:10px 0;font-weight:550;outline:none}
#team-access-form button,#team-access-form input {font:inherit}
#team-access-form button {cursor:pointer}
#team-access-form button:not(.team-primary) {color:inherit;background:#ffffff08;border:1px solid var(--edge);border-radius:10px;padding:9px 13px;font-size:13px}
#team-access-form button:disabled {opacity:.45;cursor:default}
#team-access-form :focus-visible {outline:2px solid var(--active);outline-offset:2px}
#team-access-form .team-close {font-size:22px;padding:1px;width:34px;height:34px}
.team-editor-body {display:grid;grid-template-columns:212px minmax(0,1fr);flex:1;min-height:0}
.team-wizard-nav {border-right:1px solid var(--edge);padding:26px 20px;background:#ffffff02}
.team-wizard-nav ol {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.team-wizard-nav li {position:relative;min-width:0}
.team-wizard-nav li:not(:last-child)::after {content:"";position:absolute;left:14px;top:49px;bottom:-19px;width:1px;background:#c4d5e12b;pointer-events:none}
.team-wizard-nav li:has(.is-done)::after {background:#94daf77a}
#team-access-form .team-wizard-nav button[data-goto] {position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:68px;padding:16px 0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;font-size:12px;line-height:1.4;color:#8e9aa7;opacity:1}
#team-access-form .team-wizard-nav button[data-goto]:disabled {cursor:default;opacity:1}
.team-wizard-nav .team-step-number {display:inline-grid;place-items:center;flex:none;width:29px;height:29px;border-radius:50%;border:1px solid #bdcddd45;background:#131b22;color:#8e9aa7;font-size:11px;box-sizing:border-box}
.team-step-number svg {width:15px;height:15px;display:block}
#team-access-form .team-wizard-nav button[data-goto][aria-current=step] {color:#eff7fc;font-weight:600}
.team-wizard-nav [aria-current=step] .team-step-number {color:#10242f;background:#a8def5;border-color:#c2edff;box-shadow:0 0 0 4px #94daf711}
#team-access-form .team-wizard-nav button[data-goto].is-done {color:#b7c9d6}
.team-wizard-nav .is-done .team-step-number {color:#b5e9fe;border-color:#94daf78c;background:#1b3543}
#team-access-form .team-wizard-nav button[data-goto]:not(:disabled):hover .team-step-number {border-color:#bdeeff}
#team-access-form .team-levels button[aria-pressed=true] {background:#294351;border-color:#81bcd4;color:#e9f8ff}
.team-radio-mark,.team-check {display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;border:1px solid #ffffff30;flex:none}
.team-editor-main {min-width:0;overflow:auto;padding:30px;scrollbar-width:thin;overscroll-behavior:contain}
.team-intro,.team-hint,.team-info-card p,.team-full-summary p {color:var(--muted);line-height:1.5;font-size:13px}
.team-intro {margin:0 0 24px}
.team-hint {font-size:12px}
.team-email-label {font-size:13px;font-weight:550}
#team-access-dialog #team-email {display:block;box-sizing:border-box;width:100%;height:50px;margin-top:8px;padding:0 15px;border:1px solid #b9d1e030;border-radius:12px;background:#0b1219;color:#eff4fa;font:400 14px/1.5 Geist,system-ui,sans-serif;outline:none}
#team-access-dialog #team-email:focus {border-color:#94daf79c;box-shadow:0 0 0 3px #94daf710}
#team-access-dialog #team-email:-webkit-autofill {-webkit-text-fill-color:#eff4fa;caret-color:#eff4fa;box-shadow:0 0 0 100px #14202a inset}
#team-access-dialog #team-email::placeholder {color:#8293a3;opacity:1}
#team-client-search {border:1px solid #ffffff2b;border-radius:12px;background:#080d128a;color:inherit}
.team-hint {margin:8px 0 0}
.team-info-card,.team-full-summary {display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid var(--edge);border-radius:15px;margin-top:26px;background:#ffffff04}
.team-info-card svg,.team-full-summary svg,.team-role-symbol svg {width:22px;height:22px;flex:none}
.team-info-card strong,.team-full-summary strong {font-size:14px}
.team-info-card p,.team-full-summary p {margin:5px 0 0}
.team-role-options,#team-client-options {display:grid;gap:8px}
.team-role-card,.team-client-choice,.team-all {position:relative;display:flex;align-items:center;gap:12px;padding:15px 16px;border:1px solid var(--edge);border-radius:15px;background:#ffffff05;cursor:pointer}
.team-role-card:has(input:checked),.team-client-choice:has(input:checked),.team-all:has(input:checked) {border-color:#91cce269;background:#95c9e014}
.team-role-card:focus-within,.team-client-choice:focus-within,.team-all:focus-within {outline:2px solid var(--active)}
.team-role-card input,.team-client-choice input,.team-all input {position:absolute;opacity:0;width:1px;height:1px}
.team-role-card small,.team-client-choice small,.team-all small,.team-permission-row small {display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:4px}
.team-role-card strong,.team-client-choice strong,.team-all strong,.team-permission-row strong {font-size:14px;font-weight:600}
.team-role-card em,.team-nav-note {display:none}
.team-role-symbol {display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#ffffff08;flex:none}
.team-radio-mark,.team-client-choice .team-check {margin-left:auto}
.team-radio-mark,.team-check {width:18px;height:18px}
.team-role-card:has(:checked) .team-radio-mark:after {content:"";background:var(--active);width:9px;height:9px;border-radius:50%}
.team-check {border-radius:5px}.team-check svg {width:15px;opacity:0}
label:has(input:checked)>.team-check {background:var(--active);color:#14212b}label:has(input:checked)>.team-check svg {opacity:1}
.team-client-toolbar,.team-module-heading,.team-levels,.team-footer-actions {display:flex;align-items:center;gap:8px}
.team-client-toolbar {flex-wrap:wrap;margin:0 0 10px}
#team-client-search {padding:10px 12px;min-width:110px;width:140px;flex:1}
#team-selected-count,#team-step-label {font-size:12px;color:var(--muted)}
.team-all {margin-bottom:8px}.team-all small {font-size:11px}
#team-client-options {padding:2px}
.team-client-choice {padding:9px 12px}.team-client-choice .team-avatar {width:32px;height:32px}
.team-module-heading {justify-content:space-between;margin:0 0 6px}
.team-permission-row,.team-review-line,.team-review-person {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--edge)}
#team-access-form .team-levels button {font-size:11px;white-space:nowrap;padding:6px 8px}
.team-permission-row small {font-size:11px}
.team-levels {gap:4px}
.team-review-person,.team-review-line {justify-content:flex-start}.team-review-person>button,.team-review-line>button {margin-left:auto}
#team-review small {font-size:10px;color:var(--muted);letter-spacing:.1em}
#team-review strong {display:block;overflow-wrap:anywhere}#team-review p {font-size:13px}
.team-review-access {margin-top:18px;padding:16px;border:1px solid var(--edge);border-radius:15px;background:#ffffff03}
.team-review-access-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.team-review-permissions {display:flex;gap:8px;flex-wrap:wrap;margin:0}
.team-review-permissions span {background:#ffffff08;padding:6px 9px;border-radius:7px;font-size:12px}
.team-review-permissions b {margin-left:6px;color:var(--active);font-weight:500}
#team-access-form footer {border-top:1px solid var(--edge);background:#ffffff03}
#team-editor-error {color:#ffb6aa;font-size:12px;margin:3px 0}
body.team-member:not(.team-full) .profile-menu-item:not(.danger),body.team-member:not(.team-full) #profile-team-invite,body.team-full :is(#account-tab-profile,#account-tab-security,[onclick*="openAccountSection('security')"],[onclick*="openAccountSection('profile')"]) {display:none!important}
@media(max-width:680px){
  #team-access-dialog {width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:17px}
  #team-access-form {height:min(720px,calc(100dvh - 16px))}
  .team-editor-body {display:flex;flex-direction:column}.team-editor-main {padding:20px 16px;flex:1}
  .team-wizard-nav {padding:10px 18px;border:0;border-bottom:1px solid var(--edge)}
  #team-access-form .team-wizard-nav button[data-goto] {min-height:34px;padding:5px 0;gap:10px;font-size:11px}
  .team-wizard-nav .team-step-number {width:24px;height:24px;font-size:10px}
  .team-wizard-nav li:not(:last-child)::after {left:11.5px;top:29px;bottom:-5px}
  .team-step-number svg {width:13px;height:13px}
  #team-access-form header,#team-access-form footer {padding:12px 16px}
  .team-permission-row {align-items:flex-start;flex-direction:column;gap:8px}
  .team-role-symbol {width:31px;height:31px}.team-role-card {gap:9px;padding:12px}
}

@media(max-width:680px){#team-step-label{white-space:nowrap;font-size:11px}#team-access-form footer{gap:8px}#team-access-form .team-footer-actions{gap:6px}#team-client-search{flex-basis:100%;width:100%}#team-selected-count{margin-left:auto}}
