/* v0.28.1 — workspace-level Users & Access redesign */
.access-dialog-v2 {
  width: min(1180px, 100%);
}

.access-dialog-body-v2 {
  grid-template-columns: minmax(0, 1fr);
}

.access-dialog-body-v2.access-editor-open {
  grid-template-columns: minmax(330px, .9fr) minmax(430px, 1.1fr);
}

.access-members-panel-v2 {
  border-right: 0;
}

.access-dialog-body-v2.access-editor-open .access-members-panel-v2 {
  border-right: 1px solid #e1e7ef;
}

.access-editor-panel-v2 {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 0;
  background: #fff;
}

.access-editor-panel-v2[hidden] {
  display: none !important;
}

.access-editor-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 8px;
}

.access-list-head {
  align-items: center;
}

.access-member-card-v2 {
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease, background .14s ease;
}

.access-member-card-v2:hover {
  border-color: #b8c7d9;
  box-shadow: 0 6px 18px rgba(11, 31, 58, .07);
  transform: translateY(-1px);
}

.access-member-card-v2.selected {
  border-color: #7898bb;
  background: #f7faff;
  box-shadow: 0 0 0 2px rgba(115, 151, 189, .12);
}

.access-member-card-v2 .access-member-copy,
.access-member-card-v2 .access-member-name,
.access-member-card-v2 .access-member-summary {
  text-align: left;
}

.access-user-chevron {
  color: #8d9bae;
  font-size: 1.65rem;
  line-height: 1;
}

.access-editor-head {
  margin-bottom: 16px;
}

.access-editor-head h3 {
  margin-top: 3px;
}

.access-editor-section {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.access-athlete-choice-list {
  display: grid;
  gap: 7px;
}

.access-athlete-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid #e0e6ee;
  border-radius: 11px;
  background: #fbfcfe;
  cursor: pointer;
}

.access-athlete-choice.selected {
  border-color: #cad8e7;
  background: #f5f9fd;
}

.access-athlete-choice:has(input:disabled) {
  cursor: default;
}

.access-athlete-choice-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.access-athlete-choice-copy > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.access-athlete-choice-copy strong {
  overflow: hidden;
  color: #253852;
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-athlete-choice-copy small {
  color: #7e8b9d;
  font-size: .68rem;
}

.access-athlete-choice input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #254a73;
}

.access-assignment-editor {
  margin-top: 2px;
  padding-top: 13px;
  border-top: 1px solid #edf1f5;
}

.access-assignment-head {
  margin-bottom: 4px;
}

.access-assignment-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 1px 5px;
}

.access-assignment-tab {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  min-width: 118px;
  max-width: 190px;
  border: 1px solid #d9e1eb;
  border-radius: 11px;
  padding: 8px 10px;
  background: #f8fafc;
  color: #59697e;
  text-align: left;
}

.access-assignment-tab span {
  overflow: hidden;
  font-size: .75rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-assignment-tab small {
  color: #8a96a7;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.access-assignment-tab.active {
  border-color: #7898bb;
  background: #edf4fb;
  color: #173455;
  box-shadow: 0 0 0 2px rgba(115, 151, 189, .1);
}

.access-editor-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px 18px;
  border-top: 1px solid #e3e8ef;
  background: rgba(255, 255, 255, .98);
}

.access-editor-footer-main {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-left: auto;
}

.access-list-message {
  margin-bottom: 10px;
}

.access-editor-panel-v2 .access-permission-rows {
  max-height: 330px;
}

.access-editor-panel-v2 .access-field > small {
  color: #8491a2;
  font-size: .69rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .access-dialog-body-v2.access-editor-open {
    grid-template-columns: minmax(280px, .8fr) minmax(390px, 1.2fr);
  }
}

@media (max-width: 820px) {
  .access-dialog-body-v2,
  .access-dialog-body-v2.access-editor-open {
    display: block;
    overflow-y: auto;
  }

  .access-dialog-body-v2.access-editor-open .access-members-panel-v2 {
    border-right: 0;
    border-bottom: 1px solid #e1e7ef;
  }

  .access-editor-panel-v2,
  .access-editor-scroll {
    overflow: visible;
  }

  .access-editor-footer {
    position: sticky;
    bottom: 0;
    z-index: 4;
  }
}

@media (max-width: 560px) {
  .access-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .access-list-head .button {
    width: 100%;
  }

  .access-member-card-v2 {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .access-editor-scroll,
  .access-editor-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .access-editor-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .access-editor-footer > .button,
  .access-editor-footer-main,
  .access-editor-footer-main .button {
    width: 100%;
  }

  .access-editor-footer-main {
    flex-wrap: wrap;
  }
}


/* v1.0.25 — integrated Founding Beta + contact email */
.access-beta-counter {
  display: inline-block;
  margin-top: 5px;
  color: #607089;
  font-size: .7rem;
  font-weight: 800;
}

.access-beta-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #d8e2ee;
  border-radius: 12px;
  background: #f7faff;
  cursor: pointer;
}

.access-beta-toggle[hidden] {
  display: none !important;
}

.access-beta-toggle input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  accent-color: #254a73;
}

.access-beta-toggle > span {
  display: grid;
  gap: 3px;
}

.access-beta-toggle strong {
  color: #203a5b;
  font-size: .82rem;
}

.access-beta-toggle small {
  color: #748399;
  font-size: .7rem;
  line-height: 1.4;
}

.access-role-badge.role-beta {
  border-color: #cbd8e8;
  background: #eef5ff;
  color: #315b89;
}


/* v1.0.28 — global user profiles + permission presets */
.access-profile-block {
  display: grid;
  gap: 5px;
}

.access-profile-preset {
  justify-self: start;
  margin-top: -2px;
}

.access-role-badge.role-profile {
  border-color: #dde3ea;
  background: #f5f7fa;
  color: #536276;
}

/* v1.2.24 — Account-level athlete creation quota */
.access-creation-section {
  display: grid;
  gap: 10px;
}
.access-creation-section .access-field {
  margin-bottom: 0;
}
.access-creation-hint {
  color: #63758c;
  font-size: .83rem;
  line-height: 1.45;
}
.access-creation-section [hidden] {
  display: none !important;
}
