.wing-member {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c8d6e8;
  text-align: left;
}

.wing-member:hover {
  color: #fff;
  background: rgba(79, 124, 255, 0.1);
}

.wing-member-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--wing-blue), var(--wing-violet));
}

.wing-list-modal[hidden] { display: none; }

.wing-list-modal {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.wing-list-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 12, 0.82);
  backdrop-filter: blur(14px);
}

.wing-list-card {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(84dvh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(39, 215, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13, 23, 40, 0.99), rgba(5, 9, 20, 0.99));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.6);
}

.wing-list-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--wing-border);
}

.wing-list-card h2 { margin: 4px 0 0; font-size: 1.7rem; }

.wing-list-card > header button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--wing-border);
  border-radius: 12px;
  color: var(--wing-muted);
  background: rgba(255, 255, 255, 0.04);
}

.wing-list-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 24px;
  padding: 0 14px;
  border: 1px solid var(--wing-border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.wing-list-search input {
  flex: 1;
  height: 46px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.wing-list-results {
  min-height: 160px;
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 0 24px 24px;
}

.wing-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--wing-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.wing-list-row:hover {
  border-color: rgba(39, 215, 255, 0.3);
  background: rgba(39, 215, 255, 0.055);
}

.wing-list-row div { min-width: 0; }
.wing-list-row strong,
.wing-list-row span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wing-list-row strong { color: #fff; }
.wing-list-row span { margin-top: 4px; color: var(--wing-muted); font-size: 0.78rem; }
.wing-list-row b { color: var(--wing-cyan); font-size: 0.75rem; white-space: nowrap; }

.wing-list-row button {
  padding: 9px 13px;
  border: 1px solid rgba(39, 215, 255, 0.28);
  border-radius: 10px;
  color: #fff;
  background: rgba(39, 215, 255, 0.09);
  font-weight: 700;
}

.wing-list-empty { padding: 40px; text-align: center; color: var(--wing-muted); }

.wing-status-log { width: 100%; max-width: none; }
.wing-status-log p span { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wing-status-log p[data-level="message"] strong {
  color: var(--wing-cyan);
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .wing-list-modal { padding: 10px; }
  .wing-list-card { max-height: 92dvh; }
  .wing-list-row { grid-template-columns: 1fr auto; }
  .wing-list-row b { grid-column: 1; }
  .wing-list-row button { grid-column: 2; grid-row: 1 / 3; }
}
