/* ============================================================================
   Liseuse v2 — digest.css : bandeau « statut / Lancer / Pause » de la vue Résumés
   (portage depuis l'initiale, 28/10/2026). Utilise les tokens de v2.css (:root).
   ========================================================================== */

.digest-panel {
  margin: 0 16px 14px;
  padding: 12px 14px;
  border-radius: var(--r-s, 10px);
  background: var(--acc-soft);
  border: 1px solid rgba(139, 92, 246, .3);
  font-family: var(--ui);
  color: var(--text);
}
.digest-panel[hidden] { display: none; }

.digest-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 8px;
}
.digest-panel__label { font-weight: 600; }

.digest-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.digest-panel__count {
  font-size: 12px;
  color: rgba(241, 238, 251, .6);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.digest-panel__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.digest-panel__fill {
  height: 100%;
  width: 0;
  background: var(--grad-acc);
  transition: width .6s var(--ease);
}

.digest-panel__detail {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(241, 238, 251, .5);
  min-height: 1em;
  overflow-wrap: anywhere;
}
.digest-panel__err {
  margin-top: 6px;
  font-size: 12px;
  color: var(--warn, #fbbf24);
  overflow-wrap: anywhere;
}
.digest-panel__err[hidden] { display: none; }

.digest-btn {
  appearance: none;
  border: 1px solid var(--stroke-lit);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 12px;
  font: 600 12px var(--ui);
  cursor: pointer;
  white-space: nowrap;
}
.digest-btn[hidden] { display: none; }
.digest-btn:hover:not(:disabled) {
  border-color: var(--acc);
  background: var(--acc-soft);
}
.digest-btn:disabled { opacity: .5; cursor: default; }

@media (max-width: 600px) {
  .digest-panel { margin: 0 12px 12px; }
}
