/* Temps de travail — hub counter, « Tu as regardé la vidéo ? », goal toast
   (player, hub, video library). Theme tokens only, with the library's own
   names as fallbacks. */

.st-today {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  max-width: min(1200px, 100%);
  margin: -10px auto 22px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border, var(--line, rgba(127, 127, 127, 0.3)));
  background: var(--glass-bg, var(--paper, transparent));
  color: var(--text-main, var(--ink, inherit));
  font-size: 0.95rem;
}
.st-today[hidden] {
  display: none;
}
.st-today strong {
  color: var(--primary-neon, var(--accent, inherit));
}
.st-bar {
  position: relative;
  display: inline-block;
  width: 120px;
  max-width: 40vw;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-muted, #888) 25%, transparent);
  overflow: hidden;
}
.st-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--primary-neon, var(--accent, #3b82f6));
}
.st-reached .st-bar-fill {
  background: var(--success-neon, #22c55e);
}
.st-ok {
  color: var(--success-neon, #22c55e);
  font-weight: 600;
}
.st-off,
.st-streak {
  color: var(--text-muted, var(--muted, inherit));
  font-size: 0.85rem;
}
.st-streak {
  font-weight: 600;
}
/* Jokers (« 🃏 2 jokers », « ❄️ joker lun. 13 oct. »). */
.st-jokers,
.st-joker-day {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tertiary-neon, var(--accent, inherit));
}
.st-joker-day {
  font-weight: 400;
  color: var(--text-muted, var(--muted, inherit));
}
.st-more {
  color: var(--text-muted, inherit);
  font-size: 0.85rem;
}

/* Test / KA preparation — « en plus du minimum » (hub; Compte uses .st-prep). */
.st-prep-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(760px, 100%);
  margin: -12px auto 22px;
}
.st-prep-list[hidden] {
  display: none;
}
.st-prep-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 14px;
  border-radius: calc(var(--radius-k, 1px) * 14);
  border: 1px solid var(--glass-border, var(--line, rgba(127, 127, 127, 0.3)));
  border-left: 4px solid var(--tertiary-neon, var(--accent, #8b5cf6));
  background: var(--glass-bg, var(--paper, transparent));
  color: var(--text-main, var(--ink, inherit));
  font-size: 0.92rem;
}
.st-prep-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 260px;
  min-width: 0;
}
.st-prep-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.st-prep-status {
  color: var(--text-muted, var(--muted, inherit));
  font-size: 0.85rem;
}
.st-bar-prep .st-bar-fill {
  background: var(--tertiary-neon, var(--accent, #8b5cf6));
}
.st-reached .st-bar-prep .st-bar-fill {
  background: var(--success-neon, #22c55e);
}
.st-prep-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--tertiary-neon, var(--accent, #8b5cf6));
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.st-prep-go:hover,
.st-prep-go:focus-visible {
  background: color-mix(
    in srgb,
    var(--tertiary-neon, #8b5cf6) 18%,
    transparent
  );
}

.st-prompt {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: calc(var(--radius-k, 1px) * 14);
  border: 1px solid var(--primary-neon, var(--line, #888));
  background: var(--bg-color, var(--paper, #fff));
  color: var(--text-main, var(--ink, #111));
  box-shadow: var(--glass-shadow, 0 8px 24px rgba(0, 0, 0, 0.25));
  font-size: 0.95rem;
}
.st-prompt-q {
  font-weight: 600;
}
.st-prompt-btn,
.st-prompt-close {
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 999px;
  padding: 5px 12px;
  border: 1px solid var(--primary-neon, var(--line, #888));
  background: transparent;
  color: inherit;
  min-height: 34px;
}
.st-prompt-btn:first-of-type {
  background: var(--primary-neon, var(--accent, #3b82f6));
  color: var(--on-accent, #fff);
}
.st-prompt-close {
  border-color: transparent;
  padding: 5px 9px;
}

.st-toast {
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 1001;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--success-neon, #22c55e);
  background: var(--bg-color, var(--paper, #fff));
  color: var(--text-main, var(--ink, #111));
  box-shadow: var(--glass-shadow, 0 8px 24px rgba(0, 0, 0, 0.25));
  font-weight: 600;
  text-align: center;
  animation: st-pop 0.4s ease-out;
}
@keyframes st-pop {
  from {
    transform: translate(-50%, -12px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-toast {
    animation: none;
  }
}
