.crew-manage-card {
  position: relative;
  z-index: 1;
  width: min(100%, 25rem);
  height: min(42rem, calc(100dvh - 2.4rem));
  max-height: calc(100dvh - 2.4rem);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(120, 176, 199, 0.16);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 115, 26, 0.08), rgba(232, 115, 26, 0) 26%),
    linear-gradient(180deg, rgba(29, 40, 47, 0.98), rgba(20, 29, 35, 0.99));
  box-shadow: 0 22px 60px rgba(10, 18, 23, 0.42);
}

.crew-manage-head {
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1rem 0.72rem;
  border-bottom: 1px solid rgba(120, 176, 199, 0.12);
  background: rgba(20, 29, 35, 0.98);
}

.crew-manage-body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0.82rem;
  padding: 0.82rem 1rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.crew-manage-copy {
  display: grid;
  gap: 0.16rem;
}

.crew-manage-kicker {
  margin: 0;
}

#crew-manage-title {
  color: #f3fbfe;
  font-family: var(--lb-font-sans);
  font-size: 1.22rem;
  line-height: 1;
}

.crew-manage-nav {
  min-height: 1rem;
}

.crew-manage-panel {
  display: grid;
  gap: 0.62rem;
}

.crew-manage-panel[hidden] {
  display: none;
}

.crew-manage-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.72rem 0.82rem;
  border-radius: 0.96rem;
  border: 1px solid rgba(120, 176, 199, 0.14);
  background: rgba(241, 251, 255, 0.06);
  color: #f3fbfe;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
}

.crew-manage-action::after {
  content: ">";
  color: rgba(207, 225, 233, 0.52);
  font-size: 0.8rem;
  line-height: 1;
}

.crew-manage-action-danger {
  color: #ffb0a5;
}

.crew-manage-section-label {
  margin: 0;
  color: rgba(207, 225, 233, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.identity-manage-note {
  margin: 0;
  color: rgba(207, 225, 233, 0.6);
  font-size: 0.72rem;
  line-height: 1.4;
}

.crew-manage-members-list {
  margin-top: 0;
}

.identity-member-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.34rem;
}

.identity-member-head strong {
  color: var(--lb-ink);
  font-size: 0.94rem;
  line-height: 1.2;
}

.identity-member-status,
.identity-members-empty,
.identity-session-copy span {
  font-size: 0.76rem;
  line-height: 1.3;
}

.identity-member-badge,
.identity-user-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  background: rgba(232, 115, 26, 0.15);
  color: #e8731a;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.identity-member-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.42rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.identity-member-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.identity-member-status {
  text-align: right;
}

.identity-member-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.5rem;
}

.identity-member-actions .identity-link-btn {
  font-size: 0.72rem;
}

.reporter-permissions {
  display: grid;
  gap: 0;
}

.reporter-permissions-grid {
  display: grid;
  gap: 0;
}

.reporter-permissions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.44rem 0;
  border-top: 1px solid var(--lb-hairline);
}

.reporter-permissions-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.reporter-permissions-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.4rem;
  min-width: 0;
}

.reporter-permissions-name {
  color: var(--lb-ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.reporter-permissions-activity {
  width: 100%;
  color: var(--lb-ink-60);
  font-size: 0.72rem;
  line-height: 1.3;
}

.reporter-toggle {
  flex-shrink: 0;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 22, 10, 0.2);
  background: rgba(35, 22, 10, 0.06);
  color: var(--lb-ink-80);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.12s;
}

.reporter-toggle:disabled {
  opacity: 0.45;
  cursor: default;
}

.reporter-toggle-off {
  border-color: rgba(180, 40, 20, 0.2);
  background: rgba(180, 40, 20, 0.06);
  color: #b42814;
}

.break-settings-section {
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--lb-hairline);
}

.break-settings-hint {
  font-size: 0.76rem;
  color: rgba(207, 225, 233, 0.45);
  margin: 0.15rem 0 0.6rem;
  line-height: 1.4;
}

.break-settings-prior-group {
  display: flex;
  gap: 0.4rem;
}

.break-settings-prior-btn {
  flex: 1;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(207, 225, 233, 0.18);
  background: rgba(207, 225, 233, 0.05);
  color: rgba(207, 225, 233, 0.55);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.break-settings-prior-btn:hover {
  background: rgba(207, 225, 233, 0.1);
  color: rgba(207, 225, 233, 0.8);
}

.break-settings-prior-btn-active {
  border-color: rgba(100, 181, 246, 0.55);
  background: rgba(100, 181, 246, 0.12);
  color: #90caf9;
}

.crew-manage-section-spacer {
  height: 0.5rem;
}

.crew-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: end;
}

.crew-create-field {
  min-width: 0;
}

.identity-control {
  gap: 0.24rem;
  color: var(--lb-ink-40);
  font-size: 0.62rem;
  font-weight: 700;
}

.identity-control input {
  margin-top: 0;
  padding: 0.68rem 0.76rem;
  border-radius: 0.88rem;
  background: rgba(255, 255, 255, 0.08);
}

.identity-secondary-btn {
  padding: 0.56rem 0.82rem;
  border-radius: 999px;
  border-color: rgba(232, 115, 26, 0.5);
  background: transparent;
  color: #e8731a;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: none;
}

.identity-invite-row .identity-secondary-btn {
  width: auto;
}

.identity-status {
  font-size: 0.72rem;
}
