body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}
.panel {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.panel h2 {
  margin: 0 0 6px;
  font-size: 17px;
}
.status {
  color: #93c5fd;
  margin: 0 0 8px;
}
.warn {
  color: #fca5a5;
}
table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.member-role-table .col-member {
  width: 31%;
}
.member-role-table .col-roles {
  width: 69%;
}
th,
td {
  border-bottom: 1px solid #1f2937;
  padding: 8px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
  word-break: break-word;
}
.member-role-table th {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #cbd5e1;
  font-weight: 600;
  padding-bottom: 10px;
}
.member-cell {
  padding-right: 10px;
}
.role-editor-cell {
  padding-left: 4px;
}
.role-editor-cell .role-actions {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 10px 12px;
}
button,
select,
input[type="text"] {
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  padding: 8px 10px;
}
button {
  border: none;
  background: #2563eb;
  cursor: pointer;
  font-weight: 700;
}
select {
  width: 100%;
}
.member-name {
  font-weight: 700;
  margin-bottom: 4px;
}
.member-id {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
}
.role-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.role-add-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.role-add-row select {
  flex: 1;
  min-width: 0;
  width: auto;
}
.btn-add-role {
  width: auto !important;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 14px !important;
  font-size: 13px;
  background: #3b82f6;
}
.btn-save-roles {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px !important;
  font-size: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.btn-save-roles:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.selected-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  min-height: 28px;
  align-items: flex-start;
}
.selected-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #334155;
  border-radius: 999px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 6px 10px 6px 12px;
  font-size: 12px;
  line-height: 1.35;
  max-width: 100%;
}
.selected-role button {
  width: auto !important;
  min-width: 28px;
  min-height: 28px;
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  padding: 0 6px !important;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 560px) {
  main {
    padding: 16px;
  }
  th,
  td {
    padding: 8px 6px;
    font-size: 12px;
  }
  .member-role-table .col-member {
    width: 28%;
  }
  .member-role-table .col-roles {
    width: 72%;
  }
}
