.identity-long-value,
.identity-long-value code {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.identity-invitation-issued,
.identity-invitation-issued > * {
  min-width: 0;
  max-width: 100%;
}

.identity-invitation-issued .secret {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.identity-responsive-table td,
.identity-responsive-table td > * {
  min-width: 0;
}

.identity-admin-shell,
.identity-audit-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.identity-admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.identity-admin-header > div:first-child {
  max-width: 720px;
}

.identity-admin-grid {
  display: grid;
  gap: 18px;
}

.identity-member-card,
.identity-invitations-card {
  min-width: 0;
}

.identity-role-disclosure,
.identity-rights-administration {
  margin-top: 10px;
}

.identity-role-disclosure summary,
.identity-rights-administration > summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.identity-role-disclosure[open] summary {
  margin-bottom: 10px;
}

.identity-rights-administration {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.identity-rights-administration[open] > summary {
  margin-bottom: 14px;
}

.identity-role-form {
  width: 100%;
}

.identity-role-form select {
  min-width: 0;
}

.identity-role-editor {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.identity-rights-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.identity-rights-fieldset legend {
  margin-bottom: 4px;
  font-weight: 800;
}

.identity-rights-fieldset > div {
  display: grid;
  gap: 12px;
}

.identity-rights-fieldset > div > div {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.identity-rights-fieldset > div > div > label:first-child {
  font-weight: 800;
}

.identity-rights-fieldset > div > div > div,
.identity-rights-group > div {
  display: grid;
  gap: 7px;
}

.identity-rights-fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.35;
}

.identity-rights-fieldset input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: .2em;
}

.identity-workspace-editor {
  width: min(100%, 980px);
  margin: 0 auto;
}

.identity-workspace-editor > div:first-child {
  max-width: 760px;
}

.identity-workspace-form {
  display: grid;
  gap: 18px;
}

.identity-workspace-primary,
.identity-workspace-secondary {
  min-width: 0;
}

.identity-workspace-primary {
  display: grid;
  gap: 8px;
  align-content: start;
}

.identity-workspace-secondary {
  box-shadow: none;
  padding: 16px;
}

.identity-workspace-secondary p:last-child {
  margin-bottom: 0;
}

.identity-audit-table code {
  white-space: normal;
}

.identity-audit-details,
.identity-technical-details dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.identity-audit-details div,
.identity-technical-details dl div {
  min-width: 0;
}

.identity-audit-details dt,
.identity-technical-details dt {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.identity-audit-details dd,
.identity-technical-details dd {
  margin: 1px 0 0;
  overflow-wrap: anywhere;
}

.identity-technical-details {
  margin-top: 10px;
}

.identity-technical-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.identity-technical-details[open] summary {
  margin-bottom: 8px;
}

@media (min-width: 1000px) {
  .identity-rights-fieldset > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .identity-workspace-form {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: start;
  }

  .identity-workspace-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .identity-audit-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }
}

@media (min-width: 1100px) {
  .identity-workspace-secondary {
    border-color: transparent;
    background: var(--soft);
    box-shadow: none;
  }
}

@media (min-width: 1180px) {
  .identity-member-card .identity-responsive-table {
    table-layout: fixed;
  }

  .identity-member-card .identity-responsive-table th:nth-child(1) {
    width: 36%;
  }

  .identity-member-card .identity-responsive-table th:nth-child(2) {
    width: 10%;
  }

  .identity-member-card .identity-responsive-table th:nth-child(3) {
    width: 32%;
  }

  .identity-member-card .identity-responsive-table th:nth-child(4) {
    width: 22%;
  }

  .identity-member-card .identity-role-disclosure[open] .identity-role-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .identity-member-card .identity-role-form button {
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .identity-responsive-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-responsive-table td {
    border-bottom: 0;
    padding: 6px 0;
  }

  .identity-responsive-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .identity-admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .identity-admin-header h1 {
    text-wrap: balance;
  }

  .identity-admin-header > .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .identity-admin-header > .actions > * {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .identity-admin-grid {
    gap: 12px;
  }

  .identity-member-card,
  .identity-invitations-card {
    padding: 16px;
  }

  .identity-role-disclosure > summary,
  .identity-rights-administration > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .identity-role-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .identity-role-form button,
  .identity-role-form select {
    width: 100%;
  }

  .identity-role-editor {
    overflow: visible;
  }

  .identity-role-create-form {
    gap: 14px;
  }

  .identity-rights-fieldset > div {
    gap: 8px;
  }

  .identity-rights-disclosure {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }

  .identity-rights-disclosure > summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 800;
  }

  .identity-rights-disclosure[open] > summary {
    border-bottom: 1px solid var(--line);
  }

  .identity-rights-count {
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 700;
  }

  .identity-rights-group {
    display: grid;
    gap: 8px;
    padding: 12px;
  }

  .identity-rights-fieldset > div > .identity-rights-disclosure > .identity-rights-group {
    border: 0;
    border-radius: 0;
  }

  .identity-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 4px;
  }

  .identity-form-actions > * {
    min-height: 44px;
    width: 100%;
    text-align: center;
  }

  .identity-workspace-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .identity-workspace-actions > * {
    width: 100%;
    text-align: center;
  }

  .identity-join-card,
  .identity-role-editor,
  .identity-workspace-editor {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .identity-admin-header > .actions {
    grid-template-columns: 1fr;
  }

  .identity-member-card,
  .identity-invitations-card,
  .identity-join-card,
  .identity-role-editor,
  .identity-workspace-editor {
    padding: 16px;
  }
}
