/* Admin du site : versions du launcher ChaosLive+ (admin-launcher-updates-v1.js). Même langage que la synchro Dev → Prod. */
.admin-panel-sidebar-item.admin-launcher-updates-tab { position: relative; }
.admin-launcher-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #f4ad32;
  box-shadow: 0 0 12px rgba(244, 173, 50, .85);
}
.admin-launcher-dot[hidden] { display: none; }

.admin-panel-content.admin-launcher-updates-active > :not(#admin-panel-launcher-updates) { display: none !important; }
.admin-panel-content.admin-launcher-updates-active { width: 100%; max-width: none; min-width: 0; }

.admin-launcher-updates {
  --launcher-accent: #ff174d;
  --launcher-green: #35d587;
  --launcher-yellow: #f4ad32;
  --launcher-border: rgba(255, 255, 255, .085);
  width: 100%;
  color: #f5f5f7;
}
.admin-launcher-updates[hidden] { display: none; }
.admin-launcher-updates *, .admin-launcher-updates *::before, .admin-launcher-updates *::after { box-sizing: border-box; }

.admin-launcher-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.admin-launcher-kicker,
.admin-launcher-members-heading small {
  color: var(--launcher-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.admin-launcher-header h1 { margin: 5px 0 0; font-size: 25px; line-height: 1; letter-spacing: -.035em; }
.admin-launcher-header p { margin: 8px 0 0; color: rgba(255, 255, 255, .48); font-size: 12px; }

.admin-launcher-secondary,
.admin-launcher-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--launcher-border);
  border-radius: 7px;
  padding: 0 12px;
  background: #121214;
  color: rgba(255, 255, 255, .76);
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, opacity .2s;
}
.admin-launcher-secondary:hover,
.admin-launcher-more:hover { border-color: rgba(255, 23, 77, .42); background: rgba(255, 23, 77, .06); color: #fff; }
.admin-launcher-secondary:disabled { opacity: .45; cursor: default; }
.admin-launcher-secondary .material-icons { font-size: 16px; }
.admin-launcher-more { width: 100%; margin: 4px 0 10px; }
.admin-launcher-more[hidden] { display: none; }
.admin-launcher-updates.is-loading [data-refresh] .material-icons { animation: admin-launcher-spin .8s linear infinite; }

.admin-launcher-card {
  border: 1px solid var(--launcher-border);
  border-radius: 10px;
  background: #0f0f11;
}

/* La Dev, la flèche et son bouton, la Prod. */
.admin-launcher-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
}
.admin-launcher-version { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; }
.admin-launcher-version small { font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.admin-launcher-version.is-dev small { color: var(--launcher-yellow); }
.admin-launcher-version.is-prod small { color: var(--launcher-green); }
.admin-launcher-version strong { font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.admin-launcher-version strong.is-empty { color: rgba(255, 255, 255, .22); }
.admin-launcher-version p { display: flex; align-items: center; gap: 6px; margin: 0; color: rgba(255, 255, 255, .48); font-size: 12px; }
.admin-launcher-version p.is-error { color: #ff6b81; }
.admin-launcher-version p .material-icons { font-size: 15px; }
.admin-launcher-flow.is-ahead .admin-launcher-version.is-dev { border-color: rgba(244, 173, 50, .4); }

.admin-launcher-push { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-width: 250px; padding: 0 6px; text-align: center; }
.admin-launcher-push > .material-icons { font-size: 26px; color: rgba(255, 255, 255, .25); }
.admin-launcher-flow.is-ahead .admin-launcher-push > .material-icons { color: var(--launcher-yellow); }
.admin-launcher-push button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--launcher-accent);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: filter .2s, opacity .2s;
}
.admin-launcher-push button:hover:not(:disabled) { filter: brightness(1.12); }
.admin-launcher-push button:disabled { background: #1a1a1d; color: rgba(255, 255, 255, .35); cursor: default; }
.admin-launcher-push button .material-icons { font-size: 18px; }
.admin-launcher-push small { color: rgba(255, 255, 255, .48); font-size: 11px; }

/* La version de chaque membre. */
.admin-launcher-members { padding: 18px 22px 8px; }
.admin-launcher-members-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.admin-launcher-members-heading h2 { margin: 4px 0 0; font-size: 16px; letter-spacing: -.02em; }
.admin-launcher-search { position: relative; display: flex; align-items: center; gap: 8px; width: min(360px, 100%); min-height: 38px; border: 1px solid var(--launcher-border); border-radius: 8px; padding: 0 12px; background: #121214; }
.admin-launcher-search:focus-within { border-color: rgba(255, 23, 77, .5); }
.admin-launcher-search > .material-icons { font-size: 18px; color: rgba(255, 255, 255, .45); }
.admin-launcher-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: 12px; }

/* Les filtres : ce que le membre reçoit (boutons), son grade et la version installée chez lui (menus). */
.admin-launcher-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 12px; }
.admin-launcher-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-launcher-chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; border: 1px solid var(--launcher-border); border-radius: 7px; padding: 0 12px; background: #121214; color: rgba(255, 255, 255, .62); font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.admin-launcher-chips button:hover { border-color: rgba(255, 255, 255, .22); color: #fff; }
.admin-launcher-chips button b { color: rgba(255, 255, 255, .38); font-weight: 850; font-variant-numeric: tabular-nums; }
.admin-launcher-chips button.is-on { border-color: rgba(255, 23, 77, .55); background: rgba(255, 23, 77, .1); color: #fff; }
.admin-launcher-chips button.is-on b { color: #ff7d9b; }
.admin-launcher-filters select[hidden] { display: none; }
.admin-launcher-menus { display: flex; flex-wrap: wrap; gap: 8px; }

/* Son grade : ce qu'il est sur le Discord (launcher-grades.js), du plus haut au plus bas. */
.admin-launcher-grades { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-launcher-grades > span { --grade: rgba(255, 255, 255, .62); display: inline-flex; align-items: center; min-height: 24px; border: 1px solid color-mix(in srgb, var(--grade) 38%, transparent); border-radius: 6px; padding: 0 8px; background: color-mix(in srgb, var(--grade) 11%, transparent); color: var(--grade); font-size: 10px; font-weight: 800; white-space: nowrap; }
.admin-launcher-grades .is-creator { --grade: #ffd23f; }
.admin-launcher-grades .is-admin { --grade: #ff5cb4; }
.admin-launcher-grades .is-siteadmin { --grade: #b79cff; }
.admin-launcher-grades .is-support { --grade: var(--launcher-green); }
.admin-launcher-grades .is-liveplus { --grade: #ff5c7f; }
.admin-launcher-grades .is-chaosplus { --grade: #a9c9ff; }
.admin-launcher-grades .is-paid { --grade: var(--launcher-yellow); }
.admin-launcher-grades .is-away,
.admin-launcher-grades .is-nodiscord { --grade: rgba(255, 255, 255, .42); border-style: dashed; background: none; }
/* Le crayon : il ouvre la ligne, là où le grade se donne et se retire. */
.admin-launcher-grade-edit { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; border-radius: 6px; padding: 0; background: none; color: rgba(255, 255, 255, .35); cursor: pointer; }
.admin-launcher-grade-edit:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-launcher-grade-edit .material-icons { font-size: 14px; }

/* Le membre se clique : la ligne s'ouvre sur ses identifiants. */
button.admin-launcher-member { width: 100%; border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.admin-launcher-member:hover strong { color: #ff7d9b; }
.admin-launcher-open { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 7px; background: none; color: rgba(255, 255, 255, .5); cursor: pointer; transition: border-color .2s, color .2s; }
.admin-launcher-open:hover { border-color: var(--launcher-border); color: #fff; }
.admin-launcher-open .material-icons { font-size: 20px; }
.admin-launcher-members tr.is-open td { border-bottom-color: transparent; }

/* Par où il se connecte. */
.admin-launcher-modes { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-launcher-modes span { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; border: 1px solid var(--launcher-border); border-radius: 6px; padding: 0 8px; color: rgba(255, 255, 255, .78); font-size: 10px; font-weight: 800; white-space: nowrap; }
.admin-launcher-modes span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.admin-launcher-modes .is-discord::before { background: #7289ff; }
.admin-launcher-modes .is-google::before { background: #f4ad32; }
.admin-launcher-modes .is-email::before { background: var(--launcher-accent); }

/* Ses identifiants : une fiche par compte. */
.admin-launcher-members tr.admin-launcher-detail td { width: auto; padding: 0 10px 14px; text-align: left; white-space: normal; }
.admin-launcher-ids { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.admin-launcher-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; border: 1px solid var(--launcher-border); border-radius: 8px; padding: 12px 14px; background: #121214; }
.admin-launcher-id > small { color: rgba(255, 255, 255, .4); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.admin-launcher-id > strong { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-weight: 800; }
.admin-launcher-id > strong > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.admin-launcher-id p { display: flex; align-items: center; gap: 6px; margin: 0; color: rgba(255, 255, 255, .5); font-size: 11px; font-variant-numeric: tabular-nums; }
.admin-launcher-copy { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border: 0; border-radius: 5px; background: none; color: rgba(255, 255, 255, .4); cursor: pointer; }
.admin-launcher-copy:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-launcher-copy .material-icons { font-size: 14px; }
.admin-launcher-id-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.admin-launcher-id-actions .admin-launcher-secondary { min-height: 32px; }
/* Sous la ligne ouverte : ses rôles du Discord, à leur couleur, et ses abonnements. */
.admin-launcher-id p b { color: #f5f5f7; font-weight: 800; }
.admin-launcher-id p.is-error { color: #ff6b81; }
.admin-launcher-id-actions + p { margin-top: 6px; }
.admin-launcher-roles { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.admin-launcher-roles span { --role: rgba(255, 255, 255, .45); display: inline-flex; align-items: center; gap: 6px; min-height: 22px; border: 1px solid var(--launcher-border); border-radius: 6px; padding: 0 8px; color: rgba(255, 255, 255, .78); font-size: 10px; font-weight: 750; white-space: nowrap; }
.admin-launcher-roles span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--role); }

.admin-launcher-member > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.admin-launcher-member strong { font-size: 12px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-launcher-member small,
.admin-launcher-members td > small { color: rgba(255, 255, 255, .42); font-size: 10px; font-variant-numeric: tabular-nums; }
.admin-launcher-installed { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 850; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.admin-launcher-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.admin-launcher-state .material-icons { font-size: 15px; }
.admin-launcher-state.is-ok { color: var(--launcher-green); }
.admin-launcher-state.is-wait { color: var(--launcher-yellow); }

.admin-launcher-face { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: #232327; color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 800; }
.admin-launcher-face img { width: 100%; height: 100%; object-fit: cover; }
.admin-launcher-member { display: flex; align-items: center; gap: 10px; min-width: 0; }

.admin-launcher-table-wrap { overflow-x: auto; }
.admin-launcher-members table { width: 100%; border-collapse: collapse; }
.admin-launcher-members th { padding: 9px 10px; border-bottom: 1px solid var(--launcher-border); color: rgba(255, 255, 255, .4); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.admin-launcher-members td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
.admin-launcher-members tr:last-child td { border-bottom: 0; }
.admin-launcher-members td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.admin-launcher-members td:nth-child(4) { white-space: nowrap; }
.admin-launcher-members td:nth-child(6) { text-align: right; white-space: nowrap; }
.admin-launcher-members select { min-height: 34px; min-width: 210px; border: 1px solid var(--launcher-border); border-radius: 7px; padding: 0 10px; background: #121214; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-launcher-members select:focus { outline: 0; border-color: rgba(255, 23, 77, .5); }
.admin-launcher-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 26px 10px 30px; color: rgba(255, 255, 255, .48); text-align: center; }
.admin-launcher-empty .material-icons { font-size: 30px; color: rgba(255, 255, 255, .22); }
.admin-launcher-empty strong { color: #f5f5f7; font-size: 13px; }
.admin-launcher-empty p { margin: 0; font-size: 11px; }

.admin-launcher-toast { position: fixed; z-index: 60; right: 26px; bottom: 26px; display: flex; align-items: center; gap: 9px; max-width: 420px; border: 1px solid var(--launcher-border); border-radius: 9px; padding: 12px 15px; background: #161619; color: #fff; font-size: 12px; font-weight: 650; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.admin-launcher-toast[hidden] { display: none; }
.admin-launcher-toast .material-icons { font-size: 18px; }
.admin-launcher-toast.is-success .material-icons { color: var(--launcher-green); }
.admin-launcher-toast.is-error { border-color: rgba(255, 23, 77, .45); }
.admin-launcher-toast.is-error .material-icons { color: #ff6b81; }

@keyframes admin-launcher-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .admin-launcher-flow { grid-template-columns: minmax(0, 1fr); }
  .admin-launcher-push > .material-icons { transform: rotate(90deg); }
  .admin-launcher-members-heading { flex-direction: column; align-items: stretch; }
  .admin-launcher-search { width: 100%; }
}
