/* Page « Liaison Twitch » du panneau (réglages, état, comptes liés) — dans son propre fichier pour ne pas grossir style.css,
   déjà très au-dessus de 400 lignes. Chargé par index.html juste après style.css : les variables (--bg, --violet…) viennent de là. */
.tl-page { max-width: 980px; }
.tl-page .panel-card { margin-bottom: 18px; }
.tl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tl-card-title { margin: 0 0 6px; font-size: 15px; font-family: var(--font-display); letter-spacing: 0.01em; }
.tl-card-help { margin: 0 0 18px; font-size: 13.5px; max-width: 72ch; }

.tl-state-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 18px; }
.tl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tl-tile {
  background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; min-width: 0;
}
.tl-tile-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tl-tile-value { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.2; margin: 6px 0 4px; overflow-wrap: anywhere; }
.tl-problems { margin: 16px 0 0; }
.tl-problems p { margin: 0; font-weight: 700; }
.tl-link-box {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.tl-link-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tl-link-url {
  min-width: 0; padding: 6px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border);
  color: var(--cyan); font-size: 13.5px; overflow-wrap: anywhere; text-decoration: none;
}
a.tl-link-url:hover { border-color: var(--cyan); }

.tl-role-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 320px); align-items: center; gap: 8px 24px;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.tl-role-row label { font-weight: 700; display: block; }
.tl-role-row p { margin: 2px 0 0; }
.tl-role-row select { width: 100%; }
.tl-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border); }

.tl-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 12px 0 16px; }
.tl-toolbar input { flex: 1 1 260px; min-width: 0; }
.tl-accounts { display: flex; flex-direction: column; gap: 8px; }
.tl-account {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 6px 14px;
  padding: 12px 14px; background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: 10px;
}
.tl-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(145, 70, 255, 0.45); background: var(--bg); }
.tl-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}
.tl-account-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-account-names { overflow-wrap: anywhere; }
.tl-account-twitch { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; }
.tl-twitch { color: #bf94ff; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
a.tl-twitch:hover { text-decoration: underline; }
.tl-twitch-mark { font-size: 11px; }
.tl-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; border: 1px solid transparent; white-space: nowrap;
}
.tl-chip-ok { color: #7fe7ab; background: rgba(46, 204, 113, 0.14); border-color: rgba(46, 204, 113, 0.35); }
.tl-chip-no { color: #aab0c0; background: rgba(140, 147, 166, 0.14); border-color: rgba(140, 147, 166, 0.3); }
.tl-chip-wait { color: #ffc95c; background: rgba(255, 176, 32, 0.12); border-color: rgba(255, 176, 32, 0.35); }
.tl-hint { margin: 0 0 4px; max-width: 70ch; }
.tl-list-notice:empty { display: none; }
.tl-list-notice .banner { margin: 0 0 14px; }
.tl-list-notice p { margin: 0; }
.tl-empty { margin: 8px 0; max-width: 62ch; }
.tl-more { margin-top: 14px; }
.tl-more:empty { display: none; }

@media (max-width: 640px) {
  .tl-role-row { grid-template-columns: 1fr; }
  .tl-account { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
  .tl-account-actions { grid-column: 2; }
  .tl-tile-value { font-size: 21px; }
}
